babylon.inspector.bundle.max.js 4.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458
  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. !*** D:/Repos/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. /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/* 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 _typeof(obj) {
  118. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  119. _typeof = function (obj) {
  120. return typeof obj;
  121. };
  122. } else {
  123. _typeof = function (obj) {
  124. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  125. };
  126. }
  127. return _typeof(obj);
  128. }
  129. function _classCallCheck(instance, Constructor) {
  130. if (!(instance instanceof Constructor)) {
  131. throw new TypeError("Cannot call a class as a function");
  132. }
  133. }
  134. function _defineProperties(target, props) {
  135. for (var i = 0; i < props.length; i++) {
  136. var descriptor = props[i];
  137. descriptor.enumerable = descriptor.enumerable || false;
  138. descriptor.configurable = true;
  139. if ("value" in descriptor) descriptor.writable = true;
  140. Object.defineProperty(target, descriptor.key, descriptor);
  141. }
  142. }
  143. function _createClass(Constructor, protoProps, staticProps) {
  144. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  145. if (staticProps) _defineProperties(Constructor, staticProps);
  146. return Constructor;
  147. }
  148. function _defineProperty(obj, key, value) {
  149. if (key in obj) {
  150. Object.defineProperty(obj, key, {
  151. value: value,
  152. enumerable: true,
  153. configurable: true,
  154. writable: true
  155. });
  156. } else {
  157. obj[key] = value;
  158. }
  159. return obj;
  160. }
  161. function _objectSpread(target) {
  162. for (var i = 1; i < arguments.length; i++) {
  163. var source = arguments[i] != null ? arguments[i] : {};
  164. var ownKeys = Object.keys(source);
  165. if (typeof Object.getOwnPropertySymbols === 'function') {
  166. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  167. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  168. }));
  169. }
  170. ownKeys.forEach(function (key) {
  171. _defineProperty(target, key, source[key]);
  172. });
  173. }
  174. return target;
  175. }
  176. function _slicedToArray(arr, i) {
  177. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  178. }
  179. function _toConsumableArray(arr) {
  180. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  181. }
  182. function _arrayWithoutHoles(arr) {
  183. if (Array.isArray(arr)) {
  184. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  185. return arr2;
  186. }
  187. }
  188. function _arrayWithHoles(arr) {
  189. if (Array.isArray(arr)) return arr;
  190. }
  191. function _iterableToArray(iter) {
  192. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  193. }
  194. function _iterableToArrayLimit(arr, i) {
  195. var _arr = [];
  196. var _n = true;
  197. var _d = false;
  198. var _e = undefined;
  199. try {
  200. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  201. _arr.push(_s.value);
  202. if (i && _arr.length === i) break;
  203. }
  204. } catch (err) {
  205. _d = true;
  206. _e = err;
  207. } finally {
  208. try {
  209. if (!_n && _i["return"] != null) _i["return"]();
  210. } finally {
  211. if (_d) throw _e;
  212. }
  213. }
  214. return _arr;
  215. }
  216. function _nonIterableSpread() {
  217. throw new TypeError("Invalid attempt to spread non-iterable instance");
  218. }
  219. function _nonIterableRest() {
  220. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  221. }
  222. var noop = function noop() {};
  223. var _WINDOW = {};
  224. var _DOCUMENT = {};
  225. var _MUTATION_OBSERVER = null;
  226. var _PERFORMANCE = {
  227. mark: noop,
  228. measure: noop
  229. };
  230. try {
  231. if (typeof window !== 'undefined') _WINDOW = window;
  232. if (typeof document !== 'undefined') _DOCUMENT = document;
  233. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  234. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  235. } catch (e) {}
  236. var _ref = _WINDOW.navigator || {},
  237. _ref$userAgent = _ref.userAgent,
  238. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  239. var WINDOW = _WINDOW;
  240. var DOCUMENT = _DOCUMENT;
  241. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  242. var PERFORMANCE = _PERFORMANCE;
  243. var IS_BROWSER = !!WINDOW.document;
  244. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  245. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  246. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  247. var UNITS_IN_GRID = 16;
  248. var DEFAULT_FAMILY_PREFIX = 'fa';
  249. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  250. var DATA_FA_I2SVG = 'data-fa-i2svg';
  251. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  252. var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
  253. var DATA_PREFIX = 'data-prefix';
  254. var DATA_ICON = 'data-icon';
  255. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  256. var MUTATION_APPROACH_ASYNC = 'async';
  257. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  258. var PRODUCTION = function () {
  259. try {
  260. return "development" === 'production';
  261. } catch (e) {
  262. return false;
  263. }
  264. }();
  265. var PREFIX_TO_STYLE = {
  266. 'fas': 'solid',
  267. 'far': 'regular',
  268. 'fal': 'light',
  269. 'fad': 'duotone',
  270. 'fab': 'brands',
  271. 'fa': 'solid'
  272. };
  273. var STYLE_TO_PREFIX = {
  274. 'solid': 'fas',
  275. 'regular': 'far',
  276. 'light': 'fal',
  277. 'duotone': 'fad',
  278. 'brands': 'fab'
  279. };
  280. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  281. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Duotone|Brands|Free|Pro)/;
  282. var FONT_WEIGHT_TO_PREFIX = {
  283. '900': 'fas',
  284. '400': 'far',
  285. 'normal': 'far',
  286. '300': 'fal'
  287. };
  288. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  289. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  290. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  291. var DUOTONE_CLASSES = {
  292. GROUP: 'group',
  293. SWAP_OPACITY: 'swap-opacity',
  294. PRIMARY: 'primary',
  295. SECONDARY: 'secondary'
  296. };
  297. 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', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY].concat(oneToTen.map(function (n) {
  298. return "".concat(n, "x");
  299. })).concat(oneToTwenty.map(function (n) {
  300. return "w-".concat(n);
  301. }));
  302. var initial = WINDOW.FontAwesomeConfig || {};
  303. function getAttrConfig(attr) {
  304. var element = DOCUMENT.querySelector('script[' + attr + ']');
  305. if (element) {
  306. return element.getAttribute(attr);
  307. }
  308. }
  309. function coerce(val) {
  310. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  311. // We'll assume that this is an indication that it should be toggled to true
  312. // For example <script data-search-pseudo-elements src="..."></script>
  313. if (val === '') return true;
  314. if (val === 'false') return false;
  315. if (val === 'true') return true;
  316. return val;
  317. }
  318. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  319. 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-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  320. attrs.forEach(function (_ref) {
  321. var _ref2 = _slicedToArray(_ref, 2),
  322. attr = _ref2[0],
  323. key = _ref2[1];
  324. var val = coerce(getAttrConfig(attr));
  325. if (val !== undefined && val !== null) {
  326. initial[key] = val;
  327. }
  328. });
  329. }
  330. var _default = {
  331. familyPrefix: DEFAULT_FAMILY_PREFIX,
  332. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  333. autoReplaceSvg: true,
  334. autoAddCss: true,
  335. autoA11y: true,
  336. searchPseudoElements: false,
  337. observeMutations: true,
  338. mutateApproach: 'async',
  339. keepOriginalSource: true,
  340. measurePerformance: false,
  341. showMissingIcons: true
  342. };
  343. var _config = _objectSpread({}, _default, initial);
  344. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  345. var config = _objectSpread({}, _config);
  346. WINDOW.FontAwesomeConfig = config;
  347. var w = WINDOW || {};
  348. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  349. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  350. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  351. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  352. var namespace = w[NAMESPACE_IDENTIFIER];
  353. var functions = [];
  354. var listener = function listener() {
  355. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  356. loaded = 1;
  357. functions.map(function (fn) {
  358. return fn();
  359. });
  360. };
  361. var loaded = false;
  362. if (IS_DOM) {
  363. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  364. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  365. }
  366. function domready (fn) {
  367. if (!IS_DOM) return;
  368. loaded ? setTimeout(fn, 0) : functions.push(fn);
  369. }
  370. var PENDING = 'pending';
  371. var SETTLED = 'settled';
  372. var FULFILLED = 'fulfilled';
  373. var REJECTED = 'rejected';
  374. var NOOP = function NOOP() {};
  375. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  376. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  377. var asyncQueue = [];
  378. var asyncTimer;
  379. function asyncFlush() {
  380. // run promise callbacks
  381. for (var i = 0; i < asyncQueue.length; i++) {
  382. asyncQueue[i][0](asyncQueue[i][1]);
  383. } // reset async asyncQueue
  384. asyncQueue = [];
  385. asyncTimer = false;
  386. }
  387. function asyncCall(callback, arg) {
  388. asyncQueue.push([callback, arg]);
  389. if (!asyncTimer) {
  390. asyncTimer = true;
  391. asyncSetTimer(asyncFlush, 0);
  392. }
  393. }
  394. function invokeResolver(resolver, promise) {
  395. function resolvePromise(value) {
  396. resolve(promise, value);
  397. }
  398. function rejectPromise(reason) {
  399. reject(promise, reason);
  400. }
  401. try {
  402. resolver(resolvePromise, rejectPromise);
  403. } catch (e) {
  404. rejectPromise(e);
  405. }
  406. }
  407. function invokeCallback(subscriber) {
  408. var owner = subscriber.owner;
  409. var settled = owner._state;
  410. var value = owner._data;
  411. var callback = subscriber[settled];
  412. var promise = subscriber.then;
  413. if (typeof callback === 'function') {
  414. settled = FULFILLED;
  415. try {
  416. value = callback(value);
  417. } catch (e) {
  418. reject(promise, e);
  419. }
  420. }
  421. if (!handleThenable(promise, value)) {
  422. if (settled === FULFILLED) {
  423. resolve(promise, value);
  424. }
  425. if (settled === REJECTED) {
  426. reject(promise, value);
  427. }
  428. }
  429. }
  430. function handleThenable(promise, value) {
  431. var resolved;
  432. try {
  433. if (promise === value) {
  434. throw new TypeError('A promises callback cannot return that same promise.');
  435. }
  436. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  437. // then should be retrieved only once
  438. var then = value.then;
  439. if (typeof then === 'function') {
  440. then.call(value, function (val) {
  441. if (!resolved) {
  442. resolved = true;
  443. if (value === val) {
  444. fulfill(promise, val);
  445. } else {
  446. resolve(promise, val);
  447. }
  448. }
  449. }, function (reason) {
  450. if (!resolved) {
  451. resolved = true;
  452. reject(promise, reason);
  453. }
  454. });
  455. return true;
  456. }
  457. }
  458. } catch (e) {
  459. if (!resolved) {
  460. reject(promise, e);
  461. }
  462. return true;
  463. }
  464. return false;
  465. }
  466. function resolve(promise, value) {
  467. if (promise === value || !handleThenable(promise, value)) {
  468. fulfill(promise, value);
  469. }
  470. }
  471. function fulfill(promise, value) {
  472. if (promise._state === PENDING) {
  473. promise._state = SETTLED;
  474. promise._data = value;
  475. asyncCall(publishFulfillment, promise);
  476. }
  477. }
  478. function reject(promise, reason) {
  479. if (promise._state === PENDING) {
  480. promise._state = SETTLED;
  481. promise._data = reason;
  482. asyncCall(publishRejection, promise);
  483. }
  484. }
  485. function publish(promise) {
  486. promise._then = promise._then.forEach(invokeCallback);
  487. }
  488. function publishFulfillment(promise) {
  489. promise._state = FULFILLED;
  490. publish(promise);
  491. }
  492. function publishRejection(promise) {
  493. promise._state = REJECTED;
  494. publish(promise);
  495. if (!promise._handled && isNode) {
  496. global.process.emit('unhandledRejection', promise._data, promise);
  497. }
  498. }
  499. function notifyRejectionHandled(promise) {
  500. global.process.emit('rejectionHandled', promise);
  501. }
  502. /**
  503. * @class
  504. */
  505. function P(resolver) {
  506. if (typeof resolver !== 'function') {
  507. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  508. }
  509. if (this instanceof P === false) {
  510. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  511. }
  512. this._then = [];
  513. invokeResolver(resolver, this);
  514. }
  515. P.prototype = {
  516. constructor: P,
  517. _state: PENDING,
  518. _then: null,
  519. _data: undefined,
  520. _handled: false,
  521. then: function then(onFulfillment, onRejection) {
  522. var subscriber = {
  523. owner: this,
  524. then: new this.constructor(NOOP),
  525. fulfilled: onFulfillment,
  526. rejected: onRejection
  527. };
  528. if ((onRejection || onFulfillment) && !this._handled) {
  529. this._handled = true;
  530. if (this._state === REJECTED && isNode) {
  531. asyncCall(notifyRejectionHandled, this);
  532. }
  533. }
  534. if (this._state === FULFILLED || this._state === REJECTED) {
  535. // already resolved, call callback async
  536. asyncCall(invokeCallback, subscriber);
  537. } else {
  538. // subscribe
  539. this._then.push(subscriber);
  540. }
  541. return subscriber.then;
  542. },
  543. catch: function _catch(onRejection) {
  544. return this.then(null, onRejection);
  545. }
  546. };
  547. P.all = function (promises) {
  548. if (!Array.isArray(promises)) {
  549. throw new TypeError('You must pass an array to Promise.all().');
  550. }
  551. return new P(function (resolve, reject) {
  552. var results = [];
  553. var remaining = 0;
  554. function resolver(index) {
  555. remaining++;
  556. return function (value) {
  557. results[index] = value;
  558. if (! --remaining) {
  559. resolve(results);
  560. }
  561. };
  562. }
  563. for (var i = 0, promise; i < promises.length; i++) {
  564. promise = promises[i];
  565. if (promise && typeof promise.then === 'function') {
  566. promise.then(resolver(i), reject);
  567. } else {
  568. results[i] = promise;
  569. }
  570. }
  571. if (!remaining) {
  572. resolve(results);
  573. }
  574. });
  575. };
  576. P.race = function (promises) {
  577. if (!Array.isArray(promises)) {
  578. throw new TypeError('You must pass an array to Promise.race().');
  579. }
  580. return new P(function (resolve, reject) {
  581. for (var i = 0, promise; i < promises.length; i++) {
  582. promise = promises[i];
  583. if (promise && typeof promise.then === 'function') {
  584. promise.then(resolve, reject);
  585. } else {
  586. resolve(promise);
  587. }
  588. }
  589. });
  590. };
  591. P.resolve = function (value) {
  592. if (value && _typeof(value) === 'object' && value.constructor === P) {
  593. return value;
  594. }
  595. return new P(function (resolve) {
  596. resolve(value);
  597. });
  598. };
  599. P.reject = function (reason) {
  600. return new P(function (resolve, reject) {
  601. reject(reason);
  602. });
  603. };
  604. var picked = typeof Promise === 'function' ? Promise : P;
  605. var d = UNITS_IN_GRID;
  606. var meaninglessTransform = {
  607. size: 16,
  608. x: 0,
  609. y: 0,
  610. rotate: 0,
  611. flipX: false,
  612. flipY: false
  613. };
  614. function isReserved(name) {
  615. return ~RESERVED_CLASSES.indexOf(name);
  616. }
  617. function insertCss(css) {
  618. if (!css || !IS_DOM) {
  619. return;
  620. }
  621. var style = DOCUMENT.createElement('style');
  622. style.setAttribute('type', 'text/css');
  623. style.innerHTML = css;
  624. var headChildren = DOCUMENT.head.childNodes;
  625. var beforeChild = null;
  626. for (var i = headChildren.length - 1; i > -1; i--) {
  627. var child = headChildren[i];
  628. var tagName = (child.tagName || '').toUpperCase();
  629. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  630. beforeChild = child;
  631. }
  632. }
  633. DOCUMENT.head.insertBefore(style, beforeChild);
  634. return css;
  635. }
  636. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  637. function nextUniqueId() {
  638. var size = 12;
  639. var id = '';
  640. while (size-- > 0) {
  641. id += idPool[Math.random() * 62 | 0];
  642. }
  643. return id;
  644. }
  645. function toArray(obj) {
  646. var array = [];
  647. for (var i = (obj || []).length >>> 0; i--;) {
  648. array[i] = obj[i];
  649. }
  650. return array;
  651. }
  652. function classArray(node) {
  653. if (node.classList) {
  654. return toArray(node.classList);
  655. } else {
  656. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  657. return i;
  658. });
  659. }
  660. }
  661. function getIconName(familyPrefix, cls) {
  662. var parts = cls.split('-');
  663. var prefix = parts[0];
  664. var iconName = parts.slice(1).join('-');
  665. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  666. return iconName;
  667. } else {
  668. return null;
  669. }
  670. }
  671. function htmlEscape(str) {
  672. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  673. }
  674. function joinAttributes(attributes) {
  675. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  676. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  677. }, '').trim();
  678. }
  679. function joinStyles(styles) {
  680. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  681. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  682. }, '');
  683. }
  684. function transformIsMeaningful(transform) {
  685. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  686. }
  687. function transformForSvg(_ref) {
  688. var transform = _ref.transform,
  689. containerWidth = _ref.containerWidth,
  690. iconWidth = _ref.iconWidth;
  691. var outer = {
  692. transform: "translate(".concat(containerWidth / 2, " 256)")
  693. };
  694. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  695. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  696. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  697. var inner = {
  698. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  699. };
  700. var path = {
  701. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  702. };
  703. return {
  704. outer: outer,
  705. inner: inner,
  706. path: path
  707. };
  708. }
  709. function transformForCss(_ref2) {
  710. var transform = _ref2.transform,
  711. _ref2$width = _ref2.width,
  712. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  713. _ref2$height = _ref2.height,
  714. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  715. _ref2$startCentered = _ref2.startCentered,
  716. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  717. var val = '';
  718. if (startCentered && IS_IE) {
  719. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  720. } else if (startCentered) {
  721. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  722. } else {
  723. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  724. }
  725. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  726. val += "rotate(".concat(transform.rotate, "deg) ");
  727. return val;
  728. }
  729. var ALL_SPACE = {
  730. x: 0,
  731. y: 0,
  732. width: '100%',
  733. height: '100%'
  734. };
  735. function fillBlack(abstract) {
  736. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  737. if (abstract.attributes && (abstract.attributes.fill || force)) {
  738. abstract.attributes.fill = 'black';
  739. }
  740. return abstract;
  741. }
  742. function deGroup(abstract) {
  743. if (abstract.tag === 'g') {
  744. return abstract.children;
  745. } else {
  746. return [abstract];
  747. }
  748. }
  749. function makeIconMasking (_ref) {
  750. var children = _ref.children,
  751. attributes = _ref.attributes,
  752. main = _ref.main,
  753. mask = _ref.mask,
  754. explicitMaskId = _ref.maskId,
  755. transform = _ref.transform;
  756. var mainWidth = main.width,
  757. mainPath = main.icon;
  758. var maskWidth = mask.width,
  759. maskPath = mask.icon;
  760. var trans = transformForSvg({
  761. transform: transform,
  762. containerWidth: maskWidth,
  763. iconWidth: mainWidth
  764. });
  765. var maskRect = {
  766. tag: 'rect',
  767. attributes: _objectSpread({}, ALL_SPACE, {
  768. fill: 'white'
  769. })
  770. };
  771. var maskInnerGroupChildrenMixin = mainPath.children ? {
  772. children: mainPath.children.map(fillBlack)
  773. } : {};
  774. var maskInnerGroup = {
  775. tag: 'g',
  776. attributes: _objectSpread({}, trans.inner),
  777. children: [fillBlack(_objectSpread({
  778. tag: mainPath.tag,
  779. attributes: _objectSpread({}, mainPath.attributes, trans.path)
  780. }, maskInnerGroupChildrenMixin))]
  781. };
  782. var maskOuterGroup = {
  783. tag: 'g',
  784. attributes: _objectSpread({}, trans.outer),
  785. children: [maskInnerGroup]
  786. };
  787. var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
  788. var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
  789. var maskTag = {
  790. tag: 'mask',
  791. attributes: _objectSpread({}, ALL_SPACE, {
  792. id: maskId,
  793. maskUnits: 'userSpaceOnUse',
  794. maskContentUnits: 'userSpaceOnUse'
  795. }),
  796. children: [maskRect, maskOuterGroup]
  797. };
  798. var defs = {
  799. tag: 'defs',
  800. children: [{
  801. tag: 'clipPath',
  802. attributes: {
  803. id: clipId
  804. },
  805. children: deGroup(maskPath)
  806. }, maskTag]
  807. };
  808. children.push(defs, {
  809. tag: 'rect',
  810. attributes: _objectSpread({
  811. fill: 'currentColor',
  812. 'clip-path': "url(#".concat(clipId, ")"),
  813. mask: "url(#".concat(maskId, ")")
  814. }, ALL_SPACE)
  815. });
  816. return {
  817. children: children,
  818. attributes: attributes
  819. };
  820. }
  821. function makeIconStandard (_ref) {
  822. var children = _ref.children,
  823. attributes = _ref.attributes,
  824. main = _ref.main,
  825. transform = _ref.transform,
  826. styles = _ref.styles;
  827. var styleString = joinStyles(styles);
  828. if (styleString.length > 0) {
  829. attributes['style'] = styleString;
  830. }
  831. if (transformIsMeaningful(transform)) {
  832. var trans = transformForSvg({
  833. transform: transform,
  834. containerWidth: main.width,
  835. iconWidth: main.width
  836. });
  837. children.push({
  838. tag: 'g',
  839. attributes: _objectSpread({}, trans.outer),
  840. children: [{
  841. tag: 'g',
  842. attributes: _objectSpread({}, trans.inner),
  843. children: [{
  844. tag: main.icon.tag,
  845. children: main.icon.children,
  846. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  847. }]
  848. }]
  849. });
  850. } else {
  851. children.push(main.icon);
  852. }
  853. return {
  854. children: children,
  855. attributes: attributes
  856. };
  857. }
  858. function asIcon (_ref) {
  859. var children = _ref.children,
  860. main = _ref.main,
  861. mask = _ref.mask,
  862. attributes = _ref.attributes,
  863. styles = _ref.styles,
  864. transform = _ref.transform;
  865. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  866. var width = main.width,
  867. height = main.height;
  868. var offset = {
  869. x: width / height / 2,
  870. y: 0.5
  871. };
  872. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  873. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  874. }));
  875. }
  876. return [{
  877. tag: 'svg',
  878. attributes: attributes,
  879. children: children
  880. }];
  881. }
  882. function asSymbol (_ref) {
  883. var prefix = _ref.prefix,
  884. iconName = _ref.iconName,
  885. children = _ref.children,
  886. attributes = _ref.attributes,
  887. symbol = _ref.symbol;
  888. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  889. return [{
  890. tag: 'svg',
  891. attributes: {
  892. style: 'display: none;'
  893. },
  894. children: [{
  895. tag: 'symbol',
  896. attributes: _objectSpread({}, attributes, {
  897. id: id
  898. }),
  899. children: children
  900. }]
  901. }];
  902. }
  903. function makeInlineSvgAbstract(params) {
  904. var _params$icons = params.icons,
  905. main = _params$icons.main,
  906. mask = _params$icons.mask,
  907. prefix = params.prefix,
  908. iconName = params.iconName,
  909. transform = params.transform,
  910. symbol = params.symbol,
  911. title = params.title,
  912. maskId = params.maskId,
  913. titleId = params.titleId,
  914. extra = params.extra,
  915. _params$watchable = params.watchable,
  916. watchable = _params$watchable === void 0 ? false : _params$watchable;
  917. var _ref = mask.found ? mask : main,
  918. width = _ref.width,
  919. height = _ref.height;
  920. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  921. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  922. return extra.classes.indexOf(c) === -1;
  923. }).concat(extra.classes).join(' ');
  924. var content = {
  925. children: [],
  926. attributes: _objectSpread({}, extra.attributes, {
  927. 'data-prefix': prefix,
  928. 'data-icon': iconName,
  929. 'class': attrClass,
  930. 'role': extra.attributes.role || 'img',
  931. 'xmlns': 'http://www.w3.org/2000/svg',
  932. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  933. })
  934. };
  935. if (watchable) {
  936. content.attributes[DATA_FA_I2SVG] = '';
  937. }
  938. if (title) content.children.push({
  939. tag: 'title',
  940. attributes: {
  941. id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
  942. },
  943. children: [title]
  944. });
  945. var args = _objectSpread({}, content, {
  946. prefix: prefix,
  947. iconName: iconName,
  948. main: main,
  949. mask: mask,
  950. maskId: maskId,
  951. transform: transform,
  952. symbol: symbol,
  953. styles: extra.styles
  954. });
  955. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  956. children = _ref2.children,
  957. attributes = _ref2.attributes;
  958. args.children = children;
  959. args.attributes = attributes;
  960. if (symbol) {
  961. return asSymbol(args);
  962. } else {
  963. return asIcon(args);
  964. }
  965. }
  966. function makeLayersTextAbstract(params) {
  967. var content = params.content,
  968. width = params.width,
  969. height = params.height,
  970. transform = params.transform,
  971. title = params.title,
  972. extra = params.extra,
  973. _params$watchable2 = params.watchable,
  974. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  975. var attributes = _objectSpread({}, extra.attributes, title ? {
  976. 'title': title
  977. } : {}, {
  978. 'class': extra.classes.join(' ')
  979. });
  980. if (watchable) {
  981. attributes[DATA_FA_I2SVG] = '';
  982. }
  983. var styles = _objectSpread({}, extra.styles);
  984. if (transformIsMeaningful(transform)) {
  985. styles['transform'] = transformForCss({
  986. transform: transform,
  987. startCentered: true,
  988. width: width,
  989. height: height
  990. });
  991. styles['-webkit-transform'] = styles['transform'];
  992. }
  993. var styleString = joinStyles(styles);
  994. if (styleString.length > 0) {
  995. attributes['style'] = styleString;
  996. }
  997. var val = [];
  998. val.push({
  999. tag: 'span',
  1000. attributes: attributes,
  1001. children: [content]
  1002. });
  1003. if (title) {
  1004. val.push({
  1005. tag: 'span',
  1006. attributes: {
  1007. class: 'sr-only'
  1008. },
  1009. children: [title]
  1010. });
  1011. }
  1012. return val;
  1013. }
  1014. function makeLayersCounterAbstract(params) {
  1015. var content = params.content,
  1016. title = params.title,
  1017. extra = params.extra;
  1018. var attributes = _objectSpread({}, extra.attributes, title ? {
  1019. 'title': title
  1020. } : {}, {
  1021. 'class': extra.classes.join(' ')
  1022. });
  1023. var styleString = joinStyles(extra.styles);
  1024. if (styleString.length > 0) {
  1025. attributes['style'] = styleString;
  1026. }
  1027. var val = [];
  1028. val.push({
  1029. tag: 'span',
  1030. attributes: attributes,
  1031. children: [content]
  1032. });
  1033. if (title) {
  1034. val.push({
  1035. tag: 'span',
  1036. attributes: {
  1037. class: 'sr-only'
  1038. },
  1039. children: [title]
  1040. });
  1041. }
  1042. return val;
  1043. }
  1044. var noop$1 = function noop() {};
  1045. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  1046. mark: noop$1,
  1047. measure: noop$1
  1048. };
  1049. var preamble = "FA \"5.13.1\"";
  1050. var begin = function begin(name) {
  1051. p.mark("".concat(preamble, " ").concat(name, " begins"));
  1052. return function () {
  1053. return end(name);
  1054. };
  1055. };
  1056. var end = function end(name) {
  1057. p.mark("".concat(preamble, " ").concat(name, " ends"));
  1058. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  1059. };
  1060. var perf = {
  1061. begin: begin,
  1062. end: end
  1063. };
  1064. /**
  1065. * Internal helper to bind a function known to have 4 arguments
  1066. * to a given context.
  1067. */
  1068. var bindInternal4 = function bindInternal4(func, thisContext) {
  1069. return function (a, b, c, d) {
  1070. return func.call(thisContext, a, b, c, d);
  1071. };
  1072. };
  1073. /**
  1074. * # Reduce
  1075. *
  1076. * A fast object `.reduce()` implementation.
  1077. *
  1078. * @param {Object} subject The object to reduce over.
  1079. * @param {Function} fn The reducer function.
  1080. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  1081. * @param {Object} thisContext The context for the reducer.
  1082. * @return {mixed} The final result.
  1083. */
  1084. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  1085. var keys = Object.keys(subject),
  1086. length = keys.length,
  1087. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  1088. i,
  1089. key,
  1090. result;
  1091. if (initialValue === undefined) {
  1092. i = 1;
  1093. result = subject[keys[0]];
  1094. } else {
  1095. i = 0;
  1096. result = initialValue;
  1097. }
  1098. for (; i < length; i++) {
  1099. key = keys[i];
  1100. result = iterator(result, subject[key], key, subject);
  1101. }
  1102. return result;
  1103. };
  1104. function toHex(unicode) {
  1105. var result = '';
  1106. for (var i = 0; i < unicode.length; i++) {
  1107. var hex = unicode.charCodeAt(i).toString(16);
  1108. result += ('000' + hex).slice(-4);
  1109. }
  1110. return result;
  1111. }
  1112. function defineIcons(prefix, icons) {
  1113. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1114. var _params$skipHooks = params.skipHooks,
  1115. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  1116. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1117. var icon = icons[iconName];
  1118. var expanded = !!icon.icon;
  1119. if (expanded) {
  1120. acc[icon.iconName] = icon.icon;
  1121. } else {
  1122. acc[iconName] = icon;
  1123. }
  1124. return acc;
  1125. }, {});
  1126. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  1127. namespace.hooks.addPack(prefix, normalized);
  1128. } else {
  1129. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1130. }
  1131. /**
  1132. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1133. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1134. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1135. * this as well.
  1136. */
  1137. if (prefix === 'fas') {
  1138. defineIcons('fa', icons);
  1139. }
  1140. }
  1141. var styles = namespace.styles,
  1142. shims = namespace.shims;
  1143. var _byUnicode = {};
  1144. var _byLigature = {};
  1145. var _byOldName = {};
  1146. var build = function build() {
  1147. var lookup = function lookup(reducer) {
  1148. return reduce(styles, function (o, style, prefix) {
  1149. o[prefix] = reduce(style, reducer, {});
  1150. return o;
  1151. }, {});
  1152. };
  1153. _byUnicode = lookup(function (acc, icon, iconName) {
  1154. if (icon[3]) {
  1155. acc[icon[3]] = iconName;
  1156. }
  1157. return acc;
  1158. });
  1159. _byLigature = lookup(function (acc, icon, iconName) {
  1160. var ligatures = icon[2];
  1161. acc[iconName] = iconName;
  1162. ligatures.forEach(function (ligature) {
  1163. acc[ligature] = iconName;
  1164. });
  1165. return acc;
  1166. });
  1167. var hasRegular = 'far' in styles;
  1168. _byOldName = reduce(shims, function (acc, shim) {
  1169. var oldName = shim[0];
  1170. var prefix = shim[1];
  1171. var iconName = shim[2];
  1172. if (prefix === 'far' && !hasRegular) {
  1173. prefix = 'fas';
  1174. }
  1175. acc[oldName] = {
  1176. prefix: prefix,
  1177. iconName: iconName
  1178. };
  1179. return acc;
  1180. }, {});
  1181. };
  1182. build();
  1183. function byUnicode(prefix, unicode) {
  1184. return (_byUnicode[prefix] || {})[unicode];
  1185. }
  1186. function byLigature(prefix, ligature) {
  1187. return (_byLigature[prefix] || {})[ligature];
  1188. }
  1189. function byOldName(name) {
  1190. return _byOldName[name] || {
  1191. prefix: null,
  1192. iconName: null
  1193. };
  1194. }
  1195. var styles$1 = namespace.styles;
  1196. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  1197. return {
  1198. prefix: null,
  1199. iconName: null,
  1200. rest: []
  1201. };
  1202. };
  1203. function getCanonicalIcon(values) {
  1204. return values.reduce(function (acc, cls) {
  1205. var iconName = getIconName(config.familyPrefix, cls);
  1206. if (styles$1[cls]) {
  1207. acc.prefix = cls;
  1208. } else if (config.autoFetchSvg && ['fas', 'far', 'fal', 'fad', 'fab', 'fa'].indexOf(cls) > -1) {
  1209. acc.prefix = cls;
  1210. } else if (iconName) {
  1211. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  1212. acc.iconName = shim.iconName || iconName;
  1213. acc.prefix = shim.prefix || acc.prefix;
  1214. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  1215. acc.rest.push(cls);
  1216. }
  1217. return acc;
  1218. }, emptyCanonicalIcon());
  1219. }
  1220. function iconFromMapping(mapping, prefix, iconName) {
  1221. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  1222. return {
  1223. prefix: prefix,
  1224. iconName: iconName,
  1225. icon: mapping[prefix][iconName]
  1226. };
  1227. }
  1228. }
  1229. function toHtml(abstractNodes) {
  1230. var tag = abstractNodes.tag,
  1231. _abstractNodes$attrib = abstractNodes.attributes,
  1232. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  1233. _abstractNodes$childr = abstractNodes.children,
  1234. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  1235. if (typeof abstractNodes === 'string') {
  1236. return htmlEscape(abstractNodes);
  1237. } else {
  1238. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  1239. }
  1240. }
  1241. var noop$2 = function noop() {};
  1242. function isWatched(node) {
  1243. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  1244. return typeof i2svg === 'string';
  1245. }
  1246. function getMutator() {
  1247. if (config.autoReplaceSvg === true) {
  1248. return mutators.replace;
  1249. }
  1250. var mutator = mutators[config.autoReplaceSvg];
  1251. return mutator || mutators.replace;
  1252. }
  1253. var mutators = {
  1254. replace: function replace(mutation) {
  1255. var node = mutation[0];
  1256. var abstract = mutation[1];
  1257. var newOuterHTML = abstract.map(function (a) {
  1258. return toHtml(a);
  1259. }).join('\n');
  1260. if (node.parentNode && node.outerHTML) {
  1261. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  1262. } else if (node.parentNode) {
  1263. var newNode = document.createElement('span');
  1264. node.parentNode.replaceChild(newNode, node);
  1265. newNode.outerHTML = newOuterHTML;
  1266. }
  1267. },
  1268. nest: function nest(mutation) {
  1269. var node = mutation[0];
  1270. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  1271. // Short-circuit to the standard replacement
  1272. if (~classArray(node).indexOf(config.replacementClass)) {
  1273. return mutators.replace(mutation);
  1274. }
  1275. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  1276. delete abstract[0].attributes.style;
  1277. delete abstract[0].attributes.id;
  1278. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  1279. if (cls === config.replacementClass || cls.match(forSvg)) {
  1280. acc.toSvg.push(cls);
  1281. } else {
  1282. acc.toNode.push(cls);
  1283. }
  1284. return acc;
  1285. }, {
  1286. toNode: [],
  1287. toSvg: []
  1288. });
  1289. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  1290. var newInnerHTML = abstract.map(function (a) {
  1291. return toHtml(a);
  1292. }).join('\n');
  1293. node.setAttribute('class', splitClasses.toNode.join(' '));
  1294. node.setAttribute(DATA_FA_I2SVG, '');
  1295. node.innerHTML = newInnerHTML;
  1296. }
  1297. };
  1298. function performOperationSync(op) {
  1299. op();
  1300. }
  1301. function perform(mutations, callback) {
  1302. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  1303. if (mutations.length === 0) {
  1304. callbackFunction();
  1305. } else {
  1306. var frame = performOperationSync;
  1307. if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
  1308. frame = WINDOW.requestAnimationFrame || performOperationSync;
  1309. }
  1310. frame(function () {
  1311. var mutator = getMutator();
  1312. var mark = perf.begin('mutate');
  1313. mutations.map(mutator);
  1314. mark();
  1315. callbackFunction();
  1316. });
  1317. }
  1318. }
  1319. var disabled = false;
  1320. function disableObservation() {
  1321. disabled = true;
  1322. }
  1323. function enableObservation() {
  1324. disabled = false;
  1325. }
  1326. var mo = null;
  1327. function observe(options) {
  1328. if (!MUTATION_OBSERVER) {
  1329. return;
  1330. }
  1331. if (!config.observeMutations) {
  1332. return;
  1333. }
  1334. var treeCallback = options.treeCallback,
  1335. nodeCallback = options.nodeCallback,
  1336. pseudoElementsCallback = options.pseudoElementsCallback,
  1337. _options$observeMutat = options.observeMutationsRoot,
  1338. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  1339. mo = new MUTATION_OBSERVER(function (objects) {
  1340. if (disabled) return;
  1341. toArray(objects).forEach(function (mutationRecord) {
  1342. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  1343. if (config.searchPseudoElements) {
  1344. pseudoElementsCallback(mutationRecord.target);
  1345. }
  1346. treeCallback(mutationRecord.target);
  1347. }
  1348. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1349. pseudoElementsCallback(mutationRecord.target.parentNode);
  1350. }
  1351. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1352. if (mutationRecord.attributeName === 'class') {
  1353. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1354. prefix = _getCanonicalIcon.prefix,
  1355. iconName = _getCanonicalIcon.iconName;
  1356. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1357. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1358. } else {
  1359. nodeCallback(mutationRecord.target);
  1360. }
  1361. }
  1362. });
  1363. });
  1364. if (!IS_DOM) return;
  1365. mo.observe(observeMutationsRoot, {
  1366. childList: true,
  1367. attributes: true,
  1368. characterData: true,
  1369. subtree: true
  1370. });
  1371. }
  1372. function disconnect() {
  1373. if (!mo) return;
  1374. mo.disconnect();
  1375. }
  1376. function styleParser (node) {
  1377. var style = node.getAttribute('style');
  1378. var val = [];
  1379. if (style) {
  1380. val = style.split(';').reduce(function (acc, style) {
  1381. var styles = style.split(':');
  1382. var prop = styles[0];
  1383. var value = styles.slice(1);
  1384. if (prop && value.length > 0) {
  1385. acc[prop] = value.join(':').trim();
  1386. }
  1387. return acc;
  1388. }, {});
  1389. }
  1390. return val;
  1391. }
  1392. function classParser (node) {
  1393. var existingPrefix = node.getAttribute('data-prefix');
  1394. var existingIconName = node.getAttribute('data-icon');
  1395. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1396. var val = getCanonicalIcon(classArray(node));
  1397. if (existingPrefix && existingIconName) {
  1398. val.prefix = existingPrefix;
  1399. val.iconName = existingIconName;
  1400. }
  1401. if (val.prefix && innerText.length > 1) {
  1402. val.iconName = byLigature(val.prefix, node.innerText);
  1403. } else if (val.prefix && innerText.length === 1) {
  1404. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1405. }
  1406. return val;
  1407. }
  1408. var parseTransformString = function parseTransformString(transformString) {
  1409. var transform = {
  1410. size: 16,
  1411. x: 0,
  1412. y: 0,
  1413. flipX: false,
  1414. flipY: false,
  1415. rotate: 0
  1416. };
  1417. if (!transformString) {
  1418. return transform;
  1419. } else {
  1420. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1421. var parts = n.toLowerCase().split('-');
  1422. var first = parts[0];
  1423. var rest = parts.slice(1).join('-');
  1424. if (first && rest === 'h') {
  1425. acc.flipX = true;
  1426. return acc;
  1427. }
  1428. if (first && rest === 'v') {
  1429. acc.flipY = true;
  1430. return acc;
  1431. }
  1432. rest = parseFloat(rest);
  1433. if (isNaN(rest)) {
  1434. return acc;
  1435. }
  1436. switch (first) {
  1437. case 'grow':
  1438. acc.size = acc.size + rest;
  1439. break;
  1440. case 'shrink':
  1441. acc.size = acc.size - rest;
  1442. break;
  1443. case 'left':
  1444. acc.x = acc.x - rest;
  1445. break;
  1446. case 'right':
  1447. acc.x = acc.x + rest;
  1448. break;
  1449. case 'up':
  1450. acc.y = acc.y - rest;
  1451. break;
  1452. case 'down':
  1453. acc.y = acc.y + rest;
  1454. break;
  1455. case 'rotate':
  1456. acc.rotate = acc.rotate + rest;
  1457. break;
  1458. }
  1459. return acc;
  1460. }, transform);
  1461. }
  1462. };
  1463. function transformParser (node) {
  1464. return parseTransformString(node.getAttribute('data-fa-transform'));
  1465. }
  1466. function symbolParser (node) {
  1467. var symbol = node.getAttribute('data-fa-symbol');
  1468. return symbol === null ? false : symbol === '' ? true : symbol;
  1469. }
  1470. function attributesParser (node) {
  1471. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1472. if (acc.name !== 'class' && acc.name !== 'style') {
  1473. acc[attr.name] = attr.value;
  1474. }
  1475. return acc;
  1476. }, {});
  1477. var title = node.getAttribute('title');
  1478. var titleId = node.getAttribute('data-fa-title-id');
  1479. if (config.autoA11y) {
  1480. if (title) {
  1481. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
  1482. } else {
  1483. extraAttributes['aria-hidden'] = 'true';
  1484. extraAttributes['focusable'] = 'false';
  1485. }
  1486. }
  1487. return extraAttributes;
  1488. }
  1489. function maskParser (node) {
  1490. var mask = node.getAttribute('data-fa-mask');
  1491. if (!mask) {
  1492. return emptyCanonicalIcon();
  1493. } else {
  1494. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1495. return i.trim();
  1496. }));
  1497. }
  1498. }
  1499. function blankMeta() {
  1500. return {
  1501. iconName: null,
  1502. title: null,
  1503. titleId: null,
  1504. prefix: null,
  1505. transform: meaninglessTransform,
  1506. symbol: false,
  1507. mask: null,
  1508. maskId: null,
  1509. extra: {
  1510. classes: [],
  1511. styles: {},
  1512. attributes: {}
  1513. }
  1514. };
  1515. }
  1516. function parseMeta(node) {
  1517. var _classParser = classParser(node),
  1518. iconName = _classParser.iconName,
  1519. prefix = _classParser.prefix,
  1520. extraClasses = _classParser.rest;
  1521. var extraStyles = styleParser(node);
  1522. var transform = transformParser(node);
  1523. var symbol = symbolParser(node);
  1524. var extraAttributes = attributesParser(node);
  1525. var mask = maskParser(node);
  1526. return {
  1527. iconName: iconName,
  1528. title: node.getAttribute('title'),
  1529. titleId: node.getAttribute('data-fa-title-id'),
  1530. prefix: prefix,
  1531. transform: transform,
  1532. symbol: symbol,
  1533. mask: mask,
  1534. maskId: node.getAttribute('data-fa-mask-id'),
  1535. extra: {
  1536. classes: extraClasses,
  1537. styles: extraStyles,
  1538. attributes: extraAttributes
  1539. }
  1540. };
  1541. }
  1542. function MissingIcon(error) {
  1543. this.name = 'MissingIcon';
  1544. this.message = error || 'Icon unavailable';
  1545. this.stack = new Error().stack;
  1546. }
  1547. MissingIcon.prototype = Object.create(Error.prototype);
  1548. MissingIcon.prototype.constructor = MissingIcon;
  1549. var FILL = {
  1550. fill: 'currentColor'
  1551. };
  1552. var ANIMATION_BASE = {
  1553. attributeType: 'XML',
  1554. repeatCount: 'indefinite',
  1555. dur: '2s'
  1556. };
  1557. var RING = {
  1558. tag: 'path',
  1559. attributes: _objectSpread({}, FILL, {
  1560. 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'
  1561. })
  1562. };
  1563. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1564. attributeName: 'opacity'
  1565. });
  1566. var DOT = {
  1567. tag: 'circle',
  1568. attributes: _objectSpread({}, FILL, {
  1569. cx: '256',
  1570. cy: '364',
  1571. r: '28'
  1572. }),
  1573. children: [{
  1574. tag: 'animate',
  1575. attributes: _objectSpread({}, ANIMATION_BASE, {
  1576. attributeName: 'r',
  1577. values: '28;14;28;28;14;28;'
  1578. })
  1579. }, {
  1580. tag: 'animate',
  1581. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1582. values: '1;0;1;1;0;1;'
  1583. })
  1584. }]
  1585. };
  1586. var QUESTION = {
  1587. tag: 'path',
  1588. attributes: _objectSpread({}, FILL, {
  1589. opacity: '1',
  1590. 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'
  1591. }),
  1592. children: [{
  1593. tag: 'animate',
  1594. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1595. values: '1;0;0;0;0;1;'
  1596. })
  1597. }]
  1598. };
  1599. var EXCLAMATION = {
  1600. tag: 'path',
  1601. attributes: _objectSpread({}, FILL, {
  1602. opacity: '0',
  1603. 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'
  1604. }),
  1605. children: [{
  1606. tag: 'animate',
  1607. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1608. values: '0;0;1;1;0;0;'
  1609. })
  1610. }]
  1611. };
  1612. var missing = {
  1613. tag: 'g',
  1614. children: [RING, DOT, QUESTION, EXCLAMATION]
  1615. };
  1616. var styles$2 = namespace.styles;
  1617. function asFoundIcon(icon) {
  1618. var width = icon[0];
  1619. var height = icon[1];
  1620. var _icon$slice = icon.slice(4),
  1621. _icon$slice2 = _slicedToArray(_icon$slice, 1),
  1622. vectorData = _icon$slice2[0];
  1623. var element = null;
  1624. if (Array.isArray(vectorData)) {
  1625. element = {
  1626. tag: 'g',
  1627. attributes: {
  1628. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
  1629. },
  1630. children: [{
  1631. tag: 'path',
  1632. attributes: {
  1633. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
  1634. fill: 'currentColor',
  1635. d: vectorData[0]
  1636. }
  1637. }, {
  1638. tag: 'path',
  1639. attributes: {
  1640. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
  1641. fill: 'currentColor',
  1642. d: vectorData[1]
  1643. }
  1644. }]
  1645. };
  1646. } else {
  1647. element = {
  1648. tag: 'path',
  1649. attributes: {
  1650. fill: 'currentColor',
  1651. d: vectorData
  1652. }
  1653. };
  1654. }
  1655. return {
  1656. found: true,
  1657. width: width,
  1658. height: height,
  1659. icon: element
  1660. };
  1661. }
  1662. function findIcon(iconName, prefix) {
  1663. return new picked(function (resolve, reject) {
  1664. var val = {
  1665. found: false,
  1666. width: 512,
  1667. height: 512,
  1668. icon: missing
  1669. };
  1670. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1671. var icon = styles$2[prefix][iconName];
  1672. return resolve(asFoundIcon(icon));
  1673. }
  1674. var headers = {};
  1675. if (_typeof(WINDOW.FontAwesomeKitConfig) === 'object' && typeof window.FontAwesomeKitConfig.token === 'string') {
  1676. headers['fa-kit-token'] = WINDOW.FontAwesomeKitConfig.token;
  1677. }
  1678. if (iconName && prefix && !config.showMissingIcons) {
  1679. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  1680. } else {
  1681. resolve(val);
  1682. }
  1683. });
  1684. }
  1685. var styles$3 = namespace.styles;
  1686. function generateSvgReplacementMutation(node, nodeMeta) {
  1687. var iconName = nodeMeta.iconName,
  1688. title = nodeMeta.title,
  1689. titleId = nodeMeta.titleId,
  1690. prefix = nodeMeta.prefix,
  1691. transform = nodeMeta.transform,
  1692. symbol = nodeMeta.symbol,
  1693. mask = nodeMeta.mask,
  1694. maskId = nodeMeta.maskId,
  1695. extra = nodeMeta.extra;
  1696. return new picked(function (resolve, reject) {
  1697. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  1698. var _ref2 = _slicedToArray(_ref, 2),
  1699. main = _ref2[0],
  1700. mask = _ref2[1];
  1701. resolve([node, makeInlineSvgAbstract({
  1702. icons: {
  1703. main: main,
  1704. mask: mask
  1705. },
  1706. prefix: prefix,
  1707. iconName: iconName,
  1708. transform: transform,
  1709. symbol: symbol,
  1710. mask: mask,
  1711. maskId: maskId,
  1712. title: title,
  1713. titleId: titleId,
  1714. extra: extra,
  1715. watchable: true
  1716. })]);
  1717. });
  1718. });
  1719. }
  1720. function generateLayersText(node, nodeMeta) {
  1721. var title = nodeMeta.title,
  1722. transform = nodeMeta.transform,
  1723. extra = nodeMeta.extra;
  1724. var width = null;
  1725. var height = null;
  1726. if (IS_IE) {
  1727. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1728. var boundingClientRect = node.getBoundingClientRect();
  1729. width = boundingClientRect.width / computedFontSize;
  1730. height = boundingClientRect.height / computedFontSize;
  1731. }
  1732. if (config.autoA11y && !title) {
  1733. extra.attributes['aria-hidden'] = 'true';
  1734. }
  1735. return picked.resolve([node, makeLayersTextAbstract({
  1736. content: node.innerHTML,
  1737. width: width,
  1738. height: height,
  1739. transform: transform,
  1740. title: title,
  1741. extra: extra,
  1742. watchable: true
  1743. })]);
  1744. }
  1745. function generateMutation(node) {
  1746. var nodeMeta = parseMeta(node);
  1747. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1748. return generateLayersText(node, nodeMeta);
  1749. } else {
  1750. return generateSvgReplacementMutation(node, nodeMeta);
  1751. }
  1752. }
  1753. function onTree(root) {
  1754. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1755. if (!IS_DOM) return;
  1756. var htmlClassList = DOCUMENT.documentElement.classList;
  1757. var hclAdd = function hclAdd(suffix) {
  1758. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1759. };
  1760. var hclRemove = function hclRemove(suffix) {
  1761. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1762. };
  1763. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  1764. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1765. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1766. })).join(', ');
  1767. if (prefixesDomQuery.length === 0) {
  1768. return;
  1769. }
  1770. var candidates = [];
  1771. try {
  1772. candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1773. } catch (e) {// noop
  1774. }
  1775. if (candidates.length > 0) {
  1776. hclAdd('pending');
  1777. hclRemove('complete');
  1778. } else {
  1779. return;
  1780. }
  1781. var mark = perf.begin('onTree');
  1782. var mutations = candidates.reduce(function (acc, node) {
  1783. try {
  1784. var mutation = generateMutation(node);
  1785. if (mutation) {
  1786. acc.push(mutation);
  1787. }
  1788. } catch (e) {
  1789. if (!PRODUCTION) {
  1790. if (e instanceof MissingIcon) {
  1791. console.error(e);
  1792. }
  1793. }
  1794. }
  1795. return acc;
  1796. }, []);
  1797. return new picked(function (resolve, reject) {
  1798. picked.all(mutations).then(function (resolvedMutations) {
  1799. perform(resolvedMutations, function () {
  1800. hclAdd('active');
  1801. hclAdd('complete');
  1802. hclRemove('pending');
  1803. if (typeof callback === 'function') callback();
  1804. mark();
  1805. resolve();
  1806. });
  1807. }).catch(function () {
  1808. mark();
  1809. reject();
  1810. });
  1811. });
  1812. }
  1813. function onNode(node) {
  1814. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1815. generateMutation(node).then(function (mutation) {
  1816. if (mutation) {
  1817. perform([mutation], callback);
  1818. }
  1819. });
  1820. }
  1821. function replaceForPosition(node, position) {
  1822. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  1823. return new picked(function (resolve, reject) {
  1824. if (node.getAttribute(pendingAttribute) !== null) {
  1825. // This node is already being processed
  1826. return resolve();
  1827. }
  1828. var children = toArray(node.children);
  1829. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1830. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  1831. })[0];
  1832. var styles = WINDOW.getComputedStyle(node, position);
  1833. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1834. var fontWeight = styles.getPropertyValue('font-weight');
  1835. var content = styles.getPropertyValue('content');
  1836. if (alreadyProcessedPseudoElement && !fontFamily) {
  1837. // If we've already processed it but the current computed style does not result in a font-family,
  1838. // that probably means that a class name that was previously present to make the icon has been
  1839. // removed. So we now should delete the icon.
  1840. node.removeChild(alreadyProcessedPseudoElement);
  1841. return resolve();
  1842. } else if (fontFamily && content !== 'none' && content !== '') {
  1843. var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1844. var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
  1845. var iconName = byUnicode(prefix, hexValue);
  1846. var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1847. // already done so with the same prefix and iconName
  1848. if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
  1849. node.setAttribute(pendingAttribute, iconIdentifier);
  1850. if (alreadyProcessedPseudoElement) {
  1851. // Delete the old one, since we're replacing it with a new one
  1852. node.removeChild(alreadyProcessedPseudoElement);
  1853. }
  1854. var meta = blankMeta();
  1855. var extra = meta.extra;
  1856. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  1857. findIcon(iconName, prefix).then(function (main) {
  1858. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  1859. icons: {
  1860. main: main,
  1861. mask: emptyCanonicalIcon()
  1862. },
  1863. prefix: prefix,
  1864. iconName: iconIdentifier,
  1865. extra: extra,
  1866. watchable: true
  1867. }));
  1868. var element = DOCUMENT.createElement('svg');
  1869. if (position === ':before') {
  1870. node.insertBefore(element, node.firstChild);
  1871. } else {
  1872. node.appendChild(element);
  1873. }
  1874. element.outerHTML = abstract.map(function (a) {
  1875. return toHtml(a);
  1876. }).join('\n');
  1877. node.removeAttribute(pendingAttribute);
  1878. resolve();
  1879. }).catch(reject);
  1880. } else {
  1881. resolve();
  1882. }
  1883. } else {
  1884. resolve();
  1885. }
  1886. });
  1887. }
  1888. function replace(node) {
  1889. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  1890. }
  1891. function processable(node) {
  1892. return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
  1893. }
  1894. function searchPseudoElements (root) {
  1895. if (!IS_DOM) return;
  1896. return new picked(function (resolve, reject) {
  1897. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  1898. var end = perf.begin('searchPseudoElements');
  1899. disableObservation();
  1900. picked.all(operations).then(function () {
  1901. end();
  1902. enableObservation();
  1903. resolve();
  1904. }).catch(function () {
  1905. end();
  1906. enableObservation();
  1907. reject();
  1908. });
  1909. });
  1910. }
  1911. 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-both, .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:root .fa-flip-both {\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}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}";
  1912. function css () {
  1913. var dfp = DEFAULT_FAMILY_PREFIX;
  1914. var drc = DEFAULT_REPLACEMENT_CLASS;
  1915. var fp = config.familyPrefix;
  1916. var rc = config.replacementClass;
  1917. var s = baseStyles;
  1918. if (fp !== dfp || rc !== drc) {
  1919. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1920. var customPropPatt = new RegExp("\\--".concat(dfp, "\\-"), 'g');
  1921. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1922. s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1923. }
  1924. return s;
  1925. }
  1926. var Library =
  1927. /*#__PURE__*/
  1928. function () {
  1929. function Library() {
  1930. _classCallCheck(this, Library);
  1931. this.definitions = {};
  1932. }
  1933. _createClass(Library, [{
  1934. key: "add",
  1935. value: function add() {
  1936. var _this = this;
  1937. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1938. definitions[_key] = arguments[_key];
  1939. }
  1940. var additions = definitions.reduce(this._pullDefinitions, {});
  1941. Object.keys(additions).forEach(function (key) {
  1942. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1943. defineIcons(key, additions[key]);
  1944. build();
  1945. });
  1946. }
  1947. }, {
  1948. key: "reset",
  1949. value: function reset() {
  1950. this.definitions = {};
  1951. }
  1952. }, {
  1953. key: "_pullDefinitions",
  1954. value: function _pullDefinitions(additions, definition) {
  1955. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1956. 0: definition
  1957. } : definition;
  1958. Object.keys(normalized).map(function (key) {
  1959. var _normalized$key = normalized[key],
  1960. prefix = _normalized$key.prefix,
  1961. iconName = _normalized$key.iconName,
  1962. icon = _normalized$key.icon;
  1963. if (!additions[prefix]) additions[prefix] = {};
  1964. additions[prefix][iconName] = icon;
  1965. });
  1966. return additions;
  1967. }
  1968. }]);
  1969. return Library;
  1970. }();
  1971. function ensureCss() {
  1972. if (config.autoAddCss && !_cssInserted) {
  1973. insertCss(css());
  1974. _cssInserted = true;
  1975. }
  1976. }
  1977. function apiObject(val, abstractCreator) {
  1978. Object.defineProperty(val, 'abstract', {
  1979. get: abstractCreator
  1980. });
  1981. Object.defineProperty(val, 'html', {
  1982. get: function get() {
  1983. return val.abstract.map(function (a) {
  1984. return toHtml(a);
  1985. });
  1986. }
  1987. });
  1988. Object.defineProperty(val, 'node', {
  1989. get: function get() {
  1990. if (!IS_DOM) return;
  1991. var container = DOCUMENT.createElement('div');
  1992. container.innerHTML = val.html;
  1993. return container.children;
  1994. }
  1995. });
  1996. return val;
  1997. }
  1998. function findIconDefinition(iconLookup) {
  1999. var _iconLookup$prefix = iconLookup.prefix,
  2000. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  2001. iconName = iconLookup.iconName;
  2002. if (!iconName) return;
  2003. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  2004. }
  2005. function resolveIcons(next) {
  2006. return function (maybeIconDefinition) {
  2007. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2008. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  2009. var mask = params.mask;
  2010. if (mask) {
  2011. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  2012. }
  2013. return next(iconDefinition, _objectSpread({}, params, {
  2014. mask: mask
  2015. }));
  2016. };
  2017. }
  2018. var library = new Library();
  2019. var noAuto = function noAuto() {
  2020. config.autoReplaceSvg = false;
  2021. config.observeMutations = false;
  2022. disconnect();
  2023. };
  2024. var _cssInserted = false;
  2025. var dom = {
  2026. i2svg: function i2svg() {
  2027. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2028. if (IS_DOM) {
  2029. ensureCss();
  2030. var _params$node = params.node,
  2031. node = _params$node === void 0 ? DOCUMENT : _params$node,
  2032. _params$callback = params.callback,
  2033. callback = _params$callback === void 0 ? function () {} : _params$callback;
  2034. if (config.searchPseudoElements) {
  2035. searchPseudoElements(node);
  2036. }
  2037. return onTree(node, callback);
  2038. } else {
  2039. return picked.reject('Operation requires a DOM of some kind.');
  2040. }
  2041. },
  2042. css: css,
  2043. insertCss: function insertCss$$1() {
  2044. if (!_cssInserted) {
  2045. insertCss(css());
  2046. _cssInserted = true;
  2047. }
  2048. },
  2049. watch: function watch() {
  2050. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2051. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  2052. observeMutationsRoot = params.observeMutationsRoot;
  2053. if (config.autoReplaceSvg === false) {
  2054. config.autoReplaceSvg = true;
  2055. }
  2056. config.observeMutations = true;
  2057. domready(function () {
  2058. autoReplace({
  2059. autoReplaceSvgRoot: autoReplaceSvgRoot
  2060. });
  2061. observe({
  2062. treeCallback: onTree,
  2063. nodeCallback: onNode,
  2064. pseudoElementsCallback: searchPseudoElements,
  2065. observeMutationsRoot: observeMutationsRoot
  2066. });
  2067. });
  2068. }
  2069. };
  2070. var parse = {
  2071. transform: function transform(transformString) {
  2072. return parseTransformString(transformString);
  2073. }
  2074. };
  2075. var icon = resolveIcons(function (iconDefinition) {
  2076. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2077. var _params$transform = params.transform,
  2078. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  2079. _params$symbol = params.symbol,
  2080. symbol = _params$symbol === void 0 ? false : _params$symbol,
  2081. _params$mask = params.mask,
  2082. mask = _params$mask === void 0 ? null : _params$mask,
  2083. _params$maskId = params.maskId,
  2084. maskId = _params$maskId === void 0 ? null : _params$maskId,
  2085. _params$title = params.title,
  2086. title = _params$title === void 0 ? null : _params$title,
  2087. _params$titleId = params.titleId,
  2088. titleId = _params$titleId === void 0 ? null : _params$titleId,
  2089. _params$classes = params.classes,
  2090. classes = _params$classes === void 0 ? [] : _params$classes,
  2091. _params$attributes = params.attributes,
  2092. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  2093. _params$styles = params.styles,
  2094. styles = _params$styles === void 0 ? {} : _params$styles;
  2095. if (!iconDefinition) return;
  2096. var prefix = iconDefinition.prefix,
  2097. iconName = iconDefinition.iconName,
  2098. icon = iconDefinition.icon;
  2099. return apiObject(_objectSpread({
  2100. type: 'icon'
  2101. }, iconDefinition), function () {
  2102. ensureCss();
  2103. if (config.autoA11y) {
  2104. if (title) {
  2105. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
  2106. } else {
  2107. attributes['aria-hidden'] = 'true';
  2108. attributes['focusable'] = 'false';
  2109. }
  2110. }
  2111. return makeInlineSvgAbstract({
  2112. icons: {
  2113. main: asFoundIcon(icon),
  2114. mask: mask ? asFoundIcon(mask.icon) : {
  2115. found: false,
  2116. width: null,
  2117. height: null,
  2118. icon: {}
  2119. }
  2120. },
  2121. prefix: prefix,
  2122. iconName: iconName,
  2123. transform: _objectSpread({}, meaninglessTransform, transform),
  2124. symbol: symbol,
  2125. title: title,
  2126. maskId: maskId,
  2127. titleId: titleId,
  2128. extra: {
  2129. attributes: attributes,
  2130. styles: styles,
  2131. classes: classes
  2132. }
  2133. });
  2134. });
  2135. });
  2136. var text = function text(content) {
  2137. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2138. var _params$transform2 = params.transform,
  2139. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  2140. _params$title2 = params.title,
  2141. title = _params$title2 === void 0 ? null : _params$title2,
  2142. _params$classes2 = params.classes,
  2143. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  2144. _params$attributes2 = params.attributes,
  2145. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  2146. _params$styles2 = params.styles,
  2147. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  2148. return apiObject({
  2149. type: 'text',
  2150. content: content
  2151. }, function () {
  2152. ensureCss();
  2153. return makeLayersTextAbstract({
  2154. content: content,
  2155. transform: _objectSpread({}, meaninglessTransform, transform),
  2156. title: title,
  2157. extra: {
  2158. attributes: attributes,
  2159. styles: styles,
  2160. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  2161. }
  2162. });
  2163. });
  2164. };
  2165. var counter = function counter(content) {
  2166. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2167. var _params$title3 = params.title,
  2168. title = _params$title3 === void 0 ? null : _params$title3,
  2169. _params$classes3 = params.classes,
  2170. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  2171. _params$attributes3 = params.attributes,
  2172. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  2173. _params$styles3 = params.styles,
  2174. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  2175. return apiObject({
  2176. type: 'counter',
  2177. content: content
  2178. }, function () {
  2179. ensureCss();
  2180. return makeLayersCounterAbstract({
  2181. content: content.toString(),
  2182. title: title,
  2183. extra: {
  2184. attributes: attributes,
  2185. styles: styles,
  2186. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  2187. }
  2188. });
  2189. });
  2190. };
  2191. var layer = function layer(assembler) {
  2192. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2193. var _params$classes4 = params.classes,
  2194. classes = _params$classes4 === void 0 ? [] : _params$classes4;
  2195. return apiObject({
  2196. type: 'layer'
  2197. }, function () {
  2198. ensureCss();
  2199. var children = [];
  2200. assembler(function (args) {
  2201. Array.isArray(args) ? args.map(function (a) {
  2202. children = children.concat(a.abstract);
  2203. }) : children = children.concat(args.abstract);
  2204. });
  2205. return [{
  2206. tag: 'span',
  2207. attributes: {
  2208. class: ["".concat(config.familyPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
  2209. },
  2210. children: children
  2211. }];
  2212. });
  2213. };
  2214. var api = {
  2215. noAuto: noAuto,
  2216. config: config,
  2217. dom: dom,
  2218. library: library,
  2219. parse: parse,
  2220. findIconDefinition: findIconDefinition,
  2221. icon: icon,
  2222. text: text,
  2223. counter: counter,
  2224. layer: layer,
  2225. toHtml: toHtml
  2226. };
  2227. var autoReplace = function autoReplace() {
  2228. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2229. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  2230. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  2231. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  2232. node: autoReplaceSvgRoot
  2233. });
  2234. };
  2235. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../timers-browserify/main.js */ "../../node_modules/timers-browserify/main.js").setImmediate))
  2236. /***/ }),
  2237. /***/ "../../node_modules/@fortawesome/free-regular-svg-icons/index.es.js":
  2238. /*!****************************************************************************************!*\
  2239. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/free-regular-svg-icons/index.es.js ***!
  2240. \****************************************************************************************/
  2241. /*! 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 */
  2242. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2243. "use strict";
  2244. __webpack_require__.r(__webpack_exports__);
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "far", function() { return _iconsCache; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  2399. var prefix = "far";
  2400. var faAddressBook = {
  2401. prefix: 'far',
  2402. iconName: 'address-book',
  2403. 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"]
  2404. };
  2405. var faAddressCard = {
  2406. prefix: 'far',
  2407. iconName: 'address-card',
  2408. 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"]
  2409. };
  2410. var faAngry = {
  2411. prefix: 'far',
  2412. iconName: 'angry',
  2413. 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"]
  2414. };
  2415. var faArrowAltCircleDown = {
  2416. prefix: 'far',
  2417. iconName: 'arrow-alt-circle-down',
  2418. 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"]
  2419. };
  2420. var faArrowAltCircleLeft = {
  2421. prefix: 'far',
  2422. iconName: 'arrow-alt-circle-left',
  2423. 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"]
  2424. };
  2425. var faArrowAltCircleRight = {
  2426. prefix: 'far',
  2427. iconName: 'arrow-alt-circle-right',
  2428. 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"]
  2429. };
  2430. var faArrowAltCircleUp = {
  2431. prefix: 'far',
  2432. iconName: 'arrow-alt-circle-up',
  2433. 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"]
  2434. };
  2435. var faBell = {
  2436. prefix: 'far',
  2437. iconName: 'bell',
  2438. 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"]
  2439. };
  2440. var faBellSlash = {
  2441. prefix: 'far',
  2442. iconName: 'bell-slash',
  2443. 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"]
  2444. };
  2445. var faBookmark = {
  2446. prefix: 'far',
  2447. iconName: 'bookmark',
  2448. 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"]
  2449. };
  2450. var faBuilding = {
  2451. prefix: 'far',
  2452. iconName: 'building',
  2453. 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"]
  2454. };
  2455. var faCalendar = {
  2456. prefix: 'far',
  2457. iconName: 'calendar',
  2458. 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"]
  2459. };
  2460. var faCalendarAlt = {
  2461. prefix: 'far',
  2462. iconName: 'calendar-alt',
  2463. 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"]
  2464. };
  2465. var faCalendarCheck = {
  2466. prefix: 'far',
  2467. iconName: 'calendar-check',
  2468. 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"]
  2469. };
  2470. var faCalendarMinus = {
  2471. prefix: 'far',
  2472. iconName: 'calendar-minus',
  2473. 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"]
  2474. };
  2475. var faCalendarPlus = {
  2476. prefix: 'far',
  2477. iconName: 'calendar-plus',
  2478. 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"]
  2479. };
  2480. var faCalendarTimes = {
  2481. prefix: 'far',
  2482. iconName: 'calendar-times',
  2483. 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"]
  2484. };
  2485. var faCaretSquareDown = {
  2486. prefix: 'far',
  2487. iconName: 'caret-square-down',
  2488. 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"]
  2489. };
  2490. var faCaretSquareLeft = {
  2491. prefix: 'far',
  2492. iconName: 'caret-square-left',
  2493. 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"]
  2494. };
  2495. var faCaretSquareRight = {
  2496. prefix: 'far',
  2497. iconName: 'caret-square-right',
  2498. 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"]
  2499. };
  2500. var faCaretSquareUp = {
  2501. prefix: 'far',
  2502. iconName: 'caret-square-up',
  2503. 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"]
  2504. };
  2505. var faChartBar = {
  2506. prefix: 'far',
  2507. iconName: 'chart-bar',
  2508. 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"]
  2509. };
  2510. var faCheckCircle = {
  2511. prefix: 'far',
  2512. iconName: 'check-circle',
  2513. 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"]
  2514. };
  2515. var faCheckSquare = {
  2516. prefix: 'far',
  2517. iconName: 'check-square',
  2518. 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"]
  2519. };
  2520. var faCircle = {
  2521. prefix: 'far',
  2522. iconName: 'circle',
  2523. 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"]
  2524. };
  2525. var faClipboard = {
  2526. prefix: 'far',
  2527. iconName: 'clipboard',
  2528. icon: [384, 512, [], "f328", "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-24zm144 418c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h42v36c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-36h42c3.3 0 6 2.7 6 6z"]
  2529. };
  2530. var faClock = {
  2531. prefix: 'far',
  2532. iconName: 'clock',
  2533. 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"]
  2534. };
  2535. var faClone = {
  2536. prefix: 'far',
  2537. iconName: 'clone',
  2538. 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"]
  2539. };
  2540. var faClosedCaptioning = {
  2541. prefix: 'far',
  2542. iconName: 'closed-captioning',
  2543. 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"]
  2544. };
  2545. var faComment = {
  2546. prefix: 'far',
  2547. iconName: 'comment',
  2548. 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"]
  2549. };
  2550. var faCommentAlt = {
  2551. prefix: 'far',
  2552. iconName: 'comment-alt',
  2553. 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"]
  2554. };
  2555. var faCommentDots = {
  2556. prefix: 'far',
  2557. iconName: 'comment-dots',
  2558. 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"]
  2559. };
  2560. var faComments = {
  2561. prefix: 'far',
  2562. iconName: 'comments',
  2563. 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"]
  2564. };
  2565. var faCompass = {
  2566. prefix: 'far',
  2567. iconName: 'compass',
  2568. 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"]
  2569. };
  2570. var faCopy = {
  2571. prefix: 'far',
  2572. iconName: 'copy',
  2573. 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"]
  2574. };
  2575. var faCopyright = {
  2576. prefix: 'far',
  2577. iconName: 'copyright',
  2578. 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"]
  2579. };
  2580. var faCreditCard = {
  2581. prefix: 'far',
  2582. iconName: 'credit-card',
  2583. 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"]
  2584. };
  2585. var faDizzy = {
  2586. prefix: 'far',
  2587. iconName: 'dizzy',
  2588. 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"]
  2589. };
  2590. var faDotCircle = {
  2591. prefix: 'far',
  2592. iconName: 'dot-circle',
  2593. 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"]
  2594. };
  2595. var faEdit = {
  2596. prefix: 'far',
  2597. iconName: 'edit',
  2598. 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"]
  2599. };
  2600. var faEnvelope = {
  2601. prefix: 'far',
  2602. iconName: 'envelope',
  2603. 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"]
  2604. };
  2605. var faEnvelopeOpen = {
  2606. prefix: 'far',
  2607. iconName: 'envelope-open',
  2608. 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"]
  2609. };
  2610. var faEye = {
  2611. prefix: 'far',
  2612. iconName: 'eye',
  2613. icon: [576, 512, [], "f06e", "M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z"]
  2614. };
  2615. var faEyeSlash = {
  2616. prefix: 'far',
  2617. iconName: 'eye-slash',
  2618. icon: [640, 512, [], "f070", "M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z"]
  2619. };
  2620. var faFile = {
  2621. prefix: 'far',
  2622. iconName: 'file',
  2623. 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"]
  2624. };
  2625. var faFileAlt = {
  2626. prefix: 'far',
  2627. iconName: 'file-alt',
  2628. 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"]
  2629. };
  2630. var faFileArchive = {
  2631. prefix: 'far',
  2632. iconName: 'file-archive',
  2633. icon: [384, 512, [], "f1c6", "M128.3 160v32h32v-32zm64-96h-32v32h32zm-64 32v32h32V96zm64 32h-32v32h32zm177.6-30.1L286 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-34zM256 51.9l76.1 76.1H256zM336 464H48V48h79.7v16h32V48H208v104c0 13.3 10.7 24 24 24h104zM194.2 265.7c-1.1-5.6-6-9.7-11.8-9.7h-22.1v-32h-32v32l-19.7 97.1C102 385.6 126.8 416 160 416c33.1 0 57.9-30.2 51.5-62.6zm-33.9 124.4c-17.9 0-32.4-12.1-32.4-27s14.5-27 32.4-27 32.4 12.1 32.4 27-14.5 27-32.4 27zm32-198.1h-32v32h32z"]
  2634. };
  2635. var faFileAudio = {
  2636. prefix: 'far',
  2637. iconName: 'file-audio',
  2638. 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"]
  2639. };
  2640. var faFileCode = {
  2641. prefix: 'far',
  2642. iconName: 'file-code',
  2643. icon: [384, 512, [], "f1c9", "M149.9 349.1l-.2-.2-32.8-28.9 32.8-28.9c3.6-3.2 4-8.8.8-12.4l-.2-.2-17.4-18.6c-3.4-3.6-9-3.7-12.4-.4l-57.7 54.1c-3.7 3.5-3.7 9.4 0 12.8l57.7 54.1c1.6 1.5 3.8 2.4 6 2.4 2.4 0 4.8-1 6.4-2.8l17.4-18.6c3.3-3.5 3.1-9.1-.4-12.4zm220-251.2L286 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-34zM256 51.9l76.1 76.1H256zM336 464H48V48h160v104c0 13.3 10.7 24 24 24h104zM209.6 214c-4.7-1.4-9.5 1.3-10.9 6L144 408.1c-1.4 4.7 1.3 9.6 6 10.9l24.4 7.1c4.7 1.4 9.6-1.4 10.9-6L240 231.9c1.4-4.7-1.3-9.6-6-10.9zm24.5 76.9l.2.2 32.8 28.9-32.8 28.9c-3.6 3.2-4 8.8-.8 12.4l.2.2 17.4 18.6c3.3 3.5 8.9 3.7 12.4.4l57.7-54.1c3.7-3.5 3.7-9.4 0-12.8l-57.7-54.1c-3.5-3.3-9.1-3.2-12.4.4l-17.4 18.6c-3.3 3.5-3.1 9.1.4 12.4z"]
  2644. };
  2645. var faFileExcel = {
  2646. prefix: 'far',
  2647. iconName: 'file-excel',
  2648. 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"]
  2649. };
  2650. var faFileImage = {
  2651. prefix: 'far',
  2652. iconName: 'file-image',
  2653. 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"]
  2654. };
  2655. var faFilePdf = {
  2656. prefix: 'far',
  2657. iconName: 'file-pdf',
  2658. 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"]
  2659. };
  2660. var faFilePowerpoint = {
  2661. prefix: 'far',
  2662. iconName: 'file-powerpoint',
  2663. 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"]
  2664. };
  2665. var faFileVideo = {
  2666. prefix: 'far',
  2667. iconName: 'file-video',
  2668. 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"]
  2669. };
  2670. var faFileWord = {
  2671. prefix: 'far',
  2672. iconName: 'file-word',
  2673. 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"]
  2674. };
  2675. var faFlag = {
  2676. prefix: 'far',
  2677. iconName: 'flag',
  2678. 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"]
  2679. };
  2680. var faFlushed = {
  2681. prefix: 'far',
  2682. iconName: 'flushed',
  2683. 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"]
  2684. };
  2685. var faFolder = {
  2686. prefix: 'far',
  2687. iconName: 'folder',
  2688. 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"]
  2689. };
  2690. var faFolderOpen = {
  2691. prefix: 'far',
  2692. iconName: 'folder-open',
  2693. icon: [576, 512, [], "f07c", "M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z"]
  2694. };
  2695. var faFontAwesomeLogoFull = {
  2696. prefix: 'far',
  2697. iconName: 'font-awesome-logo-full',
  2698. 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"]
  2699. };
  2700. var faFrown = {
  2701. prefix: 'far',
  2702. iconName: 'frown',
  2703. 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"]
  2704. };
  2705. var faFrownOpen = {
  2706. prefix: 'far',
  2707. iconName: 'frown-open',
  2708. 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"]
  2709. };
  2710. var faFutbol = {
  2711. prefix: 'far',
  2712. iconName: 'futbol',
  2713. 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"]
  2714. };
  2715. var faGem = {
  2716. prefix: 'far',
  2717. iconName: 'gem',
  2718. 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"]
  2719. };
  2720. var faGrimace = {
  2721. prefix: 'far',
  2722. iconName: 'grimace',
  2723. 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"]
  2724. };
  2725. var faGrin = {
  2726. prefix: 'far',
  2727. iconName: 'grin',
  2728. 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"]
  2729. };
  2730. var faGrinAlt = {
  2731. prefix: 'far',
  2732. iconName: 'grin-alt',
  2733. 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"]
  2734. };
  2735. var faGrinBeam = {
  2736. prefix: 'far',
  2737. iconName: 'grin-beam',
  2738. 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"]
  2739. };
  2740. var faGrinBeamSweat = {
  2741. prefix: 'far',
  2742. iconName: 'grin-beam-sweat',
  2743. 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"]
  2744. };
  2745. var faGrinHearts = {
  2746. prefix: 'far',
  2747. iconName: 'grin-hearts',
  2748. 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"]
  2749. };
  2750. var faGrinSquint = {
  2751. prefix: 'far',
  2752. iconName: 'grin-squint',
  2753. 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"]
  2754. };
  2755. var faGrinSquintTears = {
  2756. prefix: 'far',
  2757. iconName: 'grin-squint-tears',
  2758. 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"]
  2759. };
  2760. var faGrinStars = {
  2761. prefix: 'far',
  2762. iconName: 'grin-stars',
  2763. 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"]
  2764. };
  2765. var faGrinTears = {
  2766. prefix: 'far',
  2767. iconName: 'grin-tears',
  2768. 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"]
  2769. };
  2770. var faGrinTongue = {
  2771. prefix: 'far',
  2772. iconName: 'grin-tongue',
  2773. 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"]
  2774. };
  2775. var faGrinTongueSquint = {
  2776. prefix: 'far',
  2777. iconName: 'grin-tongue-squint',
  2778. 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"]
  2779. };
  2780. var faGrinTongueWink = {
  2781. prefix: 'far',
  2782. iconName: 'grin-tongue-wink',
  2783. 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"]
  2784. };
  2785. var faGrinWink = {
  2786. prefix: 'far',
  2787. iconName: 'grin-wink',
  2788. 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"]
  2789. };
  2790. var faHandLizard = {
  2791. prefix: 'far',
  2792. iconName: 'hand-lizard',
  2793. 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"]
  2794. };
  2795. var faHandPaper = {
  2796. prefix: 'far',
  2797. iconName: 'hand-paper',
  2798. 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"]
  2799. };
  2800. var faHandPeace = {
  2801. prefix: 'far',
  2802. iconName: 'hand-peace',
  2803. 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"]
  2804. };
  2805. var faHandPointDown = {
  2806. prefix: 'far',
  2807. iconName: 'hand-point-down',
  2808. 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"]
  2809. };
  2810. var faHandPointLeft = {
  2811. prefix: 'far',
  2812. iconName: 'hand-point-left',
  2813. 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"]
  2814. };
  2815. var faHandPointRight = {
  2816. prefix: 'far',
  2817. iconName: 'hand-point-right',
  2818. 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"]
  2819. };
  2820. var faHandPointUp = {
  2821. prefix: 'far',
  2822. iconName: 'hand-point-up',
  2823. 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"]
  2824. };
  2825. var faHandPointer = {
  2826. prefix: 'far',
  2827. iconName: 'hand-pointer',
  2828. 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"]
  2829. };
  2830. var faHandRock = {
  2831. prefix: 'far',
  2832. iconName: 'hand-rock',
  2833. 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"]
  2834. };
  2835. var faHandScissors = {
  2836. prefix: 'far',
  2837. iconName: 'hand-scissors',
  2838. 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"]
  2839. };
  2840. var faHandSpock = {
  2841. prefix: 'far',
  2842. iconName: 'hand-spock',
  2843. icon: [512, 512, [], "f259", "M501.03053,116.17605c-19.39059-31.50779-51.24406-35.72849-66.31044-35.01756-14.11325-50.81051-62.0038-54.08-70.73816-54.08a74.03091,74.03091,0,0,0-72.23816,58.916l-4.64648,22.66014-13.68357-53.207c-9.09569-35.37107-46.412-64.05074-89.66-53.07223a73.89749,73.89749,0,0,0-55.121,78.94722,73.68273,73.68273,0,0,0-64.8495,94.42181l24.35933,82.19721c-38.24017-7.54492-62.79677,16.18358-68.11512,21.84764a73.6791,73.6791,0,0,0,3.19921,104.19329l91.36509,85.9765A154.164,154.164,0,0,0,220.62279,512h107.4549A127.30079,127.30079,0,0,0,452.3392,413.86139l57.623-241.96272A73.20274,73.20274,0,0,0,501.03053,116.17605Zm-37.7597,44.60544L405.64788,402.74812a79.46616,79.46616,0,0,1-77.57019,61.25972H220.62279a106.34052,106.34052,0,0,1-73.1366-28.998l-91.369-85.98041C31.34381,325.72669,66.61133,288.131,91.39644,311.5392l51.123,48.10739c5.42577,5.10937,13.48239.71679,13.48239-5.82617a246.79914,246.79914,0,0,0-10.17771-70.1523l-36.01362-121.539c-9.7324-32.88279,39.69916-47.27145,49.38664-14.625l31.3437,105.77923c5.59374,18.90428,33.78119,10.71288,28.9648-8.00781L177.06427,80.23662c-8.50389-33.1035,41.43157-45.64646,49.86515-12.83593l47.32609,184.035c4.42773,17.24218,29.16207,16.5039,32.71089-.80468l31.791-154.9706c6.81054-33.1074,57.51748-24.10741,50.11906,11.96288L360.32764,246.78924c-3.72265,18.10936,23.66793,24.63084,28.05659,6.21679L413.185,148.85962C421.1498,115.512,471.14,127.79713,463.27083,160.78149Z"]
  2844. };
  2845. var faHandshake = {
  2846. prefix: 'far',
  2847. iconName: 'handshake',
  2848. 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"]
  2849. };
  2850. var faHdd = {
  2851. prefix: 'far',
  2852. iconName: 'hdd',
  2853. 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"]
  2854. };
  2855. var faHeart = {
  2856. prefix: 'far',
  2857. iconName: 'heart',
  2858. 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"]
  2859. };
  2860. var faHospital = {
  2861. prefix: 'far',
  2862. iconName: 'hospital',
  2863. 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"]
  2864. };
  2865. var faHourglass = {
  2866. prefix: 'far',
  2867. iconName: 'hourglass',
  2868. 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"]
  2869. };
  2870. var faIdBadge = {
  2871. prefix: 'far',
  2872. iconName: 'id-badge',
  2873. 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"]
  2874. };
  2875. var faIdCard = {
  2876. prefix: 'far',
  2877. iconName: 'id-card',
  2878. 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"]
  2879. };
  2880. var faImage = {
  2881. prefix: 'far',
  2882. iconName: 'image',
  2883. 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"]
  2884. };
  2885. var faImages = {
  2886. prefix: 'far',
  2887. iconName: 'images',
  2888. 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"]
  2889. };
  2890. var faKeyboard = {
  2891. prefix: 'far',
  2892. iconName: 'keyboard',
  2893. 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"]
  2894. };
  2895. var faKiss = {
  2896. prefix: 'far',
  2897. iconName: 'kiss',
  2898. 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"]
  2899. };
  2900. var faKissBeam = {
  2901. prefix: 'far',
  2902. iconName: 'kiss-beam',
  2903. 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"]
  2904. };
  2905. var faKissWinkHeart = {
  2906. prefix: 'far',
  2907. iconName: 'kiss-wink-heart',
  2908. 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"]
  2909. };
  2910. var faLaugh = {
  2911. prefix: 'far',
  2912. iconName: 'laugh',
  2913. 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"]
  2914. };
  2915. var faLaughBeam = {
  2916. prefix: 'far',
  2917. iconName: 'laugh-beam',
  2918. 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"]
  2919. };
  2920. var faLaughSquint = {
  2921. prefix: 'far',
  2922. iconName: 'laugh-squint',
  2923. 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"]
  2924. };
  2925. var faLaughWink = {
  2926. prefix: 'far',
  2927. iconName: 'laugh-wink',
  2928. 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"]
  2929. };
  2930. var faLemon = {
  2931. prefix: 'far',
  2932. iconName: 'lemon',
  2933. 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"]
  2934. };
  2935. var faLifeRing = {
  2936. prefix: 'far',
  2937. iconName: 'life-ring',
  2938. 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"]
  2939. };
  2940. var faLightbulb = {
  2941. prefix: 'far',
  2942. iconName: 'lightbulb',
  2943. 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"]
  2944. };
  2945. var faListAlt = {
  2946. prefix: 'far',
  2947. iconName: 'list-alt',
  2948. 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"]
  2949. };
  2950. var faMap = {
  2951. prefix: 'far',
  2952. iconName: 'map',
  2953. 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"]
  2954. };
  2955. var faMeh = {
  2956. prefix: 'far',
  2957. iconName: 'meh',
  2958. 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"]
  2959. };
  2960. var faMehBlank = {
  2961. prefix: 'far',
  2962. iconName: 'meh-blank',
  2963. 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"]
  2964. };
  2965. var faMehRollingEyes = {
  2966. prefix: 'far',
  2967. iconName: 'meh-rolling-eyes',
  2968. 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"]
  2969. };
  2970. var faMinusSquare = {
  2971. prefix: 'far',
  2972. iconName: 'minus-square',
  2973. 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"]
  2974. };
  2975. var faMoneyBillAlt = {
  2976. prefix: 'far',
  2977. iconName: 'money-bill-alt',
  2978. 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"]
  2979. };
  2980. var faMoon = {
  2981. prefix: 'far',
  2982. iconName: 'moon',
  2983. 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"]
  2984. };
  2985. var faNewspaper = {
  2986. prefix: 'far',
  2987. iconName: 'newspaper',
  2988. 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"]
  2989. };
  2990. var faObjectGroup = {
  2991. prefix: 'far',
  2992. iconName: 'object-group',
  2993. 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"]
  2994. };
  2995. var faObjectUngroup = {
  2996. prefix: 'far',
  2997. iconName: 'object-ungroup',
  2998. 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"]
  2999. };
  3000. var faPaperPlane = {
  3001. prefix: 'far',
  3002. iconName: 'paper-plane',
  3003. 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"]
  3004. };
  3005. var faPauseCircle = {
  3006. prefix: 'far',
  3007. iconName: 'pause-circle',
  3008. 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"]
  3009. };
  3010. var faPlayCircle = {
  3011. prefix: 'far',
  3012. iconName: 'play-circle',
  3013. 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"]
  3014. };
  3015. var faPlusSquare = {
  3016. prefix: 'far',
  3017. iconName: 'plus-square',
  3018. 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"]
  3019. };
  3020. var faQuestionCircle = {
  3021. prefix: 'far',
  3022. iconName: 'question-circle',
  3023. 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"]
  3024. };
  3025. var faRegistered = {
  3026. prefix: 'far',
  3027. iconName: 'registered',
  3028. 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"]
  3029. };
  3030. var faSadCry = {
  3031. prefix: 'far',
  3032. iconName: 'sad-cry',
  3033. 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"]
  3034. };
  3035. var faSadTear = {
  3036. prefix: 'far',
  3037. iconName: 'sad-tear',
  3038. 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"]
  3039. };
  3040. var faSave = {
  3041. prefix: 'far',
  3042. iconName: 'save',
  3043. 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"]
  3044. };
  3045. var faShareSquare = {
  3046. prefix: 'far',
  3047. iconName: 'share-square',
  3048. 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"]
  3049. };
  3050. var faSmile = {
  3051. prefix: 'far',
  3052. iconName: 'smile',
  3053. 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"]
  3054. };
  3055. var faSmileBeam = {
  3056. prefix: 'far',
  3057. iconName: 'smile-beam',
  3058. 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"]
  3059. };
  3060. var faSmileWink = {
  3061. prefix: 'far',
  3062. iconName: 'smile-wink',
  3063. 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"]
  3064. };
  3065. var faSnowflake = {
  3066. prefix: 'far',
  3067. iconName: 'snowflake',
  3068. icon: [448, 512, [], "f2dc", "M440.1 355.2l-39.2-23 34.1-9.3c8.4-2.3 13.4-11.1 11.1-19.6l-4.1-15.5c-2.2-8.5-10.9-13.6-19.3-11.3L343 298.2 271.2 256l71.9-42.2 79.7 21.7c8.4 2.3 17-2.8 19.3-11.3l4.1-15.5c2.2-8.5-2.7-17.3-11.1-19.6l-34.1-9.3 39.2-23c7.5-4.4 10.1-14.2 5.8-21.9l-7.9-13.9c-4.3-7.7-14-10.3-21.5-5.9l-39.2 23 9.1-34.7c2.2-8.5-2.7-17.3-11.1-19.6l-15.2-4.1c-8.4-2.3-17 2.8-19.3 11.3l-21.3 81-71.9 42.2v-84.5L306 70.4c6.1-6.2 6.1-16.4 0-22.6l-11.1-11.3c-6.1-6.2-16.1-6.2-22.2 0l-24.9 25.4V16c0-8.8-7-16-15.7-16h-15.7c-8.7 0-15.7 7.2-15.7 16v46.1l-24.9-25.4c-6.1-6.2-16.1-6.2-22.2 0L142.1 48c-6.1 6.2-6.1 16.4 0 22.6l58.3 59.3v84.5l-71.9-42.2-21.3-81c-2.2-8.5-10.9-13.6-19.3-11.3L72.7 84c-8.4 2.3-13.4 11.1-11.1 19.6l9.1 34.7-39.2-23c-7.5-4.4-17.1-1.8-21.5 5.9l-7.9 13.9c-4.3 7.7-1.8 17.4 5.8 21.9l39.2 23-34.1 9.1c-8.4 2.3-13.4 11.1-11.1 19.6L6 224.2c2.2 8.5 10.9 13.6 19.3 11.3l79.7-21.7 71.9 42.2-71.9 42.2-79.7-21.7c-8.4-2.3-17 2.8-19.3 11.3l-4.1 15.5c-2.2 8.5 2.7 17.3 11.1 19.6l34.1 9.3-39.2 23c-7.5 4.4-10.1 14.2-5.8 21.9L10 391c4.3 7.7 14 10.3 21.5 5.9l39.2-23-9.1 34.7c-2.2 8.5 2.7 17.3 11.1 19.6l15.2 4.1c8.4 2.3 17-2.8 19.3-11.3l21.3-81 71.9-42.2v84.5l-58.3 59.3c-6.1 6.2-6.1 16.4 0 22.6l11.1 11.3c6.1 6.2 16.1 6.2 22.2 0l24.9-25.4V496c0 8.8 7 16 15.7 16h15.7c8.7 0 15.7-7.2 15.7-16v-46.1l24.9 25.4c6.1 6.2 16.1 6.2 22.2 0l11.1-11.3c6.1-6.2 6.1-16.4 0-22.6l-58.3-59.3v-84.5l71.9 42.2 21.3 81c2.2 8.5 10.9 13.6 19.3 11.3L375 428c8.4-2.3 13.4-11.1 11.1-19.6l-9.1-34.7 39.2 23c7.5 4.4 17.1 1.8 21.5-5.9l7.9-13.9c4.6-7.5 2.1-17.3-5.5-21.7z"]
  3069. };
  3070. var faSquare = {
  3071. prefix: 'far',
  3072. iconName: 'square',
  3073. 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"]
  3074. };
  3075. var faStar = {
  3076. prefix: 'far',
  3077. iconName: 'star',
  3078. 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"]
  3079. };
  3080. var faStarHalf = {
  3081. prefix: 'far',
  3082. iconName: 'star-half',
  3083. 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"]
  3084. };
  3085. var faStickyNote = {
  3086. prefix: 'far',
  3087. iconName: 'sticky-note',
  3088. 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"]
  3089. };
  3090. var faStopCircle = {
  3091. prefix: 'far',
  3092. iconName: 'stop-circle',
  3093. 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"]
  3094. };
  3095. var faSun = {
  3096. prefix: 'far',
  3097. iconName: 'sun',
  3098. icon: [512, 512, [], "f185", "M494.2 221.9l-59.8-40.5 13.7-71c2.6-13.2-1.6-26.8-11.1-36.4-9.6-9.5-23.2-13.7-36.2-11.1l-70.9 13.7-40.4-59.9c-15.1-22.3-51.9-22.3-67 0l-40.4 59.9-70.8-13.7C98 60.4 84.5 64.5 75 74.1c-9.5 9.6-13.7 23.1-11.1 36.3l13.7 71-59.8 40.5C6.6 229.5 0 242 0 255.5s6.7 26 17.8 33.5l59.8 40.5-13.7 71c-2.6 13.2 1.6 26.8 11.1 36.3 9.5 9.5 22.9 13.7 36.3 11.1l70.8-13.7 40.4 59.9C230 505.3 242.6 512 256 512s26-6.7 33.5-17.8l40.4-59.9 70.9 13.7c13.4 2.7 26.8-1.6 36.3-11.1 9.5-9.5 13.6-23.1 11.1-36.3l-13.7-71 59.8-40.5c11.1-7.5 17.8-20.1 17.8-33.5-.1-13.6-6.7-26.1-17.9-33.7zm-112.9 85.6l17.6 91.2-91-17.6L256 458l-51.9-77-90.9 17.6 17.6-91.2-76.8-52 76.8-52-17.6-91.2 91 17.6L256 53l51.9 76.9 91-17.6-17.6 91.1 76.8 52-76.8 52.1zM256 152c-57.3 0-104 46.7-104 104s46.7 104 104 104 104-46.7 104-104-46.7-104-104-104zm0 160c-30.9 0-56-25.1-56-56s25.1-56 56-56 56 25.1 56 56-25.1 56-56 56z"]
  3099. };
  3100. var faSurprise = {
  3101. prefix: 'far',
  3102. iconName: 'surprise',
  3103. 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"]
  3104. };
  3105. var faThumbsDown = {
  3106. prefix: 'far',
  3107. iconName: 'thumbs-down',
  3108. 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"]
  3109. };
  3110. var faThumbsUp = {
  3111. prefix: 'far',
  3112. iconName: 'thumbs-up',
  3113. 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"]
  3114. };
  3115. var faTimesCircle = {
  3116. prefix: 'far',
  3117. iconName: 'times-circle',
  3118. 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"]
  3119. };
  3120. var faTired = {
  3121. prefix: 'far',
  3122. iconName: 'tired',
  3123. 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"]
  3124. };
  3125. var faTrashAlt = {
  3126. prefix: 'far',
  3127. iconName: 'trash-alt',
  3128. icon: [448, 512, [], "f2ed", "M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"]
  3129. };
  3130. var faUser = {
  3131. prefix: 'far',
  3132. iconName: 'user',
  3133. 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"]
  3134. };
  3135. var faUserCircle = {
  3136. prefix: 'far',
  3137. iconName: 'user-circle',
  3138. 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"]
  3139. };
  3140. var faWindowClose = {
  3141. prefix: 'far',
  3142. iconName: 'window-close',
  3143. 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"]
  3144. };
  3145. var faWindowMaximize = {
  3146. prefix: 'far',
  3147. iconName: 'window-maximize',
  3148. 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"]
  3149. };
  3150. var faWindowMinimize = {
  3151. prefix: 'far',
  3152. iconName: 'window-minimize',
  3153. 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"]
  3154. };
  3155. var faWindowRestore = {
  3156. prefix: 'far',
  3157. iconName: 'window-restore',
  3158. 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"]
  3159. };
  3160. var _iconsCache = {
  3161. faAddressBook: faAddressBook,
  3162. faAddressCard: faAddressCard,
  3163. faAngry: faAngry,
  3164. faArrowAltCircleDown: faArrowAltCircleDown,
  3165. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3166. faArrowAltCircleRight: faArrowAltCircleRight,
  3167. faArrowAltCircleUp: faArrowAltCircleUp,
  3168. faBell: faBell,
  3169. faBellSlash: faBellSlash,
  3170. faBookmark: faBookmark,
  3171. faBuilding: faBuilding,
  3172. faCalendar: faCalendar,
  3173. faCalendarAlt: faCalendarAlt,
  3174. faCalendarCheck: faCalendarCheck,
  3175. faCalendarMinus: faCalendarMinus,
  3176. faCalendarPlus: faCalendarPlus,
  3177. faCalendarTimes: faCalendarTimes,
  3178. faCaretSquareDown: faCaretSquareDown,
  3179. faCaretSquareLeft: faCaretSquareLeft,
  3180. faCaretSquareRight: faCaretSquareRight,
  3181. faCaretSquareUp: faCaretSquareUp,
  3182. faChartBar: faChartBar,
  3183. faCheckCircle: faCheckCircle,
  3184. faCheckSquare: faCheckSquare,
  3185. faCircle: faCircle,
  3186. faClipboard: faClipboard,
  3187. faClock: faClock,
  3188. faClone: faClone,
  3189. faClosedCaptioning: faClosedCaptioning,
  3190. faComment: faComment,
  3191. faCommentAlt: faCommentAlt,
  3192. faCommentDots: faCommentDots,
  3193. faComments: faComments,
  3194. faCompass: faCompass,
  3195. faCopy: faCopy,
  3196. faCopyright: faCopyright,
  3197. faCreditCard: faCreditCard,
  3198. faDizzy: faDizzy,
  3199. faDotCircle: faDotCircle,
  3200. faEdit: faEdit,
  3201. faEnvelope: faEnvelope,
  3202. faEnvelopeOpen: faEnvelopeOpen,
  3203. faEye: faEye,
  3204. faEyeSlash: faEyeSlash,
  3205. faFile: faFile,
  3206. faFileAlt: faFileAlt,
  3207. faFileArchive: faFileArchive,
  3208. faFileAudio: faFileAudio,
  3209. faFileCode: faFileCode,
  3210. faFileExcel: faFileExcel,
  3211. faFileImage: faFileImage,
  3212. faFilePdf: faFilePdf,
  3213. faFilePowerpoint: faFilePowerpoint,
  3214. faFileVideo: faFileVideo,
  3215. faFileWord: faFileWord,
  3216. faFlag: faFlag,
  3217. faFlushed: faFlushed,
  3218. faFolder: faFolder,
  3219. faFolderOpen: faFolderOpen,
  3220. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  3221. faFrown: faFrown,
  3222. faFrownOpen: faFrownOpen,
  3223. faFutbol: faFutbol,
  3224. faGem: faGem,
  3225. faGrimace: faGrimace,
  3226. faGrin: faGrin,
  3227. faGrinAlt: faGrinAlt,
  3228. faGrinBeam: faGrinBeam,
  3229. faGrinBeamSweat: faGrinBeamSweat,
  3230. faGrinHearts: faGrinHearts,
  3231. faGrinSquint: faGrinSquint,
  3232. faGrinSquintTears: faGrinSquintTears,
  3233. faGrinStars: faGrinStars,
  3234. faGrinTears: faGrinTears,
  3235. faGrinTongue: faGrinTongue,
  3236. faGrinTongueSquint: faGrinTongueSquint,
  3237. faGrinTongueWink: faGrinTongueWink,
  3238. faGrinWink: faGrinWink,
  3239. faHandLizard: faHandLizard,
  3240. faHandPaper: faHandPaper,
  3241. faHandPeace: faHandPeace,
  3242. faHandPointDown: faHandPointDown,
  3243. faHandPointLeft: faHandPointLeft,
  3244. faHandPointRight: faHandPointRight,
  3245. faHandPointUp: faHandPointUp,
  3246. faHandPointer: faHandPointer,
  3247. faHandRock: faHandRock,
  3248. faHandScissors: faHandScissors,
  3249. faHandSpock: faHandSpock,
  3250. faHandshake: faHandshake,
  3251. faHdd: faHdd,
  3252. faHeart: faHeart,
  3253. faHospital: faHospital,
  3254. faHourglass: faHourglass,
  3255. faIdBadge: faIdBadge,
  3256. faIdCard: faIdCard,
  3257. faImage: faImage,
  3258. faImages: faImages,
  3259. faKeyboard: faKeyboard,
  3260. faKiss: faKiss,
  3261. faKissBeam: faKissBeam,
  3262. faKissWinkHeart: faKissWinkHeart,
  3263. faLaugh: faLaugh,
  3264. faLaughBeam: faLaughBeam,
  3265. faLaughSquint: faLaughSquint,
  3266. faLaughWink: faLaughWink,
  3267. faLemon: faLemon,
  3268. faLifeRing: faLifeRing,
  3269. faLightbulb: faLightbulb,
  3270. faListAlt: faListAlt,
  3271. faMap: faMap,
  3272. faMeh: faMeh,
  3273. faMehBlank: faMehBlank,
  3274. faMehRollingEyes: faMehRollingEyes,
  3275. faMinusSquare: faMinusSquare,
  3276. faMoneyBillAlt: faMoneyBillAlt,
  3277. faMoon: faMoon,
  3278. faNewspaper: faNewspaper,
  3279. faObjectGroup: faObjectGroup,
  3280. faObjectUngroup: faObjectUngroup,
  3281. faPaperPlane: faPaperPlane,
  3282. faPauseCircle: faPauseCircle,
  3283. faPlayCircle: faPlayCircle,
  3284. faPlusSquare: faPlusSquare,
  3285. faQuestionCircle: faQuestionCircle,
  3286. faRegistered: faRegistered,
  3287. faSadCry: faSadCry,
  3288. faSadTear: faSadTear,
  3289. faSave: faSave,
  3290. faShareSquare: faShareSquare,
  3291. faSmile: faSmile,
  3292. faSmileBeam: faSmileBeam,
  3293. faSmileWink: faSmileWink,
  3294. faSnowflake: faSnowflake,
  3295. faSquare: faSquare,
  3296. faStar: faStar,
  3297. faStarHalf: faStarHalf,
  3298. faStickyNote: faStickyNote,
  3299. faStopCircle: faStopCircle,
  3300. faSun: faSun,
  3301. faSurprise: faSurprise,
  3302. faThumbsDown: faThumbsDown,
  3303. faThumbsUp: faThumbsUp,
  3304. faTimesCircle: faTimesCircle,
  3305. faTired: faTired,
  3306. faTrashAlt: faTrashAlt,
  3307. faUser: faUser,
  3308. faUserCircle: faUserCircle,
  3309. faWindowClose: faWindowClose,
  3310. faWindowMaximize: faWindowMaximize,
  3311. faWindowMinimize: faWindowMinimize,
  3312. faWindowRestore: faWindowRestore
  3313. };
  3314. /***/ }),
  3315. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  3316. /*!**************************************************************************************!*\
  3317. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  3318. \**************************************************************************************/
  3319. /*! 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, faBaby, faBabyCarriage, faBackspace, faBackward, faBacon, faBacteria, faBacterium, faBahai, faBalanceScale, faBalanceScaleLeft, faBalanceScaleRight, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBiking, faBinoculars, faBiohazard, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBlog, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookMedical, faBookOpen, faBookReader, faBookmark, faBorderAll, faBorderNone, faBorderStyle, faBowlingBall, faBox, faBoxOpen, faBoxTissue, faBoxes, faBraille, faBrain, faBreadSlice, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarDay, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCalendarWeek, faCamera, faCameraRetro, faCampground, faCandyCane, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaravan, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCarrot, faCartArrowDown, faCartPlus, faCashRegister, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faCheese, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClinicMedical, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMeatball, faCloudMoon, faCloudMoonRain, faCloudRain, faCloudShowersHeavy, faCloudSun, faCloudSunRain, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentMedical, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faCompressAlt, faCompressArrowsAlt, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCrutch, faCube, faCubes, faCut, faDatabase, faDeaf, faDemocrat, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDisease, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDumpster, faDumpsterFire, faDungeon, faEdit, faEgg, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEthernet, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandAlt, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFan, faFastBackward, faFastForward, faFaucet, 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, faFireAlt, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlagUsa, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGifts, faGlassCheers, faGlassMartini, faGlassMartiniAlt, faGlassWhiskey, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGlobeEurope, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripLines, faGripLinesVertical, faGripVertical, faGuitar, faHSquare, faHamburger, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingMedical, faHandHoldingUsd, faHandHoldingWater, faHandLizard, faHandMiddleFinger, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSparkles, faHandSpock, faHands, faHandsHelping, faHandsWash, faHandshake, faHandshakeAltSlash, faHandshakeSlash, faHanukiah, faHardHat, faHashtag, faHatCowboy, faHatCowboySide, faHatWizard, faHdd, faHeadSideCough, faHeadSideCoughSlash, faHeadSideMask, faHeadSideVirus, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartBroken, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHollyBerry, faHome, faHorse, faHorseHead, faHospital, faHospitalAlt, faHospitalSymbol, faHospitalUser, faHotTub, faHotdog, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHouseUser, faHryvnia, faICursor, faIceCream, faIcicles, faIcons, faIdBadge, faIdCard, faIdCardAlt, faIgloo, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaptopHouse, faLaptopMedical, 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, faLungs, faLungsVirus, 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, faMeteor, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMitten, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMouse, faMousePointer, faMugHot, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPager, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleArrows, faPeopleCarry, faPepperHot, faPercent, faPercentage, faPersonBooth, faPhone, faPhoneAlt, faPhoneSlash, faPhoneSquare, faPhoneSquareAlt, faPhoneVolume, faPhotoVideo, faPiggyBank, faPills, faPizzaSlice, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlaneSlash, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPooStorm, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPumpMedical, faPumpSoap, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRadiation, faRadiationAlt, faRainbow, faRandom, faReceipt, faRecordVinyl, faRecycle, faRedo, faRedoAlt, faRegistered, faRemoveFormat, faReply, faReplyAll, faRepublican, faRestroom, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSatellite, faSatelliteDish, faSave, faSchool, faScrewdriver, faScroll, faSdCard, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShieldVirus, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSimCard, faSink, faSitemap, faSkating, faSkiing, faSkiingNordic, faSkull, faSkullCrossbones, faSlash, faSleigh, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmog, faSmoking, faSmokingBan, faSms, faSnowboarding, faSnowflake, faSnowman, faSnowplow, faSoap, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaDownAlt, faSortAlphaUp, faSortAlphaUpAlt, faSortAmountDown, faSortAmountDownAlt, faSortAmountUp, faSortAmountUpAlt, faSortDown, faSortNumericDown, faSortNumericDownAlt, faSortNumericUp, faSortNumericUpAlt, faSortUp, faSpa, faSpaceShuttle, faSpellCheck, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStopwatch20, faStore, faStoreAlt, faStoreAltSlash, faStoreSlash, 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, faTemperatureHigh, faTemperatureLow, faTenge, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToilet, faToiletPaper, faToiletPaperSlash, faToolbox, faTools, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrailer, faTrain, faTram, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTrashRestore, faTrashRestoreAlt, 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, faUserNurse, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUsersSlash, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVirus, faVirusSlash, faViruses, faVoicemail, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVoteYea, faVrCardboard, faWalking, faWallet, faWarehouse, faWater, faWaveSquare, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  3320. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3321. "use strict";
  3322. __webpack_require__.r(__webpack_exports__);
  3323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  3324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  3325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  3326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  3327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  3328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  3329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  3330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  3331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  3332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  3333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  3334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  3335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  3336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  3337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  3338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  3339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  3340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  3341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  3342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  3343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  3344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  3345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  3346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  3347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  3348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  3349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  3350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  3351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  3352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  3353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  3354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  3355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  3356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  3357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  3358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  3359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  3360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  3361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  3362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  3363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  3364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  3365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  3366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  3367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  3368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  3369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  3370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  3371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  3372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  3373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaby", function() { return faBaby; });
  3374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBabyCarriage", function() { return faBabyCarriage; });
  3375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  3376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  3377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacon", function() { return faBacon; });
  3378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacteria", function() { return faBacteria; });
  3379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacterium", function() { return faBacterium; });
  3380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBahai", function() { return faBahai; });
  3381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  3382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScaleLeft", function() { return faBalanceScaleLeft; });
  3383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScaleRight", function() { return faBalanceScaleRight; });
  3384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  3385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  3386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  3387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  3388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  3389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  3390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  3391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  3392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  3393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  3394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  3395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  3396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  3397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  3398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  3399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  3400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  3401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  3402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  3403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBiking", function() { return faBiking; });
  3404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  3405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBiohazard", function() { return faBiohazard; });
  3406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  3407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  3408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  3409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  3410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlog", function() { return faBlog; });
  3411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  3412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  3413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  3414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  3415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  3416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  3417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  3418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookMedical", function() { return faBookMedical; });
  3419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  3420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  3421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  3422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderAll", function() { return faBorderAll; });
  3423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderNone", function() { return faBorderNone; });
  3424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderStyle", function() { return faBorderStyle; });
  3425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  3426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  3427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  3428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxTissue", function() { return faBoxTissue; });
  3429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  3430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  3431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  3432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBreadSlice", function() { return faBreadSlice; });
  3433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  3434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  3435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  3436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  3437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  3438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  3439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  3440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  3441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  3442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  3443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  3444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  3445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  3446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  3447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  3448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  3449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  3450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarDay", function() { return faCalendarDay; });
  3451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  3452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  3453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  3454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarWeek", function() { return faCalendarWeek; });
  3455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  3456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  3457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  3458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCandyCane", function() { return faCandyCane; });
  3459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  3460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  3461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  3462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  3463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  3464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  3465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  3466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaravan", function() { return faCaravan; });
  3467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  3468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  3469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  3470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  3471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  3472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  3473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  3474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  3475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarrot", function() { return faCarrot; });
  3476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  3477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  3478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCashRegister", function() { return faCashRegister; });
  3479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  3480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  3481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  3482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  3483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  3484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  3485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  3486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  3487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  3488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  3489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  3490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  3491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  3492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  3493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheese", function() { return faCheese; });
  3494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  3495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  3496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  3497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  3498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  3499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  3500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  3501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  3502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  3503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  3504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  3505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  3506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  3507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  3508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  3509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  3510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  3511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  3512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  3513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  3514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  3515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClinicMedical", function() { return faClinicMedical; });
  3516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  3517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  3518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  3519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  3520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  3521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  3522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  3523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  3524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMeatball", function() { return faCloudMeatball; });
  3525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  3526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoonRain", function() { return faCloudMoonRain; });
  3527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudRain", function() { return faCloudRain; });
  3528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudShowersHeavy", function() { return faCloudShowersHeavy; });
  3529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  3530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSunRain", function() { return faCloudSunRain; });
  3531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  3532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  3533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  3534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  3535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  3536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  3537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  3538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  3539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  3540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  3541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  3542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  3543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  3544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentMedical", function() { return faCommentMedical; });
  3545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  3546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  3547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  3548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  3549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  3550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  3551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompressAlt", function() { return faCompressAlt; });
  3552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompressArrowsAlt", function() { return faCompressArrowsAlt; });
  3553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  3554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  3555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  3556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  3557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  3558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  3559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  3560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  3561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  3562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  3563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  3564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  3565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  3566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrutch", function() { return faCrutch; });
  3567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  3568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  3569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  3570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  3571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  3572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDemocrat", function() { return faDemocrat; });
  3573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  3574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  3575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  3576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  3577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  3578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  3579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  3580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  3581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  3582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  3583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  3584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  3585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  3586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  3587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDisease", function() { return faDisease; });
  3588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  3589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  3590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  3591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  3592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  3593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  3594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  3595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  3596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  3597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  3598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  3599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  3600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  3601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  3602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  3603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  3604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  3605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  3606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  3607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  3608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumpster", function() { return faDumpster; });
  3609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumpsterFire", function() { return faDumpsterFire; });
  3610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  3611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  3612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEgg", function() { return faEgg; });
  3613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  3614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  3615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  3616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  3617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  3618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  3619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  3620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  3621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  3622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEthernet", function() { return faEthernet; });
  3623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  3624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  3625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  3626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  3627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  3628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  3629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandAlt", function() { return faExpandAlt; });
  3630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  3631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  3632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  3633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  3634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  3635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  3636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFan", function() { return faFan; });
  3637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  3638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  3639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFaucet", function() { return faFaucet; });
  3640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  3641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  3642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  3643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  3644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  3645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  3646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  3647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  3648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  3649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  3650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  3651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  3652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  3653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  3654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  3655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  3656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  3657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  3658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  3659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  3660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  3661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  3662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  3663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  3664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  3665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  3666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  3667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  3668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  3669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  3670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  3671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  3672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  3673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  3674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireAlt", function() { return faFireAlt; });
  3675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  3676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  3677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  3678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  3679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  3680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  3681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagUsa", function() { return faFlagUsa; });
  3682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  3683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  3684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  3685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  3686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  3687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  3688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  3689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  3690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  3691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  3692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  3693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  3694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  3695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  3696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  3697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  3698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  3699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  3700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  3701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  3702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  3703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  3704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGifts", function() { return faGifts; });
  3705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassCheers", function() { return faGlassCheers; });
  3706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  3707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  3708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassWhiskey", function() { return faGlassWhiskey; });
  3709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  3710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  3711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  3712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  3713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  3714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeEurope", function() { return faGlobeEurope; });
  3715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  3716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  3717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  3718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  3719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  3720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  3721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  3722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  3723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  3724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  3725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  3726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  3727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  3728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  3729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  3730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  3731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  3732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  3733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  3734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  3735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripLines", function() { return faGripLines; });
  3736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripLinesVertical", function() { return faGripLinesVertical; });
  3737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  3738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGuitar", function() { return faGuitar; });
  3739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  3740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamburger", function() { return faHamburger; });
  3741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  3742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  3743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  3744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  3745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingMedical", function() { return faHandHoldingMedical; });
  3746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  3747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingWater", function() { return faHandHoldingWater; });
  3748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  3749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandMiddleFinger", function() { return faHandMiddleFinger; });
  3750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  3751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  3752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  3753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  3754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  3755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  3756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  3757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  3758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  3759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSparkles", function() { return faHandSparkles; });
  3760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  3761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  3762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  3763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsWash", function() { return faHandsWash; });
  3764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  3765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshakeAltSlash", function() { return faHandshakeAltSlash; });
  3766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshakeSlash", function() { return faHandshakeSlash; });
  3767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  3768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHardHat", function() { return faHardHat; });
  3769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  3770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatCowboy", function() { return faHatCowboy; });
  3771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatCowboySide", function() { return faHatCowboySide; });
  3772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  3773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  3774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideCough", function() { return faHeadSideCough; });
  3775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideCoughSlash", function() { return faHeadSideCoughSlash; });
  3776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideMask", function() { return faHeadSideMask; });
  3777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideVirus", function() { return faHeadSideVirus; });
  3778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  3779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  3780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  3781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  3782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  3783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartBroken", function() { return faHeartBroken; });
  3784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  3785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  3786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  3787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  3788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  3789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  3790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  3791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHollyBerry", function() { return faHollyBerry; });
  3792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  3793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  3794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorseHead", function() { return faHorseHead; });
  3795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  3796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  3797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  3798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalUser", function() { return faHospitalUser; });
  3799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  3800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotdog", function() { return faHotdog; });
  3801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  3802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  3803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  3804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  3805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  3806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  3807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseUser", function() { return faHouseUser; });
  3808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  3809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  3810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIceCream", function() { return faIceCream; });
  3811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIcicles", function() { return faIcicles; });
  3812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIcons", function() { return faIcons; });
  3813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  3814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  3815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  3816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIgloo", function() { return faIgloo; });
  3817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  3818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  3819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  3820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  3821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  3822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  3823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  3824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  3825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  3826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  3827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  3828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  3829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  3830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  3831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  3832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  3833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  3834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  3835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  3836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  3837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  3838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  3839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  3840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  3841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopHouse", function() { return faLaptopHouse; });
  3842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopMedical", function() { return faLaptopMedical; });
  3843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  3844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  3845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  3846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  3847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  3848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  3849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  3850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  3851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  3852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  3853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  3854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  3855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  3856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  3857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  3858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  3859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  3860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  3861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  3862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  3863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  3864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  3865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  3866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  3867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  3868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  3869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  3870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  3871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLungs", function() { return faLungs; });
  3872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLungsVirus", function() { return faLungsVirus; });
  3873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  3874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  3875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  3876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  3877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  3878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  3879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  3880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  3881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  3882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  3883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  3884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  3885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  3886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  3887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  3888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  3889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  3890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  3891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  3892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  3893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  3894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  3895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  3896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  3897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  3898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  3899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeteor", function() { return faMeteor; });
  3900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  3901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  3902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  3903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  3904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  3905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  3906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  3907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  3908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  3909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMitten", function() { return faMitten; });
  3910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  3911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  3912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  3913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  3914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  3915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  3916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  3917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  3918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  3919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  3920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  3921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  3922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  3923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  3924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMouse", function() { return faMouse; });
  3925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  3926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMugHot", function() { return faMugHot; });
  3927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  3928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  3929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  3930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  3931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  3932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  3933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  3934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  3935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  3936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  3937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  3938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  3939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPager", function() { return faPager; });
  3940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  3941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  3942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  3943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  3944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  3945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  3946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  3947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  3948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  3949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  3950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  3951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  3952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  3953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  3954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  3955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  3956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  3957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  3958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  3959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  3960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  3961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  3962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  3963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleArrows", function() { return faPeopleArrows; });
  3964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  3965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPepperHot", function() { return faPepperHot; });
  3966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  3967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  3968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPersonBooth", function() { return faPersonBooth; });
  3969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  3970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneAlt", function() { return faPhoneAlt; });
  3971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  3972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  3973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquareAlt", function() { return faPhoneSquareAlt; });
  3974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  3975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhotoVideo", function() { return faPhotoVideo; });
  3976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  3977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  3978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPizzaSlice", function() { return faPizzaSlice; });
  3979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  3980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  3981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  3982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  3983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneSlash", function() { return faPlaneSlash; });
  3984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  3985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  3986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  3987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  3988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  3989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  3990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  3991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  3992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  3993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  3994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPooStorm", function() { return faPooStorm; });
  3995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  3996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  3997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  3998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  3999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  4000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  4001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  4002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  4003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  4004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  4005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  4006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  4007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPumpMedical", function() { return faPumpMedical; });
  4008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPumpSoap", function() { return faPumpSoap; });
  4009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  4010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  4011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  4012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  4013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  4014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  4015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  4016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  4017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRadiation", function() { return faRadiation; });
  4018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRadiationAlt", function() { return faRadiationAlt; });
  4019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRainbow", function() { return faRainbow; });
  4020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  4021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  4022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecordVinyl", function() { return faRecordVinyl; });
  4023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  4024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  4025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  4026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  4027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRemoveFormat", function() { return faRemoveFormat; });
  4028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  4029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  4030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRepublican", function() { return faRepublican; });
  4031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRestroom", function() { return faRestroom; });
  4032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  4033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  4034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  4035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  4036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  4037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  4038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  4039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  4040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  4041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  4042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  4043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  4044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  4045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  4046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  4047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  4048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  4049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  4050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSatellite", function() { return faSatellite; });
  4051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSatelliteDish", function() { return faSatelliteDish; });
  4052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  4053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  4054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  4055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  4056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSdCard", function() { return faSdCard; });
  4057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  4058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  4059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  4060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  4061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  4062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  4063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  4064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  4065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  4066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  4067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  4068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  4069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  4070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  4071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldVirus", function() { return faShieldVirus; });
  4072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  4073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  4074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  4075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  4076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  4077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  4078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  4079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  4080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  4081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  4082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  4083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  4084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  4085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  4086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSimCard", function() { return faSimCard; });
  4087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSink", function() { return faSink; });
  4088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  4089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkating", function() { return faSkating; });
  4090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkiing", function() { return faSkiing; });
  4091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkiingNordic", function() { return faSkiingNordic; });
  4092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  4093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  4094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  4095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSleigh", function() { return faSleigh; });
  4096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  4097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  4098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  4099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  4100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmog", function() { return faSmog; });
  4101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  4102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  4103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSms", function() { return faSms; });
  4104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowboarding", function() { return faSnowboarding; });
  4105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  4106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowman", function() { return faSnowman; });
  4107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowplow", function() { return faSnowplow; });
  4108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSoap", function() { return faSoap; });
  4109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  4110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  4111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  4112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  4113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDownAlt", function() { return faSortAlphaDownAlt; });
  4114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  4115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUpAlt", function() { return faSortAlphaUpAlt; });
  4116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  4117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDownAlt", function() { return faSortAmountDownAlt; });
  4118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  4119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUpAlt", function() { return faSortAmountUpAlt; });
  4120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  4121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  4122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDownAlt", function() { return faSortNumericDownAlt; });
  4123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  4124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUpAlt", function() { return faSortNumericUpAlt; });
  4125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  4126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  4127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  4128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpellCheck", function() { return faSpellCheck; });
  4129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  4130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  4131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  4132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  4133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  4134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  4135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  4136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  4137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  4138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  4139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  4140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  4141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  4142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  4143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  4144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  4145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  4146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  4147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  4148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  4149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  4150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch20", function() { return faStopwatch20; });
  4151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  4152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  4153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAltSlash", function() { return faStoreAltSlash; });
  4154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreSlash", function() { return faStoreSlash; });
  4155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  4156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  4157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  4158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  4159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  4160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  4161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  4162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  4163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  4164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  4165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  4166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  4167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  4168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  4169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  4170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  4171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  4172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  4173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  4174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  4175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  4176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  4177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  4178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  4179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  4180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  4181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  4182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  4183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  4184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  4185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  4186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTemperatureHigh", function() { return faTemperatureHigh; });
  4187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTemperatureLow", function() { return faTemperatureLow; });
  4188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTenge", function() { return faTenge; });
  4189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  4190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  4191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  4192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  4193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  4194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  4195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  4196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  4197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  4198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  4199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  4200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  4201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  4202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  4203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  4204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  4205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  4206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  4207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  4208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  4209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  4210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  4211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  4212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  4213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToilet", function() { return faToilet; });
  4214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  4215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaperSlash", function() { return faToiletPaperSlash; });
  4216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  4217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTools", function() { return faTools; });
  4218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  4219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  4220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  4221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  4222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  4223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  4224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrailer", function() { return faTrailer; });
  4225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  4226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTram", function() { return faTram; });
  4227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  4228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  4229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  4230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  4231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashRestore", function() { return faTrashRestore; });
  4232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashRestoreAlt", function() { return faTrashRestoreAlt; });
  4233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  4234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  4235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  4236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  4237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  4238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  4239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  4240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  4241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  4242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  4243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  4244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  4245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  4246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  4247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  4248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  4249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  4250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  4251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  4252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  4253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  4254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  4255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  4256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  4257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  4258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  4259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  4260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  4261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  4262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  4263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  4264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  4265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  4266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  4267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  4268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  4269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  4270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNurse", function() { return faUserNurse; });
  4271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  4272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  4273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  4274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  4275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  4276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  4277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  4278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  4279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  4280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersSlash", function() { return faUsersSlash; });
  4281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  4282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  4283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  4284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  4285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  4286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  4287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  4288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  4289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  4290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  4291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  4292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVirus", function() { return faVirus; });
  4293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVirusSlash", function() { return faVirusSlash; });
  4294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faViruses", function() { return faViruses; });
  4295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVoicemail", function() { return faVoicemail; });
  4296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  4297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  4298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  4299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  4300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  4301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVoteYea", function() { return faVoteYea; });
  4302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  4303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  4304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  4305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  4306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWater", function() { return faWater; });
  4307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWaveSquare", function() { return faWaveSquare; });
  4308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  4309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  4310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  4311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  4312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  4313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  4314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  4315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  4316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  4317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  4318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  4319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  4320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  4321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  4322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  4323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  4324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  4325. var prefix = "fas";
  4326. var faAd = {
  4327. prefix: 'fas',
  4328. iconName: 'ad',
  4329. 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"]
  4330. };
  4331. var faAddressBook = {
  4332. prefix: 'fas',
  4333. iconName: 'address-book',
  4334. 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"]
  4335. };
  4336. var faAddressCard = {
  4337. prefix: 'fas',
  4338. iconName: 'address-card',
  4339. 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"]
  4340. };
  4341. var faAdjust = {
  4342. prefix: 'fas',
  4343. iconName: 'adjust',
  4344. 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"]
  4345. };
  4346. var faAirFreshener = {
  4347. prefix: 'fas',
  4348. iconName: 'air-freshener',
  4349. 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"]
  4350. };
  4351. var faAlignCenter = {
  4352. prefix: 'fas',
  4353. iconName: 'align-center',
  4354. icon: [448, 512, [], "f037", "M432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM108.1 96h231.81A12.09 12.09 0 0 0 352 83.9V44.09A12.09 12.09 0 0 0 339.91 32H108.1A12.09 12.09 0 0 0 96 44.09V83.9A12.1 12.1 0 0 0 108.1 96zm231.81 256A12.09 12.09 0 0 0 352 339.9v-39.81A12.09 12.09 0 0 0 339.91 288H108.1A12.09 12.09 0 0 0 96 300.09v39.81a12.1 12.1 0 0 0 12.1 12.1z"]
  4355. };
  4356. var faAlignJustify = {
  4357. prefix: 'fas',
  4358. iconName: 'align-justify',
  4359. icon: [448, 512, [], "f039", "M432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  4360. };
  4361. var faAlignLeft = {
  4362. prefix: 'fas',
  4363. iconName: 'align-left',
  4364. icon: [448, 512, [], "f036", "M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  4365. };
  4366. var faAlignRight = {
  4367. prefix: 'fas',
  4368. iconName: 'align-right',
  4369. icon: [448, 512, [], "f038", "M16 224h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm416 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-384H172.83A12.82 12.82 0 0 0 160 44.83v38.34A12.82 12.82 0 0 0 172.83 96h262.34A12.82 12.82 0 0 0 448 83.17V44.83A12.82 12.82 0 0 0 435.17 32zm0 256H172.83A12.82 12.82 0 0 0 160 300.83v38.34A12.82 12.82 0 0 0 172.83 352h262.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288z"]
  4370. };
  4371. var faAllergies = {
  4372. prefix: 'fas',
  4373. iconName: 'allergies',
  4374. 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"]
  4375. };
  4376. var faAmbulance = {
  4377. prefix: 'fas',
  4378. iconName: 'ambulance',
  4379. 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"]
  4380. };
  4381. var faAmericanSignLanguageInterpreting = {
  4382. prefix: 'fas',
  4383. iconName: 'american-sign-language-interpreting',
  4384. 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"]
  4385. };
  4386. var faAnchor = {
  4387. prefix: 'fas',
  4388. iconName: 'anchor',
  4389. 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"]
  4390. };
  4391. var faAngleDoubleDown = {
  4392. prefix: 'fas',
  4393. iconName: 'angle-double-down',
  4394. 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"]
  4395. };
  4396. var faAngleDoubleLeft = {
  4397. prefix: 'fas',
  4398. iconName: 'angle-double-left',
  4399. 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"]
  4400. };
  4401. var faAngleDoubleRight = {
  4402. prefix: 'fas',
  4403. iconName: 'angle-double-right',
  4404. 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"]
  4405. };
  4406. var faAngleDoubleUp = {
  4407. prefix: 'fas',
  4408. iconName: 'angle-double-up',
  4409. 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"]
  4410. };
  4411. var faAngleDown = {
  4412. prefix: 'fas',
  4413. iconName: 'angle-down',
  4414. 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"]
  4415. };
  4416. var faAngleLeft = {
  4417. prefix: 'fas',
  4418. iconName: 'angle-left',
  4419. 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"]
  4420. };
  4421. var faAngleRight = {
  4422. prefix: 'fas',
  4423. iconName: 'angle-right',
  4424. 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"]
  4425. };
  4426. var faAngleUp = {
  4427. prefix: 'fas',
  4428. iconName: 'angle-up',
  4429. 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"]
  4430. };
  4431. var faAngry = {
  4432. prefix: 'fas',
  4433. iconName: 'angry',
  4434. 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"]
  4435. };
  4436. var faAnkh = {
  4437. prefix: 'fas',
  4438. iconName: 'ankh',
  4439. 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"]
  4440. };
  4441. var faAppleAlt = {
  4442. prefix: 'fas',
  4443. iconName: 'apple-alt',
  4444. 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"]
  4445. };
  4446. var faArchive = {
  4447. prefix: 'fas',
  4448. iconName: 'archive',
  4449. 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"]
  4450. };
  4451. var faArchway = {
  4452. prefix: 'fas',
  4453. iconName: 'archway',
  4454. 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"]
  4455. };
  4456. var faArrowAltCircleDown = {
  4457. prefix: 'fas',
  4458. iconName: 'arrow-alt-circle-down',
  4459. 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"]
  4460. };
  4461. var faArrowAltCircleLeft = {
  4462. prefix: 'fas',
  4463. iconName: 'arrow-alt-circle-left',
  4464. 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"]
  4465. };
  4466. var faArrowAltCircleRight = {
  4467. prefix: 'fas',
  4468. iconName: 'arrow-alt-circle-right',
  4469. 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"]
  4470. };
  4471. var faArrowAltCircleUp = {
  4472. prefix: 'fas',
  4473. iconName: 'arrow-alt-circle-up',
  4474. 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"]
  4475. };
  4476. var faArrowCircleDown = {
  4477. prefix: 'fas',
  4478. iconName: 'arrow-circle-down',
  4479. 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"]
  4480. };
  4481. var faArrowCircleLeft = {
  4482. prefix: 'fas',
  4483. iconName: 'arrow-circle-left',
  4484. 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"]
  4485. };
  4486. var faArrowCircleRight = {
  4487. prefix: 'fas',
  4488. iconName: 'arrow-circle-right',
  4489. 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"]
  4490. };
  4491. var faArrowCircleUp = {
  4492. prefix: 'fas',
  4493. iconName: 'arrow-circle-up',
  4494. 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"]
  4495. };
  4496. var faArrowDown = {
  4497. prefix: 'fas',
  4498. iconName: 'arrow-down',
  4499. 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"]
  4500. };
  4501. var faArrowLeft = {
  4502. prefix: 'fas',
  4503. iconName: 'arrow-left',
  4504. 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"]
  4505. };
  4506. var faArrowRight = {
  4507. prefix: 'fas',
  4508. iconName: 'arrow-right',
  4509. 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"]
  4510. };
  4511. var faArrowUp = {
  4512. prefix: 'fas',
  4513. iconName: 'arrow-up',
  4514. 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"]
  4515. };
  4516. var faArrowsAlt = {
  4517. prefix: 'fas',
  4518. iconName: 'arrows-alt',
  4519. 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"]
  4520. };
  4521. var faArrowsAltH = {
  4522. prefix: 'fas',
  4523. iconName: 'arrows-alt-h',
  4524. 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"]
  4525. };
  4526. var faArrowsAltV = {
  4527. prefix: 'fas',
  4528. iconName: 'arrows-alt-v',
  4529. 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"]
  4530. };
  4531. var faAssistiveListeningSystems = {
  4532. prefix: 'fas',
  4533. iconName: 'assistive-listening-systems',
  4534. 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"]
  4535. };
  4536. var faAsterisk = {
  4537. prefix: 'fas',
  4538. iconName: 'asterisk',
  4539. 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"]
  4540. };
  4541. var faAt = {
  4542. prefix: 'fas',
  4543. iconName: 'at',
  4544. 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"]
  4545. };
  4546. var faAtlas = {
  4547. prefix: 'fas',
  4548. iconName: 'atlas',
  4549. 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"]
  4550. };
  4551. var faAtom = {
  4552. prefix: 'fas',
  4553. iconName: 'atom',
  4554. icon: [448, 512, [], "f5d2", "M223.99908,224a32,32,0,1,0,32.00782,32A32.06431,32.06431,0,0,0,223.99908,224Zm214.172-96c-10.877-19.5-40.50979-50.75-116.27544-41.875C300.39168,34.875,267.63386,0,223.99908,0s-76.39066,34.875-97.89653,86.125C50.3369,77.375,20.706,108.5,9.82907,128-6.54984,157.375-5.17484,201.125,34.958,256-5.17484,310.875-6.54984,354.625,9.82907,384c29.13087,52.375,101.64652,43.625,116.27348,41.875C147.60842,477.125,180.36429,512,223.99908,512s76.3926-34.875,97.89652-86.125c14.62891,1.75,87.14456,10.5,116.27544-41.875C454.55,354.625,453.175,310.875,413.04017,256,453.175,201.125,454.55,157.375,438.171,128ZM63.33886,352c-4-7.25-.125-24.75,15.00391-48.25,6.87695,6.5,14.12891,12.875,21.88087,19.125,1.625,13.75,4,27.125,6.75,40.125C82.34472,363.875,67.09081,358.625,63.33886,352Zm36.88478-162.875c-7.752,6.25-15.00392,12.625-21.88087,19.125-15.12891-23.5-19.00392-41-15.00391-48.25,3.377-6.125,16.37891-11.5,37.88478-11.5,1.75,0,3.875.375,5.75.375C104.09864,162.25,101.84864,175.625,100.22364,189.125ZM223.99908,64c9.50195,0,22.25586,13.5,33.88282,37.25-11.252,3.75-22.50391,8-33.88282,12.875-11.377-4.875-22.62892-9.125-33.88283-12.875C201.74516,77.5,214.49712,64,223.99908,64Zm0,384c-9.502,0-22.25392-13.5-33.88283-37.25,11.25391-3.75,22.50587-8,33.88283-12.875C235.378,402.75,246.62994,407,257.8819,410.75,246.25494,434.5,233.501,448,223.99908,448Zm0-112a80,80,0,1,1,80-80A80.00023,80.00023,0,0,1,223.99908,336ZM384.6593,352c-3.625,6.625-19.00392,11.875-43.63479,11,2.752-13,5.127-26.375,6.752-40.125,7.75195-6.25,15.00391-12.625,21.87891-19.125C384.7843,327.25,388.6593,344.75,384.6593,352ZM369.65538,208.25c-6.875-6.5-14.127-12.875-21.87891-19.125-1.625-13.5-3.875-26.875-6.752-40.25,1.875,0,4.002-.375,5.752-.375,21.50391,0,34.50782,5.375,37.88283,11.5C388.6593,167.25,384.7843,184.75,369.65538,208.25Z"]
  4555. };
  4556. var faAudioDescription = {
  4557. prefix: 'fas',
  4558. iconName: 'audio-description',
  4559. 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"]
  4560. };
  4561. var faAward = {
  4562. prefix: 'fas',
  4563. iconName: 'award',
  4564. 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"]
  4565. };
  4566. var faBaby = {
  4567. prefix: 'fas',
  4568. iconName: 'baby',
  4569. icon: [384, 512, [], "f77c", "M192 160c44.2 0 80-35.8 80-80S236.2 0 192 0s-80 35.8-80 80 35.8 80 80 80zm-53.4 248.8l25.6-32-61.5-51.2L56.8 383c-11.4 14.2-11.7 34.4-.8 49l48 64c7.9 10.5 19.9 16 32 16 8.3 0 16.8-2.6 24-8 17.7-13.2 21.2-38.3 8-56l-29.4-39.2zm142.7-83.2l-61.5 51.2 25.6 32L216 448c-13.2 17.7-9.7 42.8 8 56 7.2 5.4 15.6 8 24 8 12.2 0 24.2-5.5 32-16l48-64c10.9-14.6 10.6-34.8-.8-49l-45.9-57.4zM376.7 145c-12.7-18.1-37.6-22.4-55.7-9.8l-40.6 28.5c-52.7 37-124.2 37-176.8 0L63 135.3C44.9 122.6 20 127 7.3 145-5.4 163.1-1 188 17 200.7l40.6 28.5c17 11.9 35.4 20.9 54.4 27.9V288h160v-30.8c19-7 37.4-16 54.4-27.9l40.6-28.5c18.1-12.8 22.4-37.7 9.7-55.8z"]
  4570. };
  4571. var faBabyCarriage = {
  4572. prefix: 'fas',
  4573. iconName: 'baby-carriage',
  4574. icon: [512, 512, [], "f77d", "M144.8 17c-11.3-17.8-37.2-22.8-54-9.4C35.3 51.9 0 118 0 192h256L144.8 17zM496 96h-48c-35.3 0-64 28.7-64 64v64H0c0 50.6 23 96.4 60.3 130.7C25.7 363.6 0 394.7 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-8.9-1.8-17.2-4.4-25.2 21.6 5.9 44.6 9.2 68.4 9.2s46.9-3.3 68.4-9.2c-2.7 8-4.4 16.3-4.4 25.2 0 44.2 35.8 80 80 80s80-35.8 80-80c0-37.3-25.7-68.4-60.3-77.3C425 320.4 448 274.6 448 224v-64h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM80 464c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm320-32c0 17.6-14.4 32-32 32s-32-14.4-32-32 14.4-32 32-32 32 14.4 32 32z"]
  4575. };
  4576. var faBackspace = {
  4577. prefix: 'fas',
  4578. iconName: 'backspace',
  4579. 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"]
  4580. };
  4581. var faBackward = {
  4582. prefix: 'fas',
  4583. iconName: 'backward',
  4584. 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"]
  4585. };
  4586. var faBacon = {
  4587. prefix: 'fas',
  4588. iconName: 'bacon',
  4589. icon: [576, 512, [], "f7e5", "M218.92 336.39c34.89-34.89 44.2-59.7 54.05-86 10.61-28.29 21.59-57.54 61.37-97.34s69.05-50.77 97.35-61.38c23.88-9 46.64-17.68 76.79-45.37L470.81 8.91a31 31 0 0 0-40.18-2.83c-13.64 10.1-25.15 14.39-41 20.3C247 79.52 209.26 191.29 200.65 214.1c-29.75 78.83-89.55 94.68-98.72 98.09-24.86 9.26-54.73 20.38-91.07 50.36C-3 374-3.63 395 9.07 407.61l35.76 35.51C80 410.52 107 400.15 133 390.39c26.27-9.84 51.06-19.12 85.92-54zm348-232l-35.75-35.51c-35.19 32.63-62.18 43-88.25 52.79-26.26 9.85-51.06 19.16-85.95 54s-44.19 59.69-54 86C292.33 290 281.34 319.22 241.55 359s-69 50.73-97.3 61.32c-23.86 9-46.61 17.66-76.72 45.33l37.68 37.43a31 31 0 0 0 40.18 2.82c13.6-10.06 25.09-14.34 40.94-20.24 142.2-53 180-164.1 188.94-187.69C405 219.18 464.8 203.3 474 199.86c24.87-9.27 54.74-20.4 91.11-50.41 13.89-11.4 14.52-32.45 1.82-45.05z"]
  4590. };
  4591. var faBacteria = {
  4592. prefix: 'fas',
  4593. iconName: 'bacteria',
  4594. icon: [640, 512, [], "f959", "M272.35,226.4A17.71,17.71,0,0,0,281.46,203l-4-9.08a121.29,121.29,0,0,1,12.36-3.08A83.34,83.34,0,0,0,323.57,177l10,9a17.76,17.76,0,1,0,23.92-26.27l-9.72-8.76a83.12,83.12,0,0,0,11.65-48.18l11.85-3.51a17.73,17.73,0,1,0-10.15-34l-11.34,3.36a84,84,0,0,0-36.38-35.57l2.84-10.85a17.8,17.8,0,0,0-34.47-8.93l-2.82,10.78a83.25,83.25,0,0,0-16.74,1.1C250.83,27,240,30.22,229.1,33.39l-3.38-9.46a17.8,17.8,0,0,0-33.56,11.89l3.49,9.8a286.74,286.74,0,0,0-43.94,23.57l-6.32-8.43a17.9,17.9,0,0,0-24.94-3.6A17.69,17.69,0,0,0,116.84,82l6.45,8.61a286.59,286.59,0,0,0-34.95,35.33l-8.82-6.42a17.84,17.84,0,0,0-24.89,3.86,17.66,17.66,0,0,0,3.88,24.77l8.88,6.47a286.6,286.6,0,0,0-23,43.91l-10.48-3.59a17.73,17.73,0,1,0-11.59,33.52L32.67,232c-2.79,10-5.79,19.84-7.52,30.22a83.16,83.16,0,0,0-.82,19l-11.58,3.43a17.73,17.73,0,1,0,10.13,34l11.27-3.33a83.51,83.51,0,0,0,36.39,35.43l-2.88,11.06a17.81,17.81,0,0,0,34.48,8.92l2.87-11c1,0,2.07.26,3.1.26a83.39,83.39,0,0,0,45.65-13.88l8.59,8.8a17.77,17.77,0,0,0,25.56-24.7l-9.14-9.37a83.41,83.41,0,0,0,12.08-31.05,119.08,119.08,0,0,1,3.87-15.53l9,4.22a17.74,17.74,0,1,0,15.15-32.09l-8.8-4.11c.67-1,1.2-2.08,1.9-3.05a119.89,119.89,0,0,1,7.87-9.41,121.73,121.73,0,0,1,11.65-11.4,119.49,119.49,0,0,1,9.94-7.82c1.12-.77,2.32-1.42,3.47-2.15l3.92,8.85a17.86,17.86,0,0,0,16.32,10.58A18.14,18.14,0,0,0,272.35,226.4ZM128,256a32,32,0,1,1,32-32A32,32,0,0,1,128,256Zm80-96a16,16,0,1,1,16-16A16,16,0,0,1,208,160Zm431.26,45.3a17.79,17.79,0,0,0-17.06-12.69,17.55,17.55,0,0,0-5.08.74l-11.27,3.33a83.61,83.61,0,0,0-36.39-35.43l2.88-11.06a17.81,17.81,0,0,0-34.48-8.91l-2.87,11c-1,0-2.07-.26-3.1-.26a83.32,83.32,0,0,0-45.65,13.89l-8.59-8.81a17.77,17.77,0,0,0-25.56,24.7l9.14,9.37a83.28,83.28,0,0,0-12.08,31.06,119.34,119.34,0,0,1-3.87,15.52l-9-4.22a17.74,17.74,0,1,0-15.15,32.09l8.8,4.11c-.67,1-1.2,2.08-1.89,3.05a117.71,117.71,0,0,1-7.94,9.47,119,119,0,0,1-11.57,11.33,121.59,121.59,0,0,1-10,7.83c-1.12.77-2.32,1.42-3.47,2.15l-3.92-8.85a17.86,17.86,0,0,0-16.32-10.58,18.14,18.14,0,0,0-7.18,1.5A17.71,17.71,0,0,0,358.54,309l4,9.08a118.71,118.71,0,0,1-12.36,3.08,83.34,83.34,0,0,0-33.77,13.9l-10-9a17.77,17.77,0,1,0-23.92,26.28l9.72,8.75a83.12,83.12,0,0,0-11.65,48.18l-11.86,3.51a17.73,17.73,0,1,0,10.16,34l11.34-3.36A84,84,0,0,0,326.61,479l-2.84,10.85a17.8,17.8,0,0,0,34.47,8.93L361.06,488a83.3,83.3,0,0,0,16.74-1.1c11.37-1.89,22.24-5.07,33.1-8.24l3.38,9.46a17.8,17.8,0,0,0,33.56-11.89l-3.49-9.79a287.66,287.66,0,0,0,43.94-23.58l6.32,8.43a17.88,17.88,0,0,0,24.93,3.6A17.67,17.67,0,0,0,523.16,430l-6.45-8.61a287.37,287.37,0,0,0,34.95-35.34l8.82,6.42a17.76,17.76,0,1,0,21-28.63l-8.88-6.46a287.17,287.17,0,0,0,23-43.92l10.48,3.59a17.73,17.73,0,1,0,11.59-33.52L607.33,280c2.79-10,5.79-19.84,7.52-30.21a83.27,83.27,0,0,0,.82-19.05l11.58-3.43A17.7,17.7,0,0,0,639.26,205.3ZM416,416a32,32,0,1,1,32-32A32,32,0,0,1,416,416Z"]
  4595. };
  4596. var faBacterium = {
  4597. prefix: 'fas',
  4598. iconName: 'bacterium',
  4599. icon: [512, 512, [], "f95a", "M511,102.93A23.76,23.76,0,0,0,481.47,87l-15.12,4.48a111.85,111.85,0,0,0-48.5-47.42l3.79-14.47a23.74,23.74,0,0,0-46-11.91l-3.76,14.37a111.94,111.94,0,0,0-22.33,1.47,386.74,386.74,0,0,0-44.33,10.41l-4.3-12a23.74,23.74,0,0,0-44.75,15.85l4.3,12.05a383.4,383.4,0,0,0-58.69,31.83l-8-10.63a23.85,23.85,0,0,0-33.24-4.8,23.57,23.57,0,0,0-4.83,33.09l8,10.63a386.14,386.14,0,0,0-46.7,47.44l-11-8a23.68,23.68,0,1,0-28,38.17l11.09,8.06a383.45,383.45,0,0,0-30.92,58.75l-12.93-4.43a23.65,23.65,0,1,0-15.47,44.69l13,4.48a385.81,385.81,0,0,0-9.3,40.53A111.58,111.58,0,0,0,32.44,375L17,379.56a23.64,23.64,0,0,0,13.51,45.31l15-4.44a111.49,111.49,0,0,0,48.53,47.24l-3.85,14.75a23.66,23.66,0,0,0,17,28.83,24.7,24.7,0,0,0,6,.75,23.73,23.73,0,0,0,23-17.7L140,479.67c1.37.05,2.77.35,4.13.35A111.22,111.22,0,0,0,205,461.5l11.45,11.74a23.7,23.7,0,0,0,34.08-32.93l-12.19-12.5a111,111,0,0,0,16.11-41.4,158.69,158.69,0,0,1,5.16-20.71l12,5.64a23.66,23.66,0,1,0,20.19-42.79l-11.72-5.49c.89-1.32,1.59-2.77,2.52-4.06a157.86,157.86,0,0,1,10.46-12.49,159.5,159.5,0,0,1,15.59-15.28,162.18,162.18,0,0,1,13.23-10.4c1.5-1,3.1-1.89,4.63-2.87l5.23,11.8a23.74,23.74,0,0,0,43.48-19.08l-5.36-12.11a158.87,158.87,0,0,1,16.49-4.1,111,111,0,0,0,45-18.54l13.33,12a23.69,23.69,0,1,0,31.88-35l-12.94-11.67A110.83,110.83,0,0,0,479.21,137L495,132.32A23.61,23.61,0,0,0,511,102.93ZM160,368a48,48,0,1,1,48-48A48,48,0,0,1,160,368Zm80-136a24,24,0,1,1,24-24A24,24,0,0,1,240,232Z"]
  4600. };
  4601. var faBahai = {
  4602. prefix: 'fas',
  4603. iconName: 'bahai',
  4604. 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"]
  4605. };
  4606. var faBalanceScale = {
  4607. prefix: 'fas',
  4608. iconName: 'balance-scale',
  4609. 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"]
  4610. };
  4611. var faBalanceScaleLeft = {
  4612. prefix: 'fas',
  4613. iconName: 'balance-scale-left',
  4614. icon: [640, 512, [], "f515", "M528 448H352V153.25c20.42-8.94 36.1-26.22 43.38-47.47l132-44.26c8.38-2.81 12.89-11.88 10.08-20.26l-10.17-30.34C524.48 2.54 515.41-1.97 507.03.84L389.11 40.37C375.3 16.36 349.69 0 320 0c-44.18 0-80 35.82-80 80 0 3.43.59 6.71 1.01 10.03l-128.39 43.05c-8.38 2.81-12.89 11.88-10.08 20.26l10.17 30.34c2.81 8.38 11.88 12.89 20.26 10.08l142.05-47.63c4.07 2.77 8.43 5.12 12.99 7.12V496c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16v-32c-.01-8.84-7.17-16-16.01-16zm111.98-144c0-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 288l72-144 72 144H440zm-269.07-37.51c-17.65-35.29-68.19-35.36-85.87 0C-2.06 424.75.02 416.33.02 432H0c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-16.18 1.34-8.73-85.05-181.51zM56 416l72-144 72 144H56z"]
  4615. };
  4616. var faBalanceScaleRight = {
  4617. prefix: 'fas',
  4618. iconName: 'balance-scale-right',
  4619. icon: [640, 512, [], "f516", "M96 464v32c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16V153.25c4.56-2 8.92-4.35 12.99-7.12l142.05 47.63c8.38 2.81 17.45-1.71 20.26-10.08l10.17-30.34c2.81-8.38-1.71-17.45-10.08-20.26l-128.4-43.05c.42-3.32 1.01-6.6 1.01-10.03 0-44.18-35.82-80-80-80-29.69 0-55.3 16.36-69.11 40.37L132.96.83c-8.38-2.81-17.45 1.71-20.26 10.08l-10.17 30.34c-2.81 8.38 1.71 17.45 10.08 20.26l132 44.26c7.28 21.25 22.96 38.54 43.38 47.47V448H112c-8.84 0-16 7.16-16 16zM0 304c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0C-1.32 295.27.02 287.82.02 304H0zm56-16l72-144 72 144H56zm328.02 144H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0-86.38 172.78-85.04 165.33-85.04 181.51zM440 416l72-144 72 144H440z"]
  4620. };
  4621. var faBan = {
  4622. prefix: 'fas',
  4623. iconName: 'ban',
  4624. 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"]
  4625. };
  4626. var faBandAid = {
  4627. prefix: 'fas',
  4628. iconName: 'band-aid',
  4629. 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"]
  4630. };
  4631. var faBarcode = {
  4632. prefix: 'fas',
  4633. iconName: 'barcode',
  4634. 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"]
  4635. };
  4636. var faBars = {
  4637. prefix: 'fas',
  4638. iconName: 'bars',
  4639. 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"]
  4640. };
  4641. var faBaseballBall = {
  4642. prefix: 'fas',
  4643. iconName: 'baseball-ball',
  4644. 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"]
  4645. };
  4646. var faBasketballBall = {
  4647. prefix: 'fas',
  4648. iconName: 'basketball-ball',
  4649. 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"]
  4650. };
  4651. var faBath = {
  4652. prefix: 'fas',
  4653. iconName: 'bath',
  4654. icon: [512, 512, [], "f2cd", "M32,384a95.4,95.4,0,0,0,32,71.09V496a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V480H384v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V455.09A95.4,95.4,0,0,0,480,384V336H32ZM496,256H80V69.25a21.26,21.26,0,0,1,36.28-15l19.27,19.26c-13.13,29.88-7.61,59.11,8.62,79.73l-.17.17A16,16,0,0,0,144,176l11.31,11.31a16,16,0,0,0,22.63,0L283.31,81.94a16,16,0,0,0,0-22.63L272,48a16,16,0,0,0-22.62,0l-.17.17c-20.62-16.23-49.83-21.75-79.73-8.62L150.22,20.28A69.25,69.25,0,0,0,32,69.25V256H16A16,16,0,0,0,0,272v16a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V272A16,16,0,0,0,496,256Z"]
  4655. };
  4656. var faBatteryEmpty = {
  4657. prefix: 'fas',
  4658. iconName: 'battery-empty',
  4659. 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"]
  4660. };
  4661. var faBatteryFull = {
  4662. prefix: 'fas',
  4663. iconName: 'battery-full',
  4664. 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"]
  4665. };
  4666. var faBatteryHalf = {
  4667. prefix: 'fas',
  4668. iconName: 'battery-half',
  4669. 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"]
  4670. };
  4671. var faBatteryQuarter = {
  4672. prefix: 'fas',
  4673. iconName: 'battery-quarter',
  4674. 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"]
  4675. };
  4676. var faBatteryThreeQuarters = {
  4677. prefix: 'fas',
  4678. iconName: 'battery-three-quarters',
  4679. 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"]
  4680. };
  4681. var faBed = {
  4682. prefix: 'fas',
  4683. iconName: 'bed',
  4684. 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"]
  4685. };
  4686. var faBeer = {
  4687. prefix: 'fas',
  4688. iconName: 'beer',
  4689. 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"]
  4690. };
  4691. var faBell = {
  4692. prefix: 'fas',
  4693. iconName: 'bell',
  4694. 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"]
  4695. };
  4696. var faBellSlash = {
  4697. prefix: 'fas',
  4698. iconName: 'bell-slash',
  4699. 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"]
  4700. };
  4701. var faBezierCurve = {
  4702. prefix: 'fas',
  4703. iconName: 'bezier-curve',
  4704. 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"]
  4705. };
  4706. var faBible = {
  4707. prefix: 'fas',
  4708. iconName: 'bible',
  4709. 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"]
  4710. };
  4711. var faBicycle = {
  4712. prefix: 'fas',
  4713. iconName: 'bicycle',
  4714. 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"]
  4715. };
  4716. var faBiking = {
  4717. prefix: 'fas',
  4718. iconName: 'biking',
  4719. icon: [640, 512, [], "f84a", "M400 96a48 48 0 1 0-48-48 48 48 0 0 0 48 48zm-4 121a31.9 31.9 0 0 0 20 7h64a32 32 0 0 0 0-64h-52.78L356 103a31.94 31.94 0 0 0-40.81.68l-112 96a32 32 0 0 0 3.08 50.92L288 305.12V416a32 32 0 0 0 64 0V288a32 32 0 0 0-14.25-26.62l-41.36-27.57 58.25-49.92zm116 39a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64zM128 256a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64z"]
  4720. };
  4721. var faBinoculars = {
  4722. prefix: 'fas',
  4723. iconName: 'binoculars',
  4724. 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"]
  4725. };
  4726. var faBiohazard = {
  4727. prefix: 'fas',
  4728. iconName: 'biohazard',
  4729. icon: [576, 512, [], "f780", "M287.9 112c18.6 0 36.2 3.8 52.8 9.6 13.3-10.3 23.6-24.3 29.5-40.7-25.2-10.9-53-17-82.2-17-29.1 0-56.9 6-82.1 16.9 5.9 16.4 16.2 30.4 29.5 40.7 16.5-5.7 34-9.5 52.5-9.5zM163.6 438.7c12-11.8 20.4-26.4 24.5-42.4-32.9-26.4-54.8-65.3-58.9-109.6-8.5-2.8-17.2-4.6-26.4-4.6-7.6 0-15.2 1-22.5 3.1 4.1 62.8 35.8 118 83.3 153.5zm224.2-42.6c4.1 16 12.5 30.7 24.5 42.5 47.4-35.5 79.1-90.7 83-153.5-7.2-2-14.7-3-22.2-3-9.2 0-18 1.9-26.6 4.7-4.1 44.2-26 82.9-58.7 109.3zm113.5-205c-17.6-10.4-36.3-16.6-55.3-19.9 6-17.7 10-36.4 10-56.2 0-41-14.5-80.8-41-112.2-2.5-3-6.6-3.7-10-1.8-3.3 1.9-4.8 6-3.6 9.7 4.5 13.8 6.6 26.3 6.6 38.5 0 67.8-53.8 122.9-120 122.9S168 117 168 49.2c0-12.1 2.2-24.7 6.6-38.5 1.2-3.7-.3-7.8-3.6-9.7-3.4-1.9-7.5-1.2-10 1.8C134.6 34.2 120 74 120 115c0 19.8 3.9 38.5 10 56.2-18.9 3.3-37.7 9.5-55.3 19.9-34.6 20.5-61 53.3-74.3 92.4-1.3 3.7.2 7.7 3.5 9.8 3.3 2 7.5 1.3 10-1.6 9.4-10.8 19-19.1 29.2-25.1 57.3-33.9 130.8-13.7 163.9 45 33.1 58.7 13.4 134-43.9 167.9-10.2 6.1-22 10.4-35.8 13.4-3.7.8-6.4 4.2-6.4 8.1.1 4 2.7 7.3 6.5 8 39.7 7.8 80.6.8 115.2-19.7 18-10.6 32.9-24.5 45.3-40.1 12.4 15.6 27.3 29.5 45.3 40.1 34.6 20.5 75.5 27.5 115.2 19.7 3.8-.7 6.4-4 6.5-8 0-3.9-2.6-7.3-6.4-8.1-13.9-2.9-25.6-7.3-35.8-13.4-57.3-33.9-77-109.2-43.9-167.9s106.6-78.9 163.9-45c10.2 6.1 19.8 14.3 29.2 25.1 2.5 2.9 6.7 3.6 10 1.6s4.8-6.1 3.5-9.8c-13.1-39.1-39.5-72-74.1-92.4zm-213.4 129c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
  4730. };
  4731. var faBirthdayCake = {
  4732. prefix: 'fas',
  4733. iconName: 'birthday-cake',
  4734. 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"]
  4735. };
  4736. var faBlender = {
  4737. prefix: 'fas',
  4738. iconName: 'blender',
  4739. 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"]
  4740. };
  4741. var faBlenderPhone = {
  4742. prefix: 'fas',
  4743. iconName: 'blender-phone',
  4744. 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"]
  4745. };
  4746. var faBlind = {
  4747. prefix: 'fas',
  4748. iconName: 'blind',
  4749. 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"]
  4750. };
  4751. var faBlog = {
  4752. prefix: 'fas',
  4753. iconName: 'blog',
  4754. icon: [512, 512, [], "f781", "M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"]
  4755. };
  4756. var faBold = {
  4757. prefix: 'fas',
  4758. iconName: 'bold',
  4759. icon: [384, 512, [], "f032", "M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z"]
  4760. };
  4761. var faBolt = {
  4762. prefix: 'fas',
  4763. iconName: 'bolt',
  4764. icon: [320, 512, [], "f0e7", "M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]
  4765. };
  4766. var faBomb = {
  4767. prefix: 'fas',
  4768. iconName: 'bomb',
  4769. 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"]
  4770. };
  4771. var faBone = {
  4772. prefix: 'fas',
  4773. iconName: 'bone',
  4774. 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"]
  4775. };
  4776. var faBong = {
  4777. prefix: 'fas',
  4778. iconName: 'bong',
  4779. 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"]
  4780. };
  4781. var faBook = {
  4782. prefix: 'fas',
  4783. iconName: 'book',
  4784. 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"]
  4785. };
  4786. var faBookDead = {
  4787. prefix: 'fas',
  4788. iconName: 'book-dead',
  4789. icon: [448, 512, [], "f6b7", "M272 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 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.2 0 80 28.7 80 64 0 20.9-12.7 39.2-32 50.9V184c0 8.8-7.2 16-16 16h-64c-8.8 0-16-7.2-16-16v-13.1c-19.3-11.7-32-30-32-50.9 0-35.3 35.8-64 80-64zM124.8 223.3l6.3-14.7c1.7-4.1 6.4-5.9 10.5-4.2l98.3 42.1 98.4-42.1c4.1-1.7 8.8.1 10.5 4.2l6.3 14.7c1.7 4.1-.1 8.8-4.2 10.5L280.6 264l70.3 30.1c4.1 1.7 5.9 6.4 4.2 10.5l-6.3 14.7c-1.7 4.1-6.4 5.9-10.5 4.2L240 281.4l-98.3 42.2c-4.1 1.7-8.8-.1-10.5-4.2l-6.3-14.7c-1.7-4.1.1-8.8 4.2-10.5l70.4-30.1-70.5-30.3c-4.1-1.7-5.9-6.4-4.2-10.5zm256 224.7H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8zM208 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16z"]
  4790. };
  4791. var faBookMedical = {
  4792. prefix: 'fas',
  4793. iconName: 'book-medical',
  4794. icon: [448, 512, [], "f7e6", "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-16q0-9.6-9.6-19.2c-3.2-16-3.2-60.8 0-73.6q9.6-4.8 9.6-19.2zM144 168a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8v48a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8zm236.8 280H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8z"]
  4795. };
  4796. var faBookOpen = {
  4797. prefix: 'fas',
  4798. iconName: 'book-open',
  4799. 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"]
  4800. };
  4801. var faBookReader = {
  4802. prefix: 'fas',
  4803. iconName: 'book-reader',
  4804. 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"]
  4805. };
  4806. var faBookmark = {
  4807. prefix: 'fas',
  4808. iconName: 'bookmark',
  4809. icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"]
  4810. };
  4811. var faBorderAll = {
  4812. prefix: 'fas',
  4813. iconName: 'border-all',
  4814. icon: [448, 512, [], "f84c", "M416 32H32A32 32 0 0 0 0 64v384a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32zm-32 64v128H256V96zm-192 0v128H64V96zM64 416V288h128v128zm192 0V288h128v128z"]
  4815. };
  4816. var faBorderNone = {
  4817. prefix: 'fas',
  4818. iconName: 'border-none',
  4819. icon: [448, 512, [], "f850", "M240 224h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-288 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM240 320h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-384h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM48 224H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  4820. };
  4821. var faBorderStyle = {
  4822. prefix: 'fas',
  4823. iconName: 'border-style',
  4824. icon: [448, 512, [], "f853", "M240 416h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm192 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H32A32 32 0 0 0 0 64v400a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V96h368a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  4825. };
  4826. var faBowlingBall = {
  4827. prefix: 'fas',
  4828. iconName: 'bowling-ball',
  4829. 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"]
  4830. };
  4831. var faBox = {
  4832. prefix: 'fas',
  4833. iconName: 'box',
  4834. 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"]
  4835. };
  4836. var faBoxOpen = {
  4837. prefix: 'fas',
  4838. iconName: 'box-open',
  4839. icon: [640, 512, [], "f49e", "M425.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.9zm212.6-112.2L586.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.1zM53.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.9z"]
  4840. };
  4841. var faBoxTissue = {
  4842. prefix: 'fas',
  4843. iconName: 'box-tissue',
  4844. icon: [512, 512, [], "f95b", "M383.88,287.82l64-192H338.47a70.2,70.2,0,0,1-66.59-48,70.21,70.21,0,0,0-66.6-48H63.88l64,288Zm-384,192a32,32,0,0,0,32,32h448a32,32,0,0,0,32-32v-64H-.12Zm480-256H438.94l-21.33,64h14.27a16,16,0,0,1,0,32h-352a16,16,0,1,1,0-32H95.09l-14.22-64h-49a32,32,0,0,0-32,32v128h512v-128A32,32,0,0,0,479.88,223.82Z"]
  4845. };
  4846. var faBoxes = {
  4847. prefix: 'fas',
  4848. iconName: 'boxes',
  4849. 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"]
  4850. };
  4851. var faBraille = {
  4852. prefix: 'fas',
  4853. iconName: 'braille',
  4854. 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"]
  4855. };
  4856. var faBrain = {
  4857. prefix: 'fas',
  4858. iconName: 'brain',
  4859. icon: [576, 512, [], "f5dc", "M208 0c-29.9 0-54.7 20.5-61.8 48.2-.8 0-1.4-.2-2.2-.2-35.3 0-64 28.7-64 64 0 4.8.6 9.5 1.7 14C52.5 138 32 166.6 32 200c0 12.6 3.2 24.3 8.3 34.9C16.3 248.7 0 274.3 0 304c0 33.3 20.4 61.9 49.4 73.9-.9 4.6-1.4 9.3-1.4 14.1 0 39.8 32.2 72 72 72 4.1 0 8.1-.5 12-1.2 9.6 28.5 36.2 49.2 68 49.2 39.8 0 72-32.2 72-72V64c0-35.3-28.7-64-64-64zm368 304c0-29.7-16.3-55.3-40.3-69.1 5.2-10.6 8.3-22.3 8.3-34.9 0-33.4-20.5-62-49.7-74 1-4.5 1.7-9.2 1.7-14 0-35.3-28.7-64-64-64-.8 0-1.5.2-2.2.2C422.7 20.5 397.9 0 368 0c-35.3 0-64 28.6-64 64v376c0 39.8 32.2 72 72 72 31.8 0 58.4-20.7 68-49.2 3.9.7 7.9 1.2 12 1.2 39.8 0 72-32.2 72-72 0-4.8-.5-9.5-1.4-14.1 29-12 49.4-40.6 49.4-73.9z"]
  4860. };
  4861. var faBreadSlice = {
  4862. prefix: 'fas',
  4863. iconName: 'bread-slice',
  4864. icon: [576, 512, [], "f7ec", "M288 0C108 0 0 93.4 0 169.14 0 199.44 24.24 224 64 224v256c0 17.67 16.12 32 36 32h376c19.88 0 36-14.33 36-32V224c39.76 0 64-24.56 64-54.86C576 93.4 468 0 288 0z"]
  4865. };
  4866. var faBriefcase = {
  4867. prefix: 'fas',
  4868. iconName: 'briefcase',
  4869. 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"]
  4870. };
  4871. var faBriefcaseMedical = {
  4872. prefix: 'fas',
  4873. iconName: 'briefcase-medical',
  4874. 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"]
  4875. };
  4876. var faBroadcastTower = {
  4877. prefix: 'fas',
  4878. iconName: 'broadcast-tower',
  4879. 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"]
  4880. };
  4881. var faBroom = {
  4882. prefix: 'fas',
  4883. iconName: 'broom',
  4884. 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"]
  4885. };
  4886. var faBrush = {
  4887. prefix: 'fas',
  4888. iconName: 'brush',
  4889. 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"]
  4890. };
  4891. var faBug = {
  4892. prefix: 'fas',
  4893. iconName: 'bug',
  4894. 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"]
  4895. };
  4896. var faBuilding = {
  4897. prefix: 'fas',
  4898. iconName: 'building',
  4899. 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"]
  4900. };
  4901. var faBullhorn = {
  4902. prefix: 'fas',
  4903. iconName: 'bullhorn',
  4904. 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"]
  4905. };
  4906. var faBullseye = {
  4907. prefix: 'fas',
  4908. iconName: 'bullseye',
  4909. 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"]
  4910. };
  4911. var faBurn = {
  4912. prefix: 'fas',
  4913. iconName: 'burn',
  4914. 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"]
  4915. };
  4916. var faBus = {
  4917. prefix: 'fas',
  4918. iconName: 'bus',
  4919. 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"]
  4920. };
  4921. var faBusAlt = {
  4922. prefix: 'fas',
  4923. iconName: 'bus-alt',
  4924. 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"]
  4925. };
  4926. var faBusinessTime = {
  4927. prefix: 'fas',
  4928. iconName: 'business-time',
  4929. 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"]
  4930. };
  4931. var faCalculator = {
  4932. prefix: 'fas',
  4933. iconName: 'calculator',
  4934. 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"]
  4935. };
  4936. var faCalendar = {
  4937. prefix: 'fas',
  4938. iconName: 'calendar',
  4939. 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"]
  4940. };
  4941. var faCalendarAlt = {
  4942. prefix: 'fas',
  4943. iconName: 'calendar-alt',
  4944. icon: [448, 512, [], "f073", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-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-12v-40zm0 128c0-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-12v-40zM192 268c0-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-12v-40zm0 128c0-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-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  4945. };
  4946. var faCalendarCheck = {
  4947. prefix: 'fas',
  4948. iconName: 'calendar-check',
  4949. 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"]
  4950. };
  4951. var faCalendarDay = {
  4952. prefix: 'fas',
  4953. iconName: 'calendar-day',
  4954. icon: [448, 512, [], "f783", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-96zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  4955. };
  4956. var faCalendarMinus = {
  4957. prefix: 'fas',
  4958. iconName: 'calendar-minus',
  4959. 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"]
  4960. };
  4961. var faCalendarPlus = {
  4962. prefix: 'fas',
  4963. iconName: 'calendar-plus',
  4964. 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"]
  4965. };
  4966. var faCalendarTimes = {
  4967. prefix: 'fas',
  4968. iconName: 'calendar-times',
  4969. 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"]
  4970. };
  4971. var faCalendarWeek = {
  4972. prefix: 'fas',
  4973. iconName: 'calendar-week',
  4974. icon: [448, 512, [], "f784", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h288c8.8 0 16 7.2 16 16v64c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-64zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  4975. };
  4976. var faCamera = {
  4977. prefix: 'fas',
  4978. iconName: 'camera',
  4979. 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"]
  4980. };
  4981. var faCameraRetro = {
  4982. prefix: 'fas',
  4983. iconName: 'camera-retro',
  4984. 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"]
  4985. };
  4986. var faCampground = {
  4987. prefix: 'fas',
  4988. iconName: 'campground',
  4989. 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"]
  4990. };
  4991. var faCandyCane = {
  4992. prefix: 'fas',
  4993. iconName: 'candy-cane',
  4994. icon: [512, 512, [], "f786", "M497.5 92C469.6 33.1 411.8 0 352.4 0c-27.9 0-56.2 7.3-81.8 22.6L243.1 39c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5l27.5-16.4c5.1-3.1 10.8-4.5 16.4-4.5 10.9 0 21.5 5.6 27.5 15.6 9.1 15.1 4.1 34.8-11 43.9L15.6 397.6c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5L428.6 301c71.7-42.9 104.6-133.5 68.9-209zm-177.7 13l-2.5 1.5L296.8 45c9.7-4.7 19.8-8.1 30.3-10.2l20.6 61.8c-9.8.8-19.4 3.3-27.9 8.4zM145.9 431.8l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm107.5-63.9l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zM364.3 302l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm20.4-197.3l46-46c8.4 6.5 16 14.1 22.6 22.6L407.6 127c-5.7-9.3-13.7-16.9-22.9-22.3zm82.1 107.8l-59.5-19.8c3.2-5.3 5.8-10.9 7.4-17.1 1.1-4.5 1.7-9.1 1.8-13.6l60.4 20.1c-2.1 10.4-5.5 20.6-10.1 30.4z"]
  4995. };
  4996. var faCannabis = {
  4997. prefix: 'fas',
  4998. iconName: 'cannabis',
  4999. 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"]
  5000. };
  5001. var faCapsules = {
  5002. prefix: 'fas',
  5003. iconName: 'capsules',
  5004. 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"]
  5005. };
  5006. var faCar = {
  5007. prefix: 'fas',
  5008. iconName: 'car',
  5009. 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"]
  5010. };
  5011. var faCarAlt = {
  5012. prefix: 'fas',
  5013. iconName: 'car-alt',
  5014. 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"]
  5015. };
  5016. var faCarBattery = {
  5017. prefix: 'fas',
  5018. iconName: 'car-battery',
  5019. 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"]
  5020. };
  5021. var faCarCrash = {
  5022. prefix: 'fas',
  5023. iconName: 'car-crash',
  5024. 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"]
  5025. };
  5026. var faCarSide = {
  5027. prefix: 'fas',
  5028. iconName: 'car-side',
  5029. 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"]
  5030. };
  5031. var faCaravan = {
  5032. prefix: 'fas',
  5033. iconName: 'caravan',
  5034. icon: [640, 512, [], "f8ff", "M416,208a16,16,0,1,0,16,16A16,16,0,0,0,416,208ZM624,320H576V160A160,160,0,0,0,416,0H64A64,64,0,0,0,0,64V320a64,64,0,0,0,64,64H96a96,96,0,0,0,192,0H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM192,432a48,48,0,1,1,48-48A48.05,48.05,0,0,1,192,432Zm64-240a32,32,0,0,1-32,32H96a32,32,0,0,1-32-32V128A32,32,0,0,1,96,96H224a32,32,0,0,1,32,32ZM448,320H320V128a32,32,0,0,1,32-32h64a32,32,0,0,1,32,32Z"]
  5035. };
  5036. var faCaretDown = {
  5037. prefix: 'fas',
  5038. iconName: 'caret-down',
  5039. 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"]
  5040. };
  5041. var faCaretLeft = {
  5042. prefix: 'fas',
  5043. iconName: 'caret-left',
  5044. 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"]
  5045. };
  5046. var faCaretRight = {
  5047. prefix: 'fas',
  5048. iconName: 'caret-right',
  5049. 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"]
  5050. };
  5051. var faCaretSquareDown = {
  5052. prefix: 'fas',
  5053. iconName: 'caret-square-down',
  5054. 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"]
  5055. };
  5056. var faCaretSquareLeft = {
  5057. prefix: 'fas',
  5058. iconName: 'caret-square-left',
  5059. 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"]
  5060. };
  5061. var faCaretSquareRight = {
  5062. prefix: 'fas',
  5063. iconName: 'caret-square-right',
  5064. 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"]
  5065. };
  5066. var faCaretSquareUp = {
  5067. prefix: 'fas',
  5068. iconName: 'caret-square-up',
  5069. 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"]
  5070. };
  5071. var faCaretUp = {
  5072. prefix: 'fas',
  5073. iconName: 'caret-up',
  5074. 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"]
  5075. };
  5076. var faCarrot = {
  5077. prefix: 'fas',
  5078. iconName: 'carrot',
  5079. icon: [512, 512, [], "f787", "M298.2 156.6c-52.7-25.7-114.5-10.5-150.2 32.8l55.2 55.2c6.3 6.3 6.3 16.4 0 22.6-3.1 3.1-7.2 4.7-11.3 4.7s-8.2-1.6-11.3-4.7L130.4 217 2.3 479.7c-2.9 6-3.1 13.3 0 19.7 5.4 11.1 18.9 15.7 30 10.3l133.6-65.2-49.2-49.2c-6.3-6.2-6.3-16.4 0-22.6 6.3-6.2 16.4-6.2 22.6 0l57 57 102-49.8c24-11.7 44.5-31.3 57.1-57.1 30.1-61.7 4.5-136.1-57.2-166.2zm92.1-34.9C409.8 81 399.7 32.9 360 0c-50.3 41.7-52.5 107.5-7.9 151.9l8 8c44.4 44.6 110.3 42.4 151.9-7.9-32.9-39.7-81-49.8-121.7-30.3z"]
  5080. };
  5081. var faCartArrowDown = {
  5082. prefix: 'fas',
  5083. iconName: 'cart-arrow-down',
  5084. 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"]
  5085. };
  5086. var faCartPlus = {
  5087. prefix: 'fas',
  5088. iconName: 'cart-plus',
  5089. 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"]
  5090. };
  5091. var faCashRegister = {
  5092. prefix: 'fas',
  5093. iconName: 'cash-register',
  5094. icon: [512, 512, [], "f788", "M511.1 378.8l-26.7-160c-2.6-15.4-15.9-26.7-31.6-26.7H208v-64h96c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96v64H59.1c-15.6 0-29 11.3-31.6 26.7L.8 378.7c-.6 3.5-.9 7-.9 10.5V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-90.7c.1-3.5-.2-7-.8-10.5zM280 248c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16zm-32 64h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16zm-32-80c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16zM80 80V48h192v32H80zm40 200h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16zm16 64v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16zm216 112c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16zm24-112c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16zm48-80c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16z"]
  5095. };
  5096. var faCat = {
  5097. prefix: 'fas',
  5098. iconName: 'cat',
  5099. 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"]
  5100. };
  5101. var faCertificate = {
  5102. prefix: 'fas',
  5103. iconName: 'certificate',
  5104. 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"]
  5105. };
  5106. var faChair = {
  5107. prefix: 'fas',
  5108. iconName: 'chair',
  5109. icon: [448, 512, [], "f6c0", "M112 128c0-29.5 16.2-55 40-68.9V256h48V48h48v208h48V59.1c23.8 13.9 40 39.4 40 68.9v128h48V128C384 57.3 326.7 0 256 0h-64C121.3 0 64 57.3 64 128v128h48zm334.3 213.9l-10.7-32c-4.4-13.1-16.6-21.9-30.4-21.9H42.7c-13.8 0-26 8.8-30.4 21.9l-10.7 32C-5.2 362.6 10.2 384 32 384v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384h256v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384c21.8 0 37.2-21.4 30.3-42.1z"]
  5110. };
  5111. var faChalkboard = {
  5112. prefix: 'fas',
  5113. iconName: 'chalkboard',
  5114. 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"]
  5115. };
  5116. var faChalkboardTeacher = {
  5117. prefix: 'fas',
  5118. iconName: 'chalkboard-teacher',
  5119. 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"]
  5120. };
  5121. var faChargingStation = {
  5122. prefix: 'fas',
  5123. iconName: 'charging-station',
  5124. 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"]
  5125. };
  5126. var faChartArea = {
  5127. prefix: 'fas',
  5128. iconName: 'chart-area',
  5129. 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"]
  5130. };
  5131. var faChartBar = {
  5132. prefix: 'fas',
  5133. iconName: 'chart-bar',
  5134. 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"]
  5135. };
  5136. var faChartLine = {
  5137. prefix: 'fas',
  5138. iconName: 'chart-line',
  5139. 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"]
  5140. };
  5141. var faChartPie = {
  5142. prefix: 'fas',
  5143. iconName: 'chart-pie',
  5144. 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"]
  5145. };
  5146. var faCheck = {
  5147. prefix: 'fas',
  5148. iconName: 'check',
  5149. 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"]
  5150. };
  5151. var faCheckCircle = {
  5152. prefix: 'fas',
  5153. iconName: 'check-circle',
  5154. 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"]
  5155. };
  5156. var faCheckDouble = {
  5157. prefix: 'fas',
  5158. iconName: 'check-double',
  5159. icon: [512, 512, [], "f560", "M505 174.8l-39.6-39.6c-9.4-9.4-24.6-9.4-33.9 0L192 374.7 80.6 263.2c-9.4-9.4-24.6-9.4-33.9 0L7 302.9c-9.4 9.4-9.4 24.6 0 34L175 505c9.4 9.4 24.6 9.4 33.9 0l296-296.2c9.4-9.5 9.4-24.7.1-34zm-324.3 106c6.2 6.3 16.4 6.3 22.6 0l208-208.2c6.2-6.3 6.2-16.4 0-22.6L366.1 4.7c-6.2-6.3-16.4-6.3-22.6 0L192 156.2l-55.4-55.5c-6.2-6.3-16.4-6.3-22.6 0L68.7 146c-6.2 6.3-6.2 16.4 0 22.6l112 112.2z"]
  5160. };
  5161. var faCheckSquare = {
  5162. prefix: 'fas',
  5163. iconName: 'check-square',
  5164. 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"]
  5165. };
  5166. var faCheese = {
  5167. prefix: 'fas',
  5168. iconName: 'cheese',
  5169. icon: [512, 512, [], "f7ef", "M0 288v160a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V288zM299.83 32a32 32 0 0 0-21.13 7L0 256h512c0-119.89-94-217.8-212.17-224z"]
  5170. };
  5171. var faChess = {
  5172. prefix: 'fas',
  5173. iconName: 'chess',
  5174. icon: [512, 512, [], "f439", "M74 208H64a16 16 0 0 0-16 16v16a16 16 0 0 0 16 16h15.94A535.78 535.78 0 0 1 64 384h128a535.78 535.78 0 0 1-15.94-128H192a16 16 0 0 0 16-16v-16a16 16 0 0 0-16-16h-10l33.89-90.38a16 16 0 0 0-15-21.62H144V64h24a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8h-24V8a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v24H88a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v32H55.09a16 16 0 0 0-15 21.62zm173.16 251.58L224 448v-16a16 16 0 0 0-16-16H48a16 16 0 0 0-16 16v16L8.85 459.58A16 16 0 0 0 0 473.89V496a16 16 0 0 0 16 16h224a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31zm92.77-157.78l-3.29 82.2h126.72l-3.29-82.21 24.6-20.79A32 32 0 0 0 496 256.54V198a6 6 0 0 0-6-6h-26.38a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H373.1a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H310a6 6 0 0 0-6 6v58.6a32 32 0 0 0 11.36 24.4zM384 304a16 16 0 0 1 32 0v32h-32zm119.16 155.58L480 448v-16a16 16 0 0 0-16-16H336a16 16 0 0 0-16 16v16l-23.15 11.58a16 16 0 0 0-8.85 14.31V496a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31z"]
  5175. };
  5176. var faChessBishop = {
  5177. prefix: 'fas',
  5178. iconName: 'chess-bishop',
  5179. icon: [320, 512, [], "f43a", "M8 287.88c0 51.64 22.14 73.83 56 84.6V416h192v-43.52c33.86-10.77 56-33 56-84.6 0-30.61-10.73-67.1-26.69-102.56L185 285.65a8 8 0 0 1-11.31 0l-11.31-11.31a8 8 0 0 1 0-11.31L270.27 155.1c-20.8-37.91-46.47-72.1-70.87-92.59C213.4 59.09 224 47.05 224 32a32 32 0 0 0-32-32h-64a32 32 0 0 0-32 32c0 15 10.6 27.09 24.6 30.51C67.81 106.8 8 214.5 8 287.88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5180. };
  5181. var faChessBoard = {
  5182. prefix: 'fas',
  5183. iconName: 'chess-board',
  5184. icon: [512, 512, [], "f43c", "M255.9.2h-64v64h64zM0 64.17v64h64v-64zM128 .2H64v64h64zm64 255.9v64h64v-64zM0 192.12v64h64v-64zM383.85.2h-64v64h64zm128 0h-64v64h64zM128 256.1H64v64h64zM511.8 448v-64h-64v64zm0-128v-64h-64v64zM383.85 512h64v-64h-64zm128-319.88v-64h-64v64zM128 512h64v-64h-64zM0 512h64v-64H0zm255.9 0h64v-64h-64zM0 320.07v64h64v-64zm319.88-191.92v-64h-64v64zm-64 128h64v-64h-64zm-64 128v64h64v-64zm128-64h64v-64h-64zm0-127.95h64v-64h-64zm0 191.93v64h64v-64zM64 384.05v64h64v-64zm128-255.9v-64h-64v64zm191.92 255.9h64v-64h-64zm-128-191.93v-64h-64v64zm128-127.95v64h64v-64zm-128 255.9v64h64v-64zm-64-127.95H128v64h64zm191.92 64h64v-64h-64zM128 128.15H64v64h64zm0 191.92v64h64v-64z"]
  5185. };
  5186. var faChessKing = {
  5187. prefix: 'fas',
  5188. iconName: 'chess-king',
  5189. icon: [448, 512, [], "f43f", "M400 448H48a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm16-288H256v-48h40a8 8 0 0 0 8-8V56a8 8 0 0 0-8-8h-40V8a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v40h-40a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h40v48H32a32 32 0 0 0-30.52 41.54L74.56 416h298.88l73.08-214.46A32 32 0 0 0 416 160z"]
  5190. };
  5191. var faChessKnight = {
  5192. prefix: 'fas',
  5193. iconName: 'chess-knight',
  5194. icon: [384, 512, [], "f441", "M19 272.47l40.63 18.06a32 32 0 0 0 24.88.47l12.78-5.12a32 32 0 0 0 18.76-20.5l9.22-30.65a24 24 0 0 1 12.55-15.65L159.94 208v50.33a48 48 0 0 1-26.53 42.94l-57.22 28.65A80 80 0 0 0 32 401.48V416h319.86V224c0-106-85.92-192-191.92-192H12A12 12 0 0 0 0 44a16.9 16.9 0 0 0 1.79 7.58L16 80l-9 9a24 24 0 0 0-7 17v137.21a32 32 0 0 0 19 29.26zM52 128a20 20 0 1 1-20 20 20 20 0 0 1 20-20zm316 320H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5195. };
  5196. var faChessPawn = {
  5197. prefix: 'fas',
  5198. iconName: 'chess-pawn',
  5199. icon: [320, 512, [], "f443", "M105.1 224H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h16v5.49c0 44-4.14 86.6-24 122.51h176c-19.89-35.91-24-78.51-24-122.51V288h16a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-25.1c29.39-18.38 49.1-50.78 49.1-88a104 104 0 0 0-208 0c0 37.22 19.71 69.62 49.1 88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5200. };
  5201. var faChessQueen = {
  5202. prefix: 'fas',
  5203. iconName: 'chess-queen',
  5204. icon: [512, 512, [], "f445", "M256 112a56 56 0 1 0-56-56 56 56 0 0 0 56 56zm176 336H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm72.87-263.84l-28.51-15.92c-7.44-5-16.91-2.46-22.29 4.68a47.59 47.59 0 0 1-47.23 18.23C383.7 186.86 368 164.93 368 141.4a13.4 13.4 0 0 0-13.4-13.4h-38.77c-6 0-11.61 4-12.86 9.91a48 48 0 0 1-93.94 0c-1.25-5.92-6.82-9.91-12.86-9.91H157.4a13.4 13.4 0 0 0-13.4 13.4c0 25.69-19 48.75-44.67 50.49a47.5 47.5 0 0 1-41.54-19.15c-5.28-7.09-14.73-9.45-22.09-4.54l-28.57 16a16 16 0 0 0-5.44 20.47L104.24 416h303.52l102.55-211.37a16 16 0 0 0-5.44-20.47z"]
  5205. };
  5206. var faChessRook = {
  5207. prefix: 'fas',
  5208. iconName: 'chess-rook',
  5209. icon: [384, 512, [], "f447", "M368 32h-56a16 16 0 0 0-16 16v48h-48V48a16 16 0 0 0-16-16h-80a16 16 0 0 0-16 16v48H88.1V48a16 16 0 0 0-16-16H16A16 16 0 0 0 0 48v176l64 32c0 48.33-1.54 95-13.21 160h282.42C321.54 351 320 303.72 320 256l64-32V48a16 16 0 0 0-16-16zM224 320h-64v-64a32 32 0 0 1 64 0zm144 128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5210. };
  5211. var faChevronCircleDown = {
  5212. prefix: 'fas',
  5213. iconName: 'chevron-circle-down',
  5214. 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"]
  5215. };
  5216. var faChevronCircleLeft = {
  5217. prefix: 'fas',
  5218. iconName: 'chevron-circle-left',
  5219. 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"]
  5220. };
  5221. var faChevronCircleRight = {
  5222. prefix: 'fas',
  5223. iconName: 'chevron-circle-right',
  5224. 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"]
  5225. };
  5226. var faChevronCircleUp = {
  5227. prefix: 'fas',
  5228. iconName: 'chevron-circle-up',
  5229. 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"]
  5230. };
  5231. var faChevronDown = {
  5232. prefix: 'fas',
  5233. iconName: 'chevron-down',
  5234. 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"]
  5235. };
  5236. var faChevronLeft = {
  5237. prefix: 'fas',
  5238. iconName: 'chevron-left',
  5239. 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"]
  5240. };
  5241. var faChevronRight = {
  5242. prefix: 'fas',
  5243. iconName: 'chevron-right',
  5244. 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"]
  5245. };
  5246. var faChevronUp = {
  5247. prefix: 'fas',
  5248. iconName: 'chevron-up',
  5249. 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"]
  5250. };
  5251. var faChild = {
  5252. prefix: 'fas',
  5253. iconName: 'child',
  5254. 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"]
  5255. };
  5256. var faChurch = {
  5257. prefix: 'fas',
  5258. iconName: 'church',
  5259. 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"]
  5260. };
  5261. var faCircle = {
  5262. prefix: 'fas',
  5263. iconName: 'circle',
  5264. icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]
  5265. };
  5266. var faCircleNotch = {
  5267. prefix: 'fas',
  5268. iconName: 'circle-notch',
  5269. 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"]
  5270. };
  5271. var faCity = {
  5272. prefix: 'fas',
  5273. iconName: 'city',
  5274. 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"]
  5275. };
  5276. var faClinicMedical = {
  5277. prefix: 'fas',
  5278. iconName: 'clinic-medical',
  5279. icon: [576, 512, [], "f7f2", "M288 115L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2zm96 261a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8zm186.69-139.72l-255.94-226a39.85 39.85 0 0 0-53.45 0l-256 226a16 16 0 0 0-1.21 22.6L25.5 282.7a16 16 0 0 0 22.6 1.21L277.42 81.63a16 16 0 0 1 21.17 0L527.91 283.9a16 16 0 0 0 22.6-1.21l21.4-23.82a16 16 0 0 0-1.22-22.59z"]
  5280. };
  5281. var faClipboard = {
  5282. prefix: 'fas',
  5283. iconName: 'clipboard',
  5284. 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"]
  5285. };
  5286. var faClipboardCheck = {
  5287. prefix: 'fas',
  5288. iconName: 'clipboard-check',
  5289. 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"]
  5290. };
  5291. var faClipboardList = {
  5292. prefix: 'fas',
  5293. iconName: 'clipboard-list',
  5294. 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"]
  5295. };
  5296. var faClock = {
  5297. prefix: 'fas',
  5298. iconName: 'clock',
  5299. icon: [512, 512, [], "f017", "M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"]
  5300. };
  5301. var faClone = {
  5302. prefix: 'fas',
  5303. iconName: 'clone',
  5304. 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"]
  5305. };
  5306. var faClosedCaptioning = {
  5307. prefix: 'fas',
  5308. iconName: 'closed-captioning',
  5309. 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"]
  5310. };
  5311. var faCloud = {
  5312. prefix: 'fas',
  5313. iconName: 'cloud',
  5314. 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"]
  5315. };
  5316. var faCloudDownloadAlt = {
  5317. prefix: 'fas',
  5318. iconName: 'cloud-download-alt',
  5319. 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"]
  5320. };
  5321. var faCloudMeatball = {
  5322. prefix: 'fas',
  5323. iconName: 'cloud-meatball',
  5324. icon: [512, 512, [], "f73b", "M48 352c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm416 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-119 11.1c4.6-14.5 1.6-30.8-9.8-42.3-11.5-11.5-27.8-14.4-42.3-9.9-7-13.5-20.7-23-36.9-23s-29.9 9.5-36.9 23c-14.5-4.6-30.8-1.6-42.3 9.9-11.5 11.5-14.4 27.8-9.9 42.3-13.5 7-23 20.7-23 36.9s9.5 29.9 23 36.9c-4.6 14.5-1.6 30.8 9.9 42.3 8.2 8.2 18.9 12.3 29.7 12.3 4.3 0 8.5-1.1 12.6-2.5 7 13.5 20.7 23 36.9 23s29.9-9.5 36.9-23c4.1 1.3 8.3 2.5 12.6 2.5 10.8 0 21.5-4.1 29.7-12.3 11.5-11.5 14.4-27.8 9.8-42.3 13.5-7 23-20.7 23-36.9s-9.5-29.9-23-36.9zM512 224c0-53-43-96-96-96-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h43.4c3.6-8 8.4-15.4 14.8-21.8 13.5-13.5 31.5-21.1 50.8-21.3 13.5-13.2 31.7-20.9 51-20.9s37.5 7.7 51 20.9c19.3.2 37.3 7.8 50.8 21.3 6.4 6.4 11.3 13.8 14.8 21.8H416c53 0 96-43 96-96z"]
  5325. };
  5326. var faCloudMoon = {
  5327. prefix: 'fas',
  5328. iconName: 'cloud-moon',
  5329. icon: [576, 512, [], "f6c3", "M342.8 352.7c5.7-9.6 9.2-20.7 9.2-32.7 0-35.3-28.7-64-64-64-17.2 0-32.8 6.9-44.3 17.9-16.3-29.6-47.5-49.9-83.7-49.9-53 0-96 43-96 96 0 2 .5 3.8.6 5.7C27.1 338.8 0 374.1 0 416c0 53 43 96 96 96h240c44.2 0 80-35.8 80-80 0-41.9-32.3-75.8-73.2-79.3zm222.5-54.3c-93.1 17.7-178.5-53.7-178.5-147.7 0-54.2 29-104 76.1-130.8 7.3-4.1 5.4-15.1-2.8-16.7C448.4 1.1 436.7 0 425 0 319.1 0 233.1 85.9 233.1 192c0 8.5.7 16.8 1.8 25 5.9 4.3 11.6 8.9 16.7 14.2 11.4-4.7 23.7-7.2 36.4-7.2 52.9 0 96 43.1 96 96 0 3.6-.2 7.2-.6 10.7 23.6 10.8 42.4 29.5 53.5 52.6 54.4-3.4 103.7-29.3 137.1-70.4 5.3-6.5-.5-16.1-8.7-14.5z"]
  5330. };
  5331. var faCloudMoonRain = {
  5332. prefix: 'fas',
  5333. iconName: 'cloud-moon-rain',
  5334. icon: [576, 512, [], "f73c", "M350.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C27.6 232.9 0 265.2 0 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm217.4-1.7c-70.4 13.3-135-40.3-135-110.8 0-40.6 21.9-78 57.5-98.1 5.5-3.1 4.1-11.4-2.1-12.5C479.6.8 470.7 0 461.8 0c-77.9 0-141.1 61.2-144.4 137.9 26.7 11.9 48.2 33.8 58.9 61.7 37.1 14.3 64 47.4 70.2 86.8 5.1.5 10 1.5 15.2 1.5 44.7 0 85.6-20.2 112.6-53.3 4.2-4.8-.2-12-6.4-10.8zM364.5 418.1c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
  5335. };
  5336. var faCloudRain = {
  5337. prefix: 'fas',
  5338. iconName: 'cloud-rain',
  5339. icon: [512, 512, [], "f73d", "M416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96zM88 374.2c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0z"]
  5340. };
  5341. var faCloudShowersHeavy = {
  5342. prefix: 'fas',
  5343. iconName: 'cloud-showers-heavy',
  5344. icon: [512, 512, [], "f740", "M183.9 370.1c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-192 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm384 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zM416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.2 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96z"]
  5345. };
  5346. var faCloudSun = {
  5347. prefix: 'fas',
  5348. iconName: 'cloud-sun',
  5349. icon: [640, 512, [], "f6c4", "M575.2 325.7c.2-1.9.8-3.7.8-5.6 0-35.3-28.7-64-64-64-12.6 0-24.2 3.8-34.1 10-17.6-38.8-56.5-66-101.9-66-61.8 0-112 50.1-112 112 0 3 .7 5.8.9 8.7-49.6 3.7-88.9 44.7-88.9 95.3 0 53 43 96 96 96h272c53 0 96-43 96-96 0-42.1-27.2-77.4-64.8-90.4zm-430.4-22.6c-43.7-43.7-43.7-114.7 0-158.3 43.7-43.7 114.7-43.7 158.4 0 9.7 9.7 16.9 20.9 22.3 32.7 9.8-3.7 20.1-6 30.7-7.5L386 81.1c4-11.9-7.3-23.1-19.2-19.2L279 91.2 237.5 8.4C232-2.8 216-2.8 210.4 8.4L169 91.2 81.1 61.9C69.3 58 58 69.3 61.9 81.1l29.3 87.8-82.8 41.5c-11.2 5.6-11.2 21.5 0 27.1l82.8 41.4-29.3 87.8c-4 11.9 7.3 23.1 19.2 19.2l76.1-25.3c6.1-12.4 14-23.7 23.6-33.5-13.1-5.4-25.4-13.4-36-24zm-4.8-79.2c0 40.8 29.3 74.8 67.9 82.3 8-4.7 16.3-8.8 25.2-11.7 5.4-44.3 31-82.5 67.4-105C287.3 160.4 258 140 224 140c-46.3 0-84 37.6-84 83.9z"]
  5350. };
  5351. var faCloudSunRain = {
  5352. prefix: 'fas',
  5353. iconName: 'cloud-sun-rain',
  5354. icon: [576, 512, [], "f743", "M510.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C187.6 233 160 265.2 160 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm-386.4 34.4c-37.4-37.4-37.4-98.3 0-135.8 34.6-34.6 89.1-36.8 126.7-7.4 20-12.9 43.6-20.7 69.2-20.7.7 0 1.3.2 2 .2l8.9-26.7c3.4-10.2-6.3-19.8-16.5-16.4l-75.3 25.1-35.5-71c-4.8-9.6-18.5-9.6-23.3 0l-35.5 71-75.3-25.1c-10.2-3.4-19.8 6.3-16.4 16.5l25.1 75.3-71 35.5c-9.6 4.8-9.6 18.5 0 23.3l71 35.5-25.1 75.3c-3.4 10.2 6.3 19.8 16.5 16.5l59.2-19.7c-.2-2.4-.7-4.7-.7-7.2 0-12.5 2.3-24.5 6.2-35.9-3.6-2.7-7.1-5.2-10.2-8.3zm69.8-58c4.3-24.5 15.8-46.4 31.9-64-9.8-6.2-21.4-9.9-33.8-9.9-35.3 0-64 28.7-64 64 0 18.7 8.2 35.4 21.1 47.1 11.3-15.9 26.6-28.9 44.8-37.2zm330.6 216.2c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
  5355. };
  5356. var faCloudUploadAlt = {
  5357. prefix: 'fas',
  5358. iconName: 'cloud-upload-alt',
  5359. 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"]
  5360. };
  5361. var faCocktail = {
  5362. prefix: 'fas',
  5363. iconName: 'cocktail',
  5364. 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"]
  5365. };
  5366. var faCode = {
  5367. prefix: 'fas',
  5368. iconName: 'code',
  5369. 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"]
  5370. };
  5371. var faCodeBranch = {
  5372. prefix: 'fas',
  5373. iconName: 'code-branch',
  5374. 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"]
  5375. };
  5376. var faCoffee = {
  5377. prefix: 'fas',
  5378. iconName: 'coffee',
  5379. 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"]
  5380. };
  5381. var faCog = {
  5382. prefix: 'fas',
  5383. iconName: 'cog',
  5384. icon: [512, 512, [], "f013", "M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  5385. };
  5386. var faCogs = {
  5387. prefix: 'fas',
  5388. iconName: 'cogs',
  5389. 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"]
  5390. };
  5391. var faCoins = {
  5392. prefix: 'fas',
  5393. iconName: 'coins',
  5394. 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"]
  5395. };
  5396. var faColumns = {
  5397. prefix: 'fas',
  5398. iconName: 'columns',
  5399. 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"]
  5400. };
  5401. var faComment = {
  5402. prefix: 'fas',
  5403. iconName: 'comment',
  5404. 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"]
  5405. };
  5406. var faCommentAlt = {
  5407. prefix: 'fas',
  5408. iconName: 'comment-alt',
  5409. 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"]
  5410. };
  5411. var faCommentDollar = {
  5412. prefix: 'fas',
  5413. iconName: 'comment-dollar',
  5414. 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"]
  5415. };
  5416. var faCommentDots = {
  5417. prefix: 'fas',
  5418. iconName: 'comment-dots',
  5419. 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"]
  5420. };
  5421. var faCommentMedical = {
  5422. prefix: 'fas',
  5423. iconName: 'comment-medical',
  5424. icon: [512, 512, [], "f7f5", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95 57 130.74C44.46 421.05 2.7 466 2.2 466.5A8 8 0 0 0 8 480c66.26 0 116-31.75 140.6-51.38A304.66 304.66 0 0 0 256 448c141.39 0 256-93.12 256-208S397.39 32 256 32zm96 232a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8z"]
  5425. };
  5426. var faCommentSlash = {
  5427. prefix: 'fas',
  5428. iconName: 'comment-slash',
  5429. 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"]
  5430. };
  5431. var faComments = {
  5432. prefix: 'fas',
  5433. iconName: 'comments',
  5434. 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"]
  5435. };
  5436. var faCommentsDollar = {
  5437. prefix: 'fas',
  5438. iconName: 'comments-dollar',
  5439. 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"]
  5440. };
  5441. var faCompactDisc = {
  5442. prefix: 'fas',
  5443. iconName: 'compact-disc',
  5444. 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"]
  5445. };
  5446. var faCompass = {
  5447. prefix: 'fas',
  5448. iconName: 'compass',
  5449. 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"]
  5450. };
  5451. var faCompress = {
  5452. prefix: 'fas',
  5453. iconName: 'compress',
  5454. 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"]
  5455. };
  5456. var faCompressAlt = {
  5457. prefix: 'fas',
  5458. iconName: 'compress-alt',
  5459. icon: [448, 512, [], "f422", "M4.686 427.314L104 328l-32.922-31.029C55.958 281.851 66.666 256 88.048 256h112C213.303 256 224 266.745 224 280v112c0 21.382-25.803 32.09-40.922 16.971L152 376l-99.314 99.314c-6.248 6.248-16.379 6.248-22.627 0L4.686 449.941c-6.248-6.248-6.248-16.379 0-22.627zM443.314 84.686L344 184l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C234.697 256 224 245.255 224 232V120c0-21.382 25.803-32.09 40.922-16.971L296 136l99.314-99.314c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.248 6.248 6.248 16.379 0 22.627z"]
  5460. };
  5461. var faCompressArrowsAlt = {
  5462. prefix: 'fas',
  5463. iconName: 'compress-arrows-alt',
  5464. icon: [512, 512, [], "f78c", "M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z"]
  5465. };
  5466. var faConciergeBell = {
  5467. prefix: 'fas',
  5468. iconName: 'concierge-bell',
  5469. 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"]
  5470. };
  5471. var faCookie = {
  5472. prefix: 'fas',
  5473. iconName: 'cookie',
  5474. 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"]
  5475. };
  5476. var faCookieBite = {
  5477. prefix: 'fas',
  5478. iconName: 'cookie-bite',
  5479. 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"]
  5480. };
  5481. var faCopy = {
  5482. prefix: 'fas',
  5483. iconName: 'copy',
  5484. 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"]
  5485. };
  5486. var faCopyright = {
  5487. prefix: 'fas',
  5488. iconName: 'copyright',
  5489. 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"]
  5490. };
  5491. var faCouch = {
  5492. prefix: 'fas',
  5493. iconName: 'couch',
  5494. 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"]
  5495. };
  5496. var faCreditCard = {
  5497. prefix: 'fas',
  5498. iconName: 'credit-card',
  5499. 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"]
  5500. };
  5501. var faCrop = {
  5502. prefix: 'fas',
  5503. iconName: 'crop',
  5504. 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"]
  5505. };
  5506. var faCropAlt = {
  5507. prefix: 'fas',
  5508. iconName: 'crop-alt',
  5509. 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"]
  5510. };
  5511. var faCross = {
  5512. prefix: 'fas',
  5513. iconName: 'cross',
  5514. 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"]
  5515. };
  5516. var faCrosshairs = {
  5517. prefix: 'fas',
  5518. iconName: 'crosshairs',
  5519. 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"]
  5520. };
  5521. var faCrow = {
  5522. prefix: 'fas',
  5523. iconName: 'crow',
  5524. 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"]
  5525. };
  5526. var faCrown = {
  5527. prefix: 'fas',
  5528. iconName: 'crown',
  5529. 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"]
  5530. };
  5531. var faCrutch = {
  5532. prefix: 'fas',
  5533. iconName: 'crutch',
  5534. icon: [512, 512, [], "f7f7", "M507.31 185.71l-181-181a16 16 0 0 0-22.62 0L281 27.31a16 16 0 0 0 0 22.63l181 181a16 16 0 0 0 22.63 0l22.62-22.63a16 16 0 0 0 .06-22.6zm-179.54 66.41l-67.89-67.89 55.1-55.1-45.25-45.25-109.67 109.67a96.08 96.08 0 0 0-25.67 46.29L106.65 360.1l-102 102a16 16 0 0 0 0 22.63l22.62 22.62a16 16 0 0 0 22.63 0l102-102 120.25-27.75a95.88 95.88 0 0 0 46.29-25.65l109.68-109.68L382.87 197zm-54.57 54.57a32 32 0 0 1-15.45 8.54l-79.3 18.32 18.3-79.3a32.22 32.22 0 0 1 8.56-15.45l9.31-9.31 67.89 67.89z"]
  5535. };
  5536. var faCube = {
  5537. prefix: 'fas',
  5538. iconName: 'cube',
  5539. 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"]
  5540. };
  5541. var faCubes = {
  5542. prefix: 'fas',
  5543. iconName: 'cubes',
  5544. 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"]
  5545. };
  5546. var faCut = {
  5547. prefix: 'fas',
  5548. iconName: 'cut',
  5549. 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"]
  5550. };
  5551. var faDatabase = {
  5552. prefix: 'fas',
  5553. iconName: 'database',
  5554. 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"]
  5555. };
  5556. var faDeaf = {
  5557. prefix: 'fas',
  5558. iconName: 'deaf',
  5559. 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"]
  5560. };
  5561. var faDemocrat = {
  5562. prefix: 'fas',
  5563. iconName: 'democrat',
  5564. icon: [640, 512, [], "f747", "M637.3 256.9l-19.6-29.4c-28.2-42.3-75.3-67.5-126.1-67.5H256l-81.2-81.2c20.1-20.1 22.6-51.1 7.5-73.9-3.4-5.2-10.8-5.9-15.2-1.5l-41.8 41.8L82.4 2.4c-3.6-3.6-9.6-3-12.4 1.2-12.3 18.6-10.3 44 6.1 60.4 3.3 3.3 7.3 5.3 11.3 7.5-2.2 1.7-4.7 3.1-6.4 5.4L6.4 176.2c-7.3 9.7-8.4 22.7-3 33.5l14.3 28.6c5.4 10.8 16.5 17.7 28.6 17.7h31c8.5 0 16.6-3.4 22.6-9.4L138 212l54 108h352v-77.8c16.2 12.2 18.3 17.6 40.1 50.3 4.9 7.4 14.8 9.3 22.2 4.4l26.6-17.7c7.3-5 9.3-14.9 4.4-22.3zm-341.1-13.6l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L256 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L368 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L480 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zM192 496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80h160v80c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V352H192v144z"]
  5565. };
  5566. var faDesktop = {
  5567. prefix: 'fas',
  5568. iconName: 'desktop',
  5569. 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"]
  5570. };
  5571. var faDharmachakra = {
  5572. prefix: 'fas',
  5573. iconName: 'dharmachakra',
  5574. 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"]
  5575. };
  5576. var faDiagnoses = {
  5577. prefix: 'fas',
  5578. iconName: 'diagnoses',
  5579. 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"]
  5580. };
  5581. var faDice = {
  5582. prefix: 'fas',
  5583. iconName: 'dice',
  5584. 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"]
  5585. };
  5586. var faDiceD20 = {
  5587. prefix: 'fas',
  5588. iconName: 'dice-d20',
  5589. 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"]
  5590. };
  5591. var faDiceD6 = {
  5592. prefix: 'fas',
  5593. iconName: 'dice-d6',
  5594. 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"]
  5595. };
  5596. var faDiceFive = {
  5597. prefix: 'fas',
  5598. iconName: 'dice-five',
  5599. 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"]
  5600. };
  5601. var faDiceFour = {
  5602. prefix: 'fas',
  5603. iconName: 'dice-four',
  5604. 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"]
  5605. };
  5606. var faDiceOne = {
  5607. prefix: 'fas',
  5608. iconName: 'dice-one',
  5609. 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"]
  5610. };
  5611. var faDiceSix = {
  5612. prefix: 'fas',
  5613. iconName: 'dice-six',
  5614. 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"]
  5615. };
  5616. var faDiceThree = {
  5617. prefix: 'fas',
  5618. iconName: 'dice-three',
  5619. 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"]
  5620. };
  5621. var faDiceTwo = {
  5622. prefix: 'fas',
  5623. iconName: 'dice-two',
  5624. 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"]
  5625. };
  5626. var faDigitalTachograph = {
  5627. prefix: 'fas',
  5628. iconName: 'digital-tachograph',
  5629. 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"]
  5630. };
  5631. var faDirections = {
  5632. prefix: 'fas',
  5633. iconName: 'directions',
  5634. 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"]
  5635. };
  5636. var faDisease = {
  5637. prefix: 'fas',
  5638. iconName: 'disease',
  5639. icon: [512, 512, [], "f7fa", "M472.29 195.9l-67.06-23c-19.28-6.6-33.54-20.92-38.14-38.31l-16-60.45c-11.58-43.77-76.57-57.13-110-22.62L195 99.24c-13.26 13.71-33.54 20.93-54.2 19.31l-71.9-5.62c-52-4.07-86.93 44.89-59 82.84l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24l-28.43 57C4 396.67 47.46 440.29 98.11 429.23l70-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101 7.57 104.45-37.22l4.7-61.86c1.35-17.8 12.8-33.87 30.63-43l62-31.74c44.84-22.96 39.55-80.17-8.99-96.79zM160 256a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm128 96a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm16-128a16 16 0 1 1 16-16 16 16 0 0 1-16 16z"]
  5640. };
  5641. var faDivide = {
  5642. prefix: 'fas',
  5643. iconName: 'divide',
  5644. 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"]
  5645. };
  5646. var faDizzy = {
  5647. prefix: 'fas',
  5648. iconName: 'dizzy',
  5649. 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"]
  5650. };
  5651. var faDna = {
  5652. prefix: 'fas',
  5653. iconName: 'dna',
  5654. 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"]
  5655. };
  5656. var faDog = {
  5657. prefix: 'fas',
  5658. iconName: 'dog',
  5659. icon: [576, 512, [], "f6d3", "M298.06,224,448,277.55V496a16,16,0,0,1-16,16H368a16,16,0,0,1-16-16V384H192V496a16,16,0,0,1-16,16H112a16,16,0,0,1-16-16V282.09C58.84,268.84,32,233.66,32,192a32,32,0,0,1,64,0,32.06,32.06,0,0,0,32,32ZM544,112v32a64,64,0,0,1-64,64H448v35.58L320,197.87V48c0-14.25,17.22-21.39,27.31-11.31L374.59,64h53.63c10.91,0,23.75,7.92,28.62,17.69L464,96h64A16,16,0,0,1,544,112Zm-112,0a16,16,0,1,0-16,16A16,16,0,0,0,432,112Z"]
  5660. };
  5661. var faDollarSign = {
  5662. prefix: 'fas',
  5663. iconName: 'dollar-sign',
  5664. 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"]
  5665. };
  5666. var faDolly = {
  5667. prefix: 'fas',
  5668. iconName: 'dolly',
  5669. 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"]
  5670. };
  5671. var faDollyFlatbed = {
  5672. prefix: 'fas',
  5673. iconName: 'dolly-flatbed',
  5674. 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"]
  5675. };
  5676. var faDonate = {
  5677. prefix: 'fas',
  5678. iconName: 'donate',
  5679. 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"]
  5680. };
  5681. var faDoorClosed = {
  5682. prefix: 'fas',
  5683. iconName: 'door-closed',
  5684. 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"]
  5685. };
  5686. var faDoorOpen = {
  5687. prefix: 'fas',
  5688. iconName: 'door-open',
  5689. 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"]
  5690. };
  5691. var faDotCircle = {
  5692. prefix: 'fas',
  5693. iconName: 'dot-circle',
  5694. 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"]
  5695. };
  5696. var faDove = {
  5697. prefix: 'fas',
  5698. iconName: 'dove',
  5699. 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"]
  5700. };
  5701. var faDownload = {
  5702. prefix: 'fas',
  5703. iconName: 'download',
  5704. 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"]
  5705. };
  5706. var faDraftingCompass = {
  5707. prefix: 'fas',
  5708. iconName: 'drafting-compass',
  5709. 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"]
  5710. };
  5711. var faDragon = {
  5712. prefix: 'fas',
  5713. iconName: 'dragon',
  5714. 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"]
  5715. };
  5716. var faDrawPolygon = {
  5717. prefix: 'fas',
  5718. iconName: 'draw-polygon',
  5719. 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"]
  5720. };
  5721. var faDrum = {
  5722. prefix: 'fas',
  5723. iconName: 'drum',
  5724. icon: [512, 512, [], "f569", "M431.34 122.05l73.53-47.42a16 16 0 0 0 4.44-22.19l-8.87-13.31a16 16 0 0 0-22.19-4.44l-110.06 71C318.43 96.91 271.22 96 256 96 219.55 96 0 100.55 0 208.15v160.23c0 30.27 27.5 57.68 72 77.86v-101.9a24 24 0 1 1 48 0v118.93c33.05 9.11 71.07 15.06 112 16.73V376.39a24 24 0 1 1 48 0V480c40.93-1.67 78.95-7.62 112-16.73V344.34a24 24 0 1 1 48 0v101.9c44.5-20.18 72-47.59 72-77.86V208.15c0-43.32-35.76-69.76-80.66-86.1zM256 272.24c-114.88 0-208-28.69-208-64.09s93.12-64.08 208-64.08c17.15 0 33.73.71 49.68 1.91l-72.81 47a16 16 0 0 0-4.43 22.19l8.87 13.31a16 16 0 0 0 22.19 4.44l118.64-76.52C430.09 168 464 186.84 464 208.15c0 35.4-93.13 64.09-208 64.09z"]
  5725. };
  5726. var faDrumSteelpan = {
  5727. prefix: 'fas',
  5728. iconName: 'drum-steelpan',
  5729. 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"]
  5730. };
  5731. var faDrumstickBite = {
  5732. prefix: 'fas',
  5733. iconName: 'drumstick-bite',
  5734. icon: [512, 512, [], "f6d7", "M462.8 49.57a169.44 169.44 0 0 0-239.5 0C187.82 85 160.13 128 160.13 192v85.83l-40.62 40.59c-9.7 9.69-24 11.07-36.78 6a60.33 60.33 0 0 0-65 98.72C33 438.39 54.24 442.7 73.85 438.21c-4.5 19.6-.18 40.83 15.1 56.1a60.35 60.35 0 0 0 98.8-65c-5.09-12.73-3.72-27 6-36.75L234.36 352h85.89a187.87 187.87 0 0 0 61.89-10c-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.96-14.81-90.28-49.13-124.56z"]
  5735. };
  5736. var faDumbbell = {
  5737. prefix: 'fas',
  5738. iconName: 'dumbbell',
  5739. 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"]
  5740. };
  5741. var faDumpster = {
  5742. prefix: 'fas',
  5743. iconName: 'dumpster',
  5744. icon: [576, 512, [], "f793", "M560 160c10.4 0 18-9.8 15.5-19.9l-24-96C549.7 37 543.3 32 536 32h-98.9l25.6 128H560zM272 32H171.5l-25.6 128H272V32zm132.5 0H304v128h126.1L404.5 32zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm544 64h-20l4-32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h320v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16l20-160h28c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  5745. };
  5746. var faDumpsterFire = {
  5747. prefix: 'fas',
  5748. iconName: 'dumpster-fire',
  5749. icon: [640, 512, [], "f794", "M418.7 104.1l.2-.2-14.4-72H304v128h60.8c16.2-19.3 34.2-38.2 53.9-55.8zM272 32H171.5l-25.6 128H272V32zm189.3 72.1c18.2 16.3 35.5 33.7 51.1 51.5 5.7-5.6 11.4-11.1 17.3-16.3l21.3-19 21.3 19c1.1.9 2.1 2.1 3.1 3.1-.1-.8.2-1.5 0-2.3l-24-96C549.7 37 543.3 32 536 32h-98.9l12.3 61.5 11.9 10.6zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm324.6 32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208.8c-30.2-33.7-48.8-77.9-48.8-126.4 0-35.9 19.9-82.9 52.6-129.6zm210.5-28.8c-14.9 13.3-28.3 27.2-40.2 41.2-19.5-25.8-43.6-52-71-76.4-70.2 62.7-120 144.3-120 193.6 0 87.5 71.6 158.4 160 158.4s160-70.9 160-158.4c.1-36.6-37-112.2-88.8-158.4zm-18.6 229.4c-14.7 10.7-32.9 17-52.5 17-49 0-88.9-33.5-88.9-88 0-27.1 16.5-51 49.4-91.9 4.7 5.6 67.1 88.1 67.1 88.1l39.8-47c2.8 4.8 5.4 9.5 7.7 14 18.6 36.7 10.8 83.6-22.6 107.8z"]
  5750. };
  5751. var faDungeon = {
  5752. prefix: 'fas',
  5753. iconName: 'dungeon',
  5754. 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"]
  5755. };
  5756. var faEdit = {
  5757. prefix: 'fas',
  5758. iconName: 'edit',
  5759. 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"]
  5760. };
  5761. var faEgg = {
  5762. prefix: 'fas',
  5763. iconName: 'egg',
  5764. icon: [384, 512, [], "f7fb", "M192 0C86 0 0 214 0 320s86 192 192 192 192-86 192-192S298 0 192 0z"]
  5765. };
  5766. var faEject = {
  5767. prefix: 'fas',
  5768. iconName: 'eject',
  5769. 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"]
  5770. };
  5771. var faEllipsisH = {
  5772. prefix: 'fas',
  5773. iconName: 'ellipsis-h',
  5774. 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"]
  5775. };
  5776. var faEllipsisV = {
  5777. prefix: 'fas',
  5778. iconName: 'ellipsis-v',
  5779. 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"]
  5780. };
  5781. var faEnvelope = {
  5782. prefix: 'fas',
  5783. iconName: 'envelope',
  5784. 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"]
  5785. };
  5786. var faEnvelopeOpen = {
  5787. prefix: 'fas',
  5788. iconName: 'envelope-open',
  5789. 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"]
  5790. };
  5791. var faEnvelopeOpenText = {
  5792. prefix: 'fas',
  5793. iconName: 'envelope-open-text',
  5794. 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"]
  5795. };
  5796. var faEnvelopeSquare = {
  5797. prefix: 'fas',
  5798. iconName: 'envelope-square',
  5799. 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"]
  5800. };
  5801. var faEquals = {
  5802. prefix: 'fas',
  5803. iconName: 'equals',
  5804. 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"]
  5805. };
  5806. var faEraser = {
  5807. prefix: 'fas',
  5808. iconName: 'eraser',
  5809. 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"]
  5810. };
  5811. var faEthernet = {
  5812. prefix: 'fas',
  5813. iconName: 'ethernet',
  5814. icon: [512, 512, [], "f796", "M496 192h-48v-48c0-8.8-7.2-16-16-16h-48V80c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16v48H80c-8.8 0-16 7.2-16 16v48H16c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16h80V320h32v128h64V320h32v128h64V320h32v128h64V320h32v128h80c8.8 0 16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]
  5815. };
  5816. var faEuroSign = {
  5817. prefix: 'fas',
  5818. iconName: 'euro-sign',
  5819. 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"]
  5820. };
  5821. var faExchangeAlt = {
  5822. prefix: 'fas',
  5823. iconName: 'exchange-alt',
  5824. 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"]
  5825. };
  5826. var faExclamation = {
  5827. prefix: 'fas',
  5828. iconName: 'exclamation',
  5829. 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"]
  5830. };
  5831. var faExclamationCircle = {
  5832. prefix: 'fas',
  5833. iconName: 'exclamation-circle',
  5834. 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"]
  5835. };
  5836. var faExclamationTriangle = {
  5837. prefix: 'fas',
  5838. iconName: 'exclamation-triangle',
  5839. 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"]
  5840. };
  5841. var faExpand = {
  5842. prefix: 'fas',
  5843. iconName: 'expand',
  5844. 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"]
  5845. };
  5846. var faExpandAlt = {
  5847. prefix: 'fas',
  5848. iconName: 'expand-alt',
  5849. icon: [448, 512, [], "f424", "M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z"]
  5850. };
  5851. var faExpandArrowsAlt = {
  5852. prefix: 'fas',
  5853. iconName: 'expand-arrows-alt',
  5854. icon: [448, 512, [], "f31e", "M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"]
  5855. };
  5856. var faExternalLinkAlt = {
  5857. prefix: 'fas',
  5858. iconName: 'external-link-alt',
  5859. icon: [512, 512, [], "f35d", "M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"]
  5860. };
  5861. var faExternalLinkSquareAlt = {
  5862. prefix: 'fas',
  5863. iconName: 'external-link-square-alt',
  5864. 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"]
  5865. };
  5866. var faEye = {
  5867. prefix: 'fas',
  5868. iconName: 'eye',
  5869. icon: [576, 512, [], "f06e", "M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]
  5870. };
  5871. var faEyeDropper = {
  5872. prefix: 'fas',
  5873. iconName: 'eye-dropper',
  5874. 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"]
  5875. };
  5876. var faEyeSlash = {
  5877. prefix: 'fas',
  5878. iconName: 'eye-slash',
  5879. icon: [640, 512, [], "f070", "M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]
  5880. };
  5881. var faFan = {
  5882. prefix: 'fas',
  5883. iconName: 'fan',
  5884. icon: [512, 512, [], "f863", "M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
  5885. };
  5886. var faFastBackward = {
  5887. prefix: 'fas',
  5888. iconName: 'fast-backward',
  5889. 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"]
  5890. };
  5891. var faFastForward = {
  5892. prefix: 'fas',
  5893. iconName: 'fast-forward',
  5894. 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"]
  5895. };
  5896. var faFaucet = {
  5897. prefix: 'fas',
  5898. iconName: 'faucet',
  5899. icon: [512, 512, [], "f905", "M352,256H313.39c-15.71-13.44-35.46-23.07-57.39-28V180.44l-32-3.38-32,3.38V228c-21.93,5-41.68,14.6-57.39,28H16A16,16,0,0,0,0,272v96a16,16,0,0,0,16,16h92.79C129.38,421.73,173,448,224,448s94.62-26.27,115.21-64H352a32,32,0,0,1,32,32,32,32,0,0,0,32,32h64a32,32,0,0,0,32-32A160,160,0,0,0,352,256ZM81.59,159.91l142.41-15,142.41,15c9.42,1,17.59-6.81,17.59-16.8V112.89c0-10-8.17-17.8-17.59-16.81L256,107.74V80a16,16,0,0,0-16-16H208a16,16,0,0,0-16,16v27.74L81.59,96.08C72.17,95.09,64,102.9,64,112.89v30.22C64,153.1,72.17,160.91,81.59,159.91Z"]
  5900. };
  5901. var faFax = {
  5902. prefix: 'fas',
  5903. iconName: 'fax',
  5904. icon: [512, 512, [], "f1ac", "M480 160V77.25a32 32 0 0 0-9.38-22.63L425.37 9.37A32 32 0 0 0 402.75 0H160a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h320a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM288 432a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm128 128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-112H192V64h160v48a16 16 0 0 0 16 16h48zM64 128H32a32 32 0 0 0-32 32v320a32 32 0 0 0 32 32h32a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z"]
  5905. };
  5906. var faFeather = {
  5907. prefix: 'fas',
  5908. iconName: 'feather',
  5909. 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"]
  5910. };
  5911. var faFeatherAlt = {
  5912. prefix: 'fas',
  5913. iconName: 'feather-alt',
  5914. 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"]
  5915. };
  5916. var faFemale = {
  5917. prefix: 'fas',
  5918. iconName: 'female',
  5919. 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"]
  5920. };
  5921. var faFighterJet = {
  5922. prefix: 'fas',
  5923. iconName: 'fighter-jet',
  5924. 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"]
  5925. };
  5926. var faFile = {
  5927. prefix: 'fas',
  5928. iconName: 'file',
  5929. 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"]
  5930. };
  5931. var faFileAlt = {
  5932. prefix: 'fas',
  5933. iconName: 'file-alt',
  5934. 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"]
  5935. };
  5936. var faFileArchive = {
  5937. prefix: 'fas',
  5938. iconName: 'file-archive',
  5939. icon: [384, 512, [], "f1c6", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zM128.4 336c-17.9 0-32.4 12.1-32.4 27 0 15 14.6 27 32.5 27s32.4-12.1 32.4-27-14.6-27-32.5-27zM224 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-32zm32.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.6z"]
  5940. };
  5941. var faFileAudio = {
  5942. prefix: 'fas',
  5943. iconName: 'file-audio',
  5944. 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"]
  5945. };
  5946. var faFileCode = {
  5947. prefix: 'fas',
  5948. iconName: 'file-code',
  5949. 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"]
  5950. };
  5951. var faFileContract = {
  5952. prefix: 'fas',
  5953. iconName: 'file-contract',
  5954. 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"]
  5955. };
  5956. var faFileCsv = {
  5957. prefix: 'fas',
  5958. iconName: 'file-csv',
  5959. 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"]
  5960. };
  5961. var faFileDownload = {
  5962. prefix: 'fas',
  5963. iconName: 'file-download',
  5964. 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"]
  5965. };
  5966. var faFileExcel = {
  5967. prefix: 'fas',
  5968. iconName: 'file-excel',
  5969. 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"]
  5970. };
  5971. var faFileExport = {
  5972. prefix: 'fas',
  5973. iconName: 'file-export',
  5974. 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-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-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.8 0-16-7.2-16-16z"]
  5975. };
  5976. var faFileImage = {
  5977. prefix: 'fas',
  5978. iconName: 'file-image',
  5979. 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"]
  5980. };
  5981. var faFileImport = {
  5982. prefix: 'fas',
  5983. iconName: 'file-import',
  5984. icon: [512, 512, [], "f56f", "M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"]
  5985. };
  5986. var faFileInvoice = {
  5987. prefix: 'fas',
  5988. iconName: 'file-invoice',
  5989. 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"]
  5990. };
  5991. var faFileInvoiceDollar = {
  5992. prefix: 'fas',
  5993. iconName: 'file-invoice-dollar',
  5994. 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"]
  5995. };
  5996. var faFileMedical = {
  5997. prefix: 'fas',
  5998. iconName: 'file-medical',
  5999. 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"]
  6000. };
  6001. var faFileMedicalAlt = {
  6002. prefix: 'fas',
  6003. iconName: 'file-medical-alt',
  6004. 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"]
  6005. };
  6006. var faFilePdf = {
  6007. prefix: 'fas',
  6008. iconName: 'file-pdf',
  6009. 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"]
  6010. };
  6011. var faFilePowerpoint = {
  6012. prefix: 'fas',
  6013. iconName: 'file-powerpoint',
  6014. 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"]
  6015. };
  6016. var faFilePrescription = {
  6017. prefix: 'fas',
  6018. iconName: 'file-prescription',
  6019. 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"]
  6020. };
  6021. var faFileSignature = {
  6022. prefix: 'fas',
  6023. iconName: 'file-signature',
  6024. 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"]
  6025. };
  6026. var faFileUpload = {
  6027. prefix: 'fas',
  6028. iconName: 'file-upload',
  6029. 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"]
  6030. };
  6031. var faFileVideo = {
  6032. prefix: 'fas',
  6033. iconName: 'file-video',
  6034. 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"]
  6035. };
  6036. var faFileWord = {
  6037. prefix: 'fas',
  6038. iconName: 'file-word',
  6039. 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"]
  6040. };
  6041. var faFill = {
  6042. prefix: 'fas',
  6043. iconName: 'fill',
  6044. 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"]
  6045. };
  6046. var faFillDrip = {
  6047. prefix: 'fas',
  6048. iconName: 'fill-drip',
  6049. 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"]
  6050. };
  6051. var faFilm = {
  6052. prefix: 'fas',
  6053. iconName: 'film',
  6054. 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"]
  6055. };
  6056. var faFilter = {
  6057. prefix: 'fas',
  6058. iconName: 'filter',
  6059. 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"]
  6060. };
  6061. var faFingerprint = {
  6062. prefix: 'fas',
  6063. iconName: 'fingerprint',
  6064. 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"]
  6065. };
  6066. var faFire = {
  6067. prefix: 'fas',
  6068. iconName: 'fire',
  6069. icon: [384, 512, [], "f06d", "M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"]
  6070. };
  6071. var faFireAlt = {
  6072. prefix: 'fas',
  6073. iconName: 'fire-alt',
  6074. icon: [448, 512, [], "f7e4", "M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"]
  6075. };
  6076. var faFireExtinguisher = {
  6077. prefix: 'fas',
  6078. iconName: 'fire-extinguisher',
  6079. 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"]
  6080. };
  6081. var faFirstAid = {
  6082. prefix: 'fas',
  6083. iconName: 'first-aid',
  6084. 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"]
  6085. };
  6086. var faFish = {
  6087. prefix: 'fas',
  6088. iconName: 'fish',
  6089. 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"]
  6090. };
  6091. var faFistRaised = {
  6092. prefix: 'fas',
  6093. iconName: 'fist-raised',
  6094. 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"]
  6095. };
  6096. var faFlag = {
  6097. prefix: 'fas',
  6098. iconName: 'flag',
  6099. 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"]
  6100. };
  6101. var faFlagCheckered = {
  6102. prefix: 'fas',
  6103. iconName: 'flag-checkered',
  6104. icon: [512, 512, [], "f11e", "M243.2 189.9V258c26.1 5.9 49.3 15.6 73.6 22.3v-68.2c-26-5.8-49.4-15.5-73.6-22.2zm223.3-123c-34.3 15.9-76.5 31.9-117 31.9C296 98.8 251.7 64 184.3 64c-25 0-47.3 4.4-68 12 2.8-7.3 4.1-15.2 3.6-23.6C118.1 24 94.8 1.2 66.3 0 34.3-1.3 8 24.3 8 56c0 19 9.5 35.8 24 45.9V488c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24v-94.4c28.3-12.1 63.6-22.1 114.4-22.1 53.6 0 97.8 34.8 165.2 34.8 48.2 0 86.7-16.3 122.5-40.9 8.7-6 13.8-15.8 13.8-26.4V95.9c.1-23.3-24.2-38.8-45.4-29zM169.6 325.5c-25.8 2.7-50 8.2-73.6 16.6v-70.5c26.2-9.3 47.5-15 73.6-17.4zM464 191c-23.6 9.8-46.3 19.5-73.6 23.9V286c24.8-3.4 51.4-11.8 73.6-26v70.5c-25.1 16.1-48.5 24.7-73.6 27.1V286c-27 3.7-47.9 1.5-73.6-5.6v67.4c-23.9-7.4-47.3-16.7-73.6-21.3V258c-19.7-4.4-40.8-6.8-73.6-3.8v-70c-22.4 3.1-44.6 10.2-73.6 20.9v-70.5c33.2-12.2 50.1-19.8 73.6-22v71.6c27-3.7 48.4-1.3 73.6 5.7v-67.4c23.7 7.4 47.2 16.7 73.6 21.3v68.4c23.7 5.3 47.6 6.9 73.6 2.7V143c27-4.8 52.3-13.6 73.6-22.5z"]
  6105. };
  6106. var faFlagUsa = {
  6107. prefix: 'fas',
  6108. iconName: 'flag-usa',
  6109. icon: [512, 512, [], "f74d", "M32 0C14.3 0 0 14.3 0 32v464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32C64 14.3 49.7 0 32 0zm267.9 303.6c-57.2-15.1-111.7-28.8-203.9 11.1V384c185.7-92.2 221.7 53.3 397.5-23.1 11.4-5 18.5-16.5 18.5-28.8v-36c-43.6 17.3-80.2 24.1-112.1 24.1-37.4-.1-68.9-8.4-100-16.6zm0-96c-57.2-15.1-111.7-28.8-203.9 11.1v61.5c94.8-37.6 154.6-22.7 212.1-7.6 57.2 15.1 111.7 28.8 203.9-11.1V200c-43.6 17.3-80.2 24.1-112.1 24.1-37.4 0-68.9-8.3-100-16.5zm9.5-125.9c51.8 15.6 97.4 29 202.6-20.1V30.8c0-25.1-26.8-38.1-49.4-26.6C291.3 91.5 305.4-62.2 96 32.4v151.9c94.8-37.5 154.6-22.7 212.1-7.6 57.2 15 111.7 28.7 203.9-11.1V96.7c-53.6 23.5-93.3 31.4-126.1 31.4s-59-7.8-85.7-15.9c-4-1.2-8.1-2.4-12.1-3.5V75.5c7.2 2 14.3 4.1 21.3 6.2zM160 128.1c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16-7.2 16-16 16zm0-55.8c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm64 47.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm0-55.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16z"]
  6110. };
  6111. var faFlask = {
  6112. prefix: 'fas',
  6113. iconName: 'flask',
  6114. 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"]
  6115. };
  6116. var faFlushed = {
  6117. prefix: 'fas',
  6118. iconName: 'flushed',
  6119. 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"]
  6120. };
  6121. var faFolder = {
  6122. prefix: 'fas',
  6123. iconName: 'folder',
  6124. 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"]
  6125. };
  6126. var faFolderMinus = {
  6127. prefix: 'fas',
  6128. iconName: 'folder-minus',
  6129. 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"]
  6130. };
  6131. var faFolderOpen = {
  6132. prefix: 'fas',
  6133. iconName: 'folder-open',
  6134. 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"]
  6135. };
  6136. var faFolderPlus = {
  6137. prefix: 'fas',
  6138. iconName: 'folder-plus',
  6139. icon: [512, 512, [], "f65e", "M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"]
  6140. };
  6141. var faFont = {
  6142. prefix: 'fas',
  6143. iconName: 'font',
  6144. icon: [448, 512, [], "f031", "M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"]
  6145. };
  6146. var faFontAwesomeLogoFull = {
  6147. prefix: 'fas',
  6148. iconName: 'font-awesome-logo-full',
  6149. 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"]
  6150. };
  6151. var faFootballBall = {
  6152. prefix: 'fas',
  6153. iconName: 'football-ball',
  6154. 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"]
  6155. };
  6156. var faForward = {
  6157. prefix: 'fas',
  6158. iconName: 'forward',
  6159. 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"]
  6160. };
  6161. var faFrog = {
  6162. prefix: 'fas',
  6163. iconName: 'frog',
  6164. 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"]
  6165. };
  6166. var faFrown = {
  6167. prefix: 'fas',
  6168. iconName: 'frown',
  6169. 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"]
  6170. };
  6171. var faFrownOpen = {
  6172. prefix: 'fas',
  6173. iconName: 'frown-open',
  6174. 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"]
  6175. };
  6176. var faFunnelDollar = {
  6177. prefix: 'fas',
  6178. iconName: 'funnel-dollar',
  6179. 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"]
  6180. };
  6181. var faFutbol = {
  6182. prefix: 'fas',
  6183. iconName: 'futbol',
  6184. 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"]
  6185. };
  6186. var faGamepad = {
  6187. prefix: 'fas',
  6188. iconName: 'gamepad',
  6189. icon: [640, 512, [], "f11b", "M480.07 96H160a160 160 0 1 0 114.24 272h91.52A160 160 0 1 0 480.07 96zM248 268a12 12 0 0 1-12 12h-52v52a12 12 0 0 1-12 12h-24a12 12 0 0 1-12-12v-52H84a12 12 0 0 1-12-12v-24a12 12 0 0 1 12-12h52v-52a12 12 0 0 1 12-12h24a12 12 0 0 1 12 12v52h52a12 12 0 0 1 12 12zm216 76a40 40 0 1 1 40-40 40 40 0 0 1-40 40zm64-96a40 40 0 1 1 40-40 40 40 0 0 1-40 40z"]
  6190. };
  6191. var faGasPump = {
  6192. prefix: 'fas',
  6193. iconName: 'gas-pump',
  6194. 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"]
  6195. };
  6196. var faGavel = {
  6197. prefix: 'fas',
  6198. iconName: 'gavel',
  6199. 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"]
  6200. };
  6201. var faGem = {
  6202. prefix: 'fas',
  6203. iconName: 'gem',
  6204. 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"]
  6205. };
  6206. var faGenderless = {
  6207. prefix: 'fas',
  6208. iconName: 'genderless',
  6209. 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"]
  6210. };
  6211. var faGhost = {
  6212. prefix: 'fas',
  6213. iconName: 'ghost',
  6214. 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"]
  6215. };
  6216. var faGift = {
  6217. prefix: 'fas',
  6218. iconName: 'gift',
  6219. icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm256 32h160c17.7 0 32-14.3 32-32V320H288v160zm192-320h-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 40z"]
  6220. };
  6221. var faGifts = {
  6222. prefix: 'fas',
  6223. iconName: 'gifts',
  6224. icon: [640, 512, [], "f79c", "M240.6 194.1c1.9-30.8 17.3-61.2 44-79.8C279.4 103.5 268.7 96 256 96h-29.4l30.7-22c7.2-5.1 8.9-15.1 3.7-22.3l-9.3-13c-5.1-7.2-15.1-8.9-22.3-3.7l-32 22.9 11.5-30.6c3.1-8.3-1.1-17.5-9.4-20.6l-15-5.6c-8.3-3.1-17.5 1.1-20.6 9.4l-19.9 53-19.9-53.1C121 2.1 111.8-2.1 103.5 1l-15 5.6C80.2 9.7 76 19 79.2 27.2l11.5 30.6L58.6 35c-7.2-5.1-17.2-3.5-22.3 3.7l-9.3 13c-5.1 7.2-3.5 17.2 3.7 22.3l30.7 22H32c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h168.9c-5.5-9.5-8.9-20.3-8.9-32V256c0-29.9 20.8-55 48.6-61.9zM224 480c0 17.7 14.3 32 32 32h160V384H224v96zm224 32h160c17.7 0 32-14.3 32-32v-96H448v128zm160-288h-20.4c2.6-7.6 4.4-15.5 4.4-23.8 0-35.5-27-72.2-72.1-72.2-48.1 0-75.9 47.7-87.9 75.3-12.1-27.6-39.9-75.3-87.9-75.3-45.1 0-72.1 36.7-72.1 72.2 0 8.3 1.7 16.2 4.4 23.8H256c-17.7 0-32 14.3-32 32v96h192V224h15.3l.7-.2.7.2H448v128h192v-96c0-17.7-14.3-32-32-32zm-272 0c-2.7-1.4-5.1-3-7.2-4.8-7.3-6.4-8.8-13.8-8.8-19 0-9.7 6.4-24.2 24.1-24.2 18.7 0 35.6 27.4 44.5 48H336zm199.2-4.8c-2.1 1.8-4.5 3.4-7.2 4.8h-52.6c8.8-20.3 25.8-48 44.5-48 17.7 0 24.1 14.5 24.1 24.2 0 5.2-1.5 12.6-8.8 19z"]
  6225. };
  6226. var faGlassCheers = {
  6227. prefix: 'fas',
  6228. iconName: 'glass-cheers',
  6229. icon: [640, 512, [], "f79f", "M639.4 433.6c-8.4-20.4-31.8-30.1-52.2-21.6l-22.1 9.2-38.7-101.9c47.9-35 64.8-100.3 34.5-152.8L474.3 16c-8-13.9-25.1-19.7-40-13.6L320 49.8 205.7 2.4c-14.9-6.2-32-.3-40 13.6L79.1 166.5C48.9 219 65.7 284.3 113.6 319.2L74.9 421.1l-22.1-9.2c-20.4-8.5-43.7 1.2-52.2 21.6-1.7 4.1.2 8.8 4.3 10.5l162.3 67.4c4.1 1.7 8.7-.2 10.4-4.3 8.4-20.4-1.2-43.8-21.6-52.3l-22.1-9.2L173.3 342c4.4.5 8.8 1.3 13.1 1.3 51.7 0 99.4-33.1 113.4-85.3l20.2-75.4 20.2 75.4c14 52.2 61.7 85.3 113.4 85.3 4.3 0 8.7-.8 13.1-1.3L506 445.6l-22.1 9.2c-20.4 8.5-30.1 31.9-21.6 52.3 1.7 4.1 6.4 6 10.4 4.3L635.1 444c4-1.7 6-6.3 4.3-10.4zM275.9 162.1l-112.1-46.5 36.5-63.4 94.5 39.2-18.9 70.7zm88.2 0l-18.9-70.7 94.5-39.2 36.5 63.4-112.1 46.5z"]
  6230. };
  6231. var faGlassMartini = {
  6232. prefix: 'fas',
  6233. iconName: 'glass-martini',
  6234. 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"]
  6235. };
  6236. var faGlassMartiniAlt = {
  6237. prefix: 'fas',
  6238. iconName: 'glass-martini-alt',
  6239. 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"]
  6240. };
  6241. var faGlassWhiskey = {
  6242. prefix: 'fas',
  6243. iconName: 'glass-whiskey',
  6244. icon: [512, 512, [], "f7a0", "M480 32H32C12.5 32-2.4 49.2.3 68.5l56 356.5c4.5 31.5 31.5 54.9 63.4 54.9h273c31.8 0 58.9-23.4 63.4-54.9l55.6-356.5C514.4 49.2 499.5 32 480 32zm-37.4 64l-30 192h-313L69.4 96h373.2z"]
  6245. };
  6246. var faGlasses = {
  6247. prefix: 'fas',
  6248. iconName: 'glasses',
  6249. 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"]
  6250. };
  6251. var faGlobe = {
  6252. prefix: 'fas',
  6253. iconName: 'globe',
  6254. 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"]
  6255. };
  6256. var faGlobeAfrica = {
  6257. prefix: 'fas',
  6258. iconName: 'globe-africa',
  6259. 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"]
  6260. };
  6261. var faGlobeAmericas = {
  6262. prefix: 'fas',
  6263. iconName: 'globe-americas',
  6264. 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"]
  6265. };
  6266. var faGlobeAsia = {
  6267. prefix: 'fas',
  6268. iconName: 'globe-asia',
  6269. 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"]
  6270. };
  6271. var faGlobeEurope = {
  6272. prefix: 'fas',
  6273. iconName: 'globe-europe',
  6274. icon: [496, 512, [], "f7a2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm200 248c0 22.5-3.9 44.2-10.8 64.4h-20.3c-4.3 0-8.4-1.7-11.4-4.8l-32-32.6c-4.5-4.6-4.5-12.1.1-16.7l12.5-12.5v-8.7c0-3-1.2-5.9-3.3-8l-9.4-9.4c-2.1-2.1-5-3.3-8-3.3h-16c-6.2 0-11.3-5.1-11.3-11.3 0-3 1.2-5.9 3.3-8l9.4-9.4c2.1-2.1 5-3.3 8-3.3h32c6.2 0 11.3-5.1 11.3-11.3v-9.4c0-6.2-5.1-11.3-11.3-11.3h-36.7c-8.8 0-16 7.2-16 16v4.5c0 6.9-4.4 13-10.9 15.2l-31.6 10.5c-3.3 1.1-5.5 4.1-5.5 7.6v2.2c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8s-3.6-8-8-8H247c-3 0-5.8 1.7-7.2 4.4l-9.4 18.7c-2.7 5.4-8.2 8.8-14.3 8.8H194c-8.8 0-16-7.2-16-16V199c0-4.2 1.7-8.3 4.7-11.3l20.1-20.1c4.6-4.6 7.2-10.9 7.2-17.5 0-3.4 2.2-6.5 5.5-7.6l40-13.3c1.7-.6 3.2-1.5 4.4-2.7l26.8-26.8c2.1-2.1 3.3-5 3.3-8 0-6.2-5.1-11.3-11.3-11.3H258l-16 16v8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-20c0-2.5 1.2-4.9 3.2-6.4l28.9-21.7c1.9-.1 3.8-.3 5.7-.3C358.3 56 448 145.7 448 256zM130.1 149.1c0-3 1.2-5.9 3.3-8l25.4-25.4c2.1-2.1 5-3.3 8-3.3 6.2 0 11.3 5.1 11.3 11.3v16c0 3-1.2 5.9-3.3 8l-9.4 9.4c-2.1 2.1-5 3.3-8 3.3h-16c-6.2 0-11.3-5.1-11.3-11.3zm128 306.4v-7.1c0-8.8-7.2-16-16-16h-20.2c-10.8 0-26.7-5.3-35.4-11.8l-22.2-16.7c-11.5-8.6-18.2-22.1-18.2-36.4v-23.9c0-16 8.4-30.8 22.1-39l42.9-25.7c7.1-4.2 15.2-6.5 23.4-6.5h31.2c10.9 0 21.4 3.9 29.6 10.9l43.2 37.1h18.3c8.5 0 16.6 3.4 22.6 9.4l17.3 17.3c3.4 3.4 8.1 5.3 12.9 5.3H423c-32.4 58.9-93.8 99.5-164.9 103.1z"]
  6275. };
  6276. var faGolfBall = {
  6277. prefix: 'fas',
  6278. iconName: 'golf-ball',
  6279. 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"]
  6280. };
  6281. var faGopuram = {
  6282. prefix: 'fas',
  6283. iconName: 'gopuram',
  6284. icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.8-7.2-16-16-16h-16v-80c0-8.8-7.2-16-16-16h-16V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16S96 7.2 96 16v112H80c-8.8 0-16 7.2-16 16v80H48c-8.8 0-16 7.2-16 16v112H16c-8.8 0-16 7.2-16 16v128c0 8.8 7.2 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zM232 176c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v48h-48zm56 176h-64v-64c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16z"]
  6285. };
  6286. var faGraduationCap = {
  6287. prefix: 'fas',
  6288. iconName: 'graduation-cap',
  6289. 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"]
  6290. };
  6291. var faGreaterThan = {
  6292. prefix: 'fas',
  6293. iconName: 'greater-than',
  6294. 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"]
  6295. };
  6296. var faGreaterThanEqual = {
  6297. prefix: 'fas',
  6298. iconName: 'greater-than-equal',
  6299. 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"]
  6300. };
  6301. var faGrimace = {
  6302. prefix: 'fas',
  6303. iconName: 'grimace',
  6304. 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"]
  6305. };
  6306. var faGrin = {
  6307. prefix: 'fas',
  6308. iconName: 'grin',
  6309. 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"]
  6310. };
  6311. var faGrinAlt = {
  6312. prefix: 'fas',
  6313. iconName: 'grin-alt',
  6314. 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"]
  6315. };
  6316. var faGrinBeam = {
  6317. prefix: 'fas',
  6318. iconName: 'grin-beam',
  6319. 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"]
  6320. };
  6321. var faGrinBeamSweat = {
  6322. prefix: 'fas',
  6323. iconName: 'grin-beam-sweat',
  6324. 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"]
  6325. };
  6326. var faGrinHearts = {
  6327. prefix: 'fas',
  6328. iconName: 'grin-hearts',
  6329. 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"]
  6330. };
  6331. var faGrinSquint = {
  6332. prefix: 'fas',
  6333. iconName: 'grin-squint',
  6334. 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"]
  6335. };
  6336. var faGrinSquintTears = {
  6337. prefix: 'fas',
  6338. iconName: 'grin-squint-tears',
  6339. 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"]
  6340. };
  6341. var faGrinStars = {
  6342. prefix: 'fas',
  6343. iconName: 'grin-stars',
  6344. 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"]
  6345. };
  6346. var faGrinTears = {
  6347. prefix: 'fas',
  6348. iconName: 'grin-tears',
  6349. 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"]
  6350. };
  6351. var faGrinTongue = {
  6352. prefix: 'fas',
  6353. iconName: 'grin-tongue',
  6354. 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"]
  6355. };
  6356. var faGrinTongueSquint = {
  6357. prefix: 'fas',
  6358. iconName: 'grin-tongue-squint',
  6359. 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"]
  6360. };
  6361. var faGrinTongueWink = {
  6362. prefix: 'fas',
  6363. iconName: 'grin-tongue-wink',
  6364. 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"]
  6365. };
  6366. var faGrinWink = {
  6367. prefix: 'fas',
  6368. iconName: 'grin-wink',
  6369. 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"]
  6370. };
  6371. var faGripHorizontal = {
  6372. prefix: 'fas',
  6373. iconName: 'grip-horizontal',
  6374. 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"]
  6375. };
  6376. var faGripLines = {
  6377. prefix: 'fas',
  6378. iconName: 'grip-lines',
  6379. icon: [512, 512, [], "f7a4", "M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  6380. };
  6381. var faGripLinesVertical = {
  6382. prefix: 'fas',
  6383. iconName: 'grip-lines-vertical',
  6384. icon: [256, 512, [], "f7a5", "M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z"]
  6385. };
  6386. var faGripVertical = {
  6387. prefix: 'fas',
  6388. iconName: 'grip-vertical',
  6389. 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"]
  6390. };
  6391. var faGuitar = {
  6392. prefix: 'fas',
  6393. iconName: 'guitar',
  6394. icon: [512, 512, [], "f7a6", "M502.63 39L473 9.37a32 32 0 0 0-45.26 0L381.46 55.7a35.14 35.14 0 0 0-8.53 13.79L360.77 106l-76.26 76.26c-12.16-8.76-25.5-15.74-40.1-19.14-33.45-7.78-67-.88-89.88 22a82.45 82.45 0 0 0-20.24 33.47c-6 18.56-23.21 32.69-42.15 34.46-23.7 2.27-45.73 11.45-62.61 28.44C-16.11 327-7.9 409 47.58 464.45S185 528 230.56 482.52c17-16.88 26.16-38.9 28.45-62.71 1.76-18.85 15.89-36.13 34.43-42.14a82.6 82.6 0 0 0 33.48-20.25c22.87-22.88 29.74-56.36 22-89.75-3.39-14.64-10.37-28-19.16-40.2L406 151.23l36.48-12.16a35.14 35.14 0 0 0 13.79-8.53l46.33-46.32a32 32 0 0 0 .03-45.22zM208 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48z"]
  6395. };
  6396. var faHSquare = {
  6397. prefix: 'fas',
  6398. iconName: 'h-square',
  6399. 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"]
  6400. };
  6401. var faHamburger = {
  6402. prefix: 'fas',
  6403. iconName: 'hamburger',
  6404. icon: [512, 512, [], "f805", "M464 256H48a48 48 0 0 0 0 96h416a48 48 0 0 0 0-96zm16 128H32a16 16 0 0 0-16 16v16a64 64 0 0 0 64 64h352a64 64 0 0 0 64-64v-16a16 16 0 0 0-16-16zM58.64 224h394.72c34.57 0 54.62-43.9 34.82-75.88C448 83.2 359.55 32.1 256 32c-103.54.1-192 51.2-232.18 116.11C4 180.09 24.07 224 58.64 224zM384 112a16 16 0 1 1-16 16 16 16 0 0 1 16-16zM256 80a16 16 0 1 1-16 16 16 16 0 0 1 16-16zm-128 32a16 16 0 1 1-16 16 16 16 0 0 1 16-16z"]
  6405. };
  6406. var faHammer = {
  6407. prefix: 'fas',
  6408. iconName: 'hammer',
  6409. 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"]
  6410. };
  6411. var faHamsa = {
  6412. prefix: 'fas',
  6413. iconName: 'hamsa',
  6414. 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"]
  6415. };
  6416. var faHandHolding = {
  6417. prefix: 'fas',
  6418. iconName: 'hand-holding',
  6419. 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"]
  6420. };
  6421. var faHandHoldingHeart = {
  6422. prefix: 'fas',
  6423. iconName: 'hand-holding-heart',
  6424. 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"]
  6425. };
  6426. var faHandHoldingMedical = {
  6427. prefix: 'fas',
  6428. iconName: 'hand-holding-medical',
  6429. icon: [576, 512, [], "f95c", "M159.88,175.82h64v64a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16v-64h64a16,16,0,0,0,16-16v-64a16,16,0,0,0-16-16h-64v-64a16,16,0,0,0-16-16h-64a16,16,0,0,0-16,16v64h-64a16,16,0,0,0-16,16v64A16,16,0,0,0,159.88,175.82ZM568.07,336.13a39.91,39.91,0,0,0-55.93-8.47L392.47,415.84H271.86a16,16,0,0,1,0-32H350.1c16,0,30.75-10.87,33.37-26.61a32.06,32.06,0,0,0-31.62-37.38h-160a117.7,117.7,0,0,0-74.12,26.25l-46.5,37.74H15.87a16.11,16.11,0,0,0-16,16v96a16.11,16.11,0,0,0,16,16h347a104.8,104.8,0,0,0,61.7-20.27L559.6,392A40,40,0,0,0,568.07,336.13Z"]
  6430. };
  6431. var faHandHoldingUsd = {
  6432. prefix: 'fas',
  6433. iconName: 'hand-holding-usd',
  6434. icon: [576, 512, [], "f4c0", "M271.06,144.3l54.27,14.3a8.59,8.59,0,0,1,6.63,8.1c0,4.6-4.09,8.4-9.12,8.4h-35.6a30,30,0,0,1-11.19-2.2c-5.24-2.2-11.28-1.7-15.3,2l-19,17.5a11.68,11.68,0,0,0-2.25,2.66,11.42,11.42,0,0,0,3.88,15.74,83.77,83.77,0,0,0,34.51,11.5V240c0,8.8,7.83,16,17.37,16h17.37c9.55,0,17.38-7.2,17.38-16V222.4c32.93-3.6,57.84-31,53.5-63-3.15-23-22.46-41.3-46.56-47.7L282.68,97.4a8.59,8.59,0,0,1-6.63-8.1c0-4.6,4.09-8.4,9.12-8.4h35.6A30,30,0,0,1,332,83.1c5.23,2.2,11.28,1.7,15.3-2l19-17.5A11.31,11.31,0,0,0,368.47,61a11.43,11.43,0,0,0-3.84-15.78,83.82,83.82,0,0,0-34.52-11.5V16c0-8.8-7.82-16-17.37-16H295.37C285.82,0,278,7.2,278,16V33.6c-32.89,3.6-57.85,31-53.51,63C227.63,119.6,247,137.9,271.06,144.3ZM565.27,328.1c-11.8-10.7-30.2-10-42.6,0L430.27,402a63.64,63.64,0,0,1-40,14H272a16,16,0,0,1,0-32h78.29c15.9,0,30.71-10.9,33.25-26.6a31.2,31.2,0,0,0,.46-5.46A32,32,0,0,0,352,320H192a117.66,117.66,0,0,0-74.1,26.29L71.4,384H16A16,16,0,0,0,0,400v96a16,16,0,0,0,16,16H372.77a64,64,0,0,0,40-14L564,377a32,32,0,0,0,1.28-48.9Z"]
  6435. };
  6436. var faHandHoldingWater = {
  6437. prefix: 'fas',
  6438. iconName: 'hand-holding-water',
  6439. icon: [576, 512, [], "f4c1", "M288 256c53 0 96-42.1 96-94 0-40-57.1-120.7-83.2-155.6-6.4-8.5-19.2-8.5-25.6 0C249.1 41.3 192 122 192 162c0 51.9 43 94 96 94zm277.3 72.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"]
  6440. };
  6441. var faHandLizard = {
  6442. prefix: 'fas',
  6443. iconName: 'hand-lizard',
  6444. 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"]
  6445. };
  6446. var faHandMiddleFinger = {
  6447. prefix: 'fas',
  6448. iconName: 'hand-middle-finger',
  6449. icon: [512, 512, [], "f806", "M479.93 317.12a37.33 37.33 0 0 0-28.28-36.19L416 272v-49.59c0-11.44-9.69-21.29-23.15-23.54l-38.4-6.4C336.63 189.5 320 200.86 320 216v32a8 8 0 0 1-16 0V50c0-26.28-20.25-49.2-46.52-50A48 48 0 0 0 208 48v200a8 8 0 0 1-16 0v-32c0-15.15-16.63-26.51-34.45-23.54l-30.68 5.12c-18 3-30.87 16.12-30.87 31.38V376a8 8 0 0 1-16 0v-76l-27.36 15A37.34 37.34 0 0 0 32 348.4v73.47a37.31 37.31 0 0 0 10.93 26.39l30.93 30.93A112 112 0 0 0 153.05 512h215A112 112 0 0 0 480 400z"]
  6450. };
  6451. var faHandPaper = {
  6452. prefix: 'fas',
  6453. iconName: 'hand-paper',
  6454. 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"]
  6455. };
  6456. var faHandPeace = {
  6457. prefix: 'fas',
  6458. iconName: 'hand-peace',
  6459. 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"]
  6460. };
  6461. var faHandPointDown = {
  6462. prefix: 'fas',
  6463. iconName: 'hand-point-down',
  6464. 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"]
  6465. };
  6466. var faHandPointLeft = {
  6467. prefix: 'fas',
  6468. iconName: 'hand-point-left',
  6469. 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"]
  6470. };
  6471. var faHandPointRight = {
  6472. prefix: 'fas',
  6473. iconName: 'hand-point-right',
  6474. 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"]
  6475. };
  6476. var faHandPointUp = {
  6477. prefix: 'fas',
  6478. iconName: 'hand-point-up',
  6479. 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"]
  6480. };
  6481. var faHandPointer = {
  6482. prefix: 'fas',
  6483. iconName: 'hand-pointer',
  6484. 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"]
  6485. };
  6486. var faHandRock = {
  6487. prefix: 'fas',
  6488. iconName: 'hand-rock',
  6489. icon: [512, 512, [], "f255", "M464.8 80c-26.9-.4-48.8 21.2-48.8 48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v32h-8V80.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v136l-8-7.1v-48.1c0-26.3-20.9-48.3-47.2-48.8C21.9 127.6 0 149.2 0 176v66.4c0 27.4 11.7 53.5 32.2 71.8l111.7 99.3c10.2 9.1 16.1 22.2 16.1 35.9v6.7c0 13.3 10.7 24 24 24h240c13.3 0 24-10.7 24-24v-2.9c0-12.8 2.6-25.5 7.5-37.3l49-116.3c5-11.8 7.5-24.5 7.5-37.3V128.8c0-26.3-20.9-48.4-47.2-48.8z"]
  6490. };
  6491. var faHandScissors = {
  6492. prefix: 'fas',
  6493. iconName: 'hand-scissors',
  6494. 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"]
  6495. };
  6496. var faHandSparkles = {
  6497. prefix: 'fas',
  6498. iconName: 'hand-sparkles',
  6499. icon: [640, 512, [], "f95d", "M106.66,170.64l.09,0,49.55-20.65a7.32,7.32,0,0,0,3.68-6h0a7.29,7.29,0,0,0-3.68-6l-49.57-20.67-.07,0L86,67.68a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L3.7,138A7.29,7.29,0,0,0,0,144H0a7.32,7.32,0,0,0,3.68,6L53.27,170.6l.07,0L74,220.26a6.65,6.65,0,0,0,11.92,0l20.69-49.62ZM471.38,467.41l-1-.42-1-.5a38.67,38.67,0,0,1,0-69.14l1-.49,1-.43,37.49-15.63,15.63-37.48.41-1,.47-.95c3.85-7.74,10.58-13.63,18.35-17.34,0-1.33.25-2.69.27-4V144a32,32,0,0,0-64,0v72a8,8,0,0,1-8,8H456a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H360a8,8,0,0,1-8-8V32a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H264a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0v241l-23.59-32.49a40,40,0,0,0-64.71,47.09L229.3,492.21A48.07,48.07,0,0,0,268.09,512H465.7c19.24,0,35.65-11.73,43.24-28.79l-.07-.17ZM349.79,339.52,320,351.93l-12.42,29.78a4,4,0,0,1-7.15,0L288,351.93l-29.79-12.41a4,4,0,0,1,0-7.16L288,319.94l12.42-29.78a4,4,0,0,1,7.15,0L320,319.94l29.79,12.42a4,4,0,0,1,0,7.16ZM640,431.91a7.28,7.28,0,0,0-3.68-6l-49.57-20.67-.07,0L566,355.63a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L483.7,426a7.28,7.28,0,0,0-3.68,6h0a7.29,7.29,0,0,0,3.68,5.95l49.57,20.67.07,0L554,508.21a6.65,6.65,0,0,0,11.92,0l20.69-49.62h0l.09,0,49.55-20.66a7.29,7.29,0,0,0,3.68-5.95h0Z"]
  6500. };
  6501. var faHandSpock = {
  6502. prefix: 'fas',
  6503. iconName: 'hand-spock',
  6504. icon: [512, 512, [], "f259", "M510.9005,145.27027,442.604,432.09391A103.99507,103.99507,0,0,1,341.43745,512H214.074a135.96968,135.96968,0,0,1-93.18489-36.95291L12.59072,373.12723a39.992,39.992,0,0,1,54.8122-58.24988l60.59342,57.02528v0a283.24849,283.24849,0,0,0-11.6703-80.46734L73.63726,147.36011a40.00575,40.00575,0,1,1,76.71833-22.7187l37.15458,125.39477a8.33113,8.33113,0,0,0,16.05656-4.4414L153.26183,49.95406A39.99638,39.99638,0,1,1,230.73015,30.0166l56.09491,218.15825a10.42047,10.42047,0,0,0,20.30018-.501L344.80766,63.96966a40.052,40.052,0,0,1,51.30245-30.0893c19.86073,6.2998,30.86262,27.67378,26.67564,48.08487l-33.83869,164.966a7.55172,7.55172,0,0,0,14.74406,3.2666l29.3973-123.45874a39.99414,39.99414,0,1,1,77.81208,18.53121Z"]
  6505. };
  6506. var faHands = {
  6507. prefix: 'fas',
  6508. iconName: 'hands',
  6509. 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"]
  6510. };
  6511. var faHandsHelping = {
  6512. prefix: 'fas',
  6513. iconName: 'hands-helping',
  6514. 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"]
  6515. };
  6516. var faHandsWash = {
  6517. prefix: 'fas',
  6518. iconName: 'hands-wash',
  6519. icon: [576, 512, [], "f95e", "M496,224a48,48,0,1,0-48-48A48,48,0,0,0,496,224ZM311.47,178.45A56.77,56.77,0,0,1,328,176a56,56,0,0,1,19,3.49l15.35-48.61A24,24,0,0,0,342,99.74c-11.53-1.35-22.21,6.44-25.71,17.51l-20.9,66.17ZM93.65,386.33c.8-.19,1.54-.54,2.35-.71V359.93a156,156,0,0,1,107.06-148l73.7-22.76L310.92,81.05a24,24,0,0,0-20.33-31.11c-11.53-1.34-22.22,6.45-25.72,17.52L231.42,173.88a8,8,0,0,1-15.26-4.83L259.53,31.26A24,24,0,0,0,239.2.15C227.67-1.19,217,6.6,213.49,17.66L165.56,169.37a8,8,0,1,1-15.26-4.82l38.56-122a24,24,0,0,0-20.33-31.11C157,10,146.32,17.83,142.82,28.9l-60,189.85L80.76,168.7A24,24,0,0,0,56.9,144.55c-13.23-.05-24.72,10.54-24.9,23.86V281.14A123.69,123.69,0,0,0,93.65,386.33ZM519.1,336H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,279.84,498.71,272,487.1,272H288l47.09-17.06a24,24,0,0,0-14.18-45.88L213.19,242.31A123.88,123.88,0,0,0,128,360v25.65a79.78,79.78,0,0,1,58,108.63A118.9,118.9,0,0,0,248,512H456a24,24,0,0,0,23.54-28.76C477.35,471.84,466.71,464,455.1,464H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,407.84,498.71,400,487.1,400H360a8,8,0,0,1,0-16H520a24,24,0,0,0,23.54-28.76C541.35,343.84,530.71,336,519.1,336ZM416,64a32,32,0,1,0-32-32A32,32,0,0,0,416,64ZM112,416a48,48,0,1,0,48,48A48,48,0,0,0,112,416Z"]
  6520. };
  6521. var faHandshake = {
  6522. prefix: 'fas',
  6523. iconName: 'handshake',
  6524. 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"]
  6525. };
  6526. var faHandshakeAltSlash = {
  6527. prefix: 'fas',
  6528. iconName: 'handshake-alt-slash',
  6529. icon: [640, 512, [], "f95f", "M358.59,195.6,504.2,313.8a63.4,63.4,0,0,1,22.21,37.91H624a16.05,16.05,0,0,0,16-16V143.91A16,16,0,0,0,624,128H512L457.41,73.41A32,32,0,0,0,434.8,64H348.91a32,32,0,0,0-21.61,8.41l-88.12,80.68-25.69-19.85L289.09,64H205.3a32,32,0,0,0-22.6,9.41l-20.34,20.3L45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.54,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45L303.4,202.72l32.69-29.92,27-24.7a16,16,0,0,1,21.61,23.61ZM16,128A16.05,16.05,0,0,0,0,144V335.91a16,16,0,0,0,16,16H146.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L23.56,128Z"]
  6530. };
  6531. var faHandshakeSlash = {
  6532. prefix: 'fas',
  6533. iconName: 'handshake-slash',
  6534. icon: [640, 512, [], "f960", "M0,128.21V384H64a32,32,0,0,0,32-32V184L23.83,128.21ZM48,320.1a16,16,0,1,1-16,16A16,16,0,0,1,48,320.1Zm80,31.81h18.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L128,208.72Zm416-223.7V352.1a32,32,0,0,0,32,32h64V128.21ZM592,352.1a16,16,0,1,1,16-16A16,16,0,0,1,592,352.1ZM303.33,202.67l59.58-54.57a16,16,0,0,1,21.59,23.61L358.41,195.6,504,313.8a73.08,73.08,0,0,1,7.91,7.7V128L457.3,73.41A31.76,31.76,0,0,0,434.7,64H348.8a31.93,31.93,0,0,0-21.6,8.41l-88.07,80.64-25.64-19.81L289.09,64H205.3a32,32,0,0,0-22.6,9.41L162.36,93.72,45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.65-25.27a16,16,0,0,0-2.82-22.45Z"]
  6535. };
  6536. var faHanukiah = {
  6537. prefix: 'fas',
  6538. iconName: 'hanukiah',
  6539. 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"]
  6540. };
  6541. var faHardHat = {
  6542. prefix: 'fas',
  6543. iconName: 'hard-hat',
  6544. icon: [512, 512, [], "f807", "M480 288c0-80.25-49.28-148.92-119.19-177.62L320 192V80a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16v112l-40.81-81.62C81.28 139.08 32 207.75 32 288v64h448zm16 96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  6545. };
  6546. var faHashtag = {
  6547. prefix: 'fas',
  6548. iconName: 'hashtag',
  6549. 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"]
  6550. };
  6551. var faHatCowboy = {
  6552. prefix: 'fas',
  6553. iconName: 'hat-cowboy',
  6554. icon: [640, 512, [], "f8c0", "M490 296.9C480.51 239.51 450.51 64 392.3 64c-14 0-26.49 5.93-37 14a58.21 58.21 0 0 1-70.58 0c-10.51-8-23-14-37-14-58.2 0-88.2 175.47-97.71 232.88C188.81 309.47 243.73 320 320 320s131.23-10.51 170-23.1zm142.9-37.18a16 16 0 0 0-19.75 1.5c-1 .9-101.27 90.78-293.16 90.78-190.82 0-292.22-89.94-293.24-90.84A16 16 0 0 0 1 278.53C1.73 280.55 78.32 480 320 480s318.27-199.45 319-201.47a16 16 0 0 0-6.09-18.81z"]
  6555. };
  6556. var faHatCowboySide = {
  6557. prefix: 'fas',
  6558. iconName: 'hat-cowboy-side',
  6559. icon: [640, 512, [], "f8c1", "M260.8 291.06c-28.63-22.94-62-35.06-96.4-35.06C87 256 21.47 318.72 1.43 412.06c-3.55 16.6-.43 33.83 8.57 47.3C18.75 472.47 31.83 480 45.88 480H592c-103.21 0-155-37.07-233.19-104.46zm234.65-18.29L468.4 116.2A64 64 0 0 0 392 64.41L200.85 105a64 64 0 0 0-50.35 55.79L143.61 226c6.9-.83 13.7-2 20.79-2 41.79 0 82 14.55 117.29 42.82l98 84.48C450.76 412.54 494.9 448 592 448a48 48 0 0 0 48-48c0-25.39-29.6-119.33-144.55-127.23z"]
  6560. };
  6561. var faHatWizard = {
  6562. prefix: 'fas',
  6563. iconName: 'hat-wizard',
  6564. 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"]
  6565. };
  6566. var faHdd = {
  6567. prefix: 'fas',
  6568. iconName: 'hdd',
  6569. 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"]
  6570. };
  6571. var faHeadSideCough = {
  6572. prefix: 'fas',
  6573. iconName: 'head-side-cough',
  6574. icon: [640, 512, [], "f961", "M616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304ZM552,416a24,24,0,1,0,24,24A24,24,0,0,0,552,416Zm-64-56a24,24,0,1,0,24,24A24,24,0,0,0,488,360ZM616,464a24,24,0,1,0,24,24A24,24,0,0,0,616,464Zm0-104a24,24,0,1,0,24,24A24,24,0,0,0,616,360Zm-64-40a24,24,0,1,0,24,24A24,24,0,0,0,552,320Zm-74.78-45c-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192C86,0,0,86,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320a32,32,0,0,1,0-64h96V320h32A32,32,0,0,0,477.22,275ZM288,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,288,224Z"]
  6575. };
  6576. var faHeadSideCoughSlash = {
  6577. prefix: 'fas',
  6578. iconName: 'head-side-cough-slash',
  6579. icon: [640, 512, [], "f962", "M454.11,319.21c19.56-3.81,31.62-25,23.11-44.21-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192A190.64,190.64,0,0,0,84.18,33.3L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM313.39,210.45,263.61,172c5.88-7.14,14.43-12,24.36-12a32.06,32.06,0,0,1,32,32C320,199,317.24,205.17,313.39,210.45ZM616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304Zm-64,64a24,24,0,1,0-24-24A24,24,0,0,0,552,368ZM288,384a32,32,0,0,1,32-32h19.54L20.73,105.59A190.86,190.86,0,0,0,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320A32,32,0,0,1,288,384Zm328-24a24,24,0,1,0,24,24A24,24,0,0,0,616,360Z"]
  6580. };
  6581. var faHeadSideMask = {
  6582. prefix: 'fas',
  6583. iconName: 'head-side-mask',
  6584. icon: [512, 512, [], "f963", "M.15,184.42C-2.17,244.21,23,298.06,64,334.88V512H224V316.51L3.67,156.25A182.28,182.28,0,0,0,.15,184.42ZM509.22,275c-21-47.12-48.5-151.75-73.12-186.75A208.11,208.11,0,0,0,266.11,0H200C117,0,42.48,50.57,13.25,123.65L239.21,288H511.76A31.35,31.35,0,0,0,509.22,275ZM320,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,320,224Zm16,144H496l16-48H256V512H401.88a64,64,0,0,0,60.71-43.76L464,464H336a16,16,0,0,1,0-32H474.67l10.67-32H336a16,16,0,0,1,0-32Z"]
  6585. };
  6586. var faHeadSideVirus = {
  6587. prefix: 'fas',
  6588. iconName: 'head-side-virus',
  6589. icon: [512, 512, [], "f964", "M272,240a16,16,0,1,0,16,16A16,16,0,0,0,272,240Zm-64-64a16,16,0,1,0,16,16A16,16,0,0,0,208,176Zm301.2,99c-20.93-47.12-48.43-151.73-73.07-186.75A207.9,207.9,0,0,0,266.09,0H192C86,0,0,86,0,192A191.23,191.23,0,0,0,64,334.81V512H320V448h64a64,64,0,0,0,64-64V320H480A32,32,0,0,0,509.2,275ZM368,240H355.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C290.47,297.09,256,311.37,256,339.88V352a16,16,0,0,1-32,0V339.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H112a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V96a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C313.09,173.53,327.37,208,355.88,208H368a16,16,0,0,1,0,32Z"]
  6590. };
  6591. var faHeading = {
  6592. prefix: 'fas',
  6593. iconName: 'heading',
  6594. icon: [512, 512, [], "f1dc", "M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"]
  6595. };
  6596. var faHeadphones = {
  6597. prefix: 'fas',
  6598. iconName: 'headphones',
  6599. 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"]
  6600. };
  6601. var faHeadphonesAlt = {
  6602. prefix: 'fas',
  6603. iconName: 'headphones-alt',
  6604. 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"]
  6605. };
  6606. var faHeadset = {
  6607. prefix: 'fas',
  6608. iconName: 'headset',
  6609. 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"]
  6610. };
  6611. var faHeart = {
  6612. prefix: 'fas',
  6613. iconName: 'heart',
  6614. 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"]
  6615. };
  6616. var faHeartBroken = {
  6617. prefix: 'fas',
  6618. iconName: 'heart-broken',
  6619. icon: [512, 512, [], "f7a9", "M473.7 73.8l-2.4-2.5c-46-47-118-51.7-169.6-14.8L336 159.9l-96 64 48 128-144-144 96-64-28.6-86.5C159.7 19.6 87 24 40.7 71.4l-2.4 2.4C-10.4 123.6-12.5 202.9 31 256l212.1 218.6c7.1 7.3 18.6 7.3 25.7 0L481 255.9c43.5-53 41.4-132.3-7.3-182.1z"]
  6620. };
  6621. var faHeartbeat = {
  6622. prefix: 'fas',
  6623. iconName: 'heartbeat',
  6624. 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"]
  6625. };
  6626. var faHelicopter = {
  6627. prefix: 'fas',
  6628. iconName: 'helicopter',
  6629. 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"]
  6630. };
  6631. var faHighlighter = {
  6632. prefix: 'fas',
  6633. iconName: 'highlighter',
  6634. 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"]
  6635. };
  6636. var faHiking = {
  6637. prefix: 'fas',
  6638. iconName: 'hiking',
  6639. 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"]
  6640. };
  6641. var faHippo = {
  6642. prefix: 'fas',
  6643. iconName: 'hippo',
  6644. 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"]
  6645. };
  6646. var faHistory = {
  6647. prefix: 'fas',
  6648. iconName: 'history',
  6649. 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"]
  6650. };
  6651. var faHockeyPuck = {
  6652. prefix: 'fas',
  6653. iconName: 'hockey-puck',
  6654. 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"]
  6655. };
  6656. var faHollyBerry = {
  6657. prefix: 'fas',
  6658. iconName: 'holly-berry',
  6659. icon: [448, 512, [], "f7aa", "M144 192c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm112-48c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm-32-48c26.5 0 48-21.5 48-48S250.5 0 224 0s-48 21.5-48 48 21.5 48 48 48zm-16.2 139.1c.1-12.4-13.1-20.1-23.8-13.7-34.3 20.3-71.4 32.7-108.7 36.2-9.7.9-15.6 11.3-11.6 20.2 6.2 13.9 11.1 28.6 14.7 43.8 3.6 15.2-5.3 30.6-20.2 35.1-14.9 4.5-30.1 7.6-45.3 9.1-9.7 1-15.7 11.3-11.7 20.2 15 32.8 22.9 69.5 23 107.7.1 14.4 15.2 23.1 27.6 16 33.2-19 68.9-30.5 104.8-33.9 9.7-.9 15.6-11.3 11.6-20.2-6.2-13.9-11.1-28.6-14.7-43.8-3.6-15.2 5.3-30.6 20.2-35.1 14.9-4.5 30.1-7.6 45.3-9.1 9.7-1 15.7-11.3 11.7-20.2-15.5-34.2-23.3-72.5-22.9-112.3zM435 365.6c-15.2-1.6-30.3-4.7-45.3-9.1-14.9-4.5-23.8-19.9-20.2-35.1 3.6-15.2 8.5-29.8 14.7-43.8 4-8.9-1.9-19.3-11.6-20.2-37.3-3.5-74.4-15.9-108.7-36.2-10.7-6.3-23.9 1.4-23.8 13.7 0 1.6-.2 3.2-.2 4.9.2 33.3 7 65.7 19.9 94 5.7 12.4 5.2 26.6-.6 38.9 4.9 1.2 9.9 2.2 14.8 3.7 14.9 4.5 23.8 19.9 20.2 35.1-3.6 15.2-8.5 29.8-14.7 43.8-4 8.9 1.9 19.3 11.6 20.2 35.9 3.4 71.6 14.9 104.8 33.9 12.5 7.1 27.6-1.6 27.6-16 .2-38.2 8-75 23-107.7 4.3-8.7-1.8-19.1-11.5-20.1z"]
  6660. };
  6661. var faHome = {
  6662. prefix: 'fas',
  6663. iconName: 'home',
  6664. icon: [576, 512, [], "f015", "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"]
  6665. };
  6666. var faHorse = {
  6667. prefix: 'fas',
  6668. iconName: 'horse',
  6669. 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"]
  6670. };
  6671. var faHorseHead = {
  6672. prefix: 'fas',
  6673. iconName: 'horse-head',
  6674. icon: [512, 512, [], "f7ab", "M509.8 332.5l-69.9-164.3c-14.9-41.2-50.4-71-93-79.2 18-10.6 46.3-35.9 34.2-82.3-1.3-5-7.1-7.9-12-6.1L166.9 76.3C35.9 123.4 0 238.9 0 398.8V480c0 17.7 14.3 32 32 32h236.2c23.8 0 39.3-25 28.6-46.3L256 384v-.7c-45.6-3.5-84.6-30.7-104.3-69.6-1.6-3.1-.9-6.9 1.6-9.3l12.1-12.1c3.9-3.9 10.6-2.7 12.9 2.4 14.8 33.7 48.2 57.4 87.4 57.4 17.2 0 33-5.1 46.8-13.2l46 63.9c6 8.4 15.7 13.3 26 13.3h50.3c8.5 0 16.6-3.4 22.6-9.4l45.3-39.8c8.9-9.1 11.7-22.6 7.1-34.4zM328 224c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24z"]
  6675. };
  6676. var faHospital = {
  6677. prefix: 'fas',
  6678. iconName: 'hospital',
  6679. 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"]
  6680. };
  6681. var faHospitalAlt = {
  6682. prefix: 'fas',
  6683. iconName: 'hospital-alt',
  6684. 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"]
  6685. };
  6686. var faHospitalSymbol = {
  6687. prefix: 'fas',
  6688. iconName: 'hospital-symbol',
  6689. 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"]
  6690. };
  6691. var faHospitalUser = {
  6692. prefix: 'fas',
  6693. iconName: 'hospital-user',
  6694. icon: [640, 512, [], "f80d", "M480 320a96 96 0 1 0-96-96 96 96 0 0 0 96 96zm48 32a22.88 22.88 0 0 0-7.06 1.09 124.76 124.76 0 0 1-81.89 0A22.82 22.82 0 0 0 432 352a112 112 0 0 0-112 112.62c.14 26.26 21.73 47.38 48 47.38h224c26.27 0 47.86-21.12 48-47.38A112 112 0 0 0 528 352zm-198.09 10.45A145.19 145.19 0 0 1 352 344.62V128a32 32 0 0 0-32-32h-32V32a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v64H32a32 32 0 0 0-32 32v368a16 16 0 0 0 16 16h288.31A78.62 78.62 0 0 1 288 464.79a143.06 143.06 0 0 1 41.91-102.34zM144 404a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm48-122a6 6 0 0 1-6 6h-20a6 6 0 0 1-6-6v-26h-26a6 6 0 0 1-6-6v-20a6 6 0 0 1 6-6h26V70a6 6 0 0 1 6-6h20a6 6 0 0 1 6 6v26h26a6 6 0 0 1 6 6v20a6 6 0 0 1-6 6h-26zm80 250a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12z"]
  6695. };
  6696. var faHotTub = {
  6697. prefix: 'fas',
  6698. iconName: 'hot-tub',
  6699. 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"]
  6700. };
  6701. var faHotdog = {
  6702. prefix: 'fas',
  6703. iconName: 'hotdog',
  6704. icon: [512, 512, [], "f80f", "M488.56 23.44a80 80 0 0 0-113.12 0l-352 352a80 80 0 1 0 113.12 113.12l352-352a80 80 0 0 0 0-113.12zm-49.93 95.19c-19.6 19.59-37.52 22.67-51.93 25.14C373.76 146 364.4 147.6 352 160s-14 21.76-16.23 34.71c-2.48 14.4-5.55 32.33-25.15 51.92s-37.52 22.67-51.92 25.15C245.75 274 236.4 275.6 224 288s-14 21.75-16.23 34.7c-2.47 14.4-5.54 32.33-25.14 51.92s-37.53 22.68-51.93 25.15C117.76 402 108.4 403.6 96 416a16 16 0 0 1-22.63-22.63c19.6-19.59 37.52-22.67 51.92-25.14 13-2.22 22.3-3.82 34.71-16.23s14-21.75 16.22-34.7c2.48-14.4 5.55-32.33 25.15-51.92s37.52-22.67 51.92-25.14c13-2.22 22.3-3.83 34.7-16.23s14-21.76 16.24-34.71c2.47-14.4 5.54-32.33 25.14-51.92s37.52-22.68 51.92-25.15C394.24 110 403.59 108.41 416 96a16 16 0 0 1 22.63 22.63zM31.44 322.18L322.18 31.44l-11.54-11.55c-25-25-63.85-26.66-86.79-3.72L16.17 223.85c-22.94 22.94-21.27 61.79 3.72 86.78zm449.12-132.36L189.82 480.56l11.54 11.55c25 25 63.85 26.66 86.79 3.72l207.68-207.68c22.94-22.94 21.27-61.79-3.72-86.79z"]
  6705. };
  6706. var faHotel = {
  6707. prefix: 'fas',
  6708. iconName: 'hotel',
  6709. 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"]
  6710. };
  6711. var faHourglass = {
  6712. prefix: 'fas',
  6713. iconName: 'hourglass',
  6714. 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"]
  6715. };
  6716. var faHourglassEnd = {
  6717. prefix: 'fas',
  6718. iconName: 'hourglass-end',
  6719. 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"]
  6720. };
  6721. var faHourglassHalf = {
  6722. prefix: 'fas',
  6723. iconName: 'hourglass-half',
  6724. 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"]
  6725. };
  6726. var faHourglassStart = {
  6727. prefix: 'fas',
  6728. iconName: 'hourglass-start',
  6729. 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"]
  6730. };
  6731. var faHouseDamage = {
  6732. prefix: 'fas',
  6733. iconName: 'house-damage',
  6734. 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"]
  6735. };
  6736. var faHouseUser = {
  6737. prefix: 'fas',
  6738. iconName: 'house-user',
  6739. icon: [576, 512, [], "f965", "M570.69,236.27,512,184.44V48a16,16,0,0,0-16-16H432a16,16,0,0,0-16,16V99.67L314.78,10.3C308.5,4.61,296.53,0,288,0s-20.46,4.61-26.74,10.3l-256,226A18.27,18.27,0,0,0,0,248.2a18.64,18.64,0,0,0,4.09,10.71L25.5,282.7a21.14,21.14,0,0,0,12,5.3,21.67,21.67,0,0,0,10.69-4.11l15.9-14V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V269.88l15.91,14A21.94,21.94,0,0,0,538.63,288a20.89,20.89,0,0,0,11.87-5.31l21.41-23.81A21.64,21.64,0,0,0,576,248.19,21,21,0,0,0,570.69,236.27ZM288,176a64,64,0,1,1-64,64A64,64,0,0,1,288,176ZM400,448H176a16,16,0,0,1-16-16,96,96,0,0,1,96-96h64a96,96,0,0,1,96,96A16,16,0,0,1,400,448Z"]
  6740. };
  6741. var faHryvnia = {
  6742. prefix: 'fas',
  6743. iconName: 'hryvnia',
  6744. 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"]
  6745. };
  6746. var faICursor = {
  6747. prefix: 'fas',
  6748. iconName: 'i-cursor',
  6749. 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"]
  6750. };
  6751. var faIceCream = {
  6752. prefix: 'fas',
  6753. iconName: 'ice-cream',
  6754. icon: [448, 512, [], "f810", "M368 160h-.94a144 144 0 1 0-286.12 0H80a48 48 0 0 0 0 96h288a48 48 0 0 0 0-96zM195.38 493.69a31.52 31.52 0 0 0 57.24 0L352 288H96z"]
  6755. };
  6756. var faIcicles = {
  6757. prefix: 'fas',
  6758. iconName: 'icicles',
  6759. icon: [512, 512, [], "f7ad", "M511.4 37.9C515.1 18.2 500 0 480 0H32C10.6 0-4.8 20.7 1.4 41.2l87.1 273.4c2.5 7.2 12.7 7.2 15.1 0L140 190.5l44.2 187.3c1.9 8.3 13.7 8.3 15.6 0l46.5-196.9 34.1 133.4c2.3 7.6 13 7.6 15.3 0l45.8-172.5 66.7 363.8c1.7 8.6 14 8.6 15.7 0l87.5-467.7z"]
  6760. };
  6761. var faIcons = {
  6762. prefix: 'fas',
  6763. iconName: 'icons',
  6764. icon: [512, 512, [], "f86d", "M116.65 219.35a15.68 15.68 0 0 0 22.65 0l96.75-99.83c28.15-29 26.5-77.1-4.91-103.88C203.75-7.7 163-3.5 137.86 22.44L128 32.58l-9.85-10.14C93.05-3.5 52.25-7.7 24.86 15.64c-31.41 26.78-33 74.85-5 103.88zm143.92 100.49h-48l-7.08-14.24a27.39 27.39 0 0 0-25.66-17.78h-71.71a27.39 27.39 0 0 0-25.66 17.78l-7 14.24h-48A27.45 27.45 0 0 0 0 347.3v137.25A27.44 27.44 0 0 0 27.43 512h233.14A27.45 27.45 0 0 0 288 484.55V347.3a27.45 27.45 0 0 0-27.43-27.46zM144 468a52 52 0 1 1 52-52 52 52 0 0 1-52 52zm355.4-115.9h-60.58l22.36-50.75c2.1-6.65-3.93-13.21-12.18-13.21h-75.59c-6.3 0-11.66 3.9-12.5 9.1l-16.8 106.93c-1 6.3 4.88 11.89 12.5 11.89h62.31l-24.2 83c-1.89 6.65 4.2 12.9 12.23 12.9a13.26 13.26 0 0 0 10.92-5.25l92.4-138.91c4.88-6.91-1.16-15.7-10.87-15.7zM478.08.33L329.51 23.17C314.87 25.42 304 38.92 304 54.83V161.6a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V99.66l112-17.22v47.18a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V32c0-19.48-16-34.42-33.92-31.67z"]
  6765. };
  6766. var faIdBadge = {
  6767. prefix: 'fas',
  6768. iconName: 'id-badge',
  6769. 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"]
  6770. };
  6771. var faIdCard = {
  6772. prefix: 'fas',
  6773. iconName: 'id-card',
  6774. 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"]
  6775. };
  6776. var faIdCardAlt = {
  6777. prefix: 'fas',
  6778. iconName: 'id-card-alt',
  6779. 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"]
  6780. };
  6781. var faIgloo = {
  6782. prefix: 'fas',
  6783. iconName: 'igloo',
  6784. icon: [576, 512, [], "f7ae", "M320 33.9c-10.5-1.2-21.2-1.9-32-1.9-99.8 0-187.8 50.8-239.4 128H320V33.9zM96 192H30.3C11.1 230.6 0 274 0 320h96V192zM352 39.4V160h175.4C487.2 99.9 424.8 55.9 352 39.4zM480 320h96c0-46-11.1-89.4-30.3-128H480v128zm-64 64v96h128c17.7 0 32-14.3 32-32v-96H411.5c2.6 10.3 4.5 20.9 4.5 32zm32-192H128v128h49.8c22.2-38.1 63-64 110.2-64s88 25.9 110.2 64H448V192zM0 448c0 17.7 14.3 32 32 32h128v-96c0-11.1 1.9-21.7 4.5-32H0v96zm288-160c-53 0-96 43-96 96v96h192v-96c0-53-43-96-96-96z"]
  6785. };
  6786. var faImage = {
  6787. prefix: 'fas',
  6788. iconName: 'image',
  6789. 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"]
  6790. };
  6791. var faImages = {
  6792. prefix: 'fas',
  6793. iconName: 'images',
  6794. 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"]
  6795. };
  6796. var faInbox = {
  6797. prefix: 'fas',
  6798. iconName: 'inbox',
  6799. 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"]
  6800. };
  6801. var faIndent = {
  6802. prefix: 'fas',
  6803. iconName: 'indent',
  6804. icon: [448, 512, [], "f03c", "M27.31 363.3l96-96a16 16 0 0 0 0-22.62l-96-96C17.27 138.66 0 145.78 0 160v192c0 14.31 17.33 21.3 27.31 11.3zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  6805. };
  6806. var faIndustry = {
  6807. prefix: 'fas',
  6808. iconName: 'industry',
  6809. 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"]
  6810. };
  6811. var faInfinity = {
  6812. prefix: 'fas',
  6813. iconName: 'infinity',
  6814. 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"]
  6815. };
  6816. var faInfo = {
  6817. prefix: 'fas',
  6818. iconName: 'info',
  6819. 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"]
  6820. };
  6821. var faInfoCircle = {
  6822. prefix: 'fas',
  6823. iconName: 'info-circle',
  6824. 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"]
  6825. };
  6826. var faItalic = {
  6827. prefix: 'fas',
  6828. iconName: 'italic',
  6829. icon: [320, 512, [], "f033", "M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z"]
  6830. };
  6831. var faJedi = {
  6832. prefix: 'fas',
  6833. iconName: 'jedi',
  6834. icon: [576, 512, [], "f669", "M535.95308,352c-42.64069,94.17188-137.64086,160-247.9848,160q-6.39844,0-12.84377-.29688C171.15558,506.9375,81.26481,442.23438,40.01474,352H79.93668L21.3272,293.40625a264.82522,264.82522,0,0,1-5.10938-39.42187,273.6653,273.6653,0,0,1,.5-29.98438H63.93665L22.546,182.625A269.79782,269.79782,0,0,1,130.51489,20.54688a16.06393,16.06393,0,0,1,9.28127-3,16.36332,16.36332,0,0,1,13.5,7.25,16.02739,16.02739,0,0,1,1.625,15.09374,138.387,138.387,0,0,0-9.84376,51.26563c0,45.10937,21.04691,86.57813,57.71884,113.73437a16.29989,16.29989,0,0,1,1.20313,25.39063c-26.54692,23.98437-41.17194,56.5-41.17194,91.57813,0,60.03124,42.95319,110.28124,99.89079,121.92187l2.5-65.26563L238.062,397a8.33911,8.33911,0,0,1-10-.75,8.025,8.025,0,0,1-1.39063-9.9375l20.125-33.76562-42.06257-8.73438a7.9898,7.9898,0,0,1,0-15.65625l42.06257-8.71875-20.10941-33.73438a7.99122,7.99122,0,0,1,11.35939-10.71874L268.437,295.64062,279.95265,7.67188a7.97138,7.97138,0,0,1,8-7.67188h.04687a8.02064,8.02064,0,0,1,7.95314,7.70312L307.48394,295.625l30.39068-20.67188a8.08327,8.08327,0,0,1,10,.8125,7.99866,7.99866,0,0,1,1.39062,9.90626L329.12461,319.4375l42.07819,8.73438a7.99373,7.99373,0,0,1,0,15.65624l-42.07819,8.71876,20.1094,33.73437a7.97791,7.97791,0,0,1-1.32812,9.92187A8.25739,8.25739,0,0,1,337.87462,397L310.7027,378.53125l2.5,65.34375c48.48446-9.40625,87.57828-48.15625,97.31267-96.5A123.52652,123.52652,0,0,0,371.9528,230.29688a16.30634,16.30634,0,0,1,1.20313-25.42188c36.65631-27.17188,57.6876-68.60938,57.6876-113.73438a138.01689,138.01689,0,0,0-9.85939-51.3125,15.98132,15.98132,0,0,1,1.60937-15.09374,16.36914,16.36914,0,0,1,13.5-7.23438,16.02453,16.02453,0,0,1,9.25,2.98438A271.26947,271.26947,0,0,1,553.25,182.76562L511.99992,224h46.9532C559.3125,229.76562,560,235.45312,560,241.26562a270.092,270.092,0,0,1-5.125,51.85938L495.98427,352Z"]
  6835. };
  6836. var faJoint = {
  6837. prefix: 'fas',
  6838. iconName: 'joint',
  6839. 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"]
  6840. };
  6841. var faJournalWhills = {
  6842. prefix: 'fas',
  6843. iconName: 'journal-whills',
  6844. icon: [448, 512, [], "f66a", "M438.40625,377.59375c-3.20313,12.8125-3.20313,57.60937,0,73.60937Q447.9922,460.78907,448,470.40625v16c0,16-12.79688,25.59375-25.59375,25.59375H96c-54.40625,0-96-41.59375-96-96V96C0,41.59375,41.59375,0,96,0H422.40625C438.40625,0,448,9.59375,448,25.59375v332.8125Q448,372.79688,438.40625,377.59375ZM380.79688,384H96c-16,0-32,12.79688-32,32s12.79688,32,32,32H380.79688ZM128.01562,176.01562c0,.51563.14063.98438.14063,1.5l37.10937,32.46876A7.99954,7.99954,0,0,1,160,224h-.01562a9.17678,9.17678,0,0,1-5.25-1.98438L131.14062,201.375C142.6875,250.95312,186.90625,288,240,288s97.3125-37.04688,108.875-86.625l-23.59375,20.64062a8.02516,8.02516,0,0,1-5.26563,1.96876H320a9.14641,9.14641,0,0,1-6.01562-2.71876A9.26508,9.26508,0,0,1,312,216a9.097,9.097,0,0,1,2.73438-6.01562l37.10937-32.46876c.01563-.53124.15625-1,.15625-1.51562,0-11.04688-2.09375-21.51562-5.06251-31.59375l-21.26562,21.25a8.00467,8.00467,0,0,1-11.32812-11.3125l26.42187-26.40625a111.81517,111.81517,0,0,0-46.35937-49.26562,63.02336,63.02336,0,0,1-14.0625,82.64062A55.83846,55.83846,0,0,1,251.625,254.73438l-1.42188-34.28126,12.67188,8.625a3.967,3.967,0,0,0,2.25.6875,3.98059,3.98059,0,0,0,3.43749-6.03124l-8.53124-14.3125,17.90625-3.71876a4.00647,4.00647,0,0,0,0-7.84374l-17.90625-3.71876,8.53124-14.3125a3.98059,3.98059,0,0,0-3.43749-6.03124,4.726,4.726,0,0,0-2.25.67187L248.6875,184.125,244,71.82812a4.00386,4.00386,0,0,0-8,0l-4.625,110.8125-12-8.15624a4.003,4.003,0,0,0-5.68751,5.35937l8.53126,14.3125L204.3125,197.875a3.99686,3.99686,0,0,0,0,7.82812l17.90625,3.73438-8.53126,14.29688a4.72469,4.72469,0,0,0-.56249,2.04687,4.59547,4.59547,0,0,0,1.25,2.90625,4.01059,4.01059,0,0,0,2.75,1.09375,4.09016,4.09016,0,0,0,2.25-.6875l10.35937-7.04687L228.375,254.76562a55.86414,55.86414,0,0,1-28.71875-93.45312,63.01119,63.01119,0,0,1-14.04688-82.65625,111.93158,111.93158,0,0,0-46.375,49.26563l26.42187,26.42187a7.99917,7.99917,0,0,1-11.3125,11.3125l-21.26563-21.26563C130.09375,154.48438,128,164.95312,128.01562,176.01562Z"]
  6845. };
  6846. var faKaaba = {
  6847. prefix: 'fas',
  6848. iconName: 'kaaba',
  6849. 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"]
  6850. };
  6851. var faKey = {
  6852. prefix: 'fas',
  6853. iconName: 'key',
  6854. 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"]
  6855. };
  6856. var faKeyboard = {
  6857. prefix: 'fas',
  6858. iconName: 'keyboard',
  6859. 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"]
  6860. };
  6861. var faKhanda = {
  6862. prefix: 'fas',
  6863. iconName: 'khanda',
  6864. 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"]
  6865. };
  6866. var faKiss = {
  6867. prefix: 'fas',
  6868. iconName: 'kiss',
  6869. 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"]
  6870. };
  6871. var faKissBeam = {
  6872. prefix: 'fas',
  6873. iconName: 'kiss-beam',
  6874. 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"]
  6875. };
  6876. var faKissWinkHeart = {
  6877. prefix: 'fas',
  6878. iconName: 'kiss-wink-heart',
  6879. 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"]
  6880. };
  6881. var faKiwiBird = {
  6882. prefix: 'fas',
  6883. iconName: 'kiwi-bird',
  6884. 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"]
  6885. };
  6886. var faLandmark = {
  6887. prefix: 'fas',
  6888. iconName: 'landmark',
  6889. 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"]
  6890. };
  6891. var faLanguage = {
  6892. prefix: 'fas',
  6893. iconName: 'language',
  6894. icon: [640, 512, [], "f1ab", "M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9 8.4 6.4 17.1 12.5 26.1 18 5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3-12.6-7.8-24.5-16.1-35.4-24.9-10.9 8.7-22.7 17.1-35.4 24.9-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2 9.3-5.7 18-11.7 26.1-18-7.9-8.4-14.9-17-21-25.7-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9 7.3-4.3c5.4-3.2 12.4-1.7 16 3.4 5 7 10.8 14 17.4 20.9 13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z"]
  6895. };
  6896. var faLaptop = {
  6897. prefix: 'fas',
  6898. iconName: 'laptop',
  6899. 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"]
  6900. };
  6901. var faLaptopCode = {
  6902. prefix: 'fas',
  6903. iconName: 'laptop-code',
  6904. 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"]
  6905. };
  6906. var faLaptopHouse = {
  6907. prefix: 'fas',
  6908. iconName: 'laptop-house',
  6909. icon: [640, 512, [], "f966", "M272,288H208a16,16,0,0,1-16-16V208a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v37.12C299.11,232.24,315,224,332.8,224H469.74l6.65-7.53A16.51,16.51,0,0,0,480,207a16.31,16.31,0,0,0-4.75-10.61L416,144V48a16,16,0,0,0-16-16H368a16,16,0,0,0-16,16V87.3L263.5,8.92C258,4,247.45,0,240.05,0s-17.93,4-23.47,8.92L4.78,196.42A16.15,16.15,0,0,0,0,207a16.4,16.4,0,0,0,3.55,9.39L22.34,237.7A16.22,16.22,0,0,0,33,242.48,16.51,16.51,0,0,0,42.34,239L64,219.88V384a32,32,0,0,0,32,32H272ZM629.33,448H592V288c0-17.67-12.89-32-28.8-32H332.8c-15.91,0-28.8,14.33-28.8,32V448H266.67A10.67,10.67,0,0,0,256,458.67v10.66A42.82,42.82,0,0,0,298.6,512H597.4A42.82,42.82,0,0,0,640,469.33V458.67A10.67,10.67,0,0,0,629.33,448ZM544,448H352V304H544Z"]
  6910. };
  6911. var faLaptopMedical = {
  6912. prefix: 'fas',
  6913. iconName: 'laptop-medical',
  6914. icon: [640, 512, [], "f812", "M232 224h56v56a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-56h56a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8h-56v-56a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v56h-56a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8zM576 48a48.14 48.14 0 0 0-48-48H112a48.14 48.14 0 0 0-48 48v336h512zm-64 272H128V64h384zm112 96H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33-17.47-32.77-32H16a16 16 0 0 0-16 16v16a64.19 64.19 0 0 0 64 64h512a64.19 64.19 0 0 0 64-64v-16a16 16 0 0 0-16-16z"]
  6915. };
  6916. var faLaugh = {
  6917. prefix: 'fas',
  6918. iconName: 'laugh',
  6919. 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"]
  6920. };
  6921. var faLaughBeam = {
  6922. prefix: 'fas',
  6923. iconName: 'laugh-beam',
  6924. 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"]
  6925. };
  6926. var faLaughSquint = {
  6927. prefix: 'fas',
  6928. iconName: 'laugh-squint',
  6929. 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"]
  6930. };
  6931. var faLaughWink = {
  6932. prefix: 'fas',
  6933. iconName: 'laugh-wink',
  6934. 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"]
  6935. };
  6936. var faLayerGroup = {
  6937. prefix: 'fas',
  6938. iconName: 'layer-group',
  6939. 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"]
  6940. };
  6941. var faLeaf = {
  6942. prefix: 'fas',
  6943. iconName: 'leaf',
  6944. 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"]
  6945. };
  6946. var faLemon = {
  6947. prefix: 'fas',
  6948. iconName: 'lemon',
  6949. 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"]
  6950. };
  6951. var faLessThan = {
  6952. prefix: 'fas',
  6953. iconName: 'less-than',
  6954. 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"]
  6955. };
  6956. var faLessThanEqual = {
  6957. prefix: 'fas',
  6958. iconName: 'less-than-equal',
  6959. 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"]
  6960. };
  6961. var faLevelDownAlt = {
  6962. prefix: 'fas',
  6963. iconName: 'level-down-alt',
  6964. 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"]
  6965. };
  6966. var faLevelUpAlt = {
  6967. prefix: 'fas',
  6968. iconName: 'level-up-alt',
  6969. 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"]
  6970. };
  6971. var faLifeRing = {
  6972. prefix: 'fas',
  6973. iconName: 'life-ring',
  6974. 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"]
  6975. };
  6976. var faLightbulb = {
  6977. prefix: 'fas',
  6978. iconName: 'lightbulb',
  6979. 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"]
  6980. };
  6981. var faLink = {
  6982. prefix: 'fas',
  6983. iconName: 'link',
  6984. 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"]
  6985. };
  6986. var faLiraSign = {
  6987. prefix: 'fas',
  6988. iconName: 'lira-sign',
  6989. 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"]
  6990. };
  6991. var faList = {
  6992. prefix: 'fas',
  6993. iconName: 'list',
  6994. icon: [512, 512, [], "f03a", "M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  6995. };
  6996. var faListAlt = {
  6997. prefix: 'fas',
  6998. iconName: 'list-alt',
  6999. 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"]
  7000. };
  7001. var faListOl = {
  7002. prefix: 'fas',
  7003. iconName: 'list-ol',
  7004. icon: [512, 512, [], "f0cb", "M61.77 401l17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z"]
  7005. };
  7006. var faListUl = {
  7007. prefix: 'fas',
  7008. iconName: 'list-ul',
  7009. icon: [512, 512, [], "f0ca", "M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  7010. };
  7011. var faLocationArrow = {
  7012. prefix: 'fas',
  7013. iconName: 'location-arrow',
  7014. 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"]
  7015. };
  7016. var faLock = {
  7017. prefix: 'fas',
  7018. iconName: 'lock',
  7019. 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"]
  7020. };
  7021. var faLockOpen = {
  7022. prefix: 'fas',
  7023. iconName: 'lock-open',
  7024. 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"]
  7025. };
  7026. var faLongArrowAltDown = {
  7027. prefix: 'fas',
  7028. iconName: 'long-arrow-alt-down',
  7029. 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"]
  7030. };
  7031. var faLongArrowAltLeft = {
  7032. prefix: 'fas',
  7033. iconName: 'long-arrow-alt-left',
  7034. 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"]
  7035. };
  7036. var faLongArrowAltRight = {
  7037. prefix: 'fas',
  7038. iconName: 'long-arrow-alt-right',
  7039. 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"]
  7040. };
  7041. var faLongArrowAltUp = {
  7042. prefix: 'fas',
  7043. iconName: 'long-arrow-alt-up',
  7044. 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"]
  7045. };
  7046. var faLowVision = {
  7047. prefix: 'fas',
  7048. iconName: 'low-vision',
  7049. 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"]
  7050. };
  7051. var faLuggageCart = {
  7052. prefix: 'fas',
  7053. iconName: 'luggage-cart',
  7054. 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"]
  7055. };
  7056. var faLungs = {
  7057. prefix: 'fas',
  7058. iconName: 'lungs',
  7059. icon: [640, 512, [], "f604", "M636.11 390.15C614.44 308.85 580.07 231 534.1 159.13 511.98 124.56 498.03 96 454.05 96 415.36 96 384 125.42 384 161.71v60.11l-32.88-21.92a15.996 15.996 0 0 1-7.12-13.31V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v170.59c0 5.35-2.67 10.34-7.12 13.31L256 221.82v-60.11C256 125.42 224.64 96 185.95 96c-43.98 0-57.93 28.56-80.05 63.13C59.93 231 25.56 308.85 3.89 390.15 1.3 399.84 0 409.79 0 419.78c0 61.23 62.48 105.44 125.24 88.62l59.5-15.95c42.18-11.3 71.26-47.47 71.26-88.62v-87.49l-85.84 57.23a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09L320 235.23l167.59 111.72a7.994 7.994 0 0 1 2.22 11.09l-8.88 13.31a7.994 7.994 0 0 1-11.09 2.22L384 316.34v87.49c0 41.15 29.08 77.31 71.26 88.62l59.5 15.95C577.52 525.22 640 481.01 640 419.78c0-9.99-1.3-19.94-3.89-29.63z"]
  7060. };
  7061. var faLungsVirus = {
  7062. prefix: 'fas',
  7063. iconName: 'lungs-virus',
  7064. icon: [640, 512, [], "f967", "M344,150.68V16A16,16,0,0,0,328,0H312a16,16,0,0,0-16,16V150.68a46.45,46.45,0,0,1,48,0ZM195.54,444.46a48.06,48.06,0,0,1,0-67.88l8.58-8.58H192a48,48,0,0,1,0-96h12.12l-8.58-8.57a48,48,0,0,1,60.46-74V161.75C256,125.38,224.62,96,186,96c-44,0-58,28.5-80.12,63.13a819.52,819.52,0,0,0-102,231A113.16,113.16,0,0,0,0,419.75C0,481,62.5,525.26,125.25,508.38l59.5-15.87a98.51,98.51,0,0,0,52.5-34.75,46.49,46.49,0,0,1-41.71-13.3Zm226.29-22.63a16,16,0,0,0,0-22.62l-8.58-8.58C393.09,370.47,407.37,336,435.88,336H448a16,16,0,0,0,0-32H435.88c-28.51,0-42.79-34.47-22.63-54.62l8.58-8.58a16,16,0,0,0-22.63-22.63l-8.57,8.58C370.47,246.91,336,232.63,336,204.12V192a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.58c20.16,20.15,5.88,54.62-22.63,54.62H192a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.58a16,16,0,1,0,22.63,22.62l8.57-8.57C269.53,393.1,304,407.38,304,435.88V448a16,16,0,0,0,32,0V435.88c0-28.5,34.47-42.78,54.63-22.62l8.57,8.57a16,16,0,0,0,22.63,0ZM288,304a16,16,0,1,1,16-16A16,16,0,0,1,288,304Zm64,64a16,16,0,1,1,16-16A16,16,0,0,1,352,368Zm284.12,22.13a819.52,819.52,0,0,0-102-231C512,124.5,498,96,454,96c-38.62,0-70,29.38-70,65.75v27.72a48,48,0,0,1,60.46,74L435.88,272H448a48,48,0,0,1,0,96H435.88l8.58,8.58a47.7,47.7,0,0,1-41.71,81.18,98.51,98.51,0,0,0,52.5,34.75l59.5,15.87C577.5,525.26,640,481,640,419.75A113.16,113.16,0,0,0,636.12,390.13Z"]
  7065. };
  7066. var faMagic = {
  7067. prefix: 'fas',
  7068. iconName: 'magic',
  7069. 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"]
  7070. };
  7071. var faMagnet = {
  7072. prefix: 'fas',
  7073. iconName: 'magnet',
  7074. icon: [512, 512, [], "f076", "M164.07 148.1H12a12 12 0 0 1-12-12v-80a36 36 0 0 1 36-36h104a36 36 0 0 1 36 36v80a11.89 11.89 0 0 1-11.93 12zm347.93-12V56a36 36 0 0 0-36-36H372a36 36 0 0 0-36 36v80a12 12 0 0 0 12 12h152a11.89 11.89 0 0 0 12-11.9zm-164 44a12 12 0 0 0-12 12v52c0 128.1-160 127.9-160 0v-52a12 12 0 0 0-12-12H12.1a12 12 0 0 0-12 12.1c.1 21.4.6 40.3 0 53.3 0 150.6 136.17 246.6 256.75 246.6s255-96 255-246.7c-.6-12.8-.2-33 0-53.2a12 12 0 0 0-12-12.1z"]
  7075. };
  7076. var faMailBulk = {
  7077. prefix: 'fas',
  7078. iconName: 'mail-bulk',
  7079. 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"]
  7080. };
  7081. var faMale = {
  7082. prefix: 'fas',
  7083. iconName: 'male',
  7084. 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"]
  7085. };
  7086. var faMap = {
  7087. prefix: 'fas',
  7088. iconName: 'map',
  7089. 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"]
  7090. };
  7091. var faMapMarked = {
  7092. prefix: 'fas',
  7093. iconName: 'map-marked',
  7094. 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"]
  7095. };
  7096. var faMapMarkedAlt = {
  7097. prefix: 'fas',
  7098. iconName: 'map-marked-alt',
  7099. 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"]
  7100. };
  7101. var faMapMarker = {
  7102. prefix: 'fas',
  7103. iconName: 'map-marker',
  7104. 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"]
  7105. };
  7106. var faMapMarkerAlt = {
  7107. prefix: 'fas',
  7108. iconName: 'map-marker-alt',
  7109. 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"]
  7110. };
  7111. var faMapPin = {
  7112. prefix: 'fas',
  7113. iconName: 'map-pin',
  7114. 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"]
  7115. };
  7116. var faMapSigns = {
  7117. prefix: 'fas',
  7118. iconName: 'map-signs',
  7119. 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"]
  7120. };
  7121. var faMarker = {
  7122. prefix: 'fas',
  7123. iconName: 'marker',
  7124. 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"]
  7125. };
  7126. var faMars = {
  7127. prefix: 'fas',
  7128. iconName: 'mars',
  7129. 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"]
  7130. };
  7131. var faMarsDouble = {
  7132. prefix: 'fas',
  7133. iconName: 'mars-double',
  7134. 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"]
  7135. };
  7136. var faMarsStroke = {
  7137. prefix: 'fas',
  7138. iconName: 'mars-stroke',
  7139. 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"]
  7140. };
  7141. var faMarsStrokeH = {
  7142. prefix: 'fas',
  7143. iconName: 'mars-stroke-h',
  7144. 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"]
  7145. };
  7146. var faMarsStrokeV = {
  7147. prefix: 'fas',
  7148. iconName: 'mars-stroke-v',
  7149. 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"]
  7150. };
  7151. var faMask = {
  7152. prefix: 'fas',
  7153. iconName: 'mask',
  7154. 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"]
  7155. };
  7156. var faMedal = {
  7157. prefix: 'fas',
  7158. iconName: 'medal',
  7159. 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"]
  7160. };
  7161. var faMedkit = {
  7162. prefix: 'fas',
  7163. iconName: 'medkit',
  7164. 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"]
  7165. };
  7166. var faMeh = {
  7167. prefix: 'fas',
  7168. iconName: 'meh',
  7169. 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"]
  7170. };
  7171. var faMehBlank = {
  7172. prefix: 'fas',
  7173. iconName: 'meh-blank',
  7174. 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"]
  7175. };
  7176. var faMehRollingEyes = {
  7177. prefix: 'fas',
  7178. iconName: 'meh-rolling-eyes',
  7179. 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"]
  7180. };
  7181. var faMemory = {
  7182. prefix: 'fas',
  7183. iconName: 'memory',
  7184. 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"]
  7185. };
  7186. var faMenorah = {
  7187. prefix: 'fas',
  7188. iconName: 'menorah',
  7189. 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"]
  7190. };
  7191. var faMercury = {
  7192. prefix: 'fas',
  7193. iconName: 'mercury',
  7194. 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"]
  7195. };
  7196. var faMeteor = {
  7197. prefix: 'fas',
  7198. iconName: 'meteor',
  7199. icon: [512, 512, [], "f753", "M511.328,20.8027c-11.60759,38.70264-34.30724,111.70173-61.30311,187.70077,6.99893,2.09372,13.4042,4,18.60653,5.59368a16.06158,16.06158,0,0,1,9.49854,22.906c-22.106,42.29635-82.69047,152.795-142.47819,214.40356-.99984,1.09373-1.99969,2.5-2.99954,3.49995A194.83046,194.83046,0,1,1,57.085,179.41009c.99985-1,2.40588-2,3.49947-3,61.59994-59.90549,171.97367-120.40473,214.37343-142.4982a16.058,16.058,0,0,1,22.90274,9.49988c1.59351,5.09368,3.49947,11.5936,5.5929,18.59351C379.34818,35.00565,452.43074,12.30281,491.12794.70921A16.18325,16.18325,0,0,1,511.328,20.8027ZM319.951,320.00207A127.98041,127.98041,0,1,0,191.97061,448.00046,127.97573,127.97573,0,0,0,319.951,320.00207Zm-127.98041-31.9996a31.9951,31.9951,0,1,1-31.9951-31.9996A31.959,31.959,0,0,1,191.97061,288.00247Zm31.9951,79.999a15.99755,15.99755,0,1,1-15.99755-15.9998A16.04975,16.04975,0,0,1,223.96571,368.00147Z"]
  7200. };
  7201. var faMicrochip = {
  7202. prefix: 'fas',
  7203. iconName: 'microchip',
  7204. 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"]
  7205. };
  7206. var faMicrophone = {
  7207. prefix: 'fas',
  7208. iconName: 'microphone',
  7209. 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"]
  7210. };
  7211. var faMicrophoneAlt = {
  7212. prefix: 'fas',
  7213. iconName: 'microphone-alt',
  7214. 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"]
  7215. };
  7216. var faMicrophoneAltSlash = {
  7217. prefix: 'fas',
  7218. iconName: 'microphone-alt-slash',
  7219. 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"]
  7220. };
  7221. var faMicrophoneSlash = {
  7222. prefix: 'fas',
  7223. iconName: 'microphone-slash',
  7224. 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"]
  7225. };
  7226. var faMicroscope = {
  7227. prefix: 'fas',
  7228. iconName: 'microscope',
  7229. 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"]
  7230. };
  7231. var faMinus = {
  7232. prefix: 'fas',
  7233. iconName: 'minus',
  7234. 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"]
  7235. };
  7236. var faMinusCircle = {
  7237. prefix: 'fas',
  7238. iconName: 'minus-circle',
  7239. 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"]
  7240. };
  7241. var faMinusSquare = {
  7242. prefix: 'fas',
  7243. iconName: 'minus-square',
  7244. 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"]
  7245. };
  7246. var faMitten = {
  7247. prefix: 'fas',
  7248. iconName: 'mitten',
  7249. icon: [448, 512, [], "f7b5", "M368 416H48c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm57-209.1c-27.2-22.6-67.5-19-90.1 8.2l-20.9 25-29.6-128.4c-18-77.5-95.4-125.9-172.8-108C34.2 21.6-14.2 98.9 3.7 176.4L51.6 384h309l72.5-87c22.7-27.2 19-67.5-8.1-90.1z"]
  7250. };
  7251. var faMobile = {
  7252. prefix: 'fas',
  7253. iconName: 'mobile',
  7254. 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"]
  7255. };
  7256. var faMobileAlt = {
  7257. prefix: 'fas',
  7258. iconName: 'mobile-alt',
  7259. 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"]
  7260. };
  7261. var faMoneyBill = {
  7262. prefix: 'fas',
  7263. iconName: 'money-bill',
  7264. 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"]
  7265. };
  7266. var faMoneyBillAlt = {
  7267. prefix: 'fas',
  7268. iconName: 'money-bill-alt',
  7269. 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"]
  7270. };
  7271. var faMoneyBillWave = {
  7272. prefix: 'fas',
  7273. iconName: 'money-bill-wave',
  7274. 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"]
  7275. };
  7276. var faMoneyBillWaveAlt = {
  7277. prefix: 'fas',
  7278. iconName: 'money-bill-wave-alt',
  7279. 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"]
  7280. };
  7281. var faMoneyCheck = {
  7282. prefix: 'fas',
  7283. iconName: 'money-check',
  7284. 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"]
  7285. };
  7286. var faMoneyCheckAlt = {
  7287. prefix: 'fas',
  7288. iconName: 'money-check-alt',
  7289. 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"]
  7290. };
  7291. var faMonument = {
  7292. prefix: 'fas',
  7293. iconName: 'monument',
  7294. 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"]
  7295. };
  7296. var faMoon = {
  7297. prefix: 'fas',
  7298. iconName: 'moon',
  7299. 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"]
  7300. };
  7301. var faMortarPestle = {
  7302. prefix: 'fas',
  7303. iconName: 'mortar-pestle',
  7304. 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"]
  7305. };
  7306. var faMosque = {
  7307. prefix: 'fas',
  7308. iconName: 'mosque',
  7309. 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"]
  7310. };
  7311. var faMotorcycle = {
  7312. prefix: 'fas',
  7313. iconName: 'motorcycle',
  7314. icon: [640, 512, [], "f21c", "M512.9 192c-14.9-.1-29.1 2.3-42.4 6.9L437.6 144H520c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-45.3c-6.8 0-13.3 2.9-17.8 7.9l-37.5 41.7-22.8-38C392.2 68.4 384.4 64 376 64h-80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h66.4l19.2 32H227.9c-17.7-23.1-44.9-40-99.9-40H72.5C59 104 47.7 115 48 128.5c.2 13 10.9 23.5 24 23.5h56c24.5 0 38.7 10.9 47.8 24.8l-11.3 20.5c-13-3.9-26.9-5.7-41.3-5.2C55.9 194.5 1.6 249.6 0 317c-1.6 72.1 56.3 131 128 131 59.6 0 109.7-40.8 124-96h84.2c13.7 0 24.6-11.4 24-25.1-2.1-47.1 17.5-93.7 56.2-125l12.5 20.8c-27.6 23.7-45.1 58.9-44.8 98.2.5 69.6 57.2 126.5 126.8 127.1 71.6.7 129.8-57.5 129.2-129.1-.7-69.6-57.6-126.4-127.2-126.9zM128 400c-44.1 0-80-35.9-80-80s35.9-80 80-80c4.2 0 8.4.3 12.5 1L99 316.4c-8.8 16 2.8 35.6 21 35.6h81.3c-12.4 28.2-40.6 48-73.3 48zm463.9-75.6c-2.2 40.6-35 73.4-75.5 75.5-46.1 2.5-84.4-34.3-84.4-79.9 0-21.4 8.4-40.8 22.1-55.1l49.4 82.4c4.5 7.6 14.4 10 22 5.5l13.7-8.2c7.6-4.5 10-14.4 5.5-22l-48.6-80.9c5.2-1.1 10.5-1.6 15.9-1.6 45.6-.1 82.3 38.2 79.9 84.3z"]
  7315. };
  7316. var faMountain = {
  7317. prefix: 'fas',
  7318. iconName: 'mountain',
  7319. 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"]
  7320. };
  7321. var faMouse = {
  7322. prefix: 'fas',
  7323. iconName: 'mouse',
  7324. icon: [384, 512, [], "f8cc", "M0 352a160 160 0 0 0 160 160h64a160 160 0 0 0 160-160V224H0zM176 0h-16A160 160 0 0 0 0 160v32h176zm48 0h-16v192h176v-32A160 160 0 0 0 224 0z"]
  7325. };
  7326. var faMousePointer = {
  7327. prefix: 'fas',
  7328. iconName: 'mouse-pointer',
  7329. 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"]
  7330. };
  7331. var faMugHot = {
  7332. prefix: 'fas',
  7333. iconName: 'mug-hot',
  7334. icon: [512, 512, [], "f7b6", "M127.1 146.5c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C111.8 5.9 105 0 96.8 0H80.4C70.6 0 63 8.5 64.1 18c3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zm112 0c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C223.8 5.9 217 0 208.8 0h-16.4c-9.8 0-17.5 8.5-16.3 18 3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zM400 192H32c-17.7 0-32 14.3-32 32v192c0 53 43 96 96 96h192c53 0 96-43 96-96h16c61.8 0 112-50.2 112-112s-50.2-112-112-112zm0 160h-16v-96h16c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
  7335. };
  7336. var faMusic = {
  7337. prefix: 'fas',
  7338. iconName: 'music',
  7339. icon: [512, 512, [], "f001", "M470.38 1.51L150.41 96A32 32 0 0 0 128 126.51v261.41A139 139 0 0 0 96 384c-53 0-96 28.66-96 64s43 64 96 64 96-28.66 96-64V214.32l256-75v184.61a138.4 138.4 0 0 0-32-3.93c-53 0-96 28.66-96 64s43 64 96 64 96-28.65 96-64V32a32 32 0 0 0-41.62-30.49z"]
  7340. };
  7341. var faNetworkWired = {
  7342. prefix: 'fas',
  7343. iconName: 'network-wired',
  7344. 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"]
  7345. };
  7346. var faNeuter = {
  7347. prefix: 'fas',
  7348. iconName: 'neuter',
  7349. 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"]
  7350. };
  7351. var faNewspaper = {
  7352. prefix: 'fas',
  7353. iconName: 'newspaper',
  7354. 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"]
  7355. };
  7356. var faNotEqual = {
  7357. prefix: 'fas',
  7358. iconName: 'not-equal',
  7359. 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"]
  7360. };
  7361. var faNotesMedical = {
  7362. prefix: 'fas',
  7363. iconName: 'notes-medical',
  7364. 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"]
  7365. };
  7366. var faObjectGroup = {
  7367. prefix: 'fas',
  7368. iconName: 'object-group',
  7369. 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"]
  7370. };
  7371. var faObjectUngroup = {
  7372. prefix: 'fas',
  7373. iconName: 'object-ungroup',
  7374. 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"]
  7375. };
  7376. var faOilCan = {
  7377. prefix: 'fas',
  7378. iconName: 'oil-can',
  7379. 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"]
  7380. };
  7381. var faOm = {
  7382. prefix: 'fas',
  7383. iconName: 'om',
  7384. 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"]
  7385. };
  7386. var faOtter = {
  7387. prefix: 'fas',
  7388. iconName: 'otter',
  7389. 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"]
  7390. };
  7391. var faOutdent = {
  7392. prefix: 'fas',
  7393. iconName: 'outdent',
  7394. icon: [448, 512, [], "f03b", "M100.69 363.29c10 10 27.31 2.93 27.31-11.31V160c0-14.32-17.33-21.31-27.31-11.31l-96 96a16 16 0 0 0 0 22.62zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  7395. };
  7396. var faPager = {
  7397. prefix: 'fas',
  7398. iconName: 'pager',
  7399. icon: [512, 512, [], "f815", "M448 64H64a64 64 0 0 0-64 64v256a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V128a64 64 0 0 0-64-64zM160 368H80a16 16 0 0 1-16-16v-16a16 16 0 0 1 16-16h80zm128-16a16 16 0 0 1-16 16h-80v-48h80a16 16 0 0 1 16 16zm160-128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32v-64a32 32 0 0 1 32-32h320a32 32 0 0 1 32 32z"]
  7400. };
  7401. var faPaintBrush = {
  7402. prefix: 'fas',
  7403. iconName: 'paint-brush',
  7404. 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"]
  7405. };
  7406. var faPaintRoller = {
  7407. prefix: 'fas',
  7408. iconName: 'paint-roller',
  7409. 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"]
  7410. };
  7411. var faPalette = {
  7412. prefix: 'fas',
  7413. iconName: 'palette',
  7414. 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"]
  7415. };
  7416. var faPallet = {
  7417. prefix: 'fas',
  7418. iconName: 'pallet',
  7419. 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"]
  7420. };
  7421. var faPaperPlane = {
  7422. prefix: 'fas',
  7423. iconName: 'paper-plane',
  7424. 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"]
  7425. };
  7426. var faPaperclip = {
  7427. prefix: 'fas',
  7428. iconName: 'paperclip',
  7429. 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"]
  7430. };
  7431. var faParachuteBox = {
  7432. prefix: 'fas',
  7433. iconName: 'parachute-box',
  7434. 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"]
  7435. };
  7436. var faParagraph = {
  7437. prefix: 'fas',
  7438. iconName: 'paragraph',
  7439. icon: [448, 512, [], "f1dd", "M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z"]
  7440. };
  7441. var faParking = {
  7442. prefix: 'fas',
  7443. iconName: 'parking',
  7444. 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"]
  7445. };
  7446. var faPassport = {
  7447. prefix: 'fas',
  7448. iconName: 'passport',
  7449. 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"]
  7450. };
  7451. var faPastafarianism = {
  7452. prefix: 'fas',
  7453. iconName: 'pastafarianism',
  7454. 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"]
  7455. };
  7456. var faPaste = {
  7457. prefix: 'fas',
  7458. iconName: 'paste',
  7459. 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"]
  7460. };
  7461. var faPause = {
  7462. prefix: 'fas',
  7463. iconName: 'pause',
  7464. 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"]
  7465. };
  7466. var faPauseCircle = {
  7467. prefix: 'fas',
  7468. iconName: 'pause-circle',
  7469. 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"]
  7470. };
  7471. var faPaw = {
  7472. prefix: 'fas',
  7473. iconName: 'paw',
  7474. 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"]
  7475. };
  7476. var faPeace = {
  7477. prefix: 'fas',
  7478. iconName: 'peace',
  7479. 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"]
  7480. };
  7481. var faPen = {
  7482. prefix: 'fas',
  7483. iconName: 'pen',
  7484. 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"]
  7485. };
  7486. var faPenAlt = {
  7487. prefix: 'fas',
  7488. iconName: 'pen-alt',
  7489. 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"]
  7490. };
  7491. var faPenFancy = {
  7492. prefix: 'fas',
  7493. iconName: 'pen-fancy',
  7494. 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"]
  7495. };
  7496. var faPenNib = {
  7497. prefix: 'fas',
  7498. iconName: 'pen-nib',
  7499. 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"]
  7500. };
  7501. var faPenSquare = {
  7502. prefix: 'fas',
  7503. iconName: 'pen-square',
  7504. 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"]
  7505. };
  7506. var faPencilAlt = {
  7507. prefix: 'fas',
  7508. iconName: 'pencil-alt',
  7509. 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"]
  7510. };
  7511. var faPencilRuler = {
  7512. prefix: 'fas',
  7513. iconName: 'pencil-ruler',
  7514. 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"]
  7515. };
  7516. var faPeopleArrows = {
  7517. prefix: 'fas',
  7518. iconName: 'people-arrows',
  7519. icon: [576, 512, [], "f968", "M96,128A64,64,0,1,0,32,64,64,64,0,0,0,96,128Zm0,176.08a44.11,44.11,0,0,1,13.64-32L181.77,204c1.65-1.55,3.77-2.31,5.61-3.57A63.91,63.91,0,0,0,128,160H64A64,64,0,0,0,0,224v96a32,32,0,0,0,32,32V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V383.61l-50.36-47.53A44.08,44.08,0,0,1,96,304.08ZM480,128a64,64,0,1,0-64-64A64,64,0,0,0,480,128Zm32,32H448a63.91,63.91,0,0,0-59.38,40.42c1.84,1.27,4,2,5.62,3.59l72.12,68.06a44.37,44.37,0,0,1,0,64L416,383.62V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V352a32,32,0,0,0,32-32V224A64,64,0,0,0,512,160ZM444.4,295.34l-72.12-68.06A12,12,0,0,0,352,236v36H224V236a12,12,0,0,0-20.28-8.73L131.6,295.34a12.4,12.4,0,0,0,0,17.47l72.12,68.07A12,12,0,0,0,224,372.14V336H352v36.14a12,12,0,0,0,20.28,8.74l72.12-68.07A12.4,12.4,0,0,0,444.4,295.34Z"]
  7520. };
  7521. var faPeopleCarry = {
  7522. prefix: 'fas',
  7523. iconName: 'people-carry',
  7524. 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"]
  7525. };
  7526. var faPepperHot = {
  7527. prefix: 'fas',
  7528. iconName: 'pepper-hot',
  7529. icon: [512, 512, [], "f816", "M330.67 263.12V173.4l-52.75-24.22C219.44 218.76 197.58 400 56 400a56 56 0 0 0 0 112c212.64 0 370.65-122.87 419.18-210.34l-37.05-38.54zm131.09-128.37C493.92 74.91 477.18 26.48 458.62 3a8 8 0 0 0-11.93-.59l-22.9 23a8.06 8.06 0 0 0-.89 10.23c6.86 10.36 17.05 35.1-1.4 72.32A142.85 142.85 0 0 0 364.34 96c-28 0-54 8.54-76.34 22.59l74.67 34.29v78.24h89.09L506.44 288c3.26-12.62 5.56-25.63 5.56-39.31a154 154 0 0 0-50.24-113.94z"]
  7530. };
  7531. var faPercent = {
  7532. prefix: 'fas',
  7533. iconName: 'percent',
  7534. 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"]
  7535. };
  7536. var faPercentage = {
  7537. prefix: 'fas',
  7538. iconName: 'percentage',
  7539. 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"]
  7540. };
  7541. var faPersonBooth = {
  7542. prefix: 'fas',
  7543. iconName: 'person-booth',
  7544. icon: [576, 512, [], "f756", "M192 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320h-64v176zm32-272h-50.9l-45.2-45.3C115.8 166.6 99.7 160 82.7 160H64c-17.1 0-33.2 6.7-45.3 18.8C6.7 190.9 0 207 0 224.1L.2 320 0 480c0 17.7 14.3 32 31.9 32 17.6 0 32-14.3 32-32l.1-100.7c.9.5 1.6 1.3 2.5 1.7l29.1 43v56c0 17.7 14.3 32 32 32s32-14.3 32-32v-56.5c0-9.9-2.3-19.8-6.7-28.6l-41.2-61.3V253l20.9 20.9c9.1 9.1 21.1 14.1 33.9 14.1H224c17.7 0 32-14.3 32-32s-14.3-32-32-32zM64 128c26.5 0 48-21.5 48-48S90.5 32 64 32 16 53.5 16 80s21.5 48 48 48zm224-96l31.5 223.1-30.9 154.6c-4.3 21.6 13 38.3 31.4 38.3 15.2 0 28-9.1 32.3-30.4.9 16.9 14.6 30.4 31.7 30.4 17.7 0 32-14.3 32-32 0 17.7 14.3 32 32 32s32-14.3 32-32V0H288v32zm-96 0v160h64V0h-32c-17.7 0-32 14.3-32 32zM544 0h-32v496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32c0-17.7-14.3-32-32-32z"]
  7545. };
  7546. var faPhone = {
  7547. prefix: 'fas',
  7548. iconName: 'phone',
  7549. 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"]
  7550. };
  7551. var faPhoneAlt = {
  7552. prefix: 'fas',
  7553. iconName: 'phone-alt',
  7554. icon: [512, 512, [], "f879", "M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"]
  7555. };
  7556. var faPhoneSlash = {
  7557. prefix: 'fas',
  7558. iconName: 'phone-slash',
  7559. 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"]
  7560. };
  7561. var faPhoneSquare = {
  7562. prefix: 'fas',
  7563. iconName: 'phone-square',
  7564. 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"]
  7565. };
  7566. var faPhoneSquareAlt = {
  7567. prefix: 'fas',
  7568. iconName: 'phone-square-alt',
  7569. icon: [448, 512, [], "f87b", "M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48zm-16.39 307.37l-15 65A15 15 0 0 1 354 416C194 416 64 286.29 64 126a15.7 15.7 0 0 1 11.63-14.61l65-15A18.23 18.23 0 0 1 144 96a16.27 16.27 0 0 1 13.79 9.09l30 70A17.9 17.9 0 0 1 189 181a17 17 0 0 1-5.5 11.61l-37.89 31a231.91 231.91 0 0 0 110.78 110.78l31-37.89A17 17 0 0 1 299 291a17.85 17.85 0 0 1 5.91 1.21l70 30A16.25 16.25 0 0 1 384 336a17.41 17.41 0 0 1-.39 3.37z"]
  7570. };
  7571. var faPhoneVolume = {
  7572. prefix: 'fas',
  7573. iconName: 'phone-volume',
  7574. 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"]
  7575. };
  7576. var faPhotoVideo = {
  7577. prefix: 'fas',
  7578. iconName: 'photo-video',
  7579. icon: [640, 512, [], "f87c", "M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z"]
  7580. };
  7581. var faPiggyBank = {
  7582. prefix: 'fas',
  7583. iconName: 'piggy-bank',
  7584. 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"]
  7585. };
  7586. var faPills = {
  7587. prefix: 'fas',
  7588. iconName: 'pills',
  7589. 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"]
  7590. };
  7591. var faPizzaSlice = {
  7592. prefix: 'fas',
  7593. iconName: 'pizza-slice',
  7594. icon: [512, 512, [], "f818", "M158.87.15c-16.16-1.52-31.2 8.42-35.33 24.12l-14.81 56.27c187.62 5.49 314.54 130.61 322.48 317l56.94-15.78c15.72-4.36 25.49-19.68 23.62-35.9C490.89 165.08 340.78 17.32 158.87.15zm-58.47 112L.55 491.64a16.21 16.21 0 0 0 20 19.75l379-105.1c-4.27-174.89-123.08-292.14-299.15-294.1zM128 416a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm48-152a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm104 104a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
  7595. };
  7596. var faPlaceOfWorship = {
  7597. prefix: 'fas',
  7598. iconName: 'place-of-worship',
  7599. 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"]
  7600. };
  7601. var faPlane = {
  7602. prefix: 'fas',
  7603. iconName: 'plane',
  7604. 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"]
  7605. };
  7606. var faPlaneArrival = {
  7607. prefix: 'fas',
  7608. iconName: 'plane-arrival',
  7609. 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"]
  7610. };
  7611. var faPlaneDeparture = {
  7612. prefix: 'fas',
  7613. iconName: 'plane-departure',
  7614. 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"]
  7615. };
  7616. var faPlaneSlash = {
  7617. prefix: 'fas',
  7618. iconName: 'plane-slash',
  7619. icon: [640, 512, [], "f969", "M32.48,147.88,64,256,32.48,364.13A16,16,0,0,0,48,384H88a16,16,0,0,0,12.8-6.41L144,320H246.85l-49,171.59A16,16,0,0,0,213.2,512h65.5a16,16,0,0,0,13.89-8.06l66.6-116.54L34.35,136.34A15.47,15.47,0,0,0,32.48,147.88ZM633.82,458.09,455.14,320H512c35.34,0,96-28.66,96-64s-60.66-64-96-64H397.7L292.61,8.06C290.06,3.61,283.84,0,278.71,0H213.2a16,16,0,0,0-15.38,20.39l36.94,129.29L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09Z"]
  7620. };
  7621. var faPlay = {
  7622. prefix: 'fas',
  7623. iconName: 'play',
  7624. 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"]
  7625. };
  7626. var faPlayCircle = {
  7627. prefix: 'fas',
  7628. iconName: 'play-circle',
  7629. 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"]
  7630. };
  7631. var faPlug = {
  7632. prefix: 'fas',
  7633. iconName: 'plug',
  7634. icon: [384, 512, [], "f1e6", "M320,32a32,32,0,0,0-64,0v96h64Zm48,128H16A16,16,0,0,0,0,176v32a16,16,0,0,0,16,16H32v32A160.07,160.07,0,0,0,160,412.8V512h64V412.8A160.07,160.07,0,0,0,352,256V224h16a16,16,0,0,0,16-16V176A16,16,0,0,0,368,160ZM128,32a32,32,0,0,0-64,0v96h64Z"]
  7635. };
  7636. var faPlus = {
  7637. prefix: 'fas',
  7638. iconName: 'plus',
  7639. 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"]
  7640. };
  7641. var faPlusCircle = {
  7642. prefix: 'fas',
  7643. iconName: 'plus-circle',
  7644. 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"]
  7645. };
  7646. var faPlusSquare = {
  7647. prefix: 'fas',
  7648. iconName: 'plus-square',
  7649. 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"]
  7650. };
  7651. var faPodcast = {
  7652. prefix: 'fas',
  7653. iconName: 'podcast',
  7654. 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"]
  7655. };
  7656. var faPoll = {
  7657. prefix: 'fas',
  7658. iconName: 'poll',
  7659. 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"]
  7660. };
  7661. var faPollH = {
  7662. prefix: 'fas',
  7663. iconName: 'poll-h',
  7664. 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"]
  7665. };
  7666. var faPoo = {
  7667. prefix: 'fas',
  7668. iconName: 'poo',
  7669. 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"]
  7670. };
  7671. var faPooStorm = {
  7672. prefix: 'fas',
  7673. iconName: 'poo-storm',
  7674. icon: [448, 512, [], "f75a", "M308 336h-57.7l17.3-64.9c2-7.6-3.7-15.1-11.6-15.1h-68c-6 0-11.1 4.5-11.9 10.4l-16 120c-1 7.2 4.6 13.6 11.9 13.6h59.3l-23 97.2c-1.8 7.6 4 14.8 11.7 14.8 4.2 0 8.2-2.2 10.4-6l88-152c4.6-8-1.2-18-10.4-18zm66.4-111.3c5.9-9.6 9.6-20.6 9.6-32.7 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.5C218.3 14.6 224 30.6 224 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 12.1 3.7 23.1 9.6 32.7C32.6 228 0 262.2 0 304c0 44 36 80 80 80h48.3c.1-.6 0-1.2 0-1.8l16-120c3-21.8 21.7-38.2 43.7-38.2h68c13.8 0 26.5 6.3 34.9 17.2s11.2 24.8 7.6 38.1l-6.6 24.7h16c15.7 0 30.3 8.4 38.1 22 7.8 13.6 7.8 30.5 0 44l-8.1 14h30c44 0 80-36 80-80 .1-41.8-32.5-76-73.5-79.3z"]
  7675. };
  7676. var faPoop = {
  7677. prefix: 'fas',
  7678. iconName: 'poop',
  7679. 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"]
  7680. };
  7681. var faPortrait = {
  7682. prefix: 'fas',
  7683. iconName: 'portrait',
  7684. 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"]
  7685. };
  7686. var faPoundSign = {
  7687. prefix: 'fas',
  7688. iconName: 'pound-sign',
  7689. 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"]
  7690. };
  7691. var faPowerOff = {
  7692. prefix: 'fas',
  7693. iconName: 'power-off',
  7694. 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"]
  7695. };
  7696. var faPray = {
  7697. prefix: 'fas',
  7698. iconName: 'pray',
  7699. 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"]
  7700. };
  7701. var faPrayingHands = {
  7702. prefix: 'fas',
  7703. iconName: 'praying-hands',
  7704. 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"]
  7705. };
  7706. var faPrescription = {
  7707. prefix: 'fas',
  7708. iconName: 'prescription',
  7709. 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"]
  7710. };
  7711. var faPrescriptionBottle = {
  7712. prefix: 'fas',
  7713. iconName: 'prescription-bottle',
  7714. 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"]
  7715. };
  7716. var faPrescriptionBottleAlt = {
  7717. prefix: 'fas',
  7718. iconName: 'prescription-bottle-alt',
  7719. 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"]
  7720. };
  7721. var faPrint = {
  7722. prefix: 'fas',
  7723. iconName: 'print',
  7724. 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"]
  7725. };
  7726. var faProcedures = {
  7727. prefix: 'fas',
  7728. iconName: 'procedures',
  7729. 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"]
  7730. };
  7731. var faProjectDiagram = {
  7732. prefix: 'fas',
  7733. iconName: 'project-diagram',
  7734. 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"]
  7735. };
  7736. var faPumpMedical = {
  7737. prefix: 'fas',
  7738. iconName: 'pump-medical',
  7739. icon: [384, 512, [], "f96a", "M235.51,159.82H84.24A64,64,0,0,0,20.51,218L.14,442a64,64,0,0,0,63.74,69.8h192A64,64,0,0,0,319.61,442L299.24,218A64,64,0,0,0,235.51,159.82Zm4.37,173.33a13.35,13.35,0,0,1-13.34,13.34h-40v40a13.33,13.33,0,0,1-13.33,13.33H146.54a13.33,13.33,0,0,1-13.33-13.33v-40h-40a13.34,13.34,0,0,1-13.33-13.34V306.49a13.33,13.33,0,0,1,13.33-13.34h40v-40a13.33,13.33,0,0,1,13.33-13.33h26.67a13.33,13.33,0,0,1,13.33,13.33v40h40a13.34,13.34,0,0,1,13.34,13.34ZM379.19,93.88,335.87,50.56a64,64,0,0,0-45.24-18.74H223.88a32,32,0,0,0-32-32h-64a32,32,0,0,0-32,32v96h128v-32h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.19,93.88Z"]
  7740. };
  7741. var faPumpSoap = {
  7742. prefix: 'fas',
  7743. iconName: 'pump-soap',
  7744. icon: [384, 512, [], "f96b", "M235.63,160H84.37a64,64,0,0,0-63.74,58.21L.27,442.21A64,64,0,0,0,64,512H256a64,64,0,0,0,63.74-69.79l-20.36-224A64,64,0,0,0,235.63,160ZM160,416c-33.12,0-60-26.33-60-58.75,0-25,35.7-75.47,52-97.27A10,10,0,0,1,168,260c16.33,21.8,52,72.27,52,97.27C220,389.67,193.12,416,160,416ZM379.31,94.06,336,50.74A64,64,0,0,0,290.75,32H224A32,32,0,0,0,192,0H128A32,32,0,0,0,96,32v96H224V96h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.31,94.06Z"]
  7745. };
  7746. var faPuzzlePiece = {
  7747. prefix: 'fas',
  7748. iconName: 'puzzle-piece',
  7749. 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"]
  7750. };
  7751. var faQrcode = {
  7752. prefix: 'fas',
  7753. iconName: 'qrcode',
  7754. 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"]
  7755. };
  7756. var faQuestion = {
  7757. prefix: 'fas',
  7758. iconName: 'question',
  7759. 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"]
  7760. };
  7761. var faQuestionCircle = {
  7762. prefix: 'fas',
  7763. iconName: 'question-circle',
  7764. 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"]
  7765. };
  7766. var faQuidditch = {
  7767. prefix: 'fas',
  7768. iconName: 'quidditch',
  7769. 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"]
  7770. };
  7771. var faQuoteLeft = {
  7772. prefix: 'fas',
  7773. iconName: 'quote-left',
  7774. 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"]
  7775. };
  7776. var faQuoteRight = {
  7777. prefix: 'fas',
  7778. iconName: 'quote-right',
  7779. 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"]
  7780. };
  7781. var faQuran = {
  7782. prefix: 'fas',
  7783. iconName: 'quran',
  7784. 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"]
  7785. };
  7786. var faRadiation = {
  7787. prefix: 'fas',
  7788. iconName: 'radiation',
  7789. icon: [496, 512, [], "f7b9", "M328.2 255.8h151.6c9.1 0 16.8-7.7 16.2-16.8-5.1-75.8-44.4-142.2-102.5-184.2-7.4-5.3-17.9-2.9-22.7 4.8L290.4 188c22.6 14.3 37.8 39.2 37.8 67.8zm-37.8 67.7c-12.3 7.7-26.8 12.4-42.4 12.4-15.6 0-30-4.7-42.4-12.4L125.2 452c-4.8 7.7-2.4 18.1 5.6 22.4C165.7 493.2 205.6 504 248 504s82.3-10.8 117.2-29.6c8-4.3 10.4-14.8 5.6-22.4l-80.4-128.5zM248 303.8c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm-231.8-48h151.6c0-28.6 15.2-53.5 37.8-67.7L125.2 59.7c-4.8-7.7-15.3-10.2-22.7-4.8C44.4 96.9 5.1 163.3 0 239.1c-.6 9 7.1 16.7 16.2 16.7z"]
  7790. };
  7791. var faRadiationAlt = {
  7792. prefix: 'fas',
  7793. iconName: 'radiation-alt',
  7794. icon: [496, 512, [], "f7ba", "M312 256h79.1c9.2 0 16.9-7.7 16-16.8-4.6-43.6-27-81.8-59.5-107.8-7.6-6.1-18.8-4.5-24 3.8L281.9 202c18 11.2 30.1 31.2 30.1 54zm-97.8 54.1L172.4 377c-4.9 7.8-2.4 18.4 5.8 22.5 21.1 10.4 44.7 16.5 69.8 16.5s48.7-6.1 69.9-16.5c8.2-4.1 10.6-14.7 5.8-22.5l-41.8-66.9c-9.8 6.2-21.4 9.9-33.8 9.9s-24.1-3.7-33.9-9.9zM104.9 256H184c0-22.8 12.1-42.8 30.2-54.1l-41.7-66.8c-5.2-8.3-16.4-9.9-24-3.8-32.6 26-54.9 64.2-59.5 107.8-1.1 9.2 6.7 16.9 15.9 16.9zM248 504c137 0 248-111 248-248S385 8 248 8 0 119 0 256s111 248 248 248zm0-432c101.5 0 184 82.5 184 184s-82.5 184-184 184S64 357.5 64 256 146.5 72 248 72zm0 216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
  7795. };
  7796. var faRainbow = {
  7797. prefix: 'fas',
  7798. iconName: 'rainbow',
  7799. icon: [576, 512, [], "f75b", "M268.3 32.7C115.4 42.9 0 176.9 0 330.2V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C64 186.8 180.9 80.3 317.5 97.9 430.4 112.4 512 214 512 327.8V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-165.3-140-298.6-307.7-287.3zm-5.6 96.9C166 142 96 229.1 96 326.7V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-74.8 64.5-134.8 140.8-127.4 66.5 6.5 115.2 66.2 115.2 133.1V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-114.2-100.2-205.4-217.3-190.4zm6.2 96.3c-45.6 8.9-76.9 51.5-76.9 97.9V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-17.6 14.3-32 32-32s32 14.4 32 32v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-59.2-53.8-106-115.1-94.1z"]
  7800. };
  7801. var faRandom = {
  7802. prefix: 'fas',
  7803. iconName: 'random',
  7804. 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"]
  7805. };
  7806. var faReceipt = {
  7807. prefix: 'fas',
  7808. iconName: 'receipt',
  7809. 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"]
  7810. };
  7811. var faRecordVinyl = {
  7812. prefix: 'fas',
  7813. iconName: 'record-vinyl',
  7814. icon: [512, 512, [], "f8d9", "M256 152a104 104 0 1 0 104 104 104 104 0 0 0-104-104zm0 128a24 24 0 1 1 24-24 24 24 0 0 1-24 24zm0-272C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 376a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"]
  7815. };
  7816. var faRecycle = {
  7817. prefix: 'fas',
  7818. iconName: 'recycle',
  7819. 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"]
  7820. };
  7821. var faRedo = {
  7822. prefix: 'fas',
  7823. iconName: 'redo',
  7824. icon: [512, 512, [], "f01e", "M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"]
  7825. };
  7826. var faRedoAlt = {
  7827. prefix: 'fas',
  7828. iconName: 'redo-alt',
  7829. 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"]
  7830. };
  7831. var faRegistered = {
  7832. prefix: 'fas',
  7833. iconName: 'registered',
  7834. 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"]
  7835. };
  7836. var faRemoveFormat = {
  7837. prefix: 'fas',
  7838. iconName: 'remove-format',
  7839. icon: [640, 512, [], "f87d", "M336 416h-11.17l9.26-27.77L267 336.4 240.49 416H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm297.82 42.1L377 259.59 426.17 112H544v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16H176a16 16 0 0 0-16 16v43.9L45.46 3.38A16 16 0 0 0 23 6.19L3.37 31.46a16 16 0 0 0 2.81 22.45l588.36 454.72a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zM309.91 207.76L224 141.36V112h117.83z"]
  7840. };
  7841. var faReply = {
  7842. prefix: 'fas',
  7843. iconName: 'reply',
  7844. 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"]
  7845. };
  7846. var faReplyAll = {
  7847. prefix: 'fas',
  7848. iconName: 'reply-all',
  7849. 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"]
  7850. };
  7851. var faRepublican = {
  7852. prefix: 'fas',
  7853. iconName: 'republican',
  7854. icon: [640, 512, [], "f75e", "M544 192c0-88.4-71.6-160-160-160H160C71.6 32 0 103.6 0 192v64h544v-64zm-367.7-21.6l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L128 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L272 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L416 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zM624 320h-32c-8.8 0-16 7.2-16 16v64c0 8.8-7.2 16-16 16s-16-7.2-16-16V288H0v176c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16v-80h192v80c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16V352h32v43.3c0 41.8 30 80.1 71.6 84.3 47.8 4.9 88.4-32.7 88.4-79.6v-64c0-8.8-7.2-16-16-16z"]
  7855. };
  7856. var faRestroom = {
  7857. prefix: 'fas',
  7858. iconName: 'restroom',
  7859. icon: [640, 512, [], "f7bd", "M128 128c35.3 0 64-28.7 64-64S163.3 0 128 0 64 28.7 64 64s28.7 64 64 64zm384 0c35.3 0 64-28.7 64-64S547.3 0 512 0s-64 28.7-64 64 28.7 64 64 64zm127.3 226.5l-45.6-185.8c-3.3-13.5-15.5-23-29.8-24.2-15 9.7-32.8 15.5-52 15.5-19.2 0-37-5.8-52-15.5-14.3 1.2-26.5 10.7-29.8 24.2l-45.6 185.8C381 369.6 393 384 409.2 384H464v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V384h54.8c16.2 0 28.2-14.4 24.5-29.5zM336 0h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zM180.1 144.4c-15 9.8-32.9 15.6-52.1 15.6-19.2 0-37.1-5.8-52.1-15.6C51.3 146.5 32 166.9 32 192v136c0 13.3 10.7 24 24 24h8v136c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V352h8c13.3 0 24-10.7 24-24V192c0-25.1-19.3-45.5-43.9-47.6z"]
  7860. };
  7861. var faRetweet = {
  7862. prefix: 'fas',
  7863. iconName: 'retweet',
  7864. 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"]
  7865. };
  7866. var faRibbon = {
  7867. prefix: 'fas',
  7868. iconName: 'ribbon',
  7869. 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"]
  7870. };
  7871. var faRing = {
  7872. prefix: 'fas',
  7873. iconName: 'ring',
  7874. 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"]
  7875. };
  7876. var faRoad = {
  7877. prefix: 'fas',
  7878. iconName: 'road',
  7879. 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"]
  7880. };
  7881. var faRobot = {
  7882. prefix: 'fas',
  7883. iconName: 'robot',
  7884. icon: [640, 512, [], "f544", "M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"]
  7885. };
  7886. var faRocket = {
  7887. prefix: 'fas',
  7888. iconName: 'rocket',
  7889. icon: [512, 512, [], "f135", "M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"]
  7890. };
  7891. var faRoute = {
  7892. prefix: 'fas',
  7893. iconName: 'route',
  7894. 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"]
  7895. };
  7896. var faRss = {
  7897. prefix: 'fas',
  7898. iconName: 'rss',
  7899. 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"]
  7900. };
  7901. var faRssSquare = {
  7902. prefix: 'fas',
  7903. iconName: 'rss-square',
  7904. 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"]
  7905. };
  7906. var faRubleSign = {
  7907. prefix: 'fas',
  7908. iconName: 'ruble-sign',
  7909. 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"]
  7910. };
  7911. var faRuler = {
  7912. prefix: 'fas',
  7913. iconName: 'ruler',
  7914. 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"]
  7915. };
  7916. var faRulerCombined = {
  7917. prefix: 'fas',
  7918. iconName: 'ruler-combined',
  7919. 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"]
  7920. };
  7921. var faRulerHorizontal = {
  7922. prefix: 'fas',
  7923. iconName: 'ruler-horizontal',
  7924. 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"]
  7925. };
  7926. var faRulerVertical = {
  7927. prefix: 'fas',
  7928. iconName: 'ruler-vertical',
  7929. 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"]
  7930. };
  7931. var faRunning = {
  7932. prefix: 'fas',
  7933. iconName: 'running',
  7934. 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"]
  7935. };
  7936. var faRupeeSign = {
  7937. prefix: 'fas',
  7938. iconName: 'rupee-sign',
  7939. 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"]
  7940. };
  7941. var faSadCry = {
  7942. prefix: 'fas',
  7943. iconName: 'sad-cry',
  7944. 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"]
  7945. };
  7946. var faSadTear = {
  7947. prefix: 'fas',
  7948. iconName: 'sad-tear',
  7949. 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"]
  7950. };
  7951. var faSatellite = {
  7952. prefix: 'fas',
  7953. iconName: 'satellite',
  7954. icon: [512, 512, [], "f7bf", "M502.60969,310.04206l-96.70393,96.71625a31.88151,31.88151,0,0,1-45.00765,0L280.572,326.34115l-9.89231,9.90759a190.56343,190.56343,0,0,1-5.40716,168.52287c-4.50077,8.50115-16.39342,9.59505-23.20707,2.79725L134.54715,400.05428l-17.7999,17.79929c.70324,2.60972,1.60965,5.00067,1.60965,7.79793a32.00544,32.00544,0,1,1-32.00544-32.00434c2.79735,0,5.18838.90637,7.7982,1.60959l17.7999-17.79929L4.43129,269.94287c-6.798-6.81342-5.70409-18.6119,2.79735-23.20627a190.58161,190.58161,0,0,1,168.52864-5.407l9.79854-9.79821-80.31053-80.41716a32.002,32.002,0,0,1,0-45.09987L201.96474,9.29814A31.62639,31.62639,0,0,1,224.46868,0a31.99951,31.99951,0,0,1,22.59759,9.29814l80.32615,80.30777,47.805-47.89713a33.6075,33.6075,0,0,1,47.50808,0l47.50807,47.50645a33.63308,33.63308,0,0,1,0,47.50644l-47.805,47.89713L502.71908,265.036A31.78938,31.78938,0,0,1,502.60969,310.04206ZM219.56159,197.433l73.82505-73.82252-68.918-68.9-73.80942,73.80689Zm237.74352,90.106-68.90233-68.9156-73.825,73.82252,68.918,68.9Z"]
  7955. };
  7956. var faSatelliteDish = {
  7957. prefix: 'fas',
  7958. iconName: 'satellite-dish',
  7959. icon: [512, 512, [], "f7c0", "M305.44954,462.59c7.39157,7.29792,6.18829,20.09661-3.00038,25.00356-77.713,41.80281-176.72559,29.9105-242.34331-35.7082C-5.49624,386.28227-17.404,287.362,24.41381,209.554c4.89125-9.095,17.68975-10.29834,25.00318-3.00043L166.22872,323.36708l27.39411-27.39452c-.68759-2.60974-1.594-5.00071-1.594-7.81361a32.00407,32.00407,0,1,1,32.00407,32.00455c-2.79723,0-5.20378-.89075-7.79786-1.594l-27.40974,27.41015ZM511.9758,303.06732a16.10336,16.10336,0,0,1-16.002,17.00242H463.86031a15.96956,15.96956,0,0,1-15.89265-15.00213C440.46671,175.5492,336.45348,70.53427,207.03078,63.53328a15.84486,15.84486,0,0,1-15.00191-15.90852V16.02652A16.09389,16.09389,0,0,1,209.031.02425C372.25491,8.61922,503.47472,139.841,511.9758,303.06732Zm-96.01221-.29692a16.21093,16.21093,0,0,1-16.11142,17.29934H367.645a16.06862,16.06862,0,0,1-15.89265-14.70522c-6.90712-77.01094-68.118-138.91037-144.92467-145.22376a15.94,15.94,0,0,1-14.79876-15.89289V112.13393a16.134,16.134,0,0,1,17.29908-16.096C319.45132,104.5391,407.55627,192.64538,415.96359,302.7704Z"]
  7960. };
  7961. var faSave = {
  7962. prefix: 'fas',
  7963. iconName: 'save',
  7964. 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"]
  7965. };
  7966. var faSchool = {
  7967. prefix: 'fas',
  7968. iconName: 'school',
  7969. 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"]
  7970. };
  7971. var faScrewdriver = {
  7972. prefix: 'fas',
  7973. iconName: 'screwdriver',
  7974. 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"]
  7975. };
  7976. var faScroll = {
  7977. prefix: 'fas',
  7978. iconName: 'scroll',
  7979. 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"]
  7980. };
  7981. var faSdCard = {
  7982. prefix: 'fas',
  7983. iconName: 'sd-card',
  7984. icon: [384, 512, [], "f7c2", "M320 0H128L0 128v320c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM160 160h-48V64h48v96zm80 0h-48V64h48v96zm80 0h-48V64h48v96z"]
  7985. };
  7986. var faSearch = {
  7987. prefix: 'fas',
  7988. iconName: 'search',
  7989. 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"]
  7990. };
  7991. var faSearchDollar = {
  7992. prefix: 'fas',
  7993. iconName: 'search-dollar',
  7994. 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"]
  7995. };
  7996. var faSearchLocation = {
  7997. prefix: 'fas',
  7998. iconName: 'search-location',
  7999. 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"]
  8000. };
  8001. var faSearchMinus = {
  8002. prefix: 'fas',
  8003. iconName: 'search-minus',
  8004. 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"]
  8005. };
  8006. var faSearchPlus = {
  8007. prefix: 'fas',
  8008. iconName: 'search-plus',
  8009. 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"]
  8010. };
  8011. var faSeedling = {
  8012. prefix: 'fas',
  8013. iconName: 'seedling',
  8014. 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"]
  8015. };
  8016. var faServer = {
  8017. prefix: 'fas',
  8018. iconName: 'server',
  8019. 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"]
  8020. };
  8021. var faShapes = {
  8022. prefix: 'fas',
  8023. iconName: 'shapes',
  8024. icon: [512, 512, [], "f61f", "M128,256A128,128,0,1,0,256,384,128,128,0,0,0,128,256Zm379-54.86L400.07,18.29a37.26,37.26,0,0,0-64.14,0L229,201.14C214.76,225.52,232.58,256,261.09,256H474.91C503.42,256,521.24,225.52,507,201.14ZM480,288H320a32,32,0,0,0-32,32V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V320A32,32,0,0,0,480,288Z"]
  8025. };
  8026. var faShare = {
  8027. prefix: 'fas',
  8028. iconName: 'share',
  8029. 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"]
  8030. };
  8031. var faShareAlt = {
  8032. prefix: 'fas',
  8033. iconName: 'share-alt',
  8034. 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"]
  8035. };
  8036. var faShareAltSquare = {
  8037. prefix: 'fas',
  8038. iconName: 'share-alt-square',
  8039. 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"]
  8040. };
  8041. var faShareSquare = {
  8042. prefix: 'fas',
  8043. iconName: 'share-square',
  8044. 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"]
  8045. };
  8046. var faShekelSign = {
  8047. prefix: 'fas',
  8048. iconName: 'shekel-sign',
  8049. 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"]
  8050. };
  8051. var faShieldAlt = {
  8052. prefix: 'fas',
  8053. iconName: 'shield-alt',
  8054. icon: [512, 512, [], "f3ed", "M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"]
  8055. };
  8056. var faShieldVirus = {
  8057. prefix: 'fas',
  8058. iconName: 'shield-virus',
  8059. icon: [512, 512, [], "f96c", "M224,192a16,16,0,1,0,16,16A16,16,0,0,0,224,192ZM466.5,83.68l-192-80A57.4,57.4,0,0,0,256.05,0a57.4,57.4,0,0,0-18.46,3.67l-192,80A47.93,47.93,0,0,0,16,128C16,326.5,130.5,463.72,237.5,508.32a48.09,48.09,0,0,0,36.91,0C360.09,472.61,496,349.3,496,128A48,48,0,0,0,466.5,83.68ZM384,256H371.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C306.47,313.09,272,327.37,272,355.88V368a16,16,0,0,1-32,0V355.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H128a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V112a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C329.09,189.53,343.37,224,371.88,224H384a16,16,0,0,1,0,32Zm-96,0a16,16,0,1,0,16,16A16,16,0,0,0,288,256Z"]
  8060. };
  8061. var faShip = {
  8062. prefix: 'fas',
  8063. iconName: 'ship',
  8064. 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"]
  8065. };
  8066. var faShippingFast = {
  8067. prefix: 'fas',
  8068. iconName: 'shipping-fast',
  8069. 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"]
  8070. };
  8071. var faShoePrints = {
  8072. prefix: 'fas',
  8073. iconName: 'shoe-prints',
  8074. 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"]
  8075. };
  8076. var faShoppingBag = {
  8077. prefix: 'fas',
  8078. iconName: 'shopping-bag',
  8079. 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"]
  8080. };
  8081. var faShoppingBasket = {
  8082. prefix: 'fas',
  8083. iconName: 'shopping-basket',
  8084. 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"]
  8085. };
  8086. var faShoppingCart = {
  8087. prefix: 'fas',
  8088. iconName: 'shopping-cart',
  8089. 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"]
  8090. };
  8091. var faShower = {
  8092. prefix: 'fas',
  8093. iconName: 'shower',
  8094. icon: [512, 512, [], "f2cc", "M304,320a16,16,0,1,0,16,16A16,16,0,0,0,304,320Zm32-96a16,16,0,1,0,16,16A16,16,0,0,0,336,224Zm32,64a16,16,0,1,0-16-16A16,16,0,0,0,368,288Zm-32,32a16,16,0,1,0-16-16A16,16,0,0,0,336,320Zm-32-64a16,16,0,1,0,16,16A16,16,0,0,0,304,256Zm128-32a16,16,0,1,0-16-16A16,16,0,0,0,432,224Zm-48,16a16,16,0,1,0,16-16A16,16,0,0,0,384,240Zm-16-48a16,16,0,1,0,16,16A16,16,0,0,0,368,192Zm96,32a16,16,0,1,0,16,16A16,16,0,0,0,464,224Zm32-32a16,16,0,1,0,16,16A16,16,0,0,0,496,192Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,432,256Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,400,288Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,336,352Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,304,384Zm64-64a16,16,0,1,0,16,16A16,16,0,0,0,368,320Zm21.65-218.35-11.3-11.31a16,16,0,0,0-22.63,0L350.05,96A111.19,111.19,0,0,0,272,64c-19.24,0-37.08,5.3-52.9,13.85l-10-10A121.72,121.72,0,0,0,123.44,32C55.49,31.5,0,92.91,0,160.85V464a16,16,0,0,0,16,16H48a16,16,0,0,0,16-16V158.4c0-30.15,21-58.2,51-61.93a58.38,58.38,0,0,1,48.93,16.67l10,10C165.3,138.92,160,156.76,160,176a111.23,111.23,0,0,0,32,78.05l-5.66,5.67a16,16,0,0,0,0,22.62l11.3,11.31a16,16,0,0,0,22.63,0L389.65,124.28A16,16,0,0,0,389.65,101.65Z"]
  8095. };
  8096. var faShuttleVan = {
  8097. prefix: 'fas',
  8098. iconName: 'shuttle-van',
  8099. 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"]
  8100. };
  8101. var faSign = {
  8102. prefix: 'fas',
  8103. iconName: 'sign',
  8104. 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"]
  8105. };
  8106. var faSignInAlt = {
  8107. prefix: 'fas',
  8108. iconName: 'sign-in-alt',
  8109. 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"]
  8110. };
  8111. var faSignLanguage = {
  8112. prefix: 'fas',
  8113. iconName: 'sign-language',
  8114. 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"]
  8115. };
  8116. var faSignOutAlt = {
  8117. prefix: 'fas',
  8118. iconName: 'sign-out-alt',
  8119. 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"]
  8120. };
  8121. var faSignal = {
  8122. prefix: 'fas',
  8123. iconName: 'signal',
  8124. 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"]
  8125. };
  8126. var faSignature = {
  8127. prefix: 'fas',
  8128. iconName: 'signature',
  8129. icon: [640, 512, [], "f5b7", "M623.2 192c-51.8 3.5-125.7 54.7-163.1 71.5-29.1 13.1-54.2 24.4-76.1 24.4-22.6 0-26-16.2-21.3-51.9 1.1-8 11.7-79.2-42.7-76.1-25.1 1.5-64.3 24.8-169.5 126L192 182.2c30.4-75.9-53.2-151.5-129.7-102.8L7.4 116.3C0 121-2.2 130.9 2.5 138.4l17.2 27c4.7 7.5 14.6 9.7 22.1 4.9l58-38.9c18.4-11.7 40.7 7.2 32.7 27.1L34.3 404.1C27.5 421 37 448 64 448c8.3 0 16.5-3.2 22.6-9.4 42.2-42.2 154.7-150.7 211.2-195.8-2.2 28.5-2.1 58.9 20.6 83.8 15.3 16.8 37.3 25.3 65.5 25.3 35.6 0 68-14.6 102.3-30 33-14.8 99-62.6 138.4-65.8 8.5-.7 15.2-7.3 15.2-15.8v-32.1c.2-9.1-7.5-16.8-16.6-16.2z"]
  8130. };
  8131. var faSimCard = {
  8132. prefix: 'fas',
  8133. iconName: 'sim-card',
  8134. icon: [384, 512, [], "f7c4", "M0 64v384c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V128L256 0H64C28.7 0 0 28.7 0 64zm224 192h-64v-64h64v64zm96 0h-64v-64h32c17.7 0 32 14.3 32 32v32zm-64 128h64v32c0 17.7-14.3 32-32 32h-32v-64zm-96 0h64v64h-64v-64zm-96 0h64v64H96c-17.7 0-32-14.3-32-32v-32zm0-96h256v64H64v-64zm0-64c0-17.7 14.3-32 32-32h32v64H64v-32z"]
  8135. };
  8136. var faSink = {
  8137. prefix: 'fas',
  8138. iconName: 'sink',
  8139. icon: [512, 512, [], "f96d", "M32,416a96,96,0,0,0,96,96H384a96,96,0,0,0,96-96V384H32ZM496,288H400V256h64a16,16,0,0,0,16-16V224a16,16,0,0,0-16-16H384a32,32,0,0,0-32,32v48H288V96a32,32,0,0,1,64,0v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V96A96.16,96.16,0,0,0,300.87,1.86C255.29,10.71,224,53.36,224,99.79V288H160V240a32,32,0,0,0-32-32H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16h64v32H16A16,16,0,0,0,0,304v32a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V304A16,16,0,0,0,496,288Z"]
  8140. };
  8141. var faSitemap = {
  8142. prefix: 'fas',
  8143. iconName: 'sitemap',
  8144. 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"]
  8145. };
  8146. var faSkating = {
  8147. prefix: 'fas',
  8148. iconName: 'skating',
  8149. icon: [448, 512, [], "f7c5", "M400 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 448c-8.8 0-16 7.2-16 16s-7.2 16-16 16h-96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c26.5 0 48-21.5 48-48 0-8.8-7.2-16-16-16zm-282.2 8.6c-6.2 6.2-16.4 6.3-22.6 0l-67.9-67.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l67.9 67.9c9.4 9.4 21.7 14 34 14s24.6-4.7 33.9-14c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.3-22.7 0zm56.1-179.8l-93.7 93.7c-12.5 12.5-12.5 32.8 0 45.2 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l91.9-91.9-30.2-30.2c-5-5-9.4-10.7-13.2-16.8zM128 160h105.5l-20.1 17.2c-13.5 11.5-21.6 28.4-22.3 46.1-.7 17.8 6.1 35.2 18.7 47.7l78.2 78.2V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-89.4c0-12.6-5.1-25-14.1-33.9l-61-61c.5-.4 1.2-.6 1.7-1.1l82.3-82.3c11.5-11.5 14.9-28.6 8.7-43.6-6.2-15-20.7-24.7-37-24.7H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]
  8150. };
  8151. var faSkiing = {
  8152. prefix: 'fas',
  8153. iconName: 'skiing',
  8154. icon: [512, 512, [], "f7c9", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm73 356.1c-9.4-9.4-24.6-9.4-33.9 0-12.1 12.1-30.5 15.4-45.1 8.7l-135.8-70.2 49.2-73.8c12.7-19 10.2-44.5-6-60.6L293 215.7l-107-53.1c-2.9 19.9 3.4 40 17.7 54.4l75.1 75.2-45.9 68.8L35 258.7c-11.7-6-26.2-1.5-32.3 10.3-6.1 11.8-1.5 26.3 10.3 32.3l391.9 202.5c11.9 5.5 24.5 8.1 37.1 8.1 23.2 0 46-9 63-26 9.3-9.3 9.3-24.5 0-33.8zM120 91.6l-11.5 22.5c14.4 7.3 31.2 4.9 42.8-4.8l47.2 23.4c-.1.1-.1.2-.2.3l114.5 56.8 32.4-13 6.4 19.1c4 12.1 12.6 22 24 27.7l58.1 29c15.9 7.9 35 1.5 42.9-14.3 7.9-15.8 1.5-35-14.3-42.9l-52.1-26.1-17.1-51.2c-8.1-24.2-40.9-56.6-84.5-39.2l-81.2 32.5-62.5-31c.3-14.5-7.2-28.6-20.9-35.6l-11.1 21.7h-.2l-34.4-7c-1.8-.4-3.7.2-5 1.7-1.9 2.2-1.7 5.5.5 7.4l26.2 23z"]
  8155. };
  8156. var faSkiingNordic = {
  8157. prefix: 'fas',
  8158. iconName: 'skiing-nordic',
  8159. icon: [576, 512, [], "f7ca", "M336 96c26.5 0 48-21.5 48-48S362.5 0 336 0s-48 21.5-48 48 21.5 48 48 48zm216 320c-13.2 0-24 10.7-24 24 0 13.2-10.8 24-24 24h-69.5L460 285.6c11.7-4.7 20.1-16.2 20.1-29.6 0-17.7-14.3-32-32-32h-44L378 170.8c-12.5-25.5-35.5-44.2-61.8-50.9L245 98.7c-28.3-6.8-57.8-.5-80.8 17.1l-39.7 30.4c-14 10.7-16.7 30.8-5.9 44.9.7.9 1.7 1.3 2.4 2.1L66.9 464H24c-13.2 0-24 10.7-24 24s10.8 24 24 24h480c39.7 0 72-32.3 72-72 0-13.2-10.8-24-24-24zm-260.5 48h-96.9l43.1-91-22-13c-12.1-7.2-21.9-16.9-29.5-27.8L123.7 464H99.5l52.3-261.4c4.1-1 8.1-2.9 11.7-5.6l39.7-30.4c7.7-5.9 17.4-8 25.3-6.1l14.7 4.4-37.5 87.4c-12.6 29.5-1.3 64 26.3 80.3l85 50.2-25.5 81.2zm110.6 0h-43.6l23.6-75.5c5.9-20.8-2.9-43.1-21.6-54.4L299.3 298l31.3-78.3 20.3 41.4c8 16.3 24.9 26.9 43.1 26.9h33.3l-25.2 176z"]
  8160. };
  8161. var faSkull = {
  8162. prefix: 'fas',
  8163. iconName: 'skull',
  8164. 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"]
  8165. };
  8166. var faSkullCrossbones = {
  8167. prefix: 'fas',
  8168. iconName: 'skull-crossbones',
  8169. 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"]
  8170. };
  8171. var faSlash = {
  8172. prefix: 'fas',
  8173. iconName: 'slash',
  8174. 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"]
  8175. };
  8176. var faSleigh = {
  8177. prefix: 'fas',
  8178. iconName: 'sleigh',
  8179. icon: [640, 512, [], "f7cc", "M612.7 350.7l-9.3-7.4c-6.9-5.5-17-4.4-22.5 2.5l-10 12.5c-5.5 6.9-4.4 17 2.5 22.5l9.3 7.4c5.9 4.7 9.2 11.7 9.2 19.2 0 13.6-11 24.6-24.6 24.6H48c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h516c39 0 73.7-29.3 75.9-68.3 1.4-23.8-8.7-46.3-27.2-61zM32 224c0 59.6 40.9 109.2 96 123.5V400h64v-48h192v48h64v-48c53 0 96-43 96-96v-96c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96v64c0 35.3-28.7 64-64 64h-20.7c-65.8 0-125.9-37.2-155.3-96-29.4-58.8-89.6-96-155.3-96H32C14.3 32 0 46.3 0 64s14.3 32 32 32v128z"]
  8180. };
  8181. var faSlidersH = {
  8182. prefix: 'fas',
  8183. iconName: 'sliders-h',
  8184. 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"]
  8185. };
  8186. var faSmile = {
  8187. prefix: 'fas',
  8188. iconName: 'smile',
  8189. 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"]
  8190. };
  8191. var faSmileBeam = {
  8192. prefix: 'fas',
  8193. iconName: 'smile-beam',
  8194. 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"]
  8195. };
  8196. var faSmileWink = {
  8197. prefix: 'fas',
  8198. iconName: 'smile-wink',
  8199. 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"]
  8200. };
  8201. var faSmog = {
  8202. prefix: 'fas',
  8203. iconName: 'smog',
  8204. icon: [640, 512, [], "f75f", "M624 368H80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm-480 96H16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm416 0H224c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h336c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zM144 288h156.1c22.5 19.7 51.6 32 83.9 32s61.3-12.3 83.9-32H528c61.9 0 112-50.1 112-112S589.9 64 528 64c-18 0-34.7 4.6-49.7 12.1C454 31 406.8 0 352 0c-41 0-77.8 17.3-104 44.8C221.8 17.3 185 0 144 0 64.5 0 0 64.5 0 144s64.5 144 144 144z"]
  8205. };
  8206. var faSmoking = {
  8207. prefix: 'fas',
  8208. iconName: 'smoking',
  8209. 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"]
  8210. };
  8211. var faSmokingBan = {
  8212. prefix: 'fas',
  8213. iconName: 'smoking-ban',
  8214. 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"]
  8215. };
  8216. var faSms = {
  8217. prefix: 'fas',
  8218. iconName: 'sms',
  8219. icon: [512, 512, [], "f7cd", "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.7 1.3 3 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 141.4 0 256-93.1 256-208S397.4 32 256 32zM128.2 304H116c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H156c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-19 38.6-42.4 38.6zm191.8-8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-68.2l-24.8 55.8c-2.9 5.9-11.4 5.9-14.3 0L224 227.8V296c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V192c0-8.8 7.2-16 16-16h16c6.1 0 11.6 3.4 14.3 8.8l17.7 35.4 17.7-35.4c2.7-5.4 8.3-8.8 14.3-8.8h16c8.8 0 16 7.2 16 16v104zm48.3 8H356c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H396c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-18.9 38.6-42.3 38.6z"]
  8220. };
  8221. var faSnowboarding = {
  8222. prefix: 'fas',
  8223. iconName: 'snowboarding',
  8224. icon: [512, 512, [], "f7ce", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm28.8 153.6c5.8 4.3 12.5 6.4 19.2 6.4 9.7 0 19.3-4.4 25.6-12.8 10.6-14.1 7.8-34.2-6.4-44.8l-111.4-83.5c-13.8-10.3-29.1-18.4-45.4-23.8l-63.7-21.2-26.1-52.1C244.7 2 225.5-4.4 209.7 3.5c-15.8 7.9-22.2 27.1-14.3 42.9l29.1 58.1c5.7 11.4 15.6 19.9 27.7 24l16.4 5.5-41.2 20.6c-21.8 10.9-35.4 32.8-35.4 57.2v53.1l-74.1 24.7c-16.8 5.6-25.8 23.7-20.2 40.5 1.7 5.2 4.9 9.4 8.7 12.9l-38.7-14.1c-9.7-3.5-17.4-10.6-21.8-20-5.6-12-19.9-17.2-31.9-11.6s-17.2 19.9-11.6 31.9c9.8 21 27.1 36.9 48.9 44.8l364.8 132.7c9.7 3.5 19.7 5.3 29.7 5.3 12.5 0 24.9-2.7 36.5-8.2 12-5.6 17.2-19.9 11.6-31.9S474 454.7 462 460.3c-9.3 4.4-19.8 4.8-29.5 1.3l-90.8-33.1c8.7-4.1 15.6-11.8 17.8-21.9l21.9-102c3.9-18.2-3.2-37.2-18.1-48.4l-52-39 66-30.5 83.5 62.9zm-144.4 51.7l-19.7 92c-1.5 7.1-.1 13.9 2.8 20l-169.4-61.6c2.7-.2 5.4-.4 8-1.3l85-28.4c19.6-6.5 32.8-24.8 32.8-45.5V256l60.5 45.3z"]
  8225. };
  8226. var faSnowflake = {
  8227. prefix: 'fas',
  8228. iconName: 'snowflake',
  8229. icon: [448, 512, [], "f2dc", "M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"]
  8230. };
  8231. var faSnowman = {
  8232. prefix: 'fas',
  8233. iconName: 'snowman',
  8234. icon: [512, 512, [], "f7d0", "M510.9 152.3l-5.9-14.5c-3.3-8-12.6-11.9-20.8-8.7L456 140.6v-29c0-8.6-7.2-15.6-16-15.6h-16c-8.8 0-16 7-16 15.6v46.9c0 .5.3 1 .3 1.5l-56.4 23c-5.9-10-13.3-18.9-22-26.6 13.6-16.6 22-37.4 22-60.5 0-53-43-96-96-96s-96 43-96 96c0 23.1 8.5 43.9 22 60.5-8.7 7.7-16 16.6-22 26.6l-56.4-23c.1-.5.3-1 .3-1.5v-46.9C104 103 96.8 96 88 96H72c-8.8 0-16 7-16 15.6v29l-28.1-11.5c-8.2-3.2-17.5.7-20.8 8.7l-5.9 14.5c-3.3 8 .7 17.1 8.9 20.3l135.2 55.2c-.4 4-1.2 8-1.2 12.2 0 10.1 1.7 19.6 4.2 28.9C120.9 296.4 104 334.2 104 376c0 54 28.4 100.9 70.8 127.8 9.3 5.9 20.3 8.2 31.3 8.2h99.2c13.3 0 26.3-4.1 37.2-11.7 46.5-32.3 74.4-89.4 62.9-152.6-5.5-30.2-20.5-57.6-41.6-79 2.5-9.2 4.2-18.7 4.2-28.7 0-4.2-.8-8.1-1.2-12.2L502 172.6c8.1-3.1 12.1-12.2 8.9-20.3zM224 96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 272c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-88s-16-23.2-16-32 7.2-16 16-16 16 7.2 16 16-16 32-16 32zm32-56c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
  8235. };
  8236. var faSnowplow = {
  8237. prefix: 'fas',
  8238. iconName: 'snowplow',
  8239. icon: [640, 512, [], "f7d2", "M120 376c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm238.6 49.4c-14.5-14.5-22.6-34.1-22.6-54.6V269.2c0-20.5 8.1-40.1 22.6-54.6l36.7-36.7c6.2-6.2 6.2-16.4 0-22.6l-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0l-36.7 36.7c-26.5 26.5-41.4 62.4-41.4 99.9V288h-64v-50.9c0-8.7-1.8-17.2-5.2-25.2L364.5 29.1C356.9 11.4 339.6 0 320.3 0H176c-26.5 0-48 21.5-48 48v112h-16c-26.5 0-48 21.5-48 48v91.2C26.3 317.2 0 355.4 0 400c0 61.9 50.1 112 112 112h256c61.9 0 112-50.1 112-112 0-17.3-4.2-33.4-11.2-48H512v18.7c0 37.5 14.9 73.4 41.4 99.9l36.7 36.7c6.2 6.2 16.4 6.2 22.6 0l22.6-22.6c6.2-6.2 6.2-16.4 0-22.6l-36.7-36.7zM192 64h117.8l68.6 160H256l-64-64V64zm176 384H112c-26.5 0-48-21.5-48-48s21.5-48 48-48h256c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
  8240. };
  8241. var faSoap = {
  8242. prefix: 'fas',
  8243. iconName: 'soap',
  8244. icon: [512, 512, [], "f96e", "M416,192a95.42,95.42,0,0,1-30.94,70.21A95.8,95.8,0,0,1,352,448H160a96,96,0,0,1,0-192h88.91A95.3,95.3,0,0,1,224,192H96A96,96,0,0,0,0,288V416a96,96,0,0,0,96,96H416a96,96,0,0,0,96-96V288A96,96,0,0,0,416,192Zm-96,64a64,64,0,1,0-64-64A64,64,0,0,0,320,256ZM208,96a48,48,0,1,0-48-48A48,48,0,0,0,208,96ZM384,64a32,32,0,1,0-32-32A32,32,0,0,0,384,64ZM160,288a64,64,0,0,0,0,128H352a64,64,0,0,0,0-128Z"]
  8245. };
  8246. var faSocks = {
  8247. prefix: 'fas',
  8248. iconName: 'socks',
  8249. 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"]
  8250. };
  8251. var faSolarPanel = {
  8252. prefix: 'fas',
  8253. iconName: 'solar-panel',
  8254. 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"]
  8255. };
  8256. var faSort = {
  8257. prefix: 'fas',
  8258. iconName: 'sort',
  8259. 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"]
  8260. };
  8261. var faSortAlphaDown = {
  8262. prefix: 'fas',
  8263. iconName: 'sort-alpha-down',
  8264. icon: [448, 512, [], "f15d", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm240-64H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
  8265. };
  8266. var faSortAlphaDownAlt = {
  8267. prefix: 'fas',
  8268. iconName: 'sort-alpha-down-alt',
  8269. icon: [448, 512, [], "f881", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm112-128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
  8270. };
  8271. var faSortAlphaUp = {
  8272. prefix: 'fas',
  8273. iconName: 'sort-alpha-up',
  8274. icon: [448, 512, [], "f15e", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm400 128H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
  8275. };
  8276. var faSortAlphaUpAlt = {
  8277. prefix: 'fas',
  8278. iconName: 'sort-alpha-up-alt',
  8279. icon: [448, 512, [], "f882", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm272 64h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
  8280. };
  8281. var faSortAmountDown = {
  8282. prefix: 'fas',
  8283. iconName: 'sort-amount-down',
  8284. icon: [512, 512, [], "f160", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  8285. };
  8286. var faSortAmountDownAlt = {
  8287. prefix: 'fas',
  8288. iconName: 'sort-amount-down-alt',
  8289. icon: [512, 512, [], "f884", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm-64 0h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
  8290. };
  8291. var faSortAmountUp = {
  8292. prefix: 'fas',
  8293. iconName: 'sort-amount-up',
  8294. icon: [512, 512, [], "f161", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  8295. };
  8296. var faSortAmountUpAlt = {
  8297. prefix: 'fas',
  8298. iconName: 'sort-amount-up-alt',
  8299. icon: [512, 512, [], "f885", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.39-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160z"]
  8300. };
  8301. var faSortDown = {
  8302. prefix: 'fas',
  8303. iconName: 'sort-down',
  8304. 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"]
  8305. };
  8306. var faSortNumericDown = {
  8307. prefix: 'fas',
  8308. iconName: 'sort-numeric-down',
  8309. icon: [448, 512, [], "f162", "M304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zm26.15 162.91a79 79 0 0 0-55 54.17c-14.25 51.05 21.21 97.77 68.85 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm-176-4h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
  8310. };
  8311. var faSortNumericDownAlt = {
  8312. prefix: 'fas',
  8313. iconName: 'sort-numeric-down-alt',
  8314. icon: [448, 512, [], "f886", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm224 64h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
  8315. };
  8316. var faSortNumericUp = {
  8317. prefix: 'fas',
  8318. iconName: 'sort-numeric-up',
  8319. icon: [448, 512, [], "f163", "M330.17 258.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zM304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zM107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31z"]
  8320. };
  8321. var faSortNumericUpAlt = {
  8322. prefix: 'fas',
  8323. iconName: 'sort-numeric-up-alt',
  8324. icon: [448, 512, [], "f887", "M107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31zM400 416h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
  8325. };
  8326. var faSortUp = {
  8327. prefix: 'fas',
  8328. iconName: 'sort-up',
  8329. 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"]
  8330. };
  8331. var faSpa = {
  8332. prefix: 'fas',
  8333. iconName: 'spa',
  8334. 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"]
  8335. };
  8336. var faSpaceShuttle = {
  8337. prefix: 'fas',
  8338. iconName: 'space-shuttle',
  8339. 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"]
  8340. };
  8341. var faSpellCheck = {
  8342. prefix: 'fas',
  8343. iconName: 'spell-check',
  8344. icon: [576, 512, [], "f891", "M272 256h91.36c43.2 0 82-32.2 84.51-75.34a79.82 79.82 0 0 0-25.26-63.07 79.81 79.81 0 0 0 9.06-44.91C427.9 30.57 389.3 0 347 0h-75a16 16 0 0 0-16 16v224a16 16 0 0 0 16 16zm40-200h40a24 24 0 0 1 0 48h-40zm0 96h56a24 24 0 0 1 0 48h-56zM155.12 22.25A32 32 0 0 0 124.64 0H99.36a32 32 0 0 0-30.48 22.25L.59 235.73A16 16 0 0 0 16 256h24.93a16 16 0 0 0 15.42-11.73L68.29 208h87.42l11.94 36.27A16 16 0 0 0 183.07 256H208a16 16 0 0 0 15.42-20.27zM89.37 144L112 75.3l22.63 68.7zm482 132.48l-45.21-45.3a15.88 15.88 0 0 0-22.59 0l-151.5 151.5-55.41-55.5a15.88 15.88 0 0 0-22.59 0l-45.3 45.3a16 16 0 0 0 0 22.59l112 112.21a15.89 15.89 0 0 0 22.6 0l208-208.21a16 16 0 0 0-.02-22.59z"]
  8345. };
  8346. var faSpider = {
  8347. prefix: 'fas',
  8348. iconName: 'spider',
  8349. 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"]
  8350. };
  8351. var faSpinner = {
  8352. prefix: 'fas',
  8353. iconName: 'spinner',
  8354. 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"]
  8355. };
  8356. var faSplotch = {
  8357. prefix: 'fas',
  8358. iconName: 'splotch',
  8359. 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"]
  8360. };
  8361. var faSprayCan = {
  8362. prefix: 'fas',
  8363. iconName: 'spray-can',
  8364. 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"]
  8365. };
  8366. var faSquare = {
  8367. prefix: 'fas',
  8368. iconName: 'square',
  8369. 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"]
  8370. };
  8371. var faSquareFull = {
  8372. prefix: 'fas',
  8373. iconName: 'square-full',
  8374. icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"]
  8375. };
  8376. var faSquareRootAlt = {
  8377. prefix: 'fas',
  8378. iconName: 'square-root-alt',
  8379. 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"]
  8380. };
  8381. var faStamp = {
  8382. prefix: 'fas',
  8383. iconName: 'stamp',
  8384. 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"]
  8385. };
  8386. var faStar = {
  8387. prefix: 'fas',
  8388. iconName: 'star',
  8389. 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"]
  8390. };
  8391. var faStarAndCrescent = {
  8392. prefix: 'fas',
  8393. iconName: 'star-and-crescent',
  8394. 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"]
  8395. };
  8396. var faStarHalf = {
  8397. prefix: 'fas',
  8398. iconName: 'star-half',
  8399. 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"]
  8400. };
  8401. var faStarHalfAlt = {
  8402. prefix: 'fas',
  8403. iconName: 'star-half-alt',
  8404. 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"]
  8405. };
  8406. var faStarOfDavid = {
  8407. prefix: 'fas',
  8408. iconName: 'star-of-david',
  8409. 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"]
  8410. };
  8411. var faStarOfLife = {
  8412. prefix: 'fas',
  8413. iconName: 'star-of-life',
  8414. 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"]
  8415. };
  8416. var faStepBackward = {
  8417. prefix: 'fas',
  8418. iconName: 'step-backward',
  8419. 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"]
  8420. };
  8421. var faStepForward = {
  8422. prefix: 'fas',
  8423. iconName: 'step-forward',
  8424. 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"]
  8425. };
  8426. var faStethoscope = {
  8427. prefix: 'fas',
  8428. iconName: 'stethoscope',
  8429. 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"]
  8430. };
  8431. var faStickyNote = {
  8432. prefix: 'fas',
  8433. iconName: 'sticky-note',
  8434. 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"]
  8435. };
  8436. var faStop = {
  8437. prefix: 'fas',
  8438. iconName: 'stop',
  8439. 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"]
  8440. };
  8441. var faStopCircle = {
  8442. prefix: 'fas',
  8443. iconName: 'stop-circle',
  8444. 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"]
  8445. };
  8446. var faStopwatch = {
  8447. prefix: 'fas',
  8448. iconName: 'stopwatch',
  8449. 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"]
  8450. };
  8451. var faStopwatch20 = {
  8452. prefix: 'fas',
  8453. iconName: 'stopwatch-20',
  8454. icon: [448, 512, [], "f96f", "M398.5,190.91l.59-.61,26.59-26.58a16,16,0,0,0,0-22.63L403,118.41a16,16,0,0,0-22.63,0l-24.68,24.68A206.68,206.68,0,0,0,256,98.5V64h32a16,16,0,0,0,16-16V16A16,16,0,0,0,288,0H160a16.05,16.05,0,0,0-16,16V48a16.05,16.05,0,0,0,16,16h32V98.5A207.92,207.92,0,0,0,16.09,297.57C12.64,411.5,106.76,510.22,220.72,512,337.13,513.77,432,420,432,304A206,206,0,0,0,398.5,190.91ZM204.37,377.55a8.2,8.2,0,0,1,8.32,8.07v22.31a8.2,8.2,0,0,1-8.32,8.07H121.52a16.46,16.46,0,0,1-16.61-17.62c2.78-35.22,14.67-57.41,38.45-91.37,20.42-29.19,27.1-37.32,27.1-62.34,0-16.92-1.79-24.27-12.21-24.27-9.39,0-12.69,7.4-12.69,22.68v5.23a8.2,8.2,0,0,1-8.33,8.07h-24.9a8.2,8.2,0,0,1-8.33-8.07v-4.07c0-27.3,8.48-60.24,56.43-60.24,43,0,55.57,25.85,55.57,61,0,35.58-12.44,51.21-34.35,81.31-11.56,15-24.61,35.57-26.41,51.2ZM344,352.32c0,35.16-12.3,63.68-57.23,63.68C243.19,416,232,386.48,232,352.55V247.22c0-40.73,19.58-63.22,56.2-63.22C325,184,344,206.64,344,245.3ZM287.87,221.73c-9.41,0-13.23,7.5-13.23,20V357.68c0,13.11,3.59,20.59,13.23,20.59s13-8,13-21.27V241.06C300.89,229.79,297.88,221.73,287.87,221.73Z"]
  8455. };
  8456. var faStore = {
  8457. prefix: 'fas',
  8458. iconName: 'store',
  8459. 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"]
  8460. };
  8461. var faStoreAlt = {
  8462. prefix: 'fas',
  8463. iconName: 'store-alt',
  8464. 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"]
  8465. };
  8466. var faStoreAltSlash = {
  8467. prefix: 'fas',
  8468. iconName: 'store-alt-slash',
  8469. icon: [640, 512, [], "f970", "M17.89,123.62,5.51,142.2c-14.2,21.3,1,49.8,26.59,49.8h74.26ZM576,413.42V224H512V364L384,265V224H330.92l-41.4-32H608c25.5,0,40.7-28.5,26.59-49.8l-85.29-128A32.18,32.18,0,0,0,522.6,0H117.42A31.87,31.87,0,0,0,90.81,14.2l-10.66,16L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.81l19.64-25.26a16,16,0,0,0-2.81-22.45ZM320,384H128V224H64V480a32,32,0,0,0,32,32H352a32,32,0,0,0,32-32V406.59l-64-49.47Z"]
  8470. };
  8471. var faStoreSlash = {
  8472. prefix: 'fas',
  8473. iconName: 'store-slash',
  8474. icon: [640, 512, [], "f971", "M121.51,384V284.2a119.43,119.43,0,0,1-28,3.8,123.46,123.46,0,0,1-17.1-1.2,114.88,114.88,0,0,1-15.58-3.6V480c0,17.7,13.59,32,30.4,32H505.75L348.42,384Zm-28-128.09c25.1,0,47.29-10.72,64-27.24L24,120.05c-30.52,53.39-2.45,126.53,56.49,135A95.68,95.68,0,0,0,93.48,255.91ZM602.13,458.09,547.2,413.41V283.2a93.5,93.5,0,0,1-15.57,3.6,127.31,127.31,0,0,1-17.29,1.2,114.89,114.89,0,0,1-28-3.8v79.68L348.52,251.77a88.06,88.06,0,0,0,25.41,4.14c28.11,0,53-13,70.11-33.11,17.19,20.11,42.08,33.11,70.11,33.11a94.31,94.31,0,0,0,13-.91c59.66-8.41,88-82.8,56.06-136.4L521.55,15A30.1,30.1,0,0,0,495.81,0H112A30.11,30.11,0,0,0,86.27,15L76.88,30.78,43.19,3.38A14.68,14.68,0,0,0,21.86,6.19L3.2,31.45A16.58,16.58,0,0,0,5.87,53.91L564.81,508.63a14.69,14.69,0,0,0,21.33-2.82l18.66-25.26A16.58,16.58,0,0,0,602.13,458.09Z"]
  8475. };
  8476. var faStream = {
  8477. prefix: 'fas',
  8478. iconName: 'stream',
  8479. 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"]
  8480. };
  8481. var faStreetView = {
  8482. prefix: 'fas',
  8483. iconName: 'street-view',
  8484. 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"]
  8485. };
  8486. var faStrikethrough = {
  8487. prefix: 'fas',
  8488. iconName: 'strikethrough',
  8489. icon: [512, 512, [], "f0cc", "M496 224H293.9l-87.17-26.83A43.55 43.55 0 0 1 219.55 112h66.79A49.89 49.89 0 0 1 331 139.58a16 16 0 0 0 21.46 7.15l42.94-21.47a16 16 0 0 0 7.16-21.46l-.53-1A128 128 0 0 0 287.51 32h-68a123.68 123.68 0 0 0-123 135.64c2 20.89 10.1 39.83 21.78 56.36H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-180.24 96A43 43 0 0 1 336 356.45 43.59 43.59 0 0 1 292.45 400h-66.79A49.89 49.89 0 0 1 181 372.42a16 16 0 0 0-21.46-7.15l-42.94 21.47a16 16 0 0 0-7.16 21.46l.53 1A128 128 0 0 0 224.49 480h68a123.68 123.68 0 0 0 123-135.64 114.25 114.25 0 0 0-5.34-24.36z"]
  8490. };
  8491. var faStroopwafel = {
  8492. prefix: 'fas',
  8493. iconName: 'stroopwafel',
  8494. 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"]
  8495. };
  8496. var faSubscript = {
  8497. prefix: 'fas',
  8498. iconName: 'subscript',
  8499. icon: [512, 512, [], "f12c", "M496 448h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 352h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
  8500. };
  8501. var faSubway = {
  8502. prefix: 'fas',
  8503. iconName: 'subway',
  8504. 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"]
  8505. };
  8506. var faSuitcase = {
  8507. prefix: 'fas',
  8508. iconName: 'suitcase',
  8509. 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"]
  8510. };
  8511. var faSuitcaseRolling = {
  8512. prefix: 'fas',
  8513. iconName: 'suitcase-rolling',
  8514. 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"]
  8515. };
  8516. var faSun = {
  8517. prefix: 'fas',
  8518. iconName: 'sun',
  8519. icon: [512, 512, [], "f185", "M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"]
  8520. };
  8521. var faSuperscript = {
  8522. prefix: 'fas',
  8523. iconName: 'superscript',
  8524. icon: [512, 512, [], "f12b", "M496 160h-16V16a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 64h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
  8525. };
  8526. var faSurprise = {
  8527. prefix: 'fas',
  8528. iconName: 'surprise',
  8529. 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"]
  8530. };
  8531. var faSwatchbook = {
  8532. prefix: 'fas',
  8533. iconName: 'swatchbook',
  8534. icon: [512, 512, [], "f5c3", "M434.66,167.71h0L344.5,77.36a31.83,31.83,0,0,0-45-.07h0l-.07.07L224,152.88V424L434.66,212.9A32,32,0,0,0,434.66,167.71ZM480,320H373.09L186.68,506.51c-2.06,2.07-4.5,3.58-6.68,5.49H480a32,32,0,0,0,32-32V352A32,32,0,0,0,480,320ZM192,32A32,32,0,0,0,160,0H32A32,32,0,0,0,0,32V416a96,96,0,0,0,192,0ZM96,440a24,24,0,1,1,24-24A24,24,0,0,1,96,440Zm32-184H64V192h64Zm0-128H64V64h64Z"]
  8535. };
  8536. var faSwimmer = {
  8537. prefix: 'fas',
  8538. iconName: 'swimmer',
  8539. 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"]
  8540. };
  8541. var faSwimmingPool = {
  8542. prefix: 'fas',
  8543. iconName: 'swimming-pool',
  8544. 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"]
  8545. };
  8546. var faSynagogue = {
  8547. prefix: 'fas',
  8548. iconName: 'synagogue',
  8549. 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"]
  8550. };
  8551. var faSync = {
  8552. prefix: 'fas',
  8553. iconName: 'sync',
  8554. icon: [512, 512, [], "f021", "M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"]
  8555. };
  8556. var faSyncAlt = {
  8557. prefix: 'fas',
  8558. iconName: 'sync-alt',
  8559. 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"]
  8560. };
  8561. var faSyringe = {
  8562. prefix: 'fas',
  8563. iconName: 'syringe',
  8564. 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"]
  8565. };
  8566. var faTable = {
  8567. prefix: 'fas',
  8568. iconName: 'table',
  8569. 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"]
  8570. };
  8571. var faTableTennis = {
  8572. prefix: 'fas',
  8573. iconName: 'table-tennis',
  8574. 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"]
  8575. };
  8576. var faTablet = {
  8577. prefix: 'fas',
  8578. iconName: 'tablet',
  8579. 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"]
  8580. };
  8581. var faTabletAlt = {
  8582. prefix: 'fas',
  8583. iconName: 'tablet-alt',
  8584. 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"]
  8585. };
  8586. var faTablets = {
  8587. prefix: 'fas',
  8588. iconName: 'tablets',
  8589. 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"]
  8590. };
  8591. var faTachometerAlt = {
  8592. prefix: 'fas',
  8593. iconName: 'tachometer-alt',
  8594. 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"]
  8595. };
  8596. var faTag = {
  8597. prefix: 'fas',
  8598. iconName: 'tag',
  8599. 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"]
  8600. };
  8601. var faTags = {
  8602. prefix: 'fas',
  8603. iconName: 'tags',
  8604. 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"]
  8605. };
  8606. var faTape = {
  8607. prefix: 'fas',
  8608. iconName: 'tape',
  8609. 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"]
  8610. };
  8611. var faTasks = {
  8612. prefix: 'fas',
  8613. iconName: 'tasks',
  8614. icon: [512, 512, [], "f0ae", "M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  8615. };
  8616. var faTaxi = {
  8617. prefix: 'fas',
  8618. iconName: 'taxi',
  8619. 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"]
  8620. };
  8621. var faTeeth = {
  8622. prefix: 'fas',
  8623. iconName: 'teeth',
  8624. 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"]
  8625. };
  8626. var faTeethOpen = {
  8627. prefix: 'fas',
  8628. iconName: 'teeth-open',
  8629. 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"]
  8630. };
  8631. var faTemperatureHigh = {
  8632. prefix: 'fas',
  8633. iconName: 'temperature-high',
  8634. icon: [512, 512, [], "f769", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-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 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V112c0-8.8-7.2-16-16-16s-16 7.2-16 16v210.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
  8635. };
  8636. var faTemperatureLow = {
  8637. prefix: 'fas',
  8638. iconName: 'temperature-low',
  8639. icon: [512, 512, [], "f76b", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-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 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
  8640. };
  8641. var faTenge = {
  8642. prefix: 'fas',
  8643. iconName: 'tenge',
  8644. icon: [384, 512, [], "f7d7", "M372 160H12c-6.6 0-12 5.4-12 12v56c0 6.6 5.4 12 12 12h140v228c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V240h140c6.6 0 12-5.4 12-12v-56c0-6.6-5.4-12-12-12zm0-128H12C5.4 32 0 37.4 0 44v56c0 6.6 5.4 12 12 12h360c6.6 0 12-5.4 12-12V44c0-6.6-5.4-12-12-12z"]
  8645. };
  8646. var faTerminal = {
  8647. prefix: 'fas',
  8648. iconName: 'terminal',
  8649. 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"]
  8650. };
  8651. var faTextHeight = {
  8652. prefix: 'fas',
  8653. iconName: 'text-height',
  8654. icon: [576, 512, [], "f034", "M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"]
  8655. };
  8656. var faTextWidth = {
  8657. prefix: 'fas',
  8658. iconName: 'text-width',
  8659. icon: [448, 512, [], "f035", "M432 32H16A16 16 0 0 0 0 48v80a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-16h120v112h-24a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-24V112h120v16a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm-68.69 260.69C354 283.36 336 288.36 336 304v48H112v-48c0-14.31-17.31-21.32-27.31-11.31l-80 80a16 16 0 0 0 0 22.62l80 80C94 484.64 112 479.64 112 464v-48h224v48c0 14.31 17.31 21.33 27.31 11.31l80-80a16 16 0 0 0 0-22.62z"]
  8660. };
  8661. var faTh = {
  8662. prefix: 'fas',
  8663. iconName: 'th',
  8664. 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"]
  8665. };
  8666. var faThLarge = {
  8667. prefix: 'fas',
  8668. iconName: 'th-large',
  8669. 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"]
  8670. };
  8671. var faThList = {
  8672. prefix: 'fas',
  8673. iconName: 'th-list',
  8674. 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"]
  8675. };
  8676. var faTheaterMasks = {
  8677. prefix: 'fas',
  8678. iconName: 'theater-masks',
  8679. 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"]
  8680. };
  8681. var faThermometer = {
  8682. prefix: 'fas',
  8683. iconName: 'thermometer',
  8684. 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"]
  8685. };
  8686. var faThermometerEmpty = {
  8687. prefix: 'fas',
  8688. iconName: 'thermometer-empty',
  8689. 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"]
  8690. };
  8691. var faThermometerFull = {
  8692. prefix: 'fas',
  8693. iconName: 'thermometer-full',
  8694. 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"]
  8695. };
  8696. var faThermometerHalf = {
  8697. prefix: 'fas',
  8698. iconName: 'thermometer-half',
  8699. 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"]
  8700. };
  8701. var faThermometerQuarter = {
  8702. prefix: 'fas',
  8703. iconName: 'thermometer-quarter',
  8704. 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"]
  8705. };
  8706. var faThermometerThreeQuarters = {
  8707. prefix: 'fas',
  8708. iconName: 'thermometer-three-quarters',
  8709. 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"]
  8710. };
  8711. var faThumbsDown = {
  8712. prefix: 'fas',
  8713. iconName: 'thumbs-down',
  8714. 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"]
  8715. };
  8716. var faThumbsUp = {
  8717. prefix: 'fas',
  8718. iconName: 'thumbs-up',
  8719. 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"]
  8720. };
  8721. var faThumbtack = {
  8722. prefix: 'fas',
  8723. iconName: 'thumbtack',
  8724. 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"]
  8725. };
  8726. var faTicketAlt = {
  8727. prefix: 'fas',
  8728. iconName: 'ticket-alt',
  8729. 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"]
  8730. };
  8731. var faTimes = {
  8732. prefix: 'fas',
  8733. iconName: 'times',
  8734. 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"]
  8735. };
  8736. var faTimesCircle = {
  8737. prefix: 'fas',
  8738. iconName: 'times-circle',
  8739. 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"]
  8740. };
  8741. var faTint = {
  8742. prefix: 'fas',
  8743. iconName: 'tint',
  8744. 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"]
  8745. };
  8746. var faTintSlash = {
  8747. prefix: 'fas',
  8748. iconName: 'tint-slash',
  8749. 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"]
  8750. };
  8751. var faTired = {
  8752. prefix: 'fas',
  8753. iconName: 'tired',
  8754. 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"]
  8755. };
  8756. var faToggleOff = {
  8757. prefix: 'fas',
  8758. iconName: 'toggle-off',
  8759. 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"]
  8760. };
  8761. var faToggleOn = {
  8762. prefix: 'fas',
  8763. iconName: 'toggle-on',
  8764. icon: [576, 512, [], "f205", "M384 64H192C86 64 0 150 0 256s86 192 192 192h192c106 0 192-86 192-192S490 64 384 64zm0 320c-70.8 0-128-57.3-128-128 0-70.8 57.3-128 128-128 70.8 0 128 57.3 128 128 0 70.8-57.3 128-128 128z"]
  8765. };
  8766. var faToilet = {
  8767. prefix: 'fas',
  8768. iconName: 'toilet',
  8769. icon: [384, 512, [], "f7d8", "M368 48c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v16c0 8.8 7.2 16 16 16h16v156.7C11.8 214.8 0 226.9 0 240c0 67.2 34.6 126.2 86.8 160.5l-21.4 70.2C59.1 491.2 74.5 512 96 512h192c21.5 0 36.9-20.8 30.6-41.3l-21.4-70.2C349.4 366.2 384 307.2 384 240c0-13.1-11.8-25.2-32-35.3V48h16zM80 72c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V72zm112 200c-77.1 0-139.6-14.3-139.6-32s62.5-32 139.6-32 139.6 14.3 139.6 32-62.5 32-139.6 32z"]
  8770. };
  8771. var faToiletPaper = {
  8772. prefix: 'fas',
  8773. iconName: 'toilet-paper',
  8774. 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"]
  8775. };
  8776. var faToiletPaperSlash = {
  8777. prefix: 'fas',
  8778. iconName: 'toilet-paper-slash',
  8779. icon: [640, 512, [], "f972", "M64,192V364.13c0,41.12-9.75,62.75-31.12,126.87A16,16,0,0,0,48,512H328.86a31.87,31.87,0,0,0,30.38-21.87c9.31-27.83,18-53.35,22.18-85.55l-316-244.25C64.53,170.66,64,181.19,64,192ZM633.82,458.09l-102-78.81C575.28,360.91,608,284.32,608,192,608,86,565,0,512,0s-96,86-96,192c0,42,7,80.4,18.43,112L384,265V192c0-83.62,23.63-153.5,60.5-192H160c-23.33,0-44.63,16.83-61.26,44.53L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09ZM512,256c-17.63,0-32-28.62-32-64s14.37-64,32-64,32,28.63,32,64S529.62,256,512,256Z"]
  8780. };
  8781. var faToolbox = {
  8782. prefix: 'fas',
  8783. iconName: 'toolbox',
  8784. 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"]
  8785. };
  8786. var faTools = {
  8787. prefix: 'fas',
  8788. iconName: 'tools',
  8789. icon: [512, 512, [], "f7d9", "M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]
  8790. };
  8791. var faTooth = {
  8792. prefix: 'fas',
  8793. iconName: 'tooth',
  8794. 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"]
  8795. };
  8796. var faTorah = {
  8797. prefix: 'fas',
  8798. iconName: 'torah',
  8799. icon: [640, 512, [], "f6a0", "M320.05 366.48l17.72-29.64h-35.46zm99.21-166H382.4l18.46 30.82zM48 0C21.49 0 0 14.33 0 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32C96 14.33 74.51 0 48 0zm172.74 311.5h36.85l-18.46-30.82zm161.71 0h36.86l-18.45-30.8zM128 464h384V48H128zm66.77-278.13a21.22 21.22 0 0 1 18.48-10.71h59.45l29.13-48.71a21.13 21.13 0 0 1 18.22-10.37A20.76 20.76 0 0 1 338 126.29l29.25 48.86h59.52a21.12 21.12 0 0 1 18.1 32L415.63 256 445 305a20.69 20.69 0 0 1 .24 21.12 21.25 21.25 0 0 1-18.48 10.72h-59.47l-29.13 48.7a21.13 21.13 0 0 1-18.16 10.4 20.79 20.79 0 0 1-18-10.22l-29.25-48.88h-59.5a21.11 21.11 0 0 1-18.1-32L224.36 256 195 207a20.7 20.7 0 0 1-.23-21.13zM592 0c-26.51 0-48 14.33-48 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32c0-17.67-21.49-32-48-32zM320 145.53l-17.78 29.62h35.46zm-62.45 55h-36.81l18.44 30.8zm29.58 111h65.79L386.09 256l-33.23-55.52h-65.79L253.9 256z"]
  8800. };
  8801. var faToriiGate = {
  8802. prefix: 'fas',
  8803. iconName: 'torii-gate',
  8804. 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"]
  8805. };
  8806. var faTractor = {
  8807. prefix: 'fas',
  8808. iconName: 'tractor',
  8809. 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"]
  8810. };
  8811. var faTrademark = {
  8812. prefix: 'fas',
  8813. iconName: 'trademark',
  8814. icon: [640, 512, [], "f25c", "M260.6 96H12c-6.6 0-12 5.4-12 12v43.1c0 6.6 5.4 12 12 12h85.1V404c0 6.6 5.4 12 12 12h54.3c6.6 0 12-5.4 12-12V163.1h85.1c6.6 0 12-5.4 12-12V108c.1-6.6-5.3-12-11.9-12zM640 403l-24-296c-.5-6.2-5.7-11-12-11h-65.4c-5.1 0-9.7 3.3-11.3 8.1l-43.8 127.1c-7.2 20.6-16.1 52.8-16.1 52.8h-.9s-8.9-32.2-16.1-52.8l-43.8-127.1c-1.7-4.8-6.2-8.1-11.3-8.1h-65.4c-6.2 0-11.4 4.8-12 11l-24.4 296c-.6 7 4.9 13 12 13H360c6.3 0 11.5-4.9 12-11.2l9.1-132.9c1.8-24.2 0-53.7 0-53.7h.9s10.7 33.6 17.9 53.7l30.7 84.7c1.7 4.7 6.2 7.9 11.3 7.9h50.3c5.1 0 9.6-3.2 11.3-7.9l30.7-84.7c7.2-20.1 17.9-53.7 17.9-53.7h.9s-1.8 29.5 0 53.7l9.1 132.9c.4 6.3 5.7 11.2 12 11.2H628c7 0 12.5-6 12-13z"]
  8815. };
  8816. var faTrafficLight = {
  8817. prefix: 'fas',
  8818. iconName: 'traffic-light',
  8819. 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"]
  8820. };
  8821. var faTrailer = {
  8822. prefix: 'fas',
  8823. iconName: 'trailer',
  8824. icon: [640, 512, [], "f941", "M624,320H544V80a16,16,0,0,0-16-16H16A16,16,0,0,0,0,80V368a16,16,0,0,0,16,16H65.61c7.83-54.21,54-96,110.39-96s102.56,41.79,110.39,96H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM96,243.68a176.29,176.29,0,0,0-32,20.71V136a8,8,0,0,1,8-8H88a8,8,0,0,1,8,8Zm96-18.54c-5.31-.49-10.57-1.14-16-1.14s-10.69.65-16,1.14V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,39.25a176.29,176.29,0,0,0-32-20.71V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8ZM384,320H352V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,0H448V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm-304,0a80,80,0,1,0,80,80A80,80,0,0,0,176,320Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,176,432Z"]
  8825. };
  8826. var faTrain = {
  8827. prefix: 'fas',
  8828. iconName: 'train',
  8829. 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"]
  8830. };
  8831. var faTram = {
  8832. prefix: 'fas',
  8833. iconName: 'tram',
  8834. icon: [512, 512, [], "f7da", "M288 64c17.7 0 32-14.3 32-32S305.7 0 288 0s-32 14.3-32 32 14.3 32 32 32zm223.5-12.1c-2.3-8.6-11-13.6-19.6-11.3l-480 128c-8.5 2.3-13.6 11-11.3 19.6C2.5 195.3 8.9 200 16 200c1.4 0 2.8-.2 4.1-.5L240 140.8V224H64c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H272v-91.7l228.1-60.8c8.6-2.3 13.6-11.1 11.4-19.6zM176 384H80v-96h96v96zm160-96h96v96h-96v-96zm-32 0v96h-96v-96h96zM192 96c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
  8835. };
  8836. var faTransgender = {
  8837. prefix: 'fas',
  8838. iconName: 'transgender',
  8839. 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"]
  8840. };
  8841. var faTransgenderAlt = {
  8842. prefix: 'fas',
  8843. iconName: 'transgender-alt',
  8844. 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"]
  8845. };
  8846. var faTrash = {
  8847. prefix: 'fas',
  8848. iconName: 'trash',
  8849. icon: [448, 512, [], "f1f8", "M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]
  8850. };
  8851. var faTrashAlt = {
  8852. prefix: 'fas',
  8853. iconName: 'trash-alt',
  8854. icon: [448, 512, [], "f2ed", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  8855. };
  8856. var faTrashRestore = {
  8857. prefix: 'fas',
  8858. iconName: 'trash-restore',
  8859. icon: [448, 512, [], "f829", "M53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32zm70.11-175.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  8860. };
  8861. var faTrashRestoreAlt = {
  8862. prefix: 'fas',
  8863. iconName: 'trash-restore-alt',
  8864. icon: [448, 512, [], "f82a", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm91.31-172.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  8865. };
  8866. var faTree = {
  8867. prefix: 'fas',
  8868. iconName: 'tree',
  8869. 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"]
  8870. };
  8871. var faTrophy = {
  8872. prefix: 'fas',
  8873. iconName: 'trophy',
  8874. 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"]
  8875. };
  8876. var faTruck = {
  8877. prefix: 'fas',
  8878. iconName: 'truck',
  8879. 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"]
  8880. };
  8881. var faTruckLoading = {
  8882. prefix: 'fas',
  8883. iconName: 'truck-loading',
  8884. 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"]
  8885. };
  8886. var faTruckMonster = {
  8887. prefix: 'fas',
  8888. iconName: 'truck-monster',
  8889. 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"]
  8890. };
  8891. var faTruckMoving = {
  8892. prefix: 'fas',
  8893. iconName: 'truck-moving',
  8894. 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"]
  8895. };
  8896. var faTruckPickup = {
  8897. prefix: 'fas',
  8898. iconName: 'truck-pickup',
  8899. 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"]
  8900. };
  8901. var faTshirt = {
  8902. prefix: 'fas',
  8903. iconName: 'tshirt',
  8904. 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"]
  8905. };
  8906. var faTty = {
  8907. prefix: 'fas',
  8908. iconName: 'tty',
  8909. 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"]
  8910. };
  8911. var faTv = {
  8912. prefix: 'fas',
  8913. iconName: 'tv',
  8914. icon: [640, 512, [], "f26c", "M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"]
  8915. };
  8916. var faUmbrella = {
  8917. prefix: 'fas',
  8918. iconName: 'umbrella',
  8919. icon: [576, 512, [], "f0e9", "M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"]
  8920. };
  8921. var faUmbrellaBeach = {
  8922. prefix: 'fas',
  8923. iconName: 'umbrella-beach',
  8924. 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"]
  8925. };
  8926. var faUnderline = {
  8927. prefix: 'fas',
  8928. iconName: 'underline',
  8929. icon: [448, 512, [], "f0cd", "M32 64h32v160c0 88.22 71.78 160 160 160s160-71.78 160-160V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H272a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32v160a80 80 0 0 1-160 0V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm400 384H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  8930. };
  8931. var faUndo = {
  8932. prefix: 'fas',
  8933. iconName: 'undo',
  8934. 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"]
  8935. };
  8936. var faUndoAlt = {
  8937. prefix: 'fas',
  8938. iconName: 'undo-alt',
  8939. 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"]
  8940. };
  8941. var faUniversalAccess = {
  8942. prefix: 'fas',
  8943. iconName: 'universal-access',
  8944. 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"]
  8945. };
  8946. var faUniversity = {
  8947. prefix: 'fas',
  8948. iconName: 'university',
  8949. 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"]
  8950. };
  8951. var faUnlink = {
  8952. prefix: 'fas',
  8953. iconName: 'unlink',
  8954. 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"]
  8955. };
  8956. var faUnlock = {
  8957. prefix: 'fas',
  8958. iconName: 'unlock',
  8959. 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"]
  8960. };
  8961. var faUnlockAlt = {
  8962. prefix: 'fas',
  8963. iconName: 'unlock-alt',
  8964. 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"]
  8965. };
  8966. var faUpload = {
  8967. prefix: 'fas',
  8968. iconName: 'upload',
  8969. 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"]
  8970. };
  8971. var faUser = {
  8972. prefix: 'fas',
  8973. iconName: 'user',
  8974. 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"]
  8975. };
  8976. var faUserAlt = {
  8977. prefix: 'fas',
  8978. iconName: 'user-alt',
  8979. 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"]
  8980. };
  8981. var faUserAltSlash = {
  8982. prefix: 'fas',
  8983. iconName: 'user-alt-slash',
  8984. 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"]
  8985. };
  8986. var faUserAstronaut = {
  8987. prefix: 'fas',
  8988. iconName: 'user-astronaut',
  8989. 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"]
  8990. };
  8991. var faUserCheck = {
  8992. prefix: 'fas',
  8993. iconName: 'user-check',
  8994. 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"]
  8995. };
  8996. var faUserCircle = {
  8997. prefix: 'fas',
  8998. iconName: 'user-circle',
  8999. 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"]
  9000. };
  9001. var faUserClock = {
  9002. prefix: 'fas',
  9003. iconName: 'user-clock',
  9004. 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"]
  9005. };
  9006. var faUserCog = {
  9007. prefix: 'fas',
  9008. iconName: 'user-cog',
  9009. 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"]
  9010. };
  9011. var faUserEdit = {
  9012. prefix: 'fas',
  9013. iconName: 'user-edit',
  9014. 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"]
  9015. };
  9016. var faUserFriends = {
  9017. prefix: 'fas',
  9018. iconName: 'user-friends',
  9019. 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"]
  9020. };
  9021. var faUserGraduate = {
  9022. prefix: 'fas',
  9023. iconName: 'user-graduate',
  9024. 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"]
  9025. };
  9026. var faUserInjured = {
  9027. prefix: 'fas',
  9028. iconName: 'user-injured',
  9029. 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"]
  9030. };
  9031. var faUserLock = {
  9032. prefix: 'fas',
  9033. iconName: 'user-lock',
  9034. icon: [640, 512, [], "f502", "M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]
  9035. };
  9036. var faUserMd = {
  9037. prefix: 'fas',
  9038. iconName: 'user-md',
  9039. 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"]
  9040. };
  9041. var faUserMinus = {
  9042. prefix: 'fas',
  9043. iconName: 'user-minus',
  9044. 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"]
  9045. };
  9046. var faUserNinja = {
  9047. prefix: 'fas',
  9048. iconName: 'user-ninja',
  9049. 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"]
  9050. };
  9051. var faUserNurse = {
  9052. prefix: 'fas',
  9053. iconName: 'user-nurse',
  9054. icon: [448, 512, [], "f82f", "M319.41,320,224,415.39,128.59,320C57.1,323.1,0,381.6,0,453.79A58.21,58.21,0,0,0,58.21,512H389.79A58.21,58.21,0,0,0,448,453.79C448,381.6,390.9,323.1,319.41,320ZM224,304A128,128,0,0,0,352,176V65.82a32,32,0,0,0-20.76-30L246.47,4.07a64,64,0,0,0-44.94,0L116.76,35.86A32,32,0,0,0,96,65.82V176A128,128,0,0,0,224,304ZM184,71.67a5,5,0,0,1,5-5h21.67V45a5,5,0,0,1,5-5h16.66a5,5,0,0,1,5,5V66.67H259a5,5,0,0,1,5,5V88.33a5,5,0,0,1-5,5H237.33V115a5,5,0,0,1-5,5H215.67a5,5,0,0,1-5-5V93.33H189a5,5,0,0,1-5-5ZM144,160H304v16a80,80,0,0,1-160,0Z"]
  9055. };
  9056. var faUserPlus = {
  9057. prefix: 'fas',
  9058. iconName: 'user-plus',
  9059. 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"]
  9060. };
  9061. var faUserSecret = {
  9062. prefix: 'fas',
  9063. iconName: 'user-secret',
  9064. 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"]
  9065. };
  9066. var faUserShield = {
  9067. prefix: 'fas',
  9068. iconName: 'user-shield',
  9069. 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"]
  9070. };
  9071. var faUserSlash = {
  9072. prefix: 'fas',
  9073. iconName: 'user-slash',
  9074. 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"]
  9075. };
  9076. var faUserTag = {
  9077. prefix: 'fas',
  9078. iconName: 'user-tag',
  9079. 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"]
  9080. };
  9081. var faUserTie = {
  9082. prefix: 'fas',
  9083. iconName: 'user-tie',
  9084. 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"]
  9085. };
  9086. var faUserTimes = {
  9087. prefix: 'fas',
  9088. iconName: 'user-times',
  9089. 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"]
  9090. };
  9091. var faUsers = {
  9092. prefix: 'fas',
  9093. iconName: 'users',
  9094. 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"]
  9095. };
  9096. var faUsersCog = {
  9097. prefix: 'fas',
  9098. iconName: 'users-cog',
  9099. 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"]
  9100. };
  9101. var faUsersSlash = {
  9102. prefix: 'fas',
  9103. iconName: 'users-slash',
  9104. icon: [640, 512, [], "f973", "M132.65,212.32,36.21,137.78A63.4,63.4,0,0,0,32,160a63.84,63.84,0,0,0,100.65,52.32Zm40.44,62.28A63.79,63.79,0,0,0,128,256H64A64.06,64.06,0,0,0,0,320v32a32,32,0,0,0,32,32H97.91A146.62,146.62,0,0,1,173.09,274.6ZM544,224a64,64,0,1,0-64-64A64.06,64.06,0,0,0,544,224ZM500.56,355.11a114.24,114.24,0,0,0-84.47-65.28L361,247.23c41.46-16.3,71-55.92,71-103.23A111.93,111.93,0,0,0,320,32c-57.14,0-103.69,42.83-110.6,98.08L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM128,403.21V432a48,48,0,0,0,48,48H464a47.45,47.45,0,0,0,12.57-1.87L232,289.13C173.74,294.83,128,343.42,128,403.21ZM576,256H512a63.79,63.79,0,0,0-45.09,18.6A146.29,146.29,0,0,1,542,384h66a32,32,0,0,0,32-32V320A64.06,64.06,0,0,0,576,256Z"]
  9105. };
  9106. var faUtensilSpoon = {
  9107. prefix: 'fas',
  9108. iconName: 'utensil-spoon',
  9109. 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"]
  9110. };
  9111. var faUtensils = {
  9112. prefix: 'fas',
  9113. iconName: 'utensils',
  9114. 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"]
  9115. };
  9116. var faVectorSquare = {
  9117. prefix: 'fas',
  9118. iconName: 'vector-square',
  9119. 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"]
  9120. };
  9121. var faVenus = {
  9122. prefix: 'fas',
  9123. iconName: 'venus',
  9124. 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"]
  9125. };
  9126. var faVenusDouble = {
  9127. prefix: 'fas',
  9128. iconName: 'venus-double',
  9129. 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"]
  9130. };
  9131. var faVenusMars = {
  9132. prefix: 'fas',
  9133. iconName: 'venus-mars',
  9134. 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"]
  9135. };
  9136. var faVial = {
  9137. prefix: 'fas',
  9138. iconName: 'vial',
  9139. 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"]
  9140. };
  9141. var faVials = {
  9142. prefix: 'fas',
  9143. iconName: 'vials',
  9144. 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"]
  9145. };
  9146. var faVideo = {
  9147. prefix: 'fas',
  9148. iconName: 'video',
  9149. 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"]
  9150. };
  9151. var faVideoSlash = {
  9152. prefix: 'fas',
  9153. iconName: 'video-slash',
  9154. 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"]
  9155. };
  9156. var faVihara = {
  9157. prefix: 'fas',
  9158. iconName: 'vihara',
  9159. 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"]
  9160. };
  9161. var faVirus = {
  9162. prefix: 'fas',
  9163. iconName: 'virus',
  9164. icon: [512, 512, [], "f974", "M483.55,227.55H462c-50.68,0-76.07-61.27-40.23-97.11L437,115.19A28.44,28.44,0,0,0,396.8,75L381.56,90.22c-35.84,35.83-97.11,10.45-97.11-40.23V28.44a28.45,28.45,0,0,0-56.9,0V50c0,50.68-61.27,76.06-97.11,40.23L115.2,75A28.44,28.44,0,0,0,75,115.19l15.25,15.25c35.84,35.84,10.45,97.11-40.23,97.11H28.45a28.45,28.45,0,1,0,0,56.89H50c50.68,0,76.07,61.28,40.23,97.12L75,396.8A28.45,28.45,0,0,0,115.2,437l15.24-15.25c35.84-35.84,97.11-10.45,97.11,40.23v21.54a28.45,28.45,0,0,0,56.9,0V462c0-50.68,61.27-76.07,97.11-40.23L396.8,437A28.45,28.45,0,0,0,437,396.8l-15.25-15.24c-35.84-35.84-10.45-97.12,40.23-97.12h21.54a28.45,28.45,0,1,0,0-56.89ZM224,272a48,48,0,1,1,48-48A48,48,0,0,1,224,272Zm80,56a24,24,0,1,1,24-24A24,24,0,0,1,304,328Z"]
  9165. };
  9166. var faVirusSlash = {
  9167. prefix: 'fas',
  9168. iconName: 'virus-slash',
  9169. icon: [640, 512, [], "f975", "M114,227.56H92.44a28.44,28.44,0,0,0,0,56.88H114c50.68,0,76.06,61.28,40.23,97.12L139,396.81A28.44,28.44,0,1,0,179.19,437l15.25-15.25c35.84-35.84,97.11-10.45,97.11,40.23v21.54a28.45,28.45,0,0,0,56.9,0V462c0-26.61,17-45.91,38.22-53.37l-244.5-189A55.58,55.58,0,0,1,114,227.56ZM633.82,458.09,470.62,332c4.17-25.39,24.91-47.52,55.39-47.52h21.55a28.44,28.44,0,1,0,0-56.88H526c-50.68,0-76.06-61.28-40.23-97.12L501,115.19A28.44,28.44,0,0,0,460.81,75L445.56,90.22c-35.84,35.84-97.11,10.46-97.11-40.23V28.45a28.45,28.45,0,0,0-56.9,0V50c0,50.69-61.27,76.07-97.11,40.23L179.19,75A28.43,28.43,0,0,0,139,75c-.13.14-.15.32-.28.46L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09ZM335.43,227.48l-62.87-48.59A46.55,46.55,0,0,1,288,176a48,48,0,0,1,48,48C336,225.22,335.52,226.29,335.43,227.48Z"]
  9170. };
  9171. var faViruses = {
  9172. prefix: 'fas',
  9173. iconName: 'viruses',
  9174. icon: [640, 512, [], "f976", "M624,352H611.88c-28.51,0-42.79-34.47-22.63-54.63l8.58-8.57a16,16,0,1,0-22.63-22.63l-8.57,8.58C546.47,294.91,512,280.63,512,252.12V240a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.57c20.16,20.16,5.88,54.63-22.63,54.63H368a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.57a16,16,0,1,0,22.63,22.63l8.57-8.58c20.16-20.16,54.63-5.88,54.63,22.63V496a16,16,0,0,0,32,0V483.88c0-28.51,34.47-42.79,54.63-22.63l8.57,8.58a16,16,0,1,0,22.63-22.63l-8.58-8.57C569.09,418.47,583.37,384,611.88,384H624a16,16,0,0,0,0-32ZM480,384a32,32,0,1,1,32-32A32,32,0,0,1,480,384ZM346.51,213.33h16.16a21.33,21.33,0,0,0,0-42.66H346.51c-38,0-57.05-46-30.17-72.84l11.43-11.44A21.33,21.33,0,0,0,297.6,56.23L286.17,67.66c-26.88,26.88-72.84,7.85-72.84-30.17V21.33a21.33,21.33,0,0,0-42.66,0V37.49c0,38-46,57.05-72.84,30.17L86.4,56.23A21.33,21.33,0,0,0,56.23,86.39L67.66,97.83c26.88,26.88,7.85,72.84-30.17,72.84H21.33a21.33,21.33,0,0,0,0,42.66H37.49c38,0,57.05,46,30.17,72.84L56.23,297.6A21.33,21.33,0,1,0,86.4,327.77l11.43-11.43c26.88-26.88,72.84-7.85,72.84,30.17v16.16a21.33,21.33,0,0,0,42.66,0V346.51c0-38,46-57.05,72.84-30.17l11.43,11.43a21.33,21.33,0,0,0,30.17-30.17l-11.43-11.43C289.46,259.29,308.49,213.33,346.51,213.33ZM160,192a32,32,0,1,1,32-32A32,32,0,0,1,160,192Zm80,32a16,16,0,1,1,16-16A16,16,0,0,1,240,224Z"]
  9175. };
  9176. var faVoicemail = {
  9177. prefix: 'fas',
  9178. iconName: 'voicemail',
  9179. icon: [640, 512, [], "f897", "M496 128a144 144 0 0 0-119.74 224H263.74A144 144 0 1 0 144 416h352a144 144 0 0 0 0-288zM64 272a80 80 0 1 1 80 80 80 80 0 0 1-80-80zm432 80a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"]
  9180. };
  9181. var faVolleyballBall = {
  9182. prefix: 'fas',
  9183. iconName: 'volleyball-ball',
  9184. icon: [512, 512, [], "f45f", "M231.39 243.48a285.56 285.56 0 0 0-22.7-105.7c-90.8 42.4-157.5 122.4-180.3 216.8a249 249 0 0 0 56.9 81.1 333.87 333.87 0 0 1 146.1-192.2zm-36.9-134.4a284.23 284.23 0 0 0-57.4-70.7c-91 49.8-144.8 152.9-125 262.2 33.4-83.1 98.4-152 182.4-191.5zm187.6 165.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5A333.87 333.87 0 0 1 279.19 241a285 285 0 0 0 102.9 33.18zm-124.7 9.5a286.33 286.33 0 0 0-80.2 72.6c82 57.3 184.5 75.1 277.5 47.8a247.15 247.15 0 0 0 42.2-89.9 336.1 336.1 0 0 1-80.9 10.4c-54.6-.1-108.9-14.1-158.6-40.9zm-98.3 99.7c-15.2 26-25.7 54.4-32.1 84.2a247.07 247.07 0 0 0 289-22.1c-112.9 16.1-203.3-24.8-256.9-62.1zm180.3-360.6c55.3 70.4 82.5 161.2 74.6 253.6a286.59 286.59 0 0 0 89.7-14.2c0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"]
  9185. };
  9186. var faVolumeDown = {
  9187. prefix: 'fas',
  9188. iconName: 'volume-down',
  9189. 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"]
  9190. };
  9191. var faVolumeMute = {
  9192. prefix: 'fas',
  9193. iconName: 'volume-mute',
  9194. 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"]
  9195. };
  9196. var faVolumeOff = {
  9197. prefix: 'fas',
  9198. iconName: 'volume-off',
  9199. icon: [256, 512, [], "f026", "M215 71l-89 89H24a24 24 0 0 0-24 24v144a24 24 0 0 0 24 24h102.06L215 441c15 15 41 4.47 41-17V88c0-21.47-26-32-41-17z"]
  9200. };
  9201. var faVolumeUp = {
  9202. prefix: 'fas',
  9203. iconName: 'volume-up',
  9204. 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"]
  9205. };
  9206. var faVoteYea = {
  9207. prefix: 'fas',
  9208. iconName: 'vote-yea',
  9209. icon: [640, 512, [], "f772", "M608 320h-64v64h22.4c5.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-8H96v-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h576c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32zm-96 64V64.3c0-17.9-14.5-32.3-32.3-32.3H160.4C142.5 32 128 46.5 128 64.3V384h384zM211.2 202l25.5-25.3c4.2-4.2 11-4.2 15.2.1l41.3 41.6 95.2-94.4c4.2-4.2 11-4.2 15.2.1l25.3 25.5c4.2 4.2 4.2 11-.1 15.2L300.5 292c-4.2 4.2-11 4.2-15.2-.1l-74.1-74.7c-4.3-4.2-4.2-11 0-15.2z"]
  9210. };
  9211. var faVrCardboard = {
  9212. prefix: 'fas',
  9213. iconName: 'vr-cardboard',
  9214. 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"]
  9215. };
  9216. var faWalking = {
  9217. prefix: 'fas',
  9218. iconName: 'walking',
  9219. 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"]
  9220. };
  9221. var faWallet = {
  9222. prefix: 'fas',
  9223. iconName: 'wallet',
  9224. 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"]
  9225. };
  9226. var faWarehouse = {
  9227. prefix: 'fas',
  9228. iconName: 'warehouse',
  9229. 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"]
  9230. };
  9231. var faWater = {
  9232. prefix: 'fas',
  9233. iconName: 'water',
  9234. icon: [576, 512, [], "f773", "M562.1 383.9c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144C540.6 93.4 520 85.4 504.2 73 490.1 61.9 470 61.7 456 73c-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3z"]
  9235. };
  9236. var faWaveSquare = {
  9237. prefix: 'fas',
  9238. iconName: 'wave-square',
  9239. icon: [640, 512, [], "f83e", "M476 480H324a36 36 0 0 1-36-36V96h-96v156a36 36 0 0 1-36 36H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h112V68a36 36 0 0 1 36-36h152a36 36 0 0 1 36 36v348h96V260a36 36 0 0 1 36-36h140a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H512v156a36 36 0 0 1-36 36z"]
  9240. };
  9241. var faWeight = {
  9242. prefix: 'fas',
  9243. iconName: 'weight',
  9244. 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"]
  9245. };
  9246. var faWeightHanging = {
  9247. prefix: 'fas',
  9248. iconName: 'weight-hanging',
  9249. 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"]
  9250. };
  9251. var faWheelchair = {
  9252. prefix: 'fas',
  9253. iconName: 'wheelchair',
  9254. 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"]
  9255. };
  9256. var faWifi = {
  9257. prefix: 'fas',
  9258. iconName: 'wifi',
  9259. 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"]
  9260. };
  9261. var faWind = {
  9262. prefix: 'fas',
  9263. iconName: 'wind',
  9264. icon: [512, 512, [], "f72e", "M156.7 256H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h142.2c15.9 0 30.8 10.9 33.4 26.6 3.3 20-12.1 37.4-31.6 37.4-14.1 0-26.1-9.2-30.4-21.9-2.1-6.3-8.6-10.1-15.2-10.1H81.6c-9.8 0-17.7 8.8-15.9 18.4 8.6 44.1 47.6 77.6 94.2 77.6 57.1 0 102.7-50.1 95.2-108.6C249 291 205.4 256 156.7 256zM16 224h336c59.7 0 106.8-54.8 93.8-116.7-7.6-36.2-36.9-65.5-73.1-73.1-55.4-11.6-105.1 24.9-114.9 75.5-1.9 9.6 6.1 18.3 15.8 18.3h32.8c6.7 0 13.1-3.8 15.2-10.1C325.9 105.2 337.9 96 352 96c19.4 0 34.9 17.4 31.6 37.4-2.6 15.7-17.4 26.6-33.4 26.6H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm384 32H243.7c19.3 16.6 33.2 38.8 39.8 64H400c26.5 0 48 21.5 48 48s-21.5 48-48 48c-17.9 0-33.3-9.9-41.6-24.4-2.9-5-8.7-7.6-14.5-7.6h-33.8c-10.9 0-19 10.8-15.3 21.1 17.8 50.6 70.5 84.8 129.4 72.3 41.2-8.7 75.1-41.6 84.7-82.7C526 321.5 470.5 256 400 256z"]
  9265. };
  9266. var faWindowClose = {
  9267. prefix: 'fas',
  9268. iconName: 'window-close',
  9269. 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"]
  9270. };
  9271. var faWindowMaximize = {
  9272. prefix: 'fas',
  9273. iconName: 'window-maximize',
  9274. 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"]
  9275. };
  9276. var faWindowMinimize = {
  9277. prefix: 'fas',
  9278. iconName: 'window-minimize',
  9279. 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"]
  9280. };
  9281. var faWindowRestore = {
  9282. prefix: 'fas',
  9283. iconName: 'window-restore',
  9284. 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"]
  9285. };
  9286. var faWineBottle = {
  9287. prefix: 'fas',
  9288. iconName: 'wine-bottle',
  9289. 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"]
  9290. };
  9291. var faWineGlass = {
  9292. prefix: 'fas',
  9293. iconName: 'wine-glass',
  9294. 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"]
  9295. };
  9296. var faWineGlassAlt = {
  9297. prefix: 'fas',
  9298. iconName: 'wine-glass-alt',
  9299. 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"]
  9300. };
  9301. var faWonSign = {
  9302. prefix: 'fas',
  9303. iconName: 'won-sign',
  9304. icon: [576, 512, [], "f159", "M564 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-48l18.6-80.6c1.7-7.5-4-14.7-11.7-14.7h-46.1c-5.7 0-10.6 4-11.7 9.5L450.7 128H340.8l-19.7-86c-1.3-5.5-6.1-9.3-11.7-9.3h-44c-5.6 0-10.4 3.8-11.7 9.3l-20 86H125l-17.5-85.7c-1.1-5.6-6.1-9.6-11.8-9.6H53.6c-7.7 0-13.4 7.1-11.7 14.6L60 128H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h62.3l7.2 32H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h83.9l40.9 182.6c1.2 5.5 6.1 9.4 11.7 9.4h56.8c5.6 0 10.4-3.9 11.7-9.3L259.3 288h55.1l42.4 182.7c1.3 5.4 6.1 9.3 11.7 9.3h56.8c5.6 0 10.4-3.9 11.7-9.3L479.1 288H564c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-70.1l7.4-32zM183.8 342c-6.2 25.8-6.8 47.2-7.3 47.2h-1.1s-1.7-22-6.8-47.2l-11-54h38.8zm27.5-118h-66.8l-6.5-32h80.8zm62.9 0l2-8.6c1.9-8 3.5-16 4.8-23.4h11.8c1.3 7.4 2.9 15.4 4.8 23.4l2 8.6zm130.9 118c-5.1 25.2-6.8 47.2-6.8 47.2h-1.1c-.6 0-1.1-21.4-7.3-47.2l-12.4-54h39.1zm25.2-118h-67.4l-7.3-32h81.6z"]
  9305. };
  9306. var faWrench = {
  9307. prefix: 'fas',
  9308. iconName: 'wrench',
  9309. 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"]
  9310. };
  9311. var faXRay = {
  9312. prefix: 'fas',
  9313. iconName: 'x-ray',
  9314. 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"]
  9315. };
  9316. var faYenSign = {
  9317. prefix: 'fas',
  9318. iconName: 'yen-sign',
  9319. icon: [384, 512, [], "f157", "M351.2 32h-65.3c-4.6 0-8.8 2.6-10.8 6.7l-55.4 113.2c-14.5 34.7-27.1 71.9-27.1 71.9h-1.3s-12.6-37.2-27.1-71.9L108.8 38.7c-2-4.1-6.2-6.7-10.8-6.7H32.8c-9.1 0-14.8 9.7-10.6 17.6L102.3 200H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h88.2l19.8 37.2V320H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h108v92c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-92h108c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12H232v-26.8l19.8-37.2H340c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12h-58.3l80.1-150.4c4.3-7.9-1.5-17.6-10.6-17.6z"]
  9320. };
  9321. var faYinYang = {
  9322. prefix: 'fas',
  9323. iconName: 'yin-yang',
  9324. 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"]
  9325. };
  9326. var _iconsCache = {
  9327. faAd: faAd,
  9328. faAddressBook: faAddressBook,
  9329. faAddressCard: faAddressCard,
  9330. faAdjust: faAdjust,
  9331. faAirFreshener: faAirFreshener,
  9332. faAlignCenter: faAlignCenter,
  9333. faAlignJustify: faAlignJustify,
  9334. faAlignLeft: faAlignLeft,
  9335. faAlignRight: faAlignRight,
  9336. faAllergies: faAllergies,
  9337. faAmbulance: faAmbulance,
  9338. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  9339. faAnchor: faAnchor,
  9340. faAngleDoubleDown: faAngleDoubleDown,
  9341. faAngleDoubleLeft: faAngleDoubleLeft,
  9342. faAngleDoubleRight: faAngleDoubleRight,
  9343. faAngleDoubleUp: faAngleDoubleUp,
  9344. faAngleDown: faAngleDown,
  9345. faAngleLeft: faAngleLeft,
  9346. faAngleRight: faAngleRight,
  9347. faAngleUp: faAngleUp,
  9348. faAngry: faAngry,
  9349. faAnkh: faAnkh,
  9350. faAppleAlt: faAppleAlt,
  9351. faArchive: faArchive,
  9352. faArchway: faArchway,
  9353. faArrowAltCircleDown: faArrowAltCircleDown,
  9354. faArrowAltCircleLeft: faArrowAltCircleLeft,
  9355. faArrowAltCircleRight: faArrowAltCircleRight,
  9356. faArrowAltCircleUp: faArrowAltCircleUp,
  9357. faArrowCircleDown: faArrowCircleDown,
  9358. faArrowCircleLeft: faArrowCircleLeft,
  9359. faArrowCircleRight: faArrowCircleRight,
  9360. faArrowCircleUp: faArrowCircleUp,
  9361. faArrowDown: faArrowDown,
  9362. faArrowLeft: faArrowLeft,
  9363. faArrowRight: faArrowRight,
  9364. faArrowUp: faArrowUp,
  9365. faArrowsAlt: faArrowsAlt,
  9366. faArrowsAltH: faArrowsAltH,
  9367. faArrowsAltV: faArrowsAltV,
  9368. faAssistiveListeningSystems: faAssistiveListeningSystems,
  9369. faAsterisk: faAsterisk,
  9370. faAt: faAt,
  9371. faAtlas: faAtlas,
  9372. faAtom: faAtom,
  9373. faAudioDescription: faAudioDescription,
  9374. faAward: faAward,
  9375. faBaby: faBaby,
  9376. faBabyCarriage: faBabyCarriage,
  9377. faBackspace: faBackspace,
  9378. faBackward: faBackward,
  9379. faBacon: faBacon,
  9380. faBacteria: faBacteria,
  9381. faBacterium: faBacterium,
  9382. faBahai: faBahai,
  9383. faBalanceScale: faBalanceScale,
  9384. faBalanceScaleLeft: faBalanceScaleLeft,
  9385. faBalanceScaleRight: faBalanceScaleRight,
  9386. faBan: faBan,
  9387. faBandAid: faBandAid,
  9388. faBarcode: faBarcode,
  9389. faBars: faBars,
  9390. faBaseballBall: faBaseballBall,
  9391. faBasketballBall: faBasketballBall,
  9392. faBath: faBath,
  9393. faBatteryEmpty: faBatteryEmpty,
  9394. faBatteryFull: faBatteryFull,
  9395. faBatteryHalf: faBatteryHalf,
  9396. faBatteryQuarter: faBatteryQuarter,
  9397. faBatteryThreeQuarters: faBatteryThreeQuarters,
  9398. faBed: faBed,
  9399. faBeer: faBeer,
  9400. faBell: faBell,
  9401. faBellSlash: faBellSlash,
  9402. faBezierCurve: faBezierCurve,
  9403. faBible: faBible,
  9404. faBicycle: faBicycle,
  9405. faBiking: faBiking,
  9406. faBinoculars: faBinoculars,
  9407. faBiohazard: faBiohazard,
  9408. faBirthdayCake: faBirthdayCake,
  9409. faBlender: faBlender,
  9410. faBlenderPhone: faBlenderPhone,
  9411. faBlind: faBlind,
  9412. faBlog: faBlog,
  9413. faBold: faBold,
  9414. faBolt: faBolt,
  9415. faBomb: faBomb,
  9416. faBone: faBone,
  9417. faBong: faBong,
  9418. faBook: faBook,
  9419. faBookDead: faBookDead,
  9420. faBookMedical: faBookMedical,
  9421. faBookOpen: faBookOpen,
  9422. faBookReader: faBookReader,
  9423. faBookmark: faBookmark,
  9424. faBorderAll: faBorderAll,
  9425. faBorderNone: faBorderNone,
  9426. faBorderStyle: faBorderStyle,
  9427. faBowlingBall: faBowlingBall,
  9428. faBox: faBox,
  9429. faBoxOpen: faBoxOpen,
  9430. faBoxTissue: faBoxTissue,
  9431. faBoxes: faBoxes,
  9432. faBraille: faBraille,
  9433. faBrain: faBrain,
  9434. faBreadSlice: faBreadSlice,
  9435. faBriefcase: faBriefcase,
  9436. faBriefcaseMedical: faBriefcaseMedical,
  9437. faBroadcastTower: faBroadcastTower,
  9438. faBroom: faBroom,
  9439. faBrush: faBrush,
  9440. faBug: faBug,
  9441. faBuilding: faBuilding,
  9442. faBullhorn: faBullhorn,
  9443. faBullseye: faBullseye,
  9444. faBurn: faBurn,
  9445. faBus: faBus,
  9446. faBusAlt: faBusAlt,
  9447. faBusinessTime: faBusinessTime,
  9448. faCalculator: faCalculator,
  9449. faCalendar: faCalendar,
  9450. faCalendarAlt: faCalendarAlt,
  9451. faCalendarCheck: faCalendarCheck,
  9452. faCalendarDay: faCalendarDay,
  9453. faCalendarMinus: faCalendarMinus,
  9454. faCalendarPlus: faCalendarPlus,
  9455. faCalendarTimes: faCalendarTimes,
  9456. faCalendarWeek: faCalendarWeek,
  9457. faCamera: faCamera,
  9458. faCameraRetro: faCameraRetro,
  9459. faCampground: faCampground,
  9460. faCandyCane: faCandyCane,
  9461. faCannabis: faCannabis,
  9462. faCapsules: faCapsules,
  9463. faCar: faCar,
  9464. faCarAlt: faCarAlt,
  9465. faCarBattery: faCarBattery,
  9466. faCarCrash: faCarCrash,
  9467. faCarSide: faCarSide,
  9468. faCaravan: faCaravan,
  9469. faCaretDown: faCaretDown,
  9470. faCaretLeft: faCaretLeft,
  9471. faCaretRight: faCaretRight,
  9472. faCaretSquareDown: faCaretSquareDown,
  9473. faCaretSquareLeft: faCaretSquareLeft,
  9474. faCaretSquareRight: faCaretSquareRight,
  9475. faCaretSquareUp: faCaretSquareUp,
  9476. faCaretUp: faCaretUp,
  9477. faCarrot: faCarrot,
  9478. faCartArrowDown: faCartArrowDown,
  9479. faCartPlus: faCartPlus,
  9480. faCashRegister: faCashRegister,
  9481. faCat: faCat,
  9482. faCertificate: faCertificate,
  9483. faChair: faChair,
  9484. faChalkboard: faChalkboard,
  9485. faChalkboardTeacher: faChalkboardTeacher,
  9486. faChargingStation: faChargingStation,
  9487. faChartArea: faChartArea,
  9488. faChartBar: faChartBar,
  9489. faChartLine: faChartLine,
  9490. faChartPie: faChartPie,
  9491. faCheck: faCheck,
  9492. faCheckCircle: faCheckCircle,
  9493. faCheckDouble: faCheckDouble,
  9494. faCheckSquare: faCheckSquare,
  9495. faCheese: faCheese,
  9496. faChess: faChess,
  9497. faChessBishop: faChessBishop,
  9498. faChessBoard: faChessBoard,
  9499. faChessKing: faChessKing,
  9500. faChessKnight: faChessKnight,
  9501. faChessPawn: faChessPawn,
  9502. faChessQueen: faChessQueen,
  9503. faChessRook: faChessRook,
  9504. faChevronCircleDown: faChevronCircleDown,
  9505. faChevronCircleLeft: faChevronCircleLeft,
  9506. faChevronCircleRight: faChevronCircleRight,
  9507. faChevronCircleUp: faChevronCircleUp,
  9508. faChevronDown: faChevronDown,
  9509. faChevronLeft: faChevronLeft,
  9510. faChevronRight: faChevronRight,
  9511. faChevronUp: faChevronUp,
  9512. faChild: faChild,
  9513. faChurch: faChurch,
  9514. faCircle: faCircle,
  9515. faCircleNotch: faCircleNotch,
  9516. faCity: faCity,
  9517. faClinicMedical: faClinicMedical,
  9518. faClipboard: faClipboard,
  9519. faClipboardCheck: faClipboardCheck,
  9520. faClipboardList: faClipboardList,
  9521. faClock: faClock,
  9522. faClone: faClone,
  9523. faClosedCaptioning: faClosedCaptioning,
  9524. faCloud: faCloud,
  9525. faCloudDownloadAlt: faCloudDownloadAlt,
  9526. faCloudMeatball: faCloudMeatball,
  9527. faCloudMoon: faCloudMoon,
  9528. faCloudMoonRain: faCloudMoonRain,
  9529. faCloudRain: faCloudRain,
  9530. faCloudShowersHeavy: faCloudShowersHeavy,
  9531. faCloudSun: faCloudSun,
  9532. faCloudSunRain: faCloudSunRain,
  9533. faCloudUploadAlt: faCloudUploadAlt,
  9534. faCocktail: faCocktail,
  9535. faCode: faCode,
  9536. faCodeBranch: faCodeBranch,
  9537. faCoffee: faCoffee,
  9538. faCog: faCog,
  9539. faCogs: faCogs,
  9540. faCoins: faCoins,
  9541. faColumns: faColumns,
  9542. faComment: faComment,
  9543. faCommentAlt: faCommentAlt,
  9544. faCommentDollar: faCommentDollar,
  9545. faCommentDots: faCommentDots,
  9546. faCommentMedical: faCommentMedical,
  9547. faCommentSlash: faCommentSlash,
  9548. faComments: faComments,
  9549. faCommentsDollar: faCommentsDollar,
  9550. faCompactDisc: faCompactDisc,
  9551. faCompass: faCompass,
  9552. faCompress: faCompress,
  9553. faCompressAlt: faCompressAlt,
  9554. faCompressArrowsAlt: faCompressArrowsAlt,
  9555. faConciergeBell: faConciergeBell,
  9556. faCookie: faCookie,
  9557. faCookieBite: faCookieBite,
  9558. faCopy: faCopy,
  9559. faCopyright: faCopyright,
  9560. faCouch: faCouch,
  9561. faCreditCard: faCreditCard,
  9562. faCrop: faCrop,
  9563. faCropAlt: faCropAlt,
  9564. faCross: faCross,
  9565. faCrosshairs: faCrosshairs,
  9566. faCrow: faCrow,
  9567. faCrown: faCrown,
  9568. faCrutch: faCrutch,
  9569. faCube: faCube,
  9570. faCubes: faCubes,
  9571. faCut: faCut,
  9572. faDatabase: faDatabase,
  9573. faDeaf: faDeaf,
  9574. faDemocrat: faDemocrat,
  9575. faDesktop: faDesktop,
  9576. faDharmachakra: faDharmachakra,
  9577. faDiagnoses: faDiagnoses,
  9578. faDice: faDice,
  9579. faDiceD20: faDiceD20,
  9580. faDiceD6: faDiceD6,
  9581. faDiceFive: faDiceFive,
  9582. faDiceFour: faDiceFour,
  9583. faDiceOne: faDiceOne,
  9584. faDiceSix: faDiceSix,
  9585. faDiceThree: faDiceThree,
  9586. faDiceTwo: faDiceTwo,
  9587. faDigitalTachograph: faDigitalTachograph,
  9588. faDirections: faDirections,
  9589. faDisease: faDisease,
  9590. faDivide: faDivide,
  9591. faDizzy: faDizzy,
  9592. faDna: faDna,
  9593. faDog: faDog,
  9594. faDollarSign: faDollarSign,
  9595. faDolly: faDolly,
  9596. faDollyFlatbed: faDollyFlatbed,
  9597. faDonate: faDonate,
  9598. faDoorClosed: faDoorClosed,
  9599. faDoorOpen: faDoorOpen,
  9600. faDotCircle: faDotCircle,
  9601. faDove: faDove,
  9602. faDownload: faDownload,
  9603. faDraftingCompass: faDraftingCompass,
  9604. faDragon: faDragon,
  9605. faDrawPolygon: faDrawPolygon,
  9606. faDrum: faDrum,
  9607. faDrumSteelpan: faDrumSteelpan,
  9608. faDrumstickBite: faDrumstickBite,
  9609. faDumbbell: faDumbbell,
  9610. faDumpster: faDumpster,
  9611. faDumpsterFire: faDumpsterFire,
  9612. faDungeon: faDungeon,
  9613. faEdit: faEdit,
  9614. faEgg: faEgg,
  9615. faEject: faEject,
  9616. faEllipsisH: faEllipsisH,
  9617. faEllipsisV: faEllipsisV,
  9618. faEnvelope: faEnvelope,
  9619. faEnvelopeOpen: faEnvelopeOpen,
  9620. faEnvelopeOpenText: faEnvelopeOpenText,
  9621. faEnvelopeSquare: faEnvelopeSquare,
  9622. faEquals: faEquals,
  9623. faEraser: faEraser,
  9624. faEthernet: faEthernet,
  9625. faEuroSign: faEuroSign,
  9626. faExchangeAlt: faExchangeAlt,
  9627. faExclamation: faExclamation,
  9628. faExclamationCircle: faExclamationCircle,
  9629. faExclamationTriangle: faExclamationTriangle,
  9630. faExpand: faExpand,
  9631. faExpandAlt: faExpandAlt,
  9632. faExpandArrowsAlt: faExpandArrowsAlt,
  9633. faExternalLinkAlt: faExternalLinkAlt,
  9634. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  9635. faEye: faEye,
  9636. faEyeDropper: faEyeDropper,
  9637. faEyeSlash: faEyeSlash,
  9638. faFan: faFan,
  9639. faFastBackward: faFastBackward,
  9640. faFastForward: faFastForward,
  9641. faFaucet: faFaucet,
  9642. faFax: faFax,
  9643. faFeather: faFeather,
  9644. faFeatherAlt: faFeatherAlt,
  9645. faFemale: faFemale,
  9646. faFighterJet: faFighterJet,
  9647. faFile: faFile,
  9648. faFileAlt: faFileAlt,
  9649. faFileArchive: faFileArchive,
  9650. faFileAudio: faFileAudio,
  9651. faFileCode: faFileCode,
  9652. faFileContract: faFileContract,
  9653. faFileCsv: faFileCsv,
  9654. faFileDownload: faFileDownload,
  9655. faFileExcel: faFileExcel,
  9656. faFileExport: faFileExport,
  9657. faFileImage: faFileImage,
  9658. faFileImport: faFileImport,
  9659. faFileInvoice: faFileInvoice,
  9660. faFileInvoiceDollar: faFileInvoiceDollar,
  9661. faFileMedical: faFileMedical,
  9662. faFileMedicalAlt: faFileMedicalAlt,
  9663. faFilePdf: faFilePdf,
  9664. faFilePowerpoint: faFilePowerpoint,
  9665. faFilePrescription: faFilePrescription,
  9666. faFileSignature: faFileSignature,
  9667. faFileUpload: faFileUpload,
  9668. faFileVideo: faFileVideo,
  9669. faFileWord: faFileWord,
  9670. faFill: faFill,
  9671. faFillDrip: faFillDrip,
  9672. faFilm: faFilm,
  9673. faFilter: faFilter,
  9674. faFingerprint: faFingerprint,
  9675. faFire: faFire,
  9676. faFireAlt: faFireAlt,
  9677. faFireExtinguisher: faFireExtinguisher,
  9678. faFirstAid: faFirstAid,
  9679. faFish: faFish,
  9680. faFistRaised: faFistRaised,
  9681. faFlag: faFlag,
  9682. faFlagCheckered: faFlagCheckered,
  9683. faFlagUsa: faFlagUsa,
  9684. faFlask: faFlask,
  9685. faFlushed: faFlushed,
  9686. faFolder: faFolder,
  9687. faFolderMinus: faFolderMinus,
  9688. faFolderOpen: faFolderOpen,
  9689. faFolderPlus: faFolderPlus,
  9690. faFont: faFont,
  9691. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  9692. faFootballBall: faFootballBall,
  9693. faForward: faForward,
  9694. faFrog: faFrog,
  9695. faFrown: faFrown,
  9696. faFrownOpen: faFrownOpen,
  9697. faFunnelDollar: faFunnelDollar,
  9698. faFutbol: faFutbol,
  9699. faGamepad: faGamepad,
  9700. faGasPump: faGasPump,
  9701. faGavel: faGavel,
  9702. faGem: faGem,
  9703. faGenderless: faGenderless,
  9704. faGhost: faGhost,
  9705. faGift: faGift,
  9706. faGifts: faGifts,
  9707. faGlassCheers: faGlassCheers,
  9708. faGlassMartini: faGlassMartini,
  9709. faGlassMartiniAlt: faGlassMartiniAlt,
  9710. faGlassWhiskey: faGlassWhiskey,
  9711. faGlasses: faGlasses,
  9712. faGlobe: faGlobe,
  9713. faGlobeAfrica: faGlobeAfrica,
  9714. faGlobeAmericas: faGlobeAmericas,
  9715. faGlobeAsia: faGlobeAsia,
  9716. faGlobeEurope: faGlobeEurope,
  9717. faGolfBall: faGolfBall,
  9718. faGopuram: faGopuram,
  9719. faGraduationCap: faGraduationCap,
  9720. faGreaterThan: faGreaterThan,
  9721. faGreaterThanEqual: faGreaterThanEqual,
  9722. faGrimace: faGrimace,
  9723. faGrin: faGrin,
  9724. faGrinAlt: faGrinAlt,
  9725. faGrinBeam: faGrinBeam,
  9726. faGrinBeamSweat: faGrinBeamSweat,
  9727. faGrinHearts: faGrinHearts,
  9728. faGrinSquint: faGrinSquint,
  9729. faGrinSquintTears: faGrinSquintTears,
  9730. faGrinStars: faGrinStars,
  9731. faGrinTears: faGrinTears,
  9732. faGrinTongue: faGrinTongue,
  9733. faGrinTongueSquint: faGrinTongueSquint,
  9734. faGrinTongueWink: faGrinTongueWink,
  9735. faGrinWink: faGrinWink,
  9736. faGripHorizontal: faGripHorizontal,
  9737. faGripLines: faGripLines,
  9738. faGripLinesVertical: faGripLinesVertical,
  9739. faGripVertical: faGripVertical,
  9740. faGuitar: faGuitar,
  9741. faHSquare: faHSquare,
  9742. faHamburger: faHamburger,
  9743. faHammer: faHammer,
  9744. faHamsa: faHamsa,
  9745. faHandHolding: faHandHolding,
  9746. faHandHoldingHeart: faHandHoldingHeart,
  9747. faHandHoldingMedical: faHandHoldingMedical,
  9748. faHandHoldingUsd: faHandHoldingUsd,
  9749. faHandHoldingWater: faHandHoldingWater,
  9750. faHandLizard: faHandLizard,
  9751. faHandMiddleFinger: faHandMiddleFinger,
  9752. faHandPaper: faHandPaper,
  9753. faHandPeace: faHandPeace,
  9754. faHandPointDown: faHandPointDown,
  9755. faHandPointLeft: faHandPointLeft,
  9756. faHandPointRight: faHandPointRight,
  9757. faHandPointUp: faHandPointUp,
  9758. faHandPointer: faHandPointer,
  9759. faHandRock: faHandRock,
  9760. faHandScissors: faHandScissors,
  9761. faHandSparkles: faHandSparkles,
  9762. faHandSpock: faHandSpock,
  9763. faHands: faHands,
  9764. faHandsHelping: faHandsHelping,
  9765. faHandsWash: faHandsWash,
  9766. faHandshake: faHandshake,
  9767. faHandshakeAltSlash: faHandshakeAltSlash,
  9768. faHandshakeSlash: faHandshakeSlash,
  9769. faHanukiah: faHanukiah,
  9770. faHardHat: faHardHat,
  9771. faHashtag: faHashtag,
  9772. faHatCowboy: faHatCowboy,
  9773. faHatCowboySide: faHatCowboySide,
  9774. faHatWizard: faHatWizard,
  9775. faHdd: faHdd,
  9776. faHeadSideCough: faHeadSideCough,
  9777. faHeadSideCoughSlash: faHeadSideCoughSlash,
  9778. faHeadSideMask: faHeadSideMask,
  9779. faHeadSideVirus: faHeadSideVirus,
  9780. faHeading: faHeading,
  9781. faHeadphones: faHeadphones,
  9782. faHeadphonesAlt: faHeadphonesAlt,
  9783. faHeadset: faHeadset,
  9784. faHeart: faHeart,
  9785. faHeartBroken: faHeartBroken,
  9786. faHeartbeat: faHeartbeat,
  9787. faHelicopter: faHelicopter,
  9788. faHighlighter: faHighlighter,
  9789. faHiking: faHiking,
  9790. faHippo: faHippo,
  9791. faHistory: faHistory,
  9792. faHockeyPuck: faHockeyPuck,
  9793. faHollyBerry: faHollyBerry,
  9794. faHome: faHome,
  9795. faHorse: faHorse,
  9796. faHorseHead: faHorseHead,
  9797. faHospital: faHospital,
  9798. faHospitalAlt: faHospitalAlt,
  9799. faHospitalSymbol: faHospitalSymbol,
  9800. faHospitalUser: faHospitalUser,
  9801. faHotTub: faHotTub,
  9802. faHotdog: faHotdog,
  9803. faHotel: faHotel,
  9804. faHourglass: faHourglass,
  9805. faHourglassEnd: faHourglassEnd,
  9806. faHourglassHalf: faHourglassHalf,
  9807. faHourglassStart: faHourglassStart,
  9808. faHouseDamage: faHouseDamage,
  9809. faHouseUser: faHouseUser,
  9810. faHryvnia: faHryvnia,
  9811. faICursor: faICursor,
  9812. faIceCream: faIceCream,
  9813. faIcicles: faIcicles,
  9814. faIcons: faIcons,
  9815. faIdBadge: faIdBadge,
  9816. faIdCard: faIdCard,
  9817. faIdCardAlt: faIdCardAlt,
  9818. faIgloo: faIgloo,
  9819. faImage: faImage,
  9820. faImages: faImages,
  9821. faInbox: faInbox,
  9822. faIndent: faIndent,
  9823. faIndustry: faIndustry,
  9824. faInfinity: faInfinity,
  9825. faInfo: faInfo,
  9826. faInfoCircle: faInfoCircle,
  9827. faItalic: faItalic,
  9828. faJedi: faJedi,
  9829. faJoint: faJoint,
  9830. faJournalWhills: faJournalWhills,
  9831. faKaaba: faKaaba,
  9832. faKey: faKey,
  9833. faKeyboard: faKeyboard,
  9834. faKhanda: faKhanda,
  9835. faKiss: faKiss,
  9836. faKissBeam: faKissBeam,
  9837. faKissWinkHeart: faKissWinkHeart,
  9838. faKiwiBird: faKiwiBird,
  9839. faLandmark: faLandmark,
  9840. faLanguage: faLanguage,
  9841. faLaptop: faLaptop,
  9842. faLaptopCode: faLaptopCode,
  9843. faLaptopHouse: faLaptopHouse,
  9844. faLaptopMedical: faLaptopMedical,
  9845. faLaugh: faLaugh,
  9846. faLaughBeam: faLaughBeam,
  9847. faLaughSquint: faLaughSquint,
  9848. faLaughWink: faLaughWink,
  9849. faLayerGroup: faLayerGroup,
  9850. faLeaf: faLeaf,
  9851. faLemon: faLemon,
  9852. faLessThan: faLessThan,
  9853. faLessThanEqual: faLessThanEqual,
  9854. faLevelDownAlt: faLevelDownAlt,
  9855. faLevelUpAlt: faLevelUpAlt,
  9856. faLifeRing: faLifeRing,
  9857. faLightbulb: faLightbulb,
  9858. faLink: faLink,
  9859. faLiraSign: faLiraSign,
  9860. faList: faList,
  9861. faListAlt: faListAlt,
  9862. faListOl: faListOl,
  9863. faListUl: faListUl,
  9864. faLocationArrow: faLocationArrow,
  9865. faLock: faLock,
  9866. faLockOpen: faLockOpen,
  9867. faLongArrowAltDown: faLongArrowAltDown,
  9868. faLongArrowAltLeft: faLongArrowAltLeft,
  9869. faLongArrowAltRight: faLongArrowAltRight,
  9870. faLongArrowAltUp: faLongArrowAltUp,
  9871. faLowVision: faLowVision,
  9872. faLuggageCart: faLuggageCart,
  9873. faLungs: faLungs,
  9874. faLungsVirus: faLungsVirus,
  9875. faMagic: faMagic,
  9876. faMagnet: faMagnet,
  9877. faMailBulk: faMailBulk,
  9878. faMale: faMale,
  9879. faMap: faMap,
  9880. faMapMarked: faMapMarked,
  9881. faMapMarkedAlt: faMapMarkedAlt,
  9882. faMapMarker: faMapMarker,
  9883. faMapMarkerAlt: faMapMarkerAlt,
  9884. faMapPin: faMapPin,
  9885. faMapSigns: faMapSigns,
  9886. faMarker: faMarker,
  9887. faMars: faMars,
  9888. faMarsDouble: faMarsDouble,
  9889. faMarsStroke: faMarsStroke,
  9890. faMarsStrokeH: faMarsStrokeH,
  9891. faMarsStrokeV: faMarsStrokeV,
  9892. faMask: faMask,
  9893. faMedal: faMedal,
  9894. faMedkit: faMedkit,
  9895. faMeh: faMeh,
  9896. faMehBlank: faMehBlank,
  9897. faMehRollingEyes: faMehRollingEyes,
  9898. faMemory: faMemory,
  9899. faMenorah: faMenorah,
  9900. faMercury: faMercury,
  9901. faMeteor: faMeteor,
  9902. faMicrochip: faMicrochip,
  9903. faMicrophone: faMicrophone,
  9904. faMicrophoneAlt: faMicrophoneAlt,
  9905. faMicrophoneAltSlash: faMicrophoneAltSlash,
  9906. faMicrophoneSlash: faMicrophoneSlash,
  9907. faMicroscope: faMicroscope,
  9908. faMinus: faMinus,
  9909. faMinusCircle: faMinusCircle,
  9910. faMinusSquare: faMinusSquare,
  9911. faMitten: faMitten,
  9912. faMobile: faMobile,
  9913. faMobileAlt: faMobileAlt,
  9914. faMoneyBill: faMoneyBill,
  9915. faMoneyBillAlt: faMoneyBillAlt,
  9916. faMoneyBillWave: faMoneyBillWave,
  9917. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  9918. faMoneyCheck: faMoneyCheck,
  9919. faMoneyCheckAlt: faMoneyCheckAlt,
  9920. faMonument: faMonument,
  9921. faMoon: faMoon,
  9922. faMortarPestle: faMortarPestle,
  9923. faMosque: faMosque,
  9924. faMotorcycle: faMotorcycle,
  9925. faMountain: faMountain,
  9926. faMouse: faMouse,
  9927. faMousePointer: faMousePointer,
  9928. faMugHot: faMugHot,
  9929. faMusic: faMusic,
  9930. faNetworkWired: faNetworkWired,
  9931. faNeuter: faNeuter,
  9932. faNewspaper: faNewspaper,
  9933. faNotEqual: faNotEqual,
  9934. faNotesMedical: faNotesMedical,
  9935. faObjectGroup: faObjectGroup,
  9936. faObjectUngroup: faObjectUngroup,
  9937. faOilCan: faOilCan,
  9938. faOm: faOm,
  9939. faOtter: faOtter,
  9940. faOutdent: faOutdent,
  9941. faPager: faPager,
  9942. faPaintBrush: faPaintBrush,
  9943. faPaintRoller: faPaintRoller,
  9944. faPalette: faPalette,
  9945. faPallet: faPallet,
  9946. faPaperPlane: faPaperPlane,
  9947. faPaperclip: faPaperclip,
  9948. faParachuteBox: faParachuteBox,
  9949. faParagraph: faParagraph,
  9950. faParking: faParking,
  9951. faPassport: faPassport,
  9952. faPastafarianism: faPastafarianism,
  9953. faPaste: faPaste,
  9954. faPause: faPause,
  9955. faPauseCircle: faPauseCircle,
  9956. faPaw: faPaw,
  9957. faPeace: faPeace,
  9958. faPen: faPen,
  9959. faPenAlt: faPenAlt,
  9960. faPenFancy: faPenFancy,
  9961. faPenNib: faPenNib,
  9962. faPenSquare: faPenSquare,
  9963. faPencilAlt: faPencilAlt,
  9964. faPencilRuler: faPencilRuler,
  9965. faPeopleArrows: faPeopleArrows,
  9966. faPeopleCarry: faPeopleCarry,
  9967. faPepperHot: faPepperHot,
  9968. faPercent: faPercent,
  9969. faPercentage: faPercentage,
  9970. faPersonBooth: faPersonBooth,
  9971. faPhone: faPhone,
  9972. faPhoneAlt: faPhoneAlt,
  9973. faPhoneSlash: faPhoneSlash,
  9974. faPhoneSquare: faPhoneSquare,
  9975. faPhoneSquareAlt: faPhoneSquareAlt,
  9976. faPhoneVolume: faPhoneVolume,
  9977. faPhotoVideo: faPhotoVideo,
  9978. faPiggyBank: faPiggyBank,
  9979. faPills: faPills,
  9980. faPizzaSlice: faPizzaSlice,
  9981. faPlaceOfWorship: faPlaceOfWorship,
  9982. faPlane: faPlane,
  9983. faPlaneArrival: faPlaneArrival,
  9984. faPlaneDeparture: faPlaneDeparture,
  9985. faPlaneSlash: faPlaneSlash,
  9986. faPlay: faPlay,
  9987. faPlayCircle: faPlayCircle,
  9988. faPlug: faPlug,
  9989. faPlus: faPlus,
  9990. faPlusCircle: faPlusCircle,
  9991. faPlusSquare: faPlusSquare,
  9992. faPodcast: faPodcast,
  9993. faPoll: faPoll,
  9994. faPollH: faPollH,
  9995. faPoo: faPoo,
  9996. faPooStorm: faPooStorm,
  9997. faPoop: faPoop,
  9998. faPortrait: faPortrait,
  9999. faPoundSign: faPoundSign,
  10000. faPowerOff: faPowerOff,
  10001. faPray: faPray,
  10002. faPrayingHands: faPrayingHands,
  10003. faPrescription: faPrescription,
  10004. faPrescriptionBottle: faPrescriptionBottle,
  10005. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  10006. faPrint: faPrint,
  10007. faProcedures: faProcedures,
  10008. faProjectDiagram: faProjectDiagram,
  10009. faPumpMedical: faPumpMedical,
  10010. faPumpSoap: faPumpSoap,
  10011. faPuzzlePiece: faPuzzlePiece,
  10012. faQrcode: faQrcode,
  10013. faQuestion: faQuestion,
  10014. faQuestionCircle: faQuestionCircle,
  10015. faQuidditch: faQuidditch,
  10016. faQuoteLeft: faQuoteLeft,
  10017. faQuoteRight: faQuoteRight,
  10018. faQuran: faQuran,
  10019. faRadiation: faRadiation,
  10020. faRadiationAlt: faRadiationAlt,
  10021. faRainbow: faRainbow,
  10022. faRandom: faRandom,
  10023. faReceipt: faReceipt,
  10024. faRecordVinyl: faRecordVinyl,
  10025. faRecycle: faRecycle,
  10026. faRedo: faRedo,
  10027. faRedoAlt: faRedoAlt,
  10028. faRegistered: faRegistered,
  10029. faRemoveFormat: faRemoveFormat,
  10030. faReply: faReply,
  10031. faReplyAll: faReplyAll,
  10032. faRepublican: faRepublican,
  10033. faRestroom: faRestroom,
  10034. faRetweet: faRetweet,
  10035. faRibbon: faRibbon,
  10036. faRing: faRing,
  10037. faRoad: faRoad,
  10038. faRobot: faRobot,
  10039. faRocket: faRocket,
  10040. faRoute: faRoute,
  10041. faRss: faRss,
  10042. faRssSquare: faRssSquare,
  10043. faRubleSign: faRubleSign,
  10044. faRuler: faRuler,
  10045. faRulerCombined: faRulerCombined,
  10046. faRulerHorizontal: faRulerHorizontal,
  10047. faRulerVertical: faRulerVertical,
  10048. faRunning: faRunning,
  10049. faRupeeSign: faRupeeSign,
  10050. faSadCry: faSadCry,
  10051. faSadTear: faSadTear,
  10052. faSatellite: faSatellite,
  10053. faSatelliteDish: faSatelliteDish,
  10054. faSave: faSave,
  10055. faSchool: faSchool,
  10056. faScrewdriver: faScrewdriver,
  10057. faScroll: faScroll,
  10058. faSdCard: faSdCard,
  10059. faSearch: faSearch,
  10060. faSearchDollar: faSearchDollar,
  10061. faSearchLocation: faSearchLocation,
  10062. faSearchMinus: faSearchMinus,
  10063. faSearchPlus: faSearchPlus,
  10064. faSeedling: faSeedling,
  10065. faServer: faServer,
  10066. faShapes: faShapes,
  10067. faShare: faShare,
  10068. faShareAlt: faShareAlt,
  10069. faShareAltSquare: faShareAltSquare,
  10070. faShareSquare: faShareSquare,
  10071. faShekelSign: faShekelSign,
  10072. faShieldAlt: faShieldAlt,
  10073. faShieldVirus: faShieldVirus,
  10074. faShip: faShip,
  10075. faShippingFast: faShippingFast,
  10076. faShoePrints: faShoePrints,
  10077. faShoppingBag: faShoppingBag,
  10078. faShoppingBasket: faShoppingBasket,
  10079. faShoppingCart: faShoppingCart,
  10080. faShower: faShower,
  10081. faShuttleVan: faShuttleVan,
  10082. faSign: faSign,
  10083. faSignInAlt: faSignInAlt,
  10084. faSignLanguage: faSignLanguage,
  10085. faSignOutAlt: faSignOutAlt,
  10086. faSignal: faSignal,
  10087. faSignature: faSignature,
  10088. faSimCard: faSimCard,
  10089. faSink: faSink,
  10090. faSitemap: faSitemap,
  10091. faSkating: faSkating,
  10092. faSkiing: faSkiing,
  10093. faSkiingNordic: faSkiingNordic,
  10094. faSkull: faSkull,
  10095. faSkullCrossbones: faSkullCrossbones,
  10096. faSlash: faSlash,
  10097. faSleigh: faSleigh,
  10098. faSlidersH: faSlidersH,
  10099. faSmile: faSmile,
  10100. faSmileBeam: faSmileBeam,
  10101. faSmileWink: faSmileWink,
  10102. faSmog: faSmog,
  10103. faSmoking: faSmoking,
  10104. faSmokingBan: faSmokingBan,
  10105. faSms: faSms,
  10106. faSnowboarding: faSnowboarding,
  10107. faSnowflake: faSnowflake,
  10108. faSnowman: faSnowman,
  10109. faSnowplow: faSnowplow,
  10110. faSoap: faSoap,
  10111. faSocks: faSocks,
  10112. faSolarPanel: faSolarPanel,
  10113. faSort: faSort,
  10114. faSortAlphaDown: faSortAlphaDown,
  10115. faSortAlphaDownAlt: faSortAlphaDownAlt,
  10116. faSortAlphaUp: faSortAlphaUp,
  10117. faSortAlphaUpAlt: faSortAlphaUpAlt,
  10118. faSortAmountDown: faSortAmountDown,
  10119. faSortAmountDownAlt: faSortAmountDownAlt,
  10120. faSortAmountUp: faSortAmountUp,
  10121. faSortAmountUpAlt: faSortAmountUpAlt,
  10122. faSortDown: faSortDown,
  10123. faSortNumericDown: faSortNumericDown,
  10124. faSortNumericDownAlt: faSortNumericDownAlt,
  10125. faSortNumericUp: faSortNumericUp,
  10126. faSortNumericUpAlt: faSortNumericUpAlt,
  10127. faSortUp: faSortUp,
  10128. faSpa: faSpa,
  10129. faSpaceShuttle: faSpaceShuttle,
  10130. faSpellCheck: faSpellCheck,
  10131. faSpider: faSpider,
  10132. faSpinner: faSpinner,
  10133. faSplotch: faSplotch,
  10134. faSprayCan: faSprayCan,
  10135. faSquare: faSquare,
  10136. faSquareFull: faSquareFull,
  10137. faSquareRootAlt: faSquareRootAlt,
  10138. faStamp: faStamp,
  10139. faStar: faStar,
  10140. faStarAndCrescent: faStarAndCrescent,
  10141. faStarHalf: faStarHalf,
  10142. faStarHalfAlt: faStarHalfAlt,
  10143. faStarOfDavid: faStarOfDavid,
  10144. faStarOfLife: faStarOfLife,
  10145. faStepBackward: faStepBackward,
  10146. faStepForward: faStepForward,
  10147. faStethoscope: faStethoscope,
  10148. faStickyNote: faStickyNote,
  10149. faStop: faStop,
  10150. faStopCircle: faStopCircle,
  10151. faStopwatch: faStopwatch,
  10152. faStopwatch20: faStopwatch20,
  10153. faStore: faStore,
  10154. faStoreAlt: faStoreAlt,
  10155. faStoreAltSlash: faStoreAltSlash,
  10156. faStoreSlash: faStoreSlash,
  10157. faStream: faStream,
  10158. faStreetView: faStreetView,
  10159. faStrikethrough: faStrikethrough,
  10160. faStroopwafel: faStroopwafel,
  10161. faSubscript: faSubscript,
  10162. faSubway: faSubway,
  10163. faSuitcase: faSuitcase,
  10164. faSuitcaseRolling: faSuitcaseRolling,
  10165. faSun: faSun,
  10166. faSuperscript: faSuperscript,
  10167. faSurprise: faSurprise,
  10168. faSwatchbook: faSwatchbook,
  10169. faSwimmer: faSwimmer,
  10170. faSwimmingPool: faSwimmingPool,
  10171. faSynagogue: faSynagogue,
  10172. faSync: faSync,
  10173. faSyncAlt: faSyncAlt,
  10174. faSyringe: faSyringe,
  10175. faTable: faTable,
  10176. faTableTennis: faTableTennis,
  10177. faTablet: faTablet,
  10178. faTabletAlt: faTabletAlt,
  10179. faTablets: faTablets,
  10180. faTachometerAlt: faTachometerAlt,
  10181. faTag: faTag,
  10182. faTags: faTags,
  10183. faTape: faTape,
  10184. faTasks: faTasks,
  10185. faTaxi: faTaxi,
  10186. faTeeth: faTeeth,
  10187. faTeethOpen: faTeethOpen,
  10188. faTemperatureHigh: faTemperatureHigh,
  10189. faTemperatureLow: faTemperatureLow,
  10190. faTenge: faTenge,
  10191. faTerminal: faTerminal,
  10192. faTextHeight: faTextHeight,
  10193. faTextWidth: faTextWidth,
  10194. faTh: faTh,
  10195. faThLarge: faThLarge,
  10196. faThList: faThList,
  10197. faTheaterMasks: faTheaterMasks,
  10198. faThermometer: faThermometer,
  10199. faThermometerEmpty: faThermometerEmpty,
  10200. faThermometerFull: faThermometerFull,
  10201. faThermometerHalf: faThermometerHalf,
  10202. faThermometerQuarter: faThermometerQuarter,
  10203. faThermometerThreeQuarters: faThermometerThreeQuarters,
  10204. faThumbsDown: faThumbsDown,
  10205. faThumbsUp: faThumbsUp,
  10206. faThumbtack: faThumbtack,
  10207. faTicketAlt: faTicketAlt,
  10208. faTimes: faTimes,
  10209. faTimesCircle: faTimesCircle,
  10210. faTint: faTint,
  10211. faTintSlash: faTintSlash,
  10212. faTired: faTired,
  10213. faToggleOff: faToggleOff,
  10214. faToggleOn: faToggleOn,
  10215. faToilet: faToilet,
  10216. faToiletPaper: faToiletPaper,
  10217. faToiletPaperSlash: faToiletPaperSlash,
  10218. faToolbox: faToolbox,
  10219. faTools: faTools,
  10220. faTooth: faTooth,
  10221. faTorah: faTorah,
  10222. faToriiGate: faToriiGate,
  10223. faTractor: faTractor,
  10224. faTrademark: faTrademark,
  10225. faTrafficLight: faTrafficLight,
  10226. faTrailer: faTrailer,
  10227. faTrain: faTrain,
  10228. faTram: faTram,
  10229. faTransgender: faTransgender,
  10230. faTransgenderAlt: faTransgenderAlt,
  10231. faTrash: faTrash,
  10232. faTrashAlt: faTrashAlt,
  10233. faTrashRestore: faTrashRestore,
  10234. faTrashRestoreAlt: faTrashRestoreAlt,
  10235. faTree: faTree,
  10236. faTrophy: faTrophy,
  10237. faTruck: faTruck,
  10238. faTruckLoading: faTruckLoading,
  10239. faTruckMonster: faTruckMonster,
  10240. faTruckMoving: faTruckMoving,
  10241. faTruckPickup: faTruckPickup,
  10242. faTshirt: faTshirt,
  10243. faTty: faTty,
  10244. faTv: faTv,
  10245. faUmbrella: faUmbrella,
  10246. faUmbrellaBeach: faUmbrellaBeach,
  10247. faUnderline: faUnderline,
  10248. faUndo: faUndo,
  10249. faUndoAlt: faUndoAlt,
  10250. faUniversalAccess: faUniversalAccess,
  10251. faUniversity: faUniversity,
  10252. faUnlink: faUnlink,
  10253. faUnlock: faUnlock,
  10254. faUnlockAlt: faUnlockAlt,
  10255. faUpload: faUpload,
  10256. faUser: faUser,
  10257. faUserAlt: faUserAlt,
  10258. faUserAltSlash: faUserAltSlash,
  10259. faUserAstronaut: faUserAstronaut,
  10260. faUserCheck: faUserCheck,
  10261. faUserCircle: faUserCircle,
  10262. faUserClock: faUserClock,
  10263. faUserCog: faUserCog,
  10264. faUserEdit: faUserEdit,
  10265. faUserFriends: faUserFriends,
  10266. faUserGraduate: faUserGraduate,
  10267. faUserInjured: faUserInjured,
  10268. faUserLock: faUserLock,
  10269. faUserMd: faUserMd,
  10270. faUserMinus: faUserMinus,
  10271. faUserNinja: faUserNinja,
  10272. faUserNurse: faUserNurse,
  10273. faUserPlus: faUserPlus,
  10274. faUserSecret: faUserSecret,
  10275. faUserShield: faUserShield,
  10276. faUserSlash: faUserSlash,
  10277. faUserTag: faUserTag,
  10278. faUserTie: faUserTie,
  10279. faUserTimes: faUserTimes,
  10280. faUsers: faUsers,
  10281. faUsersCog: faUsersCog,
  10282. faUsersSlash: faUsersSlash,
  10283. faUtensilSpoon: faUtensilSpoon,
  10284. faUtensils: faUtensils,
  10285. faVectorSquare: faVectorSquare,
  10286. faVenus: faVenus,
  10287. faVenusDouble: faVenusDouble,
  10288. faVenusMars: faVenusMars,
  10289. faVial: faVial,
  10290. faVials: faVials,
  10291. faVideo: faVideo,
  10292. faVideoSlash: faVideoSlash,
  10293. faVihara: faVihara,
  10294. faVirus: faVirus,
  10295. faVirusSlash: faVirusSlash,
  10296. faViruses: faViruses,
  10297. faVoicemail: faVoicemail,
  10298. faVolleyballBall: faVolleyballBall,
  10299. faVolumeDown: faVolumeDown,
  10300. faVolumeMute: faVolumeMute,
  10301. faVolumeOff: faVolumeOff,
  10302. faVolumeUp: faVolumeUp,
  10303. faVoteYea: faVoteYea,
  10304. faVrCardboard: faVrCardboard,
  10305. faWalking: faWalking,
  10306. faWallet: faWallet,
  10307. faWarehouse: faWarehouse,
  10308. faWater: faWater,
  10309. faWaveSquare: faWaveSquare,
  10310. faWeight: faWeight,
  10311. faWeightHanging: faWeightHanging,
  10312. faWheelchair: faWheelchair,
  10313. faWifi: faWifi,
  10314. faWind: faWind,
  10315. faWindowClose: faWindowClose,
  10316. faWindowMaximize: faWindowMaximize,
  10317. faWindowMinimize: faWindowMinimize,
  10318. faWindowRestore: faWindowRestore,
  10319. faWineBottle: faWineBottle,
  10320. faWineGlass: faWineGlass,
  10321. faWineGlassAlt: faWineGlassAlt,
  10322. faWonSign: faWonSign,
  10323. faWrench: faWrench,
  10324. faXRay: faXRay,
  10325. faYenSign: faYenSign,
  10326. faYinYang: faYinYang
  10327. };
  10328. /***/ }),
  10329. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  10330. /*!***********************************************************************************!*\
  10331. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  10332. \***********************************************************************************/
  10333. /*! exports provided: FontAwesomeIcon */
  10334. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10335. "use strict";
  10336. __webpack_require__.r(__webpack_exports__);
  10337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  10338. /* 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");
  10339. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  10340. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  10341. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  10342. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  10343. function _typeof(obj) {
  10344. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  10345. _typeof = function (obj) {
  10346. return typeof obj;
  10347. };
  10348. } else {
  10349. _typeof = function (obj) {
  10350. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  10351. };
  10352. }
  10353. return _typeof(obj);
  10354. }
  10355. function _defineProperty(obj, key, value) {
  10356. if (key in obj) {
  10357. Object.defineProperty(obj, key, {
  10358. value: value,
  10359. enumerable: true,
  10360. configurable: true,
  10361. writable: true
  10362. });
  10363. } else {
  10364. obj[key] = value;
  10365. }
  10366. return obj;
  10367. }
  10368. function ownKeys(object, enumerableOnly) {
  10369. var keys = Object.keys(object);
  10370. if (Object.getOwnPropertySymbols) {
  10371. var symbols = Object.getOwnPropertySymbols(object);
  10372. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  10373. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  10374. });
  10375. keys.push.apply(keys, symbols);
  10376. }
  10377. return keys;
  10378. }
  10379. function _objectSpread2(target) {
  10380. for (var i = 1; i < arguments.length; i++) {
  10381. var source = arguments[i] != null ? arguments[i] : {};
  10382. if (i % 2) {
  10383. ownKeys(Object(source), true).forEach(function (key) {
  10384. _defineProperty(target, key, source[key]);
  10385. });
  10386. } else if (Object.getOwnPropertyDescriptors) {
  10387. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  10388. } else {
  10389. ownKeys(Object(source)).forEach(function (key) {
  10390. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  10391. });
  10392. }
  10393. }
  10394. return target;
  10395. }
  10396. function _objectWithoutPropertiesLoose(source, excluded) {
  10397. if (source == null) return {};
  10398. var target = {};
  10399. var sourceKeys = Object.keys(source);
  10400. var key, i;
  10401. for (i = 0; i < sourceKeys.length; i++) {
  10402. key = sourceKeys[i];
  10403. if (excluded.indexOf(key) >= 0) continue;
  10404. target[key] = source[key];
  10405. }
  10406. return target;
  10407. }
  10408. function _objectWithoutProperties(source, excluded) {
  10409. if (source == null) return {};
  10410. var target = _objectWithoutPropertiesLoose(source, excluded);
  10411. var key, i;
  10412. if (Object.getOwnPropertySymbols) {
  10413. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  10414. for (i = 0; i < sourceSymbolKeys.length; i++) {
  10415. key = sourceSymbolKeys[i];
  10416. if (excluded.indexOf(key) >= 0) continue;
  10417. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  10418. target[key] = source[key];
  10419. }
  10420. }
  10421. return target;
  10422. }
  10423. function _toConsumableArray(arr) {
  10424. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  10425. }
  10426. function _arrayWithoutHoles(arr) {
  10427. if (Array.isArray(arr)) {
  10428. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  10429. return arr2;
  10430. }
  10431. }
  10432. function _iterableToArray(iter) {
  10433. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  10434. }
  10435. function _nonIterableSpread() {
  10436. throw new TypeError("Invalid attempt to spread non-iterable instance");
  10437. }
  10438. // Get CSS class list from a props object
  10439. function classList(props) {
  10440. var _classes;
  10441. var spin = props.spin,
  10442. pulse = props.pulse,
  10443. fixedWidth = props.fixedWidth,
  10444. inverse = props.inverse,
  10445. border = props.border,
  10446. listItem = props.listItem,
  10447. flip = props.flip,
  10448. size = props.size,
  10449. rotation = props.rotation,
  10450. pull = props.pull; // map of CSS class names to properties
  10451. var classes = (_classes = {
  10452. 'fa-spin': spin,
  10453. 'fa-pulse': pulse,
  10454. 'fa-fw': fixedWidth,
  10455. 'fa-inverse': inverse,
  10456. 'fa-border': border,
  10457. 'fa-li': listItem,
  10458. 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
  10459. 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
  10460. }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
  10461. // return an array of the keys where the value for the key is not null
  10462. return Object.keys(classes).map(function (key) {
  10463. return classes[key] ? key : null;
  10464. }).filter(function (key) {
  10465. return key;
  10466. });
  10467. }
  10468. // Camelize taken from humps
  10469. // humps is copyright © 2012+ Dom Christie
  10470. // Released under the MIT license.
  10471. // Performant way to determine if object coerces to a number
  10472. function _isNumerical(obj) {
  10473. obj = obj - 0; // eslint-disable-next-line no-self-compare
  10474. return obj === obj;
  10475. }
  10476. function camelize(string) {
  10477. if (_isNumerical(string)) {
  10478. return string;
  10479. } // eslint-disable-next-line no-useless-escape
  10480. string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
  10481. return chr ? chr.toUpperCase() : '';
  10482. }); // Ensure 1st char is always lowercase
  10483. return string.substr(0, 1).toLowerCase() + string.substr(1);
  10484. }
  10485. function capitalize(val) {
  10486. return val.charAt(0).toUpperCase() + val.slice(1);
  10487. }
  10488. function styleToObject(style) {
  10489. return style.split(';').map(function (s) {
  10490. return s.trim();
  10491. }).filter(function (s) {
  10492. return s;
  10493. }).reduce(function (acc, pair) {
  10494. var i = pair.indexOf(':');
  10495. var prop = camelize(pair.slice(0, i));
  10496. var value = pair.slice(i + 1).trim();
  10497. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  10498. return acc;
  10499. }, {});
  10500. }
  10501. function convert(createElement, element) {
  10502. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10503. if (typeof element === 'string') {
  10504. return element;
  10505. }
  10506. var children = (element.children || []).map(function (child) {
  10507. return convert(createElement, child);
  10508. });
  10509. /* eslint-disable dot-notation */
  10510. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  10511. var val = element.attributes[key];
  10512. switch (key) {
  10513. case 'class':
  10514. acc.attrs['className'] = val;
  10515. delete element.attributes['class'];
  10516. break;
  10517. case 'style':
  10518. acc.attrs['style'] = styleToObject(val);
  10519. break;
  10520. default:
  10521. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  10522. acc.attrs[key.toLowerCase()] = val;
  10523. } else {
  10524. acc.attrs[camelize(key)] = val;
  10525. }
  10526. }
  10527. return acc;
  10528. }, {
  10529. attrs: {}
  10530. });
  10531. var _extraProps$style = extraProps.style,
  10532. existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
  10533. remaining = _objectWithoutProperties(extraProps, ["style"]);
  10534. mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle);
  10535. /* eslint-enable */
  10536. return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
  10537. }
  10538. var PRODUCTION = false;
  10539. try {
  10540. PRODUCTION = "development" === 'production';
  10541. } catch (e) {}
  10542. function log () {
  10543. if (!PRODUCTION && console && typeof console.error === 'function') {
  10544. var _console;
  10545. (_console = console).error.apply(_console, arguments);
  10546. }
  10547. }
  10548. // Normalize icon arguments
  10549. function normalizeIconArgs(icon) {
  10550. // if the icon is null, there's nothing to do
  10551. if (icon === null) {
  10552. return null;
  10553. } // if the icon is an object and has a prefix and an icon name, return it
  10554. if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
  10555. return icon;
  10556. } // if it's an array with length of two
  10557. if (Array.isArray(icon) && icon.length === 2) {
  10558. // use the first item as prefix, second as icon name
  10559. return {
  10560. prefix: icon[0],
  10561. iconName: icon[1]
  10562. };
  10563. } // if it's a string, use it as the icon name
  10564. if (typeof icon === 'string') {
  10565. return {
  10566. prefix: 'fas',
  10567. iconName: icon
  10568. };
  10569. }
  10570. }
  10571. // creates an object with a key of key
  10572. // and a value of value
  10573. // if certain conditions are met
  10574. function objectWithKey(key, value) {
  10575. // if the value is a non-empty array
  10576. // or it's not an array but it is truthy
  10577. // then create the object with the key and the value
  10578. // if not, return an empty array
  10579. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
  10580. }
  10581. function FontAwesomeIcon(_ref) {
  10582. var forwardedRef = _ref.forwardedRef,
  10583. props = _objectWithoutProperties(_ref, ["forwardedRef"]);
  10584. var iconArgs = props.icon,
  10585. maskArgs = props.mask,
  10586. symbol = props.symbol,
  10587. className = props.className,
  10588. title = props.title;
  10589. var iconLookup = normalizeIconArgs(iconArgs);
  10590. var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  10591. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  10592. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  10593. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
  10594. symbol: symbol,
  10595. title: title
  10596. }));
  10597. if (!renderedIcon) {
  10598. log('Could not find icon', iconLookup);
  10599. return null;
  10600. }
  10601. var abstract = renderedIcon.abstract;
  10602. var extraProps = {
  10603. ref: forwardedRef
  10604. };
  10605. Object.keys(props).forEach(function (key) {
  10606. // eslint-disable-next-line no-prototype-builtins
  10607. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  10608. extraProps[key] = props[key];
  10609. }
  10610. });
  10611. return convertCurry(abstract[0], extraProps);
  10612. }
  10613. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  10614. FontAwesomeIcon.propTypes = {
  10615. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  10616. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  10617. 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]),
  10618. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  10619. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  10620. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  10621. 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]),
  10622. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  10623. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  10624. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  10625. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([0, 90, 180, 270]),
  10626. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  10627. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  10628. 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]),
  10629. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  10630. 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]),
  10631. swapOpacity: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
  10632. };
  10633. FontAwesomeIcon.defaultProps = {
  10634. border: false,
  10635. className: '',
  10636. mask: null,
  10637. fixedWidth: false,
  10638. inverse: false,
  10639. flip: null,
  10640. icon: null,
  10641. listItem: false,
  10642. pull: null,
  10643. pulse: false,
  10644. rotation: null,
  10645. size: null,
  10646. spin: false,
  10647. symbol: false,
  10648. title: '',
  10649. transform: null,
  10650. swapOpacity: false
  10651. };
  10652. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  10653. /***/ }),
  10654. /***/ "../../node_modules/@icons/material/CheckIcon.js":
  10655. /*!*********************************************************************!*\
  10656. !*** D:/Repos/Babylon.js/node_modules/@icons/material/CheckIcon.js ***!
  10657. \*********************************************************************/
  10658. /*! no static exports found */
  10659. /***/ (function(module, exports, __webpack_require__) {
  10660. "use strict";
  10661. Object.defineProperty(exports, "__esModule", {
  10662. value: true
  10663. });
  10664. 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; };
  10665. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  10666. var _react2 = _interopRequireDefault(_react);
  10667. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10668. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  10669. var DEFAULT_SIZE = 24;
  10670. exports.default = function (_ref) {
  10671. var _ref$fill = _ref.fill,
  10672. fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
  10673. _ref$width = _ref.width,
  10674. width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
  10675. _ref$height = _ref.height,
  10676. height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
  10677. _ref$style = _ref.style,
  10678. style = _ref$style === undefined ? {} : _ref$style,
  10679. props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
  10680. return _react2.default.createElement(
  10681. 'svg',
  10682. _extends({
  10683. viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
  10684. style: _extends({ fill: fill, width: width, height: height }, style)
  10685. }, props),
  10686. _react2.default.createElement('path', { d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' })
  10687. );
  10688. };
  10689. /***/ }),
  10690. /***/ "../../node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":
  10691. /*!************************************************************************************!*\
  10692. !*** D:/Repos/Babylon.js/node_modules/@icons/material/UnfoldMoreHorizontalIcon.js ***!
  10693. \************************************************************************************/
  10694. /*! no static exports found */
  10695. /***/ (function(module, exports, __webpack_require__) {
  10696. "use strict";
  10697. Object.defineProperty(exports, "__esModule", {
  10698. value: true
  10699. });
  10700. 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; };
  10701. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  10702. var _react2 = _interopRequireDefault(_react);
  10703. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10704. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  10705. var DEFAULT_SIZE = 24;
  10706. exports.default = function (_ref) {
  10707. var _ref$fill = _ref.fill,
  10708. fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
  10709. _ref$width = _ref.width,
  10710. width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
  10711. _ref$height = _ref.height,
  10712. height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
  10713. _ref$style = _ref.style,
  10714. style = _ref$style === undefined ? {} : _ref$style,
  10715. props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
  10716. return _react2.default.createElement(
  10717. 'svg',
  10718. _extends({
  10719. viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
  10720. style: _extends({ fill: fill, width: width, height: height }, style)
  10721. }, props),
  10722. _react2.default.createElement('path', { d: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' })
  10723. );
  10724. };
  10725. /***/ }),
  10726. /***/ "../../node_modules/classnames/index.js":
  10727. /*!************************************************************!*\
  10728. !*** D:/Repos/Babylon.js/node_modules/classnames/index.js ***!
  10729. \************************************************************/
  10730. /*! no static exports found */
  10731. /***/ (function(module, exports, __webpack_require__) {
  10732. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  10733. Copyright (c) 2017 Jed Watson.
  10734. Licensed under the MIT License (MIT), see
  10735. http://jedwatson.github.io/classnames
  10736. */
  10737. /* global define */
  10738. (function () {
  10739. 'use strict';
  10740. var hasOwn = {}.hasOwnProperty;
  10741. function classNames () {
  10742. var classes = [];
  10743. for (var i = 0; i < arguments.length; i++) {
  10744. var arg = arguments[i];
  10745. if (!arg) continue;
  10746. var argType = typeof arg;
  10747. if (argType === 'string' || argType === 'number') {
  10748. classes.push(arg);
  10749. } else if (Array.isArray(arg) && arg.length) {
  10750. var inner = classNames.apply(null, arg);
  10751. if (inner) {
  10752. classes.push(inner);
  10753. }
  10754. } else if (argType === 'object') {
  10755. for (var key in arg) {
  10756. if (hasOwn.call(arg, key) && arg[key]) {
  10757. classes.push(key);
  10758. }
  10759. }
  10760. }
  10761. }
  10762. return classes.join(' ');
  10763. }
  10764. if ( true && module.exports) {
  10765. classNames.default = classNames;
  10766. module.exports = classNames;
  10767. } else if (true) {
  10768. // register as 'classnames', consistent with npm package name
  10769. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  10770. return classNames;
  10771. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  10772. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  10773. } else {}
  10774. }());
  10775. /***/ }),
  10776. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/actionTabs/actionTabs.scss":
  10777. /*!****************************************************************************************************************************************************************!*\
  10778. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!D:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/actionTabs/actionTabs.scss ***!
  10779. \****************************************************************************************************************************************************************/
  10780. /*! no static exports found */
  10781. /***/ (function(module, exports, __webpack_require__) {
  10782. // Imports
  10783. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  10784. exports = ___CSS_LOADER_API_IMPORT___(false);
  10785. // Module
  10786. 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 .gradient-step {\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 25px 50px 55px 40px auto 20px 5px;\n padding-top: 5px;\n padding-left: 5px;\n padding-bottom: 5px;\n align-items: center; }\n #actionTabs .tabs .panes .gradient-step .step {\n grid-row: 1;\n grid-column: 1; }\n #actionTabs .tabs .panes .gradient-step .color1 {\n height: 100%; }\n #actionTabs .tabs .panes .gradient-step .color2 {\n height: 100%;\n padding-left: 5px; }\n #actionTabs .tabs .panes .gradient-step .factor1 {\n grid-row: 1;\n grid-column: 2;\n cursor: pointer; }\n #actionTabs .tabs .panes .gradient-step .factor2 {\n padding-left: 5px;\n grid-row: 1;\n grid-column: 3;\n cursor: pointer; }\n #actionTabs .tabs .panes .gradient-step .factor2 .grayed {\n background: gray;\n border-color: gray; }\n #actionTabs .tabs .panes .gradient-step .numeric-input {\n width: calc(100% - 5px); }\n #actionTabs .tabs .panes .gradient-step .icon {\n cursor: pointer; }\n #actionTabs .tabs .panes .gradient-step .step-value {\n margin-left: 5px;\n grid-row: 1;\n grid-column: 4;\n text-align: right;\n margin-right: 5px; }\n #actionTabs .tabs .panes .gradient-step .step-slider {\n grid-row: 1;\n grid-column: 5;\n display: grid;\n justify-content: stretch;\n align-content: center;\n margin-right: 12px; }\n #actionTabs .tabs .panes .gradient-step .step-slider input {\n width: 100%; }\n #actionTabs .tabs .panes .gradient-step .step-slider .range:hover {\n opacity: 1; }\n #actionTabs .tabs .panes .gradient-step .step-slider .range {\n -webkit-appearance: none;\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 .gradient-step .step-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 .gradient-step .step-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 .gradient-step .gradient-delete {\n grid-row: 1;\n grid-column: 6;\n display: grid;\n align-content: center;\n justify-content: center; }\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 .animation-info {\n border-left: greenyellow 3px solid;\n margin-left: 5px;\n padding-left: 5px !important; }\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: block;\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 .textureLinkLine .actionIcon {\n display: inline-block;\n margin-top: 6px;\n margin-right: 4px; }\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 .color-picker {\n height: calc(100% - 8px);\n margin: 4px;\n width: 100%; }\n #actionTabs .tabs .panes .pane .color-picker .color-rect {\n height: calc(100% - 4px);\n border: 2px white solid;\n cursor: pointer;\n min-height: 18px; }\n #actionTabs .tabs .panes .pane .color-picker .color-picker-cover {\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 100; }\n #actionTabs .tabs .panes .pane .color-picker .color-picker-float {\n position: absolute; }\n #actionTabs .tabs .panes .pane .linkButtonLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link {\n grid-column: 1;\n display: flex;\n align-items: center;\n text-decoration: underline;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link-button {\n grid-column: 2; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link-button 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 cursor: pointer; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link-button button:hover {\n opacity: 1.0; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link-button button:active {\n background: #282828; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link-button button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #actionTabs .tabs .panes .pane .linkButtonLine .link-icon {\n grid-column: 3;\n display: grid;\n align-content: 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.indented {\n grid-template-columns: 100%; }\n #actionTabs .tabs .panes .pane .textLine.indented .link-value {\n grid-column: 1;\n text-align: start;\n margin-left: 20px;\n opacity: 0.6;\n max-width: unset; }\n #actionTabs .tabs .panes .pane .textLine.indented .value {\n grid-column: 1;\n text-align: start;\n margin-left: 20px;\n opacity: 0.6;\n max-width: unset; }\n #actionTabs .tabs .panes .pane .textLine.reduced-opacity {\n opacity: 0.6;\n padding-left: 25px; }\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: 7px;\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: 7px;\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 .gradient-container {\n margin-top: 3px; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-label {\n height: 30px;\n display: grid;\n align-content: center; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step {\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 25px 50px 55px 40px auto 20px 5px;\n padding-top: 5px;\n padding-left: 5px;\n padding-bottom: 5px;\n align-items: center;\n border-left: orange 3px solid; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .step {\n grid-row: 1;\n grid-column: 1; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .color1 {\n height: 100%; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .color2 {\n height: 100%;\n padding-left: 5px; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .factor1 {\n grid-row: 1;\n grid-column: 2;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .factor2 {\n padding-left: 5px;\n grid-row: 1;\n grid-column: 3;\n cursor: pointer; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .factor2 .grayed {\n background: gray;\n border-color: gray; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .numeric-input {\n width: calc(100% - 5px); }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .step-value {\n margin-left: 5px;\n grid-row: 1;\n grid-column: 4;\n text-align: right;\n margin-right: 5px; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .step-slider {\n grid-row: 1;\n grid-column: 5;\n display: grid;\n justify-content: stretch;\n align-content: center;\n margin-right: 5px; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .step-slider input {\n width: 100%; }\n #actionTabs .tabs .panes .pane .gradient-container .gradient-step .gradient-delete {\n grid-row: 1;\n grid-column: 6;\n display: grid;\n align-content: center;\n justify-content: center; }\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 font-size: 13px;\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 cursor: pointer; }\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: 1px solid white;\n background-size: 32px 32px;\n background-color: white;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2'%3E%3Cpath fill='rgba(1.0,1.0,1.0,0.3)' fill-rule='evenodd' d='M0 0h1v1H0V0zm1 1h1v1H1V1z'/%3E%3C/svg%3E\"); }\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 width: 50px;\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 margin-bottom: -5px;\n z-index: 100;\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", ""]);
  10787. // Exports
  10788. module.exports = exports;
  10789. /***/ }),
  10790. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/actionTabs/tabs/propertyGrids/animations/curveEditor.scss":
  10791. /*!***********************************************************************************************************************************************************************************************!*\
  10792. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!D:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/actionTabs/tabs/propertyGrids/animations/curveEditor.scss ***!
  10793. \***********************************************************************************************************************************************************************************************/
  10794. /*! no static exports found */
  10795. /***/ (function(module, exports, __webpack_require__) {
  10796. // Imports
  10797. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  10798. var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../../../../../node_modules/css-loader/dist/runtime/getUrl.js */ "../../node_modules/css-loader/dist/runtime/getUrl.js");
  10799. var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ./assets/babylonLogo.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/babylonLogo.svg");
  10800. var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(/*! ./assets/closeWindowIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/closeWindowIcon.svg");
  10801. var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__(/*! ./assets/autoTangentIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/autoTangentIcon.svg");
  10802. var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__(/*! ./assets/breakTangentIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/breakTangentIcon.svg");
  10803. var ___CSS_LOADER_URL_IMPORT_4___ = __webpack_require__(/*! ./assets/flatTangentIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/flatTangentIcon.svg");
  10804. var ___CSS_LOADER_URL_IMPORT_5___ = __webpack_require__(/*! ./assets/frameIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/frameIcon.svg");
  10805. var ___CSS_LOADER_URL_IMPORT_6___ = __webpack_require__(/*! ./assets/linearTangentIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/linearTangentIcon.svg");
  10806. var ___CSS_LOADER_URL_IMPORT_7___ = __webpack_require__(/*! ./assets/unifyTangentIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/unifyTangentIcon.svg");
  10807. var ___CSS_LOADER_URL_IMPORT_8___ = __webpack_require__(/*! ./assets/addAnimationIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/addAnimationIcon.svg");
  10808. var ___CSS_LOADER_URL_IMPORT_9___ = __webpack_require__(/*! ./assets/animationBulletIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationBulletIcon.svg");
  10809. var ___CSS_LOADER_URL_IMPORT_10___ = __webpack_require__(/*! ./assets/animationDeleteIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationDeleteIcon.svg");
  10810. var ___CSS_LOADER_URL_IMPORT_11___ = __webpack_require__(/*! ./assets/editIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/editIcon.svg");
  10811. var ___CSS_LOADER_URL_IMPORT_12___ = __webpack_require__(/*! ./assets/animationEndIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationEndIcon.svg");
  10812. var ___CSS_LOADER_URL_IMPORT_13___ = __webpack_require__(/*! ./assets/animationLastKeyIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationLastKeyIcon.svg");
  10813. var ___CSS_LOADER_URL_IMPORT_14___ = __webpack_require__(/*! ./assets/animationLastKeyHoverIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationLastKeyHoverIcon.svg");
  10814. var ___CSS_LOADER_URL_IMPORT_15___ = __webpack_require__(/*! ./assets/animationNextKeyIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationNextKeyIcon.svg");
  10815. var ___CSS_LOADER_URL_IMPORT_16___ = __webpack_require__(/*! ./assets/animationNextKeyHoverIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationNextKeyHoverIcon.svg");
  10816. var ___CSS_LOADER_URL_IMPORT_17___ = __webpack_require__(/*! ./assets/animationOptionsIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationOptionsIcon.svg");
  10817. var ___CSS_LOADER_URL_IMPORT_18___ = __webpack_require__(/*! ./assets/animationPlayFwdIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayFwdIcon.svg");
  10818. var ___CSS_LOADER_URL_IMPORT_19___ = __webpack_require__(/*! ./assets/animationPlayFwdHoverIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayFwdHoverIcon.svg");
  10819. var ___CSS_LOADER_URL_IMPORT_20___ = __webpack_require__(/*! ./assets/animationPlayRevIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayRevIcon.svg");
  10820. var ___CSS_LOADER_URL_IMPORT_21___ = __webpack_require__(/*! ./assets/animationPlayRevHoverIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayRevHoverIcon.svg");
  10821. var ___CSS_LOADER_URL_IMPORT_22___ = __webpack_require__(/*! ./assets/animationStartIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationStartIcon.svg");
  10822. var ___CSS_LOADER_URL_IMPORT_23___ = __webpack_require__(/*! ./assets/animationStopIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationStopIcon.svg");
  10823. var ___CSS_LOADER_URL_IMPORT_24___ = __webpack_require__(/*! ./assets/animationTriangleIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationTriangleIcon.svg");
  10824. var ___CSS_LOADER_URL_IMPORT_25___ = __webpack_require__(/*! ./assets/keyActiveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/keyActiveIcon.svg");
  10825. var ___CSS_LOADER_URL_IMPORT_26___ = __webpack_require__(/*! ./assets/keyInactiveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/keyInactiveIcon.svg");
  10826. var ___CSS_LOADER_URL_IMPORT_27___ = __webpack_require__(/*! ./assets/keySelectedIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/keySelectedIcon.svg");
  10827. var ___CSS_LOADER_URL_IMPORT_28___ = __webpack_require__(/*! ./assets/loopActiveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/loopActiveIcon.svg");
  10828. var ___CSS_LOADER_URL_IMPORT_29___ = __webpack_require__(/*! ./assets/loopInactiveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/loopInactiveIcon.svg");
  10829. var ___CSS_LOADER_URL_IMPORT_30___ = __webpack_require__(/*! ./assets/moveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/moveIcon.svg");
  10830. var ___CSS_LOADER_URL_IMPORT_31___ = __webpack_require__(/*! ./assets/saveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/saveIcon.svg");
  10831. var ___CSS_LOADER_URL_IMPORT_32___ = __webpack_require__(/*! ./assets/loadIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/loadIcon.svg");
  10832. var ___CSS_LOADER_URL_IMPORT_33___ = __webpack_require__(/*! ./assets/checkboxCheckedIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/checkboxCheckedIcon.svg");
  10833. var ___CSS_LOADER_URL_IMPORT_34___ = __webpack_require__(/*! ./assets/checkboxDefaultIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/checkboxDefaultIcon.svg");
  10834. var ___CSS_LOADER_URL_IMPORT_35___ = __webpack_require__(/*! ./assets/newKeyIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/newKeyIcon.svg");
  10835. var ___CSS_LOADER_URL_IMPORT_36___ = __webpack_require__(/*! ./assets/scaleIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/scaleIcon.svg");
  10836. var ___CSS_LOADER_URL_IMPORT_37___ = __webpack_require__(/*! ./assets/scrollbarHandleIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/scrollbarHandleIcon.svg");
  10837. exports = ___CSS_LOADER_API_IMPORT___(false);
  10838. var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
  10839. var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
  10840. var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
  10841. var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
  10842. var ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_4___);
  10843. var ___CSS_LOADER_URL_REPLACEMENT_5___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_5___);
  10844. var ___CSS_LOADER_URL_REPLACEMENT_6___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_6___);
  10845. var ___CSS_LOADER_URL_REPLACEMENT_7___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_7___);
  10846. var ___CSS_LOADER_URL_REPLACEMENT_8___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_8___);
  10847. var ___CSS_LOADER_URL_REPLACEMENT_9___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_9___);
  10848. var ___CSS_LOADER_URL_REPLACEMENT_10___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_10___);
  10849. var ___CSS_LOADER_URL_REPLACEMENT_11___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_11___);
  10850. var ___CSS_LOADER_URL_REPLACEMENT_12___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_12___);
  10851. var ___CSS_LOADER_URL_REPLACEMENT_13___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_13___);
  10852. var ___CSS_LOADER_URL_REPLACEMENT_14___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_14___);
  10853. var ___CSS_LOADER_URL_REPLACEMENT_15___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_15___);
  10854. var ___CSS_LOADER_URL_REPLACEMENT_16___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_16___);
  10855. var ___CSS_LOADER_URL_REPLACEMENT_17___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_17___);
  10856. var ___CSS_LOADER_URL_REPLACEMENT_18___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_18___);
  10857. var ___CSS_LOADER_URL_REPLACEMENT_19___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_19___);
  10858. var ___CSS_LOADER_URL_REPLACEMENT_20___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_20___);
  10859. var ___CSS_LOADER_URL_REPLACEMENT_21___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_21___);
  10860. var ___CSS_LOADER_URL_REPLACEMENT_22___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_22___);
  10861. var ___CSS_LOADER_URL_REPLACEMENT_23___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_23___);
  10862. var ___CSS_LOADER_URL_REPLACEMENT_24___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_24___);
  10863. var ___CSS_LOADER_URL_REPLACEMENT_25___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_25___);
  10864. var ___CSS_LOADER_URL_REPLACEMENT_26___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_26___);
  10865. var ___CSS_LOADER_URL_REPLACEMENT_27___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_27___);
  10866. var ___CSS_LOADER_URL_REPLACEMENT_28___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_28___);
  10867. var ___CSS_LOADER_URL_REPLACEMENT_29___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_29___);
  10868. var ___CSS_LOADER_URL_REPLACEMENT_30___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_30___);
  10869. var ___CSS_LOADER_URL_REPLACEMENT_31___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_31___);
  10870. var ___CSS_LOADER_URL_REPLACEMENT_32___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_32___);
  10871. var ___CSS_LOADER_URL_REPLACEMENT_33___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_33___);
  10872. var ___CSS_LOADER_URL_REPLACEMENT_34___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_34___);
  10873. var ___CSS_LOADER_URL_REPLACEMENT_35___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_35___);
  10874. var ___CSS_LOADER_URL_REPLACEMENT_36___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_36___);
  10875. var ___CSS_LOADER_URL_REPLACEMENT_37___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_37___);
  10876. // Module
  10877. exports.push([module.i, "#animation-curve-editor {\n background-color: #333333;\n font-family: \"acumin-pro-condensed\";\n background-color: #333333; }\n #animation-curve-editor .last {\n margin-left: 3px; }\n #animation-curve-editor .icon {\n width: 40px;\n height: 40px; }\n #animation-curve-editor .icon.medium {\n width: 30px;\n height: 30px; }\n #animation-curve-editor .icon.small {\n width: 20px;\n height: 20px; }\n #animation-curve-editor .icon.babylon-logo {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain; }\n #animation-curve-editor .icon.close {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.auto-tangent {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.auto-tangent:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.auto-tangent:active {\n background-color: #555555; }\n #animation-curve-editor .icon.break-tangent {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.break-tangent:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.break-tangent:active {\n background-color: #555555; }\n #animation-curve-editor .icon.flat-tangent {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.flat-tangent:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.flat-tangent:active {\n background-color: #555555; }\n #animation-curve-editor .icon.frame {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_5___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.frame:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.frame:active {\n background-color: #555555; }\n #animation-curve-editor .icon.linear-tangent {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_6___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.linear-tangent:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.linear-tangent:active {\n background-color: #555555; }\n #animation-curve-editor .icon.unify-tangent {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_7___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.unify-tangent:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.unify-tangent:active {\n background-color: #555555; }\n #animation-curve-editor .icon.add-animation {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_8___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.animation-bullet {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_9___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.animation-delete {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_10___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.animation-edit {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_11___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.animation-end {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_12___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n width: 20px;\n cursor: pointer;\n background-position: center; }\n #animation-curve-editor .icon.animation-lastkey {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_13___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n width: 20px;\n cursor: pointer;\n background-position: center; }\n #animation-curve-editor .icon.animation-lastkey:hover {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_14___ + "); }\n #animation-curve-editor .icon.animation-nextkey {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_15___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n width: 20px;\n cursor: pointer;\n background-position: center; }\n #animation-curve-editor .icon.animation-nextkey:hover {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_16___ + "); }\n #animation-curve-editor .icon.animation-options {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_17___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer;\n background-position: center; }\n #animation-curve-editor .icon.animation-options:hover {\n background-color: #888888 !important; }\n #animation-curve-editor .icon.animation-playfwd {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_18___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n background-position: center;\n width: 20px;\n cursor: pointer;\n background-position: center; }\n #animation-curve-editor .icon.animation-playfwd:hover {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_19___ + "); }\n #animation-curve-editor .icon.animation-playrev {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_20___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n background-position: center;\n width: 20px;\n cursor: pointer;\n background-position: center; }\n #animation-curve-editor .icon.animation-playrev:hover {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_21___ + "); }\n #animation-curve-editor .icon.animation-start {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_22___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n background-position: center;\n cursor: pointer;\n background-position: center;\n width: 20px; }\n #animation-curve-editor .icon.animation-stop {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_23___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n background-position: center;\n cursor: pointer;\n background-position: center;\n width: 20px; }\n #animation-curve-editor .icon.animation-triangle {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_24___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.key-active {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_25___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.key-inactive {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_26___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.key-selected {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_27___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.loop-active {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_28___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.loop-inactive {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_29___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.move {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_30___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.save {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_31___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.load {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_32___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white;\n cursor: pointer; }\n #animation-curve-editor .icon.checked {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_33___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.unchecked {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_34___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.new-key {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_35___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.new-key:hover {\n background-color: #888888; }\n #animation-curve-editor .icon.new-key:active {\n background-color: #555555; }\n #animation-curve-editor .icon.scale {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_36___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .icon.scrollbar-handle {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_37___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: white; }\n #animation-curve-editor .hidden {\n display: none; }\n #animation-curve-editor .notification-area {\n position: absolute;\n width: auto;\n left: 0.53em;\n bottom: 60px;\n background-color: #c73228;\n padding: 16px;\n border-radius: 5px;\n color: white;\n right: 2em;\n z-index: 1000; }\n #animation-curve-editor .notification-area button {\n position: absolute;\n top: 3px;\n right: 10px;\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: 0.4;\n font-size: 1.8em; }\n #animation-curve-editor .header {\n display: flex;\n padding: 9px;\n background: #333333;\n color: white;\n height: 1.3em;\n justify-content: space-between;\n align-items: center;\n padding-left: 12px;\n padding-right: 12px; }\n #animation-curve-editor .header .title {\n text-transform: uppercase; }\n #animation-curve-editor .header .close {\n grid-column: 2;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #animation-curve-editor .actions-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n background: #333333;\n height: 40px; }\n #animation-curve-editor .actions-wrapper .close {\n position: absolute;\n right: 1px; }\n #animation-curve-editor .actions-wrapper .title-container {\n display: flex;\n justify-content: stretch;\n align-items: center;\n color: white;\n width: 220px; }\n #animation-curve-editor .actions-wrapper .title-container .title {\n font-size: 15pt; }\n #animation-curve-editor .actions-wrapper .buttons-container {\n display: flex;\n padding-left: 10px; }\n #animation-curve-editor .actions-wrapper .action-input {\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n margin-right: 8px; }\n #animation-curve-editor .actions-wrapper .action-input input {\n width: 78px;\n height: 24px;\n color: white;\n font-size: 12px;\n background: none;\n border: none;\n background-color: black;\n padding: 6px; }\n #animation-curve-editor .actions-wrapper .action-input input:focus {\n outline: solid 1px #ccc; }\n #animation-curve-editor .content {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n flex-direction: column;\n height: calc(100vh - 40px); }\n #animation-curve-editor .content .row {\n width: auto;\n height: auto;\n display: flex;\n flex-flow: row;\n background-color: #333333;\n margin-bottom: auto; }\n #animation-curve-editor .content .row-bottom {\n display: flex;\n align-items: stretch;\n justify-content: flex-start;\n flex-direction: row;\n width: 1024px;\n height: 45px;\n background-color: #333333; }\n #animation-curve-editor .content .row-bottom .timeline {\n width: 100vw;\n background: #333333;\n display: flex;\n align-items: center;\n justify-content: stretch;\n height: 2.5rem; }\n #animation-curve-editor .content .row-bottom .timeline .display-line {\n height: 40px;\n overflow: hidden;\n margin-right: 0px;\n padding-left: 10px;\n padding-right: 10px;\n width: 782px; }\n #animation-curve-editor .content .row-bottom .timeline .display-line::-webkit-scrollbar {\n height: 0.4em; }\n #animation-curve-editor .content .row-bottom .timeline .display-line::-webkit-scrollbar-track {\n box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); }\n #animation-curve-editor .content .row-bottom .timeline .display-line::-webkit-scrollbar-thumb {\n background-color: cornflowerblue;\n outline: 1px solid slategrey; }\n #animation-curve-editor .content .row-bottom .timeline .input-frame {\n width: 60px;\n margin-left: 10px;\n margin-right: 10px;\n position: relative;\n float: right;\n bottom: 35px; }\n #animation-curve-editor .content .row-bottom .timeline .input-frame input {\n text-align: center;\n width: 60px;\n border: none;\n background: #222222;\n color: white;\n height: 25px;\n font-size: 15px;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .row-bottom .timeline .input-frame input::-webkit-inner-spin-button, #animation-curve-editor .content .row-bottom .timeline .input-frame input::-webkit-outer-spin-button {\n appearance: none;\n -webkit-appearance: none;\n margin: 0; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle {\n display: flex;\n flex-direction: row;\n height: 25px;\n margin: 10px; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle {\n width: 703px;\n background-color: #222222;\n height: 25px;\n display: flex;\n align-items: center;\n padding-left: 2px;\n padding-right: 2px; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle {\n display: flex;\n flex-direction: row;\n height: 20px;\n background-color: #666666;\n justify-content: space-between;\n position: absolute; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .scrollbar {\n cursor: pointer;\n width: 100%;\n height: 66px;\n margin-top: -10px; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .left-grabber,\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .right-grabber {\n display: flex;\n align-items: center;\n cursor: pointer;\n padding-bottom: 8px;\n height: 36px;\n margin-top: -8px; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .left-grabber .text,\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .right-grabber .text {\n pointer-events: none;\n margin: 0; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .left-draggable,\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .right-draggable {\n display: flex;\n align-items: center;\n height: 20px;\n width: 20px;\n justify-content: center; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .left-draggable:active .grabber,\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .right-draggable:active .grabber {\n background-color: #3d3d3d; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .grabber {\n background-color: #333333;\n width: 2px;\n height: 16px;\n margin-right: 2px;\n pointer-events: none; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-scroll-handle .scroll-handle .handle .text {\n margin-left: 10px;\n margin-right: 10px;\n font-size: 12px;\n font-family: \"acumin-pro-condensed\";\n color: #222222; }\n #animation-curve-editor .content .row-bottom .timeline .timeline-wrapper {\n margin-top: -31px;\n margin-left: -2px; }\n #animation-curve-editor .content .row-bottom .timeline .controls {\n display: flex;\n justify-content: center;\n align-items: center;\n padding-left: 46px;\n padding-right: 46px;\n margin-left: 10px;\n margin-top: -10px; }\n #animation-curve-editor .content .row-bottom .timeline .controls .stop-container {\n width: 40px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center; }\n #animation-curve-editor .content .row-bottom .timeline .controls .input-frame input {\n width: 3em; }\n #animation-curve-editor .content .animation-list {\n margin: 10px;\n margin-top: 0;\n margin-bottom: 0;\n background: #111111;\n color: white;\n width: 210px; }\n #animation-curve-editor .content .animation-list .controls-header {\n display: flex;\n background-color: #252525; }\n #animation-curve-editor .content .animation-list .controls-header .input-fps {\n display: flex;\n align-items: center;\n width: 52px;\n padding-left: 4px; }\n #animation-curve-editor .content .animation-list .controls-header .input-fps .numeric input {\n width: 52px;\n font-size: 12px;\n height: 22px;\n background-color: black;\n border: none;\n color: white;\n text-align: center;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .animation-list .controls-header .input-fps .numeric input::-webkit-inner-spin-button, #animation-curve-editor .content .animation-list .controls-header .input-fps .numeric input::-webkit-outer-spin-button {\n appearance: none;\n -webkit-appearance: none;\n margin: 0; }\n #animation-curve-editor .content .animation-list .controls-header .input-fps p {\n color: white;\n font-size: 12px;\n margin: 0px;\n position: relative;\n right: 17px;\n line-height: 20px;\n height: 20px;\n margin-top: -2px; }\n #animation-curve-editor .content .animation-list .load-container {\n flex-direction: column;\n height: 377px;\n padding-top: 10px; }\n #animation-curve-editor .content .animation-list .load-container .load-server {\n font-size: 12px;\n display: flex;\n background-color: #222222;\n padding-left: 10px;\n height: 20px;\n margin-top: 277px; }\n #animation-curve-editor .content .animation-list .load-container .load-server p {\n margin: 0px; }\n #animation-curve-editor .content .animation-list .load-container .load-browse {\n margin-top: 10px;\n display: flex; }\n #animation-curve-editor .content .animation-list .load-container .load-browse p {\n height: 20px;\n margin: 0px;\n font-size: 12px;\n width: 65px;\n text-align: right;\n margin-right: 10px; }\n #animation-curve-editor .content .animation-list .load-container .load-browse .buttonLine {\n margin-left: 0px;\n margin-top: 0px; }\n #animation-curve-editor .content .animation-list .load-container .load-browse .buttonLine button {\n margin-top: 0px;\n font-family: \"acumin-pro-condensed\";\n padding-top: 1px; }\n #animation-curve-editor .content .animation-list .load-container .buttonLine {\n width: 60px;\n padding: 0px;\n display: block;\n margin-left: 75px;\n height: 20px;\n margin-top: 10px; }\n #animation-curve-editor .content .animation-list .load-container .buttonLine button,\n #animation-curve-editor .content .animation-list .load-container .buttonLine label {\n border: none;\n font-size: 12px;\n margin: 0px;\n width: 127px;\n background-color: #444;\n height: 20px;\n font-family: \"acumin-pro-condensed\";\n padding-top: 0px; }\n #animation-curve-editor .content .animation-list .load-container .textInputLine {\n display: flex; }\n #animation-curve-editor .content .animation-list .load-container .textInputLine .label {\n font-size: 12px;\n width: 75px;\n text-align: center;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .animation-list .load-container .textInputLine .value input {\n width: 127px;\n background-color: #444444;\n border: none;\n height: 20px;\n font-family: \"acumin-pro-condensed\";\n padding-bottom: 6px;\n padding-left: 6px;\n color: white; }\n #animation-curve-editor .content .animation-list .save-container {\n flex-direction: column;\n height: 377px;\n padding-top: 10px; }\n #animation-curve-editor .content .animation-list .save-container .item-list {\n height: 317px; }\n #animation-curve-editor .content .animation-list .save-container .item-list ul {\n list-style: none;\n padding-left: 10px;\n margin: 0px; }\n #animation-curve-editor .content .animation-list .save-container .item-list ul label {\n font-size: 12px;\n font-family: \"acumin-pro-condensed\";\n display: flex;\n align-content: center;\n align-items: center; }\n #animation-curve-editor .content .animation-list .save-container .item-list ul label input {\n margin: 0px;\n margin-right: 5px; }\n #animation-curve-editor .content .animation-list .save-container .save-server {\n font-size: 12px;\n display: flex;\n background-color: #222222;\n padding-left: 10px;\n height: 20px; }\n #animation-curve-editor .content .animation-list .save-container .save-server p {\n margin: 0px; }\n #animation-curve-editor .content .animation-list .save-container .save-buttons {\n margin-top: 10px;\n display: flex;\n justify-content: space-evenly;\n margin-bottom: 10px; }\n #animation-curve-editor .content .animation-list .save-container .save-buttons p {\n height: 20px;\n margin: 0px;\n font-size: 12px;\n width: 65px;\n text-align: right;\n margin-right: 10px; }\n #animation-curve-editor .content .animation-list .save-container .save-buttons .buttonLine {\n margin-left: 0px;\n margin-top: 0px; }\n #animation-curve-editor .content .animation-list .save-container .save-buttons .buttonLine button {\n margin-top: 0px;\n font-family: \"acumin-pro-condensed\";\n padding-top: 1px; }\n #animation-curve-editor .content .animation-list .save-container .buttonLine {\n width: 105px;\n padding: 0px;\n display: block;\n margin-left: 75px;\n height: 20px;\n margin-top: 10px; }\n #animation-curve-editor .content .animation-list .save-container .buttonLine button {\n border: none;\n font-size: 12px;\n margin: 0px;\n background-color: #444444;\n height: 20px;\n width: 105px;\n font-family: \"acumin-pro-condensed\";\n padding-top: 1px; }\n #animation-curve-editor .content .animation-list .save-container .buttonLine:first-child {\n width: 105px; }\n #animation-curve-editor .content .animation-list .save-container .buttonLine:nth-child(2) {\n width: 60px; }\n #animation-curve-editor .content .animation-list .save-container .buttonLine:nth-child(2) button {\n width: 60px; }\n #animation-curve-editor .content .animation-list .save-container .textInputLine {\n display: flex; }\n #animation-curve-editor .content .animation-list .save-container .textInputLine .label {\n font-size: 12px;\n width: 75px;\n text-align: center;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .animation-list .save-container .textInputLine .value input {\n width: 127px;\n background-color: #444444;\n border: none;\n height: 20px;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .animation-list .new-animation {\n display: block;\n position: absolute;\n background-color: #111111;\n height: calc(100vh - 120px);\n z-index: 10; }\n #animation-curve-editor .content .animation-list .new-animation .sub-header {\n display: flex;\n align-items: start;\n width: 250px;\n justify-content: space-between; }\n #animation-curve-editor .content .animation-list .new-animation .sub-header .title {\n margin: 0px;\n font-size: 15pt; }\n #animation-curve-editor .content .animation-list .new-animation .sub-content {\n background-color: #111111;\n padding: 10px;\n display: inline-grid;\n grid-template-columns: 63px 127px;\n grid-template-rows: repeat(6, 30px);\n font-size: 12px; }\n #animation-curve-editor .content .animation-list .new-animation .sub-content .confirm-buttons {\n grid-column-start: 2;\n column-count: 2; }\n #animation-curve-editor .content .animation-list .new-animation .sub-content .confirm-buttons .buttonLine button {\n width: 52px;\n height: 20px;\n background-color: #444444;\n color: white;\n font-size: 12px;\n line-height: 11px;\n margin: 4px;\n font-size: 10px;\n font-family: \"acumin-pro-condensed\";\n border: none; }\n #animation-curve-editor .content .animation-list .object-tree {\n background-color: #111111; }\n #animation-curve-editor .content .animation-list .object-tree ul {\n list-style: none;\n padding-left: 0px;\n padding: 0px;\n margin: 0px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property {\n height: 20px;\n display: flex;\n flex-wrap: wrap;\n font-size: 12px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property.sub {\n height: auto; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property:before {\n content: \"\";\n background: none; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property p {\n display: inline;\n font-size: 12px;\n margin: 0px;\n flex: 8;\n cursor: pointer; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .spacer {\n width: 20px;\n height: 20px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .animation-bullet {\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_9___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: contain;\n color: #7a4ece;\n width: 10px;\n margin-left: 18px;\n margin-right: 2px;\n height: 20px;\n background-position-y: 5px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .animation-arrow {\n width: 30px;\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_24___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: 10px;\n background-position-y: center;\n background-position-x: 18px;\n cursor: pointer; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .animation-arrow.flip {\n transform: rotate(-90deg);\n background-position: 10px 13px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property.active {\n background-color: #444444; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .handle-indicator {\n width: 30px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .handle-indicator.show {\n display: block;\n background-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_27___ + ");\n background-repeat: no-repeat;\n background-color: transparent;\n background-size: 10px;\n color: white;\n background-position-x: 9px;\n background-position-y: 5px; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property .handle-indicator.hide {\n display: block; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property ul.sub-list {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 100%; }\n #animation-curve-editor .content .animation-list .object-tree ul li.property ul.sub-list .property {\n cursor: pointer; }\n #animation-curve-editor .content .animation-list .label-input {\n display: contents; }\n #animation-curve-editor .content .animation-list .label-input label {\n text-align: right; }\n #animation-curve-editor .content .animation-list .label-input input {\n margin-left: 5px;\n height: 20px;\n background-color: #444444;\n border: none;\n color: white;\n padding-left: 3px;\n font-size: 10px;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .animation-list .label-input input:focus {\n border-radius: 0px;\n outline: 1px solid #ccc; }\n #animation-curve-editor .content .animation-list .label-input select {\n height: 20px;\n margin-left: 5px;\n font-size: 10px;\n background-color: #444444;\n border: none;\n color: white;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .animation-list .label-input select:focus {\n border-radius: 0px;\n outline: 1px solid #ccc; }\n #animation-curve-editor .content .sample-chart .linear .draggable {\n cursor: move; }\n #animation-curve-editor .content .graph-chart {\n overflow: hidden;\n scroll-behavior: smooth;\n background-color: #111111;\n height: 364px;\n width: 782px; }\n #animation-curve-editor .content .graph-chart .switch-button {\n background-color: black;\n width: 30px;\n height: 33px;\n position: relative;\n z-index: 100;\n bottom: 33px;\n align-items: center;\n justify-content: center;\n display: flex;\n font-size: 12px;\n font-weight: bold;\n color: white; }\n #animation-curve-editor .content .graph-chart .linear {\n overflow: visible;\n border: 0px solid white;\n height: 100%;\n width: 100%;\n outline: none; }\n #animation-curve-editor .content .graph-chart .linear .svg-playhead {\n cursor: pointer; }\n #animation-curve-editor .content .graph-chart .linear svg {\n overflow: visible; }\n #animation-curve-editor .content .graph-chart .linear:focus {\n outline-color: transparent; }\n #animation-curve-editor .content .graph-chart .linear line {\n stroke: #555555;\n stroke-width: 0.2; }\n #animation-curve-editor .content .graph-chart .linear text {\n fill: #555555;\n font-family: \"acumin-pro-condensed\"; }\n #animation-curve-editor .content .graph-chart .linear .control-point {\n display: none; }\n #animation-curve-editor .content .graph-chart .linear .control-point.active {\n display: inline;\n stroke: #e9db1e;\n stroke-width: 0.2; }\n #animation-curve-editor .content .graph-chart .playhead-container {\n position: relative; }\n #animation-curve-editor .content .graph-chart .playhead-wrapper {\n left: 20px;\n bottom: 366px;\n position: relative; }\n #animation-curve-editor .content .graph-chart .playhead-scrollable {\n width: 100px;\n height: 33px;\n position: absolute;\n top: 335px;\n left: -39px; }\n #animation-curve-editor .content .graph-chart .playhead-handle {\n position: relative;\n top: 340px;\n width: 22px;\n height: 30px; }\n #animation-curve-editor .content .graph-chart .playhead-handle .playhead {\n width: 22px;\n background-color: transparent;\n color: #555555;\n text-align: center;\n font-size: 12px;\n position: absolute;\n top: 1px;\n cursor: pointer; }\n #animation-curve-editor .content .graph-chart .playhead-handle .playhead-circle {\n background-color: #ffffff;\n width: 22px;\n height: 22px;\n border-radius: 50%;\n position: absolute;\n top: 0; }\n #animation-curve-editor .content .graph-chart .playhead-line {\n width: 1px;\n height: 341px;\n background-color: #ffffff;\n position: absolute;\n margin-left: 9.5px; }\n #animation-curve-editor .buttonLine {\n height: 30px;\n align-items: center;\n justify-items: stretch; }\n #animation-curve-editor .buttonLine input[type=\"file\"] {\n display: none; }\n #animation-curve-editor .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 #animation-curve-editor .buttonLine .file-upload:hover {\n opacity: 1; }\n #animation-curve-editor .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #animation-curve-editor .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 cursor: pointer; }\n #animation-curve-editor .buttonLine button:hover {\n opacity: 1; }\n #animation-curve-editor .buttonLine button:active {\n background: #282828; }\n #animation-curve-editor .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n", ""]);
  10878. // Exports
  10879. module.exports = exports;
  10880. /***/ }),
  10881. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss":
  10882. /*!*********************************************************************************************************************************************************************************************************!*\
  10883. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!D:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss ***!
  10884. \*********************************************************************************************************************************************************************************************************/
  10885. /*! no static exports found */
  10886. /***/ (function(module, exports, __webpack_require__) {
  10887. // Imports
  10888. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  10889. exports = ___CSS_LOADER_API_IMPORT___(false);
  10890. // Module
  10891. exports.push([module.i, "#texture-editor {\n height: 100%;\n width: 100%;\n color: white;\n background-color: #1e1e1e;\n font-family: 'acumin-pro-condensed'; }\n #texture-editor .icon {\n width: 40px;\n height: 40px; }\n #texture-editor .icon.button {\n background-color: #333333; }\n #texture-editor .icon.button:hover {\n background-color: #4a4a4a;\n cursor: pointer; }\n #texture-editor .icon.button.active {\n background-color: #666666; }\n #texture-editor .icon.button:active {\n background-color: #837c7c; }\n #texture-editor .has-tooltip {\n display: inline-block; }\n #texture-editor .has-tooltip .tooltip {\n visibility: hidden;\n background-color: white;\n z-index: 1;\n position: absolute;\n opacity: 0;\n transition: opacity 0.5s;\n line-height: normal;\n font-size: 14px;\n padding: 0px 5px;\n color: black; }\n #texture-editor .has-tooltip:hover .tooltip {\n visibility: visible;\n opacity: 1; }\n #texture-editor #properties {\n width: 100%;\n height: 40px;\n display: flex;\n align-items: center;\n font-size: 12px;\n color: white;\n user-select: none;\n background-color: #333333; }\n #texture-editor #properties .tab {\n display: inline-flex;\n line-height: 40px;\n height: 40px;\n flex-shrink: 0;\n flex-grow: 0;\n border-right: 2px solid #1e1e1e;\n background-color: #333333; }\n #texture-editor #properties #left {\n overflow: hidden;\n height: 40px;\n flex-grow: 1;\n flex-shrink: 1;\n display: flex;\n flex-wrap: wrap; }\n #texture-editor #properties #left #dimensions-tab form {\n display: flex; }\n #texture-editor #properties #left #dimensions-tab label {\n margin-left: 15px;\n font-size: 15px;\n color: #afafaf; }\n #texture-editor #properties #left #dimensions-tab label input {\n width: 40px;\n height: 24px;\n background-color: #000000;\n color: #ffffff;\n border: 0;\n font-size: 12px;\n text-align: 'left';\n font-family: 'acumin-pro-condensed';\n font-size: 15px;\n padding-left: 8px; }\n #texture-editor #properties #left #dimensions-tab label:last-of-type {\n margin-right: 8px; }\n #texture-editor #properties #right-tab {\n margin-right: 0;\n flex-grow: 0;\n flex-shrink: 0; }\n #texture-editor #properties #right-tab input[type=\"file\"] {\n display: none; }\n #texture-editor #properties .pixel-data {\n width: 45px;\n color: #afafaf;\n display: flex;\n justify-content: space-between;\n font-size: 15px; }\n #texture-editor #properties .pixel-data:first-of-type {\n margin-left: 15px; }\n #texture-editor #properties .pixel-data:last-of-type {\n padding-right: 15px; }\n #texture-editor #properties .pixel-data .value {\n display: inline-block;\n width: 30px;\n color: white; }\n #texture-editor #toolbar {\n position: absolute;\n top: 60px;\n left: 0;\n width: 40px;\n display: flex;\n flex-direction: column;\n justify-content: left; }\n #texture-editor #toolbar #tools {\n display: flex;\n flex-direction: column; }\n #texture-editor #toolbar #add-tool {\n position: relative; }\n #texture-editor #toolbar #add-tool #add-tool-popup {\n background-color: #333333;\n width: 348px;\n margin-left: 40px;\n position: absolute;\n top: 0px;\n height: 40px;\n padding-left: 4px;\n line-height: 40px;\n user-select: none; }\n #texture-editor #toolbar #add-tool #add-tool-popup 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 cursor: pointer; }\n #texture-editor #toolbar #color {\n margin-top: 8px; }\n #texture-editor #toolbar #color #active-color-bg {\n border-radius: 50%;\n width: 20px;\n height: 20px;\n margin: 10px;\n position: relative;\n background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);\n background-size: 20px 20px;\n background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }\n #texture-editor #toolbar #color #active-color {\n width: 20px;\n height: 20px;\n position: absolute;\n top: 0;\n left: 0;\n border-radius: 50%; }\n #texture-editor #toolbar #color-picker {\n position: absolute;\n margin-left: 40px; }\n #texture-editor #channels-bar {\n position: absolute;\n top: 60px;\n right: 0;\n width: 80px;\n background: #666666;\n user-select: none; }\n #texture-editor #channels-bar .channel {\n color: white;\n border-bottom: 2px solid #232323;\n width: 80px;\n height: 40px;\n font-size: 16px;\n display: flex;\n align-items: center; }\n #texture-editor #channels-bar .channel.uneditable {\n background: #333333; }\n #texture-editor #channels-bar .channel:hover {\n cursor: pointer; }\n #texture-editor #channels-bar .channel:last-of-type {\n border-bottom: none; }\n #texture-editor #canvas-ui {\n width: 100%;\n height: calc(100% - 70px);\n outline: none; }\n #texture-editor #tool-ui {\n background-color: #333;\n position: absolute;\n right: 0;\n bottom: 30px; }\n #texture-editor #tool-ui label {\n display: flex;\n flex-direction: column;\n align-items: center; }\n #texture-editor #tool-ui input[type='range'] {\n background: #d3d3d3; }\n #texture-editor #bottom-bar {\n height: 30px;\n width: 100%;\n background-color: #333333;\n font-size: 14px;\n user-select: none;\n line-height: 30px;\n position: relative; }\n #texture-editor #bottom-bar #file-url {\n left: 30px;\n position: absolute; }\n #texture-editor #bottom-bar #mip-level {\n right: 30px;\n position: absolute; }\n", ""]);
  10892. // Exports
  10893. module.exports = exports;
  10894. /***/ }),
  10895. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/embedHost/embedHost.scss":
  10896. /*!**************************************************************************************************************************************************************!*\
  10897. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!D:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/embedHost/embedHost.scss ***!
  10898. \**************************************************************************************************************************************************************/
  10899. /*! no static exports found */
  10900. /***/ (function(module, exports, __webpack_require__) {
  10901. // Imports
  10902. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  10903. exports = ___CSS_LOADER_API_IMPORT___(false);
  10904. // Module
  10905. 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", ""]);
  10906. // Exports
  10907. module.exports = exports;
  10908. /***/ }),
  10909. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/sceneExplorer/sceneExplorer.scss":
  10910. /*!**********************************************************************************************************************************************************************!*\
  10911. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!D:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/sceneExplorer/sceneExplorer.scss ***!
  10912. \**********************************************************************************************************************************************************************/
  10913. /*! no static exports found */
  10914. /***/ (function(module, exports, __webpack_require__) {
  10915. // Imports
  10916. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  10917. exports = ___CSS_LOADER_API_IMPORT___(false);
  10918. // Module
  10919. 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 .targetedAnimationTools {\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 .targetedAnimationTools .extensions {\n width: 20px;\n grid-column: 2; }\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 20px auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .cameraTools .activeCamera {\n grid-column: 2; }\n #sceneExplorer .itemContainer .cameraTools .enableGizmo {\n grid-column: 3; }\n #sceneExplorer .itemContainer .cameraTools .extensions {\n width: 20px;\n grid-column: 4; }\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 .spriteTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .spriteTools .extensions {\n width: 20px;\n grid-column: 2; }\n #sceneExplorer .itemContainer .spriteManagerTools {\n grid-column: 2;\n display: grid;\n grid-template-columns: 1fr auto 5px;\n align-items: center; }\n #sceneExplorer .itemContainer .spriteManagerTools .extensions {\n width: 20px;\n grid-column: 2; }\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 .materialTools .icon {\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\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", ""]);
  10920. // Exports
  10921. module.exports = exports;
  10922. /***/ }),
  10923. /***/ "../../node_modules/css-loader/dist/runtime/api.js":
  10924. /*!***********************************************************************!*\
  10925. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/runtime/api.js ***!
  10926. \***********************************************************************/
  10927. /*! no static exports found */
  10928. /***/ (function(module, exports, __webpack_require__) {
  10929. "use strict";
  10930. /*
  10931. MIT License http://www.opensource.org/licenses/mit-license.php
  10932. Author Tobias Koppers @sokra
  10933. */
  10934. // css base code, injected by the css-loader
  10935. // eslint-disable-next-line func-names
  10936. module.exports = function (useSourceMap) {
  10937. var list = []; // return the list of modules as css string
  10938. list.toString = function toString() {
  10939. return this.map(function (item) {
  10940. var content = cssWithMappingToString(item, useSourceMap);
  10941. if (item[2]) {
  10942. return "@media ".concat(item[2], " {").concat(content, "}");
  10943. }
  10944. return content;
  10945. }).join('');
  10946. }; // import a list of modules into the list
  10947. // eslint-disable-next-line func-names
  10948. list.i = function (modules, mediaQuery, dedupe) {
  10949. if (typeof modules === 'string') {
  10950. // eslint-disable-next-line no-param-reassign
  10951. modules = [[null, modules, '']];
  10952. }
  10953. var alreadyImportedModules = {};
  10954. if (dedupe) {
  10955. for (var i = 0; i < this.length; i++) {
  10956. // eslint-disable-next-line prefer-destructuring
  10957. var id = this[i][0];
  10958. if (id != null) {
  10959. alreadyImportedModules[id] = true;
  10960. }
  10961. }
  10962. }
  10963. for (var _i = 0; _i < modules.length; _i++) {
  10964. var item = [].concat(modules[_i]);
  10965. if (dedupe && alreadyImportedModules[item[0]]) {
  10966. // eslint-disable-next-line no-continue
  10967. continue;
  10968. }
  10969. if (mediaQuery) {
  10970. if (!item[2]) {
  10971. item[2] = mediaQuery;
  10972. } else {
  10973. item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
  10974. }
  10975. }
  10976. list.push(item);
  10977. }
  10978. };
  10979. return list;
  10980. };
  10981. function cssWithMappingToString(item, useSourceMap) {
  10982. var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
  10983. var cssMapping = item[3];
  10984. if (!cssMapping) {
  10985. return content;
  10986. }
  10987. if (useSourceMap && typeof btoa === 'function') {
  10988. var sourceMapping = toComment(cssMapping);
  10989. var sourceURLs = cssMapping.sources.map(function (source) {
  10990. return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
  10991. });
  10992. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  10993. }
  10994. return [content].join('\n');
  10995. } // Adapted from convert-source-map (MIT)
  10996. function toComment(sourceMap) {
  10997. // eslint-disable-next-line no-undef
  10998. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  10999. var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
  11000. return "/*# ".concat(data, " */");
  11001. }
  11002. /***/ }),
  11003. /***/ "../../node_modules/css-loader/dist/runtime/getUrl.js":
  11004. /*!**************************************************************************!*\
  11005. !*** D:/Repos/Babylon.js/node_modules/css-loader/dist/runtime/getUrl.js ***!
  11006. \**************************************************************************/
  11007. /*! no static exports found */
  11008. /***/ (function(module, exports, __webpack_require__) {
  11009. "use strict";
  11010. module.exports = function (url, options) {
  11011. if (!options) {
  11012. // eslint-disable-next-line no-param-reassign
  11013. options = {};
  11014. } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
  11015. url = url && url.__esModule ? url.default : url;
  11016. if (typeof url !== 'string') {
  11017. return url;
  11018. } // If url is already wrapped in quotes, remove them
  11019. if (/^['"].*['"]$/.test(url)) {
  11020. // eslint-disable-next-line no-param-reassign
  11021. url = url.slice(1, -1);
  11022. }
  11023. if (options.hash) {
  11024. // eslint-disable-next-line no-param-reassign
  11025. url += options.hash;
  11026. } // Should url be wrapped?
  11027. // See https://drafts.csswg.org/css-values-3/#urls
  11028. if (/["'() \t\n]/.test(url) || options.needQuotes) {
  11029. return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, '\\n'), "\"");
  11030. }
  11031. return url;
  11032. };
  11033. /***/ }),
  11034. /***/ "../../node_modules/gif.js.optimized/dist/gif.js":
  11035. /*!*********************************************************************!*\
  11036. !*** D:/Repos/Babylon.js/node_modules/gif.js.optimized/dist/gif.js ***!
  11037. \*********************************************************************/
  11038. /*! no static exports found */
  11039. /***/ (function(module, exports, __webpack_require__) {
  11040. !function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,h=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1};n=i(1).EventEmitter,s=i(2),r=function(t){function e(t){var e,n,r;this.running=!1,this.options={},this.frames=[],this.groups=new Map,this.freeWorkers=[],this.activeWorkers=[],this.setOptions(t);for(n in i)r=i[n],null==(e=this.options)[n]&&(e[n]=r)}var i,n;return o(e,t),i={workerScript:"gif.worker.js",workers:2,repeat:0,background:"#fff",quality:10,width:null,height:null,transparent:null,debug:!1},n={delay:500,copy:!1},e.prototype.setOption=function(t,e){if(this.options[t]=e,null!=this._canvas&&("width"===t||"height"===t))return this._canvas[t]=e},e.prototype.setOptions=function(t){var e,i,n;i=[];for(e in t)a.call(t,e)&&(n=t[e],i.push(this.setOption(e,n)));return i},e.prototype.addFrame=function(t,e){var i,r,s;null==e&&(e={}),i={},i.transparent=this.options.transparent;for(s in n)i[s]=e[s]||n[s];if(null==this.options.width&&this.setOption("width",t.width),null==this.options.height&&this.setOption("height",t.height),"undefined"!=typeof ImageData&&null!==ImageData&&t instanceof ImageData)i.data=t.data;else if("undefined"!=typeof CanvasRenderingContext2D&&null!==CanvasRenderingContext2D&&t instanceof CanvasRenderingContext2D||"undefined"!=typeof WebGLRenderingContext&&null!==WebGLRenderingContext&&t instanceof WebGLRenderingContext)e.copy?i.data=this.getContextData(t):i.context=t;else{if(null==t.childNodes)throw new Error("Invalid image");e.copy?i.data=this.getImageData(t):i.image=t}return r=this.frames.length,r>0&&i.data&&(this.groups.has(i.data)?this.groups.get(i.data).push(r):this.groups.set(i.data,[r])),this.frames.push(i)},e.prototype.render=function(){var t,e,i,n;if(this.running)throw new Error("Already running");if(null==this.options.width||null==this.options.height)throw new Error("Width and height must be set prior to rendering");if(this.running=!0,this.nextFrame=0,this.finishedFrames=0,this.imageParts=function(){var e,i,n;for(n=[],t=e=0,i=this.frames.length;0<=i?e<i:e>i;t=0<=i?++e:--e)n.push(null);return n}.call(this),i=this.spawnWorkers(),this.options.globalPalette===!0)this.renderNextFrame();else for(t=e=0,n=i;0<=n?e<n:e>n;t=0<=n?++e:--e)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},e.prototype.abort=function(){for(var t;;){if(t=this.activeWorkers.shift(),null==t)break;this.log("killing active worker"),t.terminate()}return this.running=!1,this.emit("abort")},e.prototype.spawnWorkers=function(){var t,e,i;return t=Math.min(this.options.workers,this.frames.length),function(){i=[];for(var n=e=this.freeWorkers.length;e<=t?n<t:n>t;e<=t?n++:n--)i.push(n);return i}.apply(this).forEach(function(t){return function(e){var i;return t.log("spawning worker "+e),i=new Worker(t.options.workerScript),i.onmessage=function(e){return t.activeWorkers.splice(t.activeWorkers.indexOf(i),1),t.freeWorkers.push(i),t.frameFinished(e.data,!1)},t.freeWorkers.push(i)}}(this)),t},e.prototype.frameFinished=function(t,e){var i,n,r,s,o;if(this.finishedFrames++,e?(n=this.frames.indexOf(t),r=this.groups.get(t.data)[0],this.log("frame "+(n+1)+" is duplicate of "+r+" - "+this.activeWorkers.length+" active"),this.imageParts[n]={indexOfFirstInGroup:r}):(this.log("frame "+(t.index+1)+" finished - "+this.activeWorkers.length+" active"),this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[t.index]=t),this.options.globalPalette===!0&&!e&&(this.options.globalPalette=t.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(i=s=1,o=this.freeWorkers.length;1<=o?s<o:s>o;i=1<=o?++s:--s)this.renderNextFrame();return h.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},e.prototype.finishRendering=function(){var t,e,i,n,r,s,o,a,h,l,f,p,u,d,c,g,v,m,y,_;for(v=this.imageParts,r=s=0,l=v.length;s<l;r=++s)e=v[r],e.indexOfFirstInGroup&&(this.imageParts[r]=this.imageParts[e.indexOfFirstInGroup]);for(h=0,m=this.imageParts,o=0,f=m.length;o<f;o++)e=m[o],h+=(e.data.length-1)*e.pageSize+e.cursor;for(h+=e.pageSize-e.cursor,this.log("rendering finished - filesize "+Math.round(h/1e3)+"kb"),t=new Uint8Array(h),c=0,y=this.imageParts,a=0,p=y.length;a<p;a++)for(e=y[a],_=e.data,i=d=0,u=_.length;d<u;i=++d)g=_[i],t.set(g,c),c+=i===e.data.length-1?e.cursor:e.pageSize;return n=new Blob([t],{type:"image/gif"}),this.emit("finished",n,t)},e.prototype.renderNextFrame=function(){var t,e,i,n;if(0===this.freeWorkers.length)throw new Error("No free workers");if(!(this.nextFrame>=this.frames.length))return t=this.frames[this.nextFrame++],e=this.frames.indexOf(t),e>0&&this.groups.has(t.data)&&this.groups.get(t.data)[0]!==e?void setTimeout(function(e){return function(){return e.frameFinished(t,!0)}}(this),0):(n=this.freeWorkers.shift(),i=this.getTask(t),this.log("starting frame "+(i.index+1)+" of "+this.frames.length),this.activeWorkers.push(n),n.postMessage(i))},e.prototype.getContextData=function(t){return t.getImageData(0,0,this.options.width,this.options.height).data},e.prototype.getImageData=function(t){var e;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),e=this._canvas.getContext("2d"),e.setFill=this.options.background,e.fillRect(0,0,this.options.width,this.options.height),e.drawImage(t,0,0),this.getContextData(e)},e.prototype.getTask=function(t){var e,i;if(e=this.frames.indexOf(t),i={index:e,last:e===this.frames.length-1,delay:t.delay,transparent:t.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:!0},null!=t.data)i.data=t.data;else if(null!=t.context)i.data=this.getContextData(t.context);else{if(null==t.image)throw new Error("Invalid frame");i.data=this.getImageData(t.image)}return i},e.prototype.log=function(t){if(this.options.debug)return console.log(t)},e}(n),t.exports=r},function(t,e){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"==typeof t}function r(t){return"number"==typeof t}function s(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if(!r(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,i,r,a,h,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(i=this._events[t],o(i))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(s(i))for(a=Array.prototype.slice.call(arguments,1),l=i.slice(),r=l.length,h=0;h<r;h++)l[h].apply(this,a);return!0},i.prototype.addListener=function(t,e){var r;if(!n(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(r=o(this._maxListeners)?i.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(t,e){function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var r=!1;return i.listener=e,this.on(t,i),this},i.prototype.removeListener=function(t,e){var i,r,o,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],o=i.length,r=-1,i===e||n(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(i)){for(a=o;a-- >0;)if(i[a]===e||i[a].listener&&i[a].listener===e){r=a;break}if(r<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],n(i))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(n(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e){var i,n,r,s,o;o=navigator.userAgent.toLowerCase(),s=navigator.platform.toLowerCase(),i=o.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0],r="ie"===i[1]&&document.documentMode,n={name:"version"===i[1]?i[3]:i[1],version:r||parseFloat("opera"===i[1]&&i[4]?i[4]:i[2]),platform:{name:o.match(/ip(?:ad|od|hone)/)?"ios":(o.match(/(?:webos|android)/)||s.match(/mac|win|linux/)||["other"])[0]}},n[n.name]=!0,n[n.name+parseInt(n.version,10)]=!0,n.platform[n.platform.name]=!0,t.exports=n}])});
  11041. //# sourceMappingURL=gif.js.map
  11042. /***/ }),
  11043. /***/ "../../node_modules/lodash/_DataView.js":
  11044. /*!************************************************************!*\
  11045. !*** D:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  11046. \************************************************************/
  11047. /*! no static exports found */
  11048. /***/ (function(module, exports, __webpack_require__) {
  11049. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  11050. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11051. /* Built-in method references that are verified to be native. */
  11052. var DataView = getNative(root, 'DataView');
  11053. module.exports = DataView;
  11054. /***/ }),
  11055. /***/ "../../node_modules/lodash/_Hash.js":
  11056. /*!********************************************************!*\
  11057. !*** D:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  11058. \********************************************************/
  11059. /*! no static exports found */
  11060. /***/ (function(module, exports, __webpack_require__) {
  11061. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  11062. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  11063. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  11064. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  11065. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  11066. /**
  11067. * Creates a hash object.
  11068. *
  11069. * @private
  11070. * @constructor
  11071. * @param {Array} [entries] The key-value pairs to cache.
  11072. */
  11073. function Hash(entries) {
  11074. var index = -1,
  11075. length = entries == null ? 0 : entries.length;
  11076. this.clear();
  11077. while (++index < length) {
  11078. var entry = entries[index];
  11079. this.set(entry[0], entry[1]);
  11080. }
  11081. }
  11082. // Add methods to `Hash`.
  11083. Hash.prototype.clear = hashClear;
  11084. Hash.prototype['delete'] = hashDelete;
  11085. Hash.prototype.get = hashGet;
  11086. Hash.prototype.has = hashHas;
  11087. Hash.prototype.set = hashSet;
  11088. module.exports = Hash;
  11089. /***/ }),
  11090. /***/ "../../node_modules/lodash/_ListCache.js":
  11091. /*!*************************************************************!*\
  11092. !*** D:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  11093. \*************************************************************/
  11094. /*! no static exports found */
  11095. /***/ (function(module, exports, __webpack_require__) {
  11096. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  11097. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  11098. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  11099. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  11100. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  11101. /**
  11102. * Creates an list cache object.
  11103. *
  11104. * @private
  11105. * @constructor
  11106. * @param {Array} [entries] The key-value pairs to cache.
  11107. */
  11108. function ListCache(entries) {
  11109. var index = -1,
  11110. length = entries == null ? 0 : entries.length;
  11111. this.clear();
  11112. while (++index < length) {
  11113. var entry = entries[index];
  11114. this.set(entry[0], entry[1]);
  11115. }
  11116. }
  11117. // Add methods to `ListCache`.
  11118. ListCache.prototype.clear = listCacheClear;
  11119. ListCache.prototype['delete'] = listCacheDelete;
  11120. ListCache.prototype.get = listCacheGet;
  11121. ListCache.prototype.has = listCacheHas;
  11122. ListCache.prototype.set = listCacheSet;
  11123. module.exports = ListCache;
  11124. /***/ }),
  11125. /***/ "../../node_modules/lodash/_Map.js":
  11126. /*!*******************************************************!*\
  11127. !*** D:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  11128. \*******************************************************/
  11129. /*! no static exports found */
  11130. /***/ (function(module, exports, __webpack_require__) {
  11131. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  11132. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11133. /* Built-in method references that are verified to be native. */
  11134. var Map = getNative(root, 'Map');
  11135. module.exports = Map;
  11136. /***/ }),
  11137. /***/ "../../node_modules/lodash/_MapCache.js":
  11138. /*!************************************************************!*\
  11139. !*** D:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  11140. \************************************************************/
  11141. /*! no static exports found */
  11142. /***/ (function(module, exports, __webpack_require__) {
  11143. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  11144. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  11145. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  11146. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  11147. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  11148. /**
  11149. * Creates a map cache object to store key-value pairs.
  11150. *
  11151. * @private
  11152. * @constructor
  11153. * @param {Array} [entries] The key-value pairs to cache.
  11154. */
  11155. function MapCache(entries) {
  11156. var index = -1,
  11157. length = entries == null ? 0 : entries.length;
  11158. this.clear();
  11159. while (++index < length) {
  11160. var entry = entries[index];
  11161. this.set(entry[0], entry[1]);
  11162. }
  11163. }
  11164. // Add methods to `MapCache`.
  11165. MapCache.prototype.clear = mapCacheClear;
  11166. MapCache.prototype['delete'] = mapCacheDelete;
  11167. MapCache.prototype.get = mapCacheGet;
  11168. MapCache.prototype.has = mapCacheHas;
  11169. MapCache.prototype.set = mapCacheSet;
  11170. module.exports = MapCache;
  11171. /***/ }),
  11172. /***/ "../../node_modules/lodash/_Promise.js":
  11173. /*!***********************************************************!*\
  11174. !*** D:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  11175. \***********************************************************/
  11176. /*! no static exports found */
  11177. /***/ (function(module, exports, __webpack_require__) {
  11178. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  11179. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11180. /* Built-in method references that are verified to be native. */
  11181. var Promise = getNative(root, 'Promise');
  11182. module.exports = Promise;
  11183. /***/ }),
  11184. /***/ "../../node_modules/lodash/_Set.js":
  11185. /*!*******************************************************!*\
  11186. !*** D:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  11187. \*******************************************************/
  11188. /*! no static exports found */
  11189. /***/ (function(module, exports, __webpack_require__) {
  11190. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  11191. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11192. /* Built-in method references that are verified to be native. */
  11193. var Set = getNative(root, 'Set');
  11194. module.exports = Set;
  11195. /***/ }),
  11196. /***/ "../../node_modules/lodash/_SetCache.js":
  11197. /*!************************************************************!*\
  11198. !*** D:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  11199. \************************************************************/
  11200. /*! no static exports found */
  11201. /***/ (function(module, exports, __webpack_require__) {
  11202. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  11203. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  11204. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  11205. /**
  11206. *
  11207. * Creates an array cache object to store unique values.
  11208. *
  11209. * @private
  11210. * @constructor
  11211. * @param {Array} [values] The values to cache.
  11212. */
  11213. function SetCache(values) {
  11214. var index = -1,
  11215. length = values == null ? 0 : values.length;
  11216. this.__data__ = new MapCache;
  11217. while (++index < length) {
  11218. this.add(values[index]);
  11219. }
  11220. }
  11221. // Add methods to `SetCache`.
  11222. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  11223. SetCache.prototype.has = setCacheHas;
  11224. module.exports = SetCache;
  11225. /***/ }),
  11226. /***/ "../../node_modules/lodash/_Stack.js":
  11227. /*!*********************************************************!*\
  11228. !*** D:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  11229. \*********************************************************/
  11230. /*! no static exports found */
  11231. /***/ (function(module, exports, __webpack_require__) {
  11232. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  11233. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  11234. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  11235. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  11236. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  11237. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  11238. /**
  11239. * Creates a stack cache object to store key-value pairs.
  11240. *
  11241. * @private
  11242. * @constructor
  11243. * @param {Array} [entries] The key-value pairs to cache.
  11244. */
  11245. function Stack(entries) {
  11246. var data = this.__data__ = new ListCache(entries);
  11247. this.size = data.size;
  11248. }
  11249. // Add methods to `Stack`.
  11250. Stack.prototype.clear = stackClear;
  11251. Stack.prototype['delete'] = stackDelete;
  11252. Stack.prototype.get = stackGet;
  11253. Stack.prototype.has = stackHas;
  11254. Stack.prototype.set = stackSet;
  11255. module.exports = Stack;
  11256. /***/ }),
  11257. /***/ "../../node_modules/lodash/_Symbol.js":
  11258. /*!**********************************************************!*\
  11259. !*** D:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  11260. \**********************************************************/
  11261. /*! no static exports found */
  11262. /***/ (function(module, exports, __webpack_require__) {
  11263. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11264. /** Built-in value references. */
  11265. var Symbol = root.Symbol;
  11266. module.exports = Symbol;
  11267. /***/ }),
  11268. /***/ "../../node_modules/lodash/_Uint8Array.js":
  11269. /*!**************************************************************!*\
  11270. !*** D:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  11271. \**************************************************************/
  11272. /*! no static exports found */
  11273. /***/ (function(module, exports, __webpack_require__) {
  11274. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11275. /** Built-in value references. */
  11276. var Uint8Array = root.Uint8Array;
  11277. module.exports = Uint8Array;
  11278. /***/ }),
  11279. /***/ "../../node_modules/lodash/_WeakMap.js":
  11280. /*!***********************************************************!*\
  11281. !*** D:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  11282. \***********************************************************/
  11283. /*! no static exports found */
  11284. /***/ (function(module, exports, __webpack_require__) {
  11285. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  11286. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11287. /* Built-in method references that are verified to be native. */
  11288. var WeakMap = getNative(root, 'WeakMap');
  11289. module.exports = WeakMap;
  11290. /***/ }),
  11291. /***/ "../../node_modules/lodash/_apply.js":
  11292. /*!*********************************************************!*\
  11293. !*** D:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  11294. \*********************************************************/
  11295. /*! no static exports found */
  11296. /***/ (function(module, exports) {
  11297. /**
  11298. * A faster alternative to `Function#apply`, this function invokes `func`
  11299. * with the `this` binding of `thisArg` and the arguments of `args`.
  11300. *
  11301. * @private
  11302. * @param {Function} func The function to invoke.
  11303. * @param {*} thisArg The `this` binding of `func`.
  11304. * @param {Array} args The arguments to invoke `func` with.
  11305. * @returns {*} Returns the result of `func`.
  11306. */
  11307. function apply(func, thisArg, args) {
  11308. switch (args.length) {
  11309. case 0: return func.call(thisArg);
  11310. case 1: return func.call(thisArg, args[0]);
  11311. case 2: return func.call(thisArg, args[0], args[1]);
  11312. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  11313. }
  11314. return func.apply(thisArg, args);
  11315. }
  11316. module.exports = apply;
  11317. /***/ }),
  11318. /***/ "../../node_modules/lodash/_arrayEach.js":
  11319. /*!*************************************************************!*\
  11320. !*** D:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  11321. \*************************************************************/
  11322. /*! no static exports found */
  11323. /***/ (function(module, exports) {
  11324. /**
  11325. * A specialized version of `_.forEach` for arrays without support for
  11326. * iteratee shorthands.
  11327. *
  11328. * @private
  11329. * @param {Array} [array] The array to iterate over.
  11330. * @param {Function} iteratee The function invoked per iteration.
  11331. * @returns {Array} Returns `array`.
  11332. */
  11333. function arrayEach(array, iteratee) {
  11334. var index = -1,
  11335. length = array == null ? 0 : array.length;
  11336. while (++index < length) {
  11337. if (iteratee(array[index], index, array) === false) {
  11338. break;
  11339. }
  11340. }
  11341. return array;
  11342. }
  11343. module.exports = arrayEach;
  11344. /***/ }),
  11345. /***/ "../../node_modules/lodash/_arrayFilter.js":
  11346. /*!***************************************************************!*\
  11347. !*** D:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  11348. \***************************************************************/
  11349. /*! no static exports found */
  11350. /***/ (function(module, exports) {
  11351. /**
  11352. * A specialized version of `_.filter` for arrays without support for
  11353. * iteratee shorthands.
  11354. *
  11355. * @private
  11356. * @param {Array} [array] The array to iterate over.
  11357. * @param {Function} predicate The function invoked per iteration.
  11358. * @returns {Array} Returns the new filtered array.
  11359. */
  11360. function arrayFilter(array, predicate) {
  11361. var index = -1,
  11362. length = array == null ? 0 : array.length,
  11363. resIndex = 0,
  11364. result = [];
  11365. while (++index < length) {
  11366. var value = array[index];
  11367. if (predicate(value, index, array)) {
  11368. result[resIndex++] = value;
  11369. }
  11370. }
  11371. return result;
  11372. }
  11373. module.exports = arrayFilter;
  11374. /***/ }),
  11375. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  11376. /*!*****************************************************************!*\
  11377. !*** D:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  11378. \*****************************************************************/
  11379. /*! no static exports found */
  11380. /***/ (function(module, exports, __webpack_require__) {
  11381. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  11382. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  11383. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11384. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11385. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  11386. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  11387. /** Used for built-in method references. */
  11388. var objectProto = Object.prototype;
  11389. /** Used to check objects for own properties. */
  11390. var hasOwnProperty = objectProto.hasOwnProperty;
  11391. /**
  11392. * Creates an array of the enumerable property names of the array-like `value`.
  11393. *
  11394. * @private
  11395. * @param {*} value The value to query.
  11396. * @param {boolean} inherited Specify returning inherited property names.
  11397. * @returns {Array} Returns the array of property names.
  11398. */
  11399. function arrayLikeKeys(value, inherited) {
  11400. var isArr = isArray(value),
  11401. isArg = !isArr && isArguments(value),
  11402. isBuff = !isArr && !isArg && isBuffer(value),
  11403. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  11404. skipIndexes = isArr || isArg || isBuff || isType,
  11405. result = skipIndexes ? baseTimes(value.length, String) : [],
  11406. length = result.length;
  11407. for (var key in value) {
  11408. if ((inherited || hasOwnProperty.call(value, key)) &&
  11409. !(skipIndexes && (
  11410. // Safari 9 has enumerable `arguments.length` in strict mode.
  11411. key == 'length' ||
  11412. // Node.js 0.10 has enumerable non-index properties on buffers.
  11413. (isBuff && (key == 'offset' || key == 'parent')) ||
  11414. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  11415. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  11416. // Skip index properties.
  11417. isIndex(key, length)
  11418. ))) {
  11419. result.push(key);
  11420. }
  11421. }
  11422. return result;
  11423. }
  11424. module.exports = arrayLikeKeys;
  11425. /***/ }),
  11426. /***/ "../../node_modules/lodash/_arrayMap.js":
  11427. /*!************************************************************!*\
  11428. !*** D:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  11429. \************************************************************/
  11430. /*! no static exports found */
  11431. /***/ (function(module, exports) {
  11432. /**
  11433. * A specialized version of `_.map` for arrays without support for iteratee
  11434. * shorthands.
  11435. *
  11436. * @private
  11437. * @param {Array} [array] The array to iterate over.
  11438. * @param {Function} iteratee The function invoked per iteration.
  11439. * @returns {Array} Returns the new mapped array.
  11440. */
  11441. function arrayMap(array, iteratee) {
  11442. var index = -1,
  11443. length = array == null ? 0 : array.length,
  11444. result = Array(length);
  11445. while (++index < length) {
  11446. result[index] = iteratee(array[index], index, array);
  11447. }
  11448. return result;
  11449. }
  11450. module.exports = arrayMap;
  11451. /***/ }),
  11452. /***/ "../../node_modules/lodash/_arrayPush.js":
  11453. /*!*************************************************************!*\
  11454. !*** D:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  11455. \*************************************************************/
  11456. /*! no static exports found */
  11457. /***/ (function(module, exports) {
  11458. /**
  11459. * Appends the elements of `values` to `array`.
  11460. *
  11461. * @private
  11462. * @param {Array} array The array to modify.
  11463. * @param {Array} values The values to append.
  11464. * @returns {Array} Returns `array`.
  11465. */
  11466. function arrayPush(array, values) {
  11467. var index = -1,
  11468. length = values.length,
  11469. offset = array.length;
  11470. while (++index < length) {
  11471. array[offset + index] = values[index];
  11472. }
  11473. return array;
  11474. }
  11475. module.exports = arrayPush;
  11476. /***/ }),
  11477. /***/ "../../node_modules/lodash/_arraySome.js":
  11478. /*!*************************************************************!*\
  11479. !*** D:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  11480. \*************************************************************/
  11481. /*! no static exports found */
  11482. /***/ (function(module, exports) {
  11483. /**
  11484. * A specialized version of `_.some` for arrays without support for iteratee
  11485. * shorthands.
  11486. *
  11487. * @private
  11488. * @param {Array} [array] The array to iterate over.
  11489. * @param {Function} predicate The function invoked per iteration.
  11490. * @returns {boolean} Returns `true` if any element passes the predicate check,
  11491. * else `false`.
  11492. */
  11493. function arraySome(array, predicate) {
  11494. var index = -1,
  11495. length = array == null ? 0 : array.length;
  11496. while (++index < length) {
  11497. if (predicate(array[index], index, array)) {
  11498. return true;
  11499. }
  11500. }
  11501. return false;
  11502. }
  11503. module.exports = arraySome;
  11504. /***/ }),
  11505. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  11506. /*!********************************************************************!*\
  11507. !*** D:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  11508. \********************************************************************/
  11509. /*! no static exports found */
  11510. /***/ (function(module, exports, __webpack_require__) {
  11511. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  11512. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  11513. /**
  11514. * This function is like `assignValue` except that it doesn't assign
  11515. * `undefined` values.
  11516. *
  11517. * @private
  11518. * @param {Object} object The object to modify.
  11519. * @param {string} key The key of the property to assign.
  11520. * @param {*} value The value to assign.
  11521. */
  11522. function assignMergeValue(object, key, value) {
  11523. if ((value !== undefined && !eq(object[key], value)) ||
  11524. (value === undefined && !(key in object))) {
  11525. baseAssignValue(object, key, value);
  11526. }
  11527. }
  11528. module.exports = assignMergeValue;
  11529. /***/ }),
  11530. /***/ "../../node_modules/lodash/_assignValue.js":
  11531. /*!***************************************************************!*\
  11532. !*** D:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  11533. \***************************************************************/
  11534. /*! no static exports found */
  11535. /***/ (function(module, exports, __webpack_require__) {
  11536. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  11537. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  11538. /** Used for built-in method references. */
  11539. var objectProto = Object.prototype;
  11540. /** Used to check objects for own properties. */
  11541. var hasOwnProperty = objectProto.hasOwnProperty;
  11542. /**
  11543. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  11544. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11545. * for equality comparisons.
  11546. *
  11547. * @private
  11548. * @param {Object} object The object to modify.
  11549. * @param {string} key The key of the property to assign.
  11550. * @param {*} value The value to assign.
  11551. */
  11552. function assignValue(object, key, value) {
  11553. var objValue = object[key];
  11554. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  11555. (value === undefined && !(key in object))) {
  11556. baseAssignValue(object, key, value);
  11557. }
  11558. }
  11559. module.exports = assignValue;
  11560. /***/ }),
  11561. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  11562. /*!****************************************************************!*\
  11563. !*** D:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  11564. \****************************************************************/
  11565. /*! no static exports found */
  11566. /***/ (function(module, exports, __webpack_require__) {
  11567. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  11568. /**
  11569. * Gets the index at which the `key` is found in `array` of key-value pairs.
  11570. *
  11571. * @private
  11572. * @param {Array} array The array to inspect.
  11573. * @param {*} key The key to search for.
  11574. * @returns {number} Returns the index of the matched value, else `-1`.
  11575. */
  11576. function assocIndexOf(array, key) {
  11577. var length = array.length;
  11578. while (length--) {
  11579. if (eq(array[length][0], key)) {
  11580. return length;
  11581. }
  11582. }
  11583. return -1;
  11584. }
  11585. module.exports = assocIndexOf;
  11586. /***/ }),
  11587. /***/ "../../node_modules/lodash/_baseAssign.js":
  11588. /*!**************************************************************!*\
  11589. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  11590. \**************************************************************/
  11591. /*! no static exports found */
  11592. /***/ (function(module, exports, __webpack_require__) {
  11593. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  11594. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  11595. /**
  11596. * The base implementation of `_.assign` without support for multiple sources
  11597. * or `customizer` functions.
  11598. *
  11599. * @private
  11600. * @param {Object} object The destination object.
  11601. * @param {Object} source The source object.
  11602. * @returns {Object} Returns `object`.
  11603. */
  11604. function baseAssign(object, source) {
  11605. return object && copyObject(source, keys(source), object);
  11606. }
  11607. module.exports = baseAssign;
  11608. /***/ }),
  11609. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  11610. /*!****************************************************************!*\
  11611. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  11612. \****************************************************************/
  11613. /*! no static exports found */
  11614. /***/ (function(module, exports, __webpack_require__) {
  11615. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  11616. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  11617. /**
  11618. * The base implementation of `_.assignIn` without support for multiple sources
  11619. * or `customizer` functions.
  11620. *
  11621. * @private
  11622. * @param {Object} object The destination object.
  11623. * @param {Object} source The source object.
  11624. * @returns {Object} Returns `object`.
  11625. */
  11626. function baseAssignIn(object, source) {
  11627. return object && copyObject(source, keysIn(source), object);
  11628. }
  11629. module.exports = baseAssignIn;
  11630. /***/ }),
  11631. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  11632. /*!*******************************************************************!*\
  11633. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  11634. \*******************************************************************/
  11635. /*! no static exports found */
  11636. /***/ (function(module, exports, __webpack_require__) {
  11637. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  11638. /**
  11639. * The base implementation of `assignValue` and `assignMergeValue` without
  11640. * value checks.
  11641. *
  11642. * @private
  11643. * @param {Object} object The object to modify.
  11644. * @param {string} key The key of the property to assign.
  11645. * @param {*} value The value to assign.
  11646. */
  11647. function baseAssignValue(object, key, value) {
  11648. if (key == '__proto__' && defineProperty) {
  11649. defineProperty(object, key, {
  11650. 'configurable': true,
  11651. 'enumerable': true,
  11652. 'value': value,
  11653. 'writable': true
  11654. });
  11655. } else {
  11656. object[key] = value;
  11657. }
  11658. }
  11659. module.exports = baseAssignValue;
  11660. /***/ }),
  11661. /***/ "../../node_modules/lodash/_baseClone.js":
  11662. /*!*************************************************************!*\
  11663. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  11664. \*************************************************************/
  11665. /*! no static exports found */
  11666. /***/ (function(module, exports, __webpack_require__) {
  11667. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  11668. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  11669. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11670. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  11671. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  11672. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  11673. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  11674. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  11675. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  11676. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  11677. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  11678. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  11679. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  11680. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  11681. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  11682. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11683. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11684. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  11685. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11686. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  11687. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  11688. /** Used to compose bitmasks for cloning. */
  11689. var CLONE_DEEP_FLAG = 1,
  11690. CLONE_FLAT_FLAG = 2,
  11691. CLONE_SYMBOLS_FLAG = 4;
  11692. /** `Object#toString` result references. */
  11693. var argsTag = '[object Arguments]',
  11694. arrayTag = '[object Array]',
  11695. boolTag = '[object Boolean]',
  11696. dateTag = '[object Date]',
  11697. errorTag = '[object Error]',
  11698. funcTag = '[object Function]',
  11699. genTag = '[object GeneratorFunction]',
  11700. mapTag = '[object Map]',
  11701. numberTag = '[object Number]',
  11702. objectTag = '[object Object]',
  11703. regexpTag = '[object RegExp]',
  11704. setTag = '[object Set]',
  11705. stringTag = '[object String]',
  11706. symbolTag = '[object Symbol]',
  11707. weakMapTag = '[object WeakMap]';
  11708. var arrayBufferTag = '[object ArrayBuffer]',
  11709. dataViewTag = '[object DataView]',
  11710. float32Tag = '[object Float32Array]',
  11711. float64Tag = '[object Float64Array]',
  11712. int8Tag = '[object Int8Array]',
  11713. int16Tag = '[object Int16Array]',
  11714. int32Tag = '[object Int32Array]',
  11715. uint8Tag = '[object Uint8Array]',
  11716. uint8ClampedTag = '[object Uint8ClampedArray]',
  11717. uint16Tag = '[object Uint16Array]',
  11718. uint32Tag = '[object Uint32Array]';
  11719. /** Used to identify `toStringTag` values supported by `_.clone`. */
  11720. var cloneableTags = {};
  11721. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  11722. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  11723. cloneableTags[boolTag] = cloneableTags[dateTag] =
  11724. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  11725. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  11726. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  11727. cloneableTags[numberTag] = cloneableTags[objectTag] =
  11728. cloneableTags[regexpTag] = cloneableTags[setTag] =
  11729. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  11730. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  11731. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  11732. cloneableTags[errorTag] = cloneableTags[funcTag] =
  11733. cloneableTags[weakMapTag] = false;
  11734. /**
  11735. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  11736. * traversed objects.
  11737. *
  11738. * @private
  11739. * @param {*} value The value to clone.
  11740. * @param {boolean} bitmask The bitmask flags.
  11741. * 1 - Deep clone
  11742. * 2 - Flatten inherited properties
  11743. * 4 - Clone symbols
  11744. * @param {Function} [customizer] The function to customize cloning.
  11745. * @param {string} [key] The key of `value`.
  11746. * @param {Object} [object] The parent object of `value`.
  11747. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  11748. * @returns {*} Returns the cloned value.
  11749. */
  11750. function baseClone(value, bitmask, customizer, key, object, stack) {
  11751. var result,
  11752. isDeep = bitmask & CLONE_DEEP_FLAG,
  11753. isFlat = bitmask & CLONE_FLAT_FLAG,
  11754. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  11755. if (customizer) {
  11756. result = object ? customizer(value, key, object, stack) : customizer(value);
  11757. }
  11758. if (result !== undefined) {
  11759. return result;
  11760. }
  11761. if (!isObject(value)) {
  11762. return value;
  11763. }
  11764. var isArr = isArray(value);
  11765. if (isArr) {
  11766. result = initCloneArray(value);
  11767. if (!isDeep) {
  11768. return copyArray(value, result);
  11769. }
  11770. } else {
  11771. var tag = getTag(value),
  11772. isFunc = tag == funcTag || tag == genTag;
  11773. if (isBuffer(value)) {
  11774. return cloneBuffer(value, isDeep);
  11775. }
  11776. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  11777. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  11778. if (!isDeep) {
  11779. return isFlat
  11780. ? copySymbolsIn(value, baseAssignIn(result, value))
  11781. : copySymbols(value, baseAssign(result, value));
  11782. }
  11783. } else {
  11784. if (!cloneableTags[tag]) {
  11785. return object ? value : {};
  11786. }
  11787. result = initCloneByTag(value, tag, isDeep);
  11788. }
  11789. }
  11790. // Check for circular references and return its corresponding clone.
  11791. stack || (stack = new Stack);
  11792. var stacked = stack.get(value);
  11793. if (stacked) {
  11794. return stacked;
  11795. }
  11796. stack.set(value, result);
  11797. if (isSet(value)) {
  11798. value.forEach(function(subValue) {
  11799. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  11800. });
  11801. } else if (isMap(value)) {
  11802. value.forEach(function(subValue, key) {
  11803. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  11804. });
  11805. }
  11806. var keysFunc = isFull
  11807. ? (isFlat ? getAllKeysIn : getAllKeys)
  11808. : (isFlat ? keysIn : keys);
  11809. var props = isArr ? undefined : keysFunc(value);
  11810. arrayEach(props || value, function(subValue, key) {
  11811. if (props) {
  11812. key = subValue;
  11813. subValue = value[key];
  11814. }
  11815. // Recursively populate clone (susceptible to call stack limits).
  11816. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  11817. });
  11818. return result;
  11819. }
  11820. module.exports = baseClone;
  11821. /***/ }),
  11822. /***/ "../../node_modules/lodash/_baseCreate.js":
  11823. /*!**************************************************************!*\
  11824. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  11825. \**************************************************************/
  11826. /*! no static exports found */
  11827. /***/ (function(module, exports, __webpack_require__) {
  11828. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  11829. /** Built-in value references. */
  11830. var objectCreate = Object.create;
  11831. /**
  11832. * The base implementation of `_.create` without support for assigning
  11833. * properties to the created object.
  11834. *
  11835. * @private
  11836. * @param {Object} proto The object to inherit from.
  11837. * @returns {Object} Returns the new object.
  11838. */
  11839. var baseCreate = (function() {
  11840. function object() {}
  11841. return function(proto) {
  11842. if (!isObject(proto)) {
  11843. return {};
  11844. }
  11845. if (objectCreate) {
  11846. return objectCreate(proto);
  11847. }
  11848. object.prototype = proto;
  11849. var result = new object;
  11850. object.prototype = undefined;
  11851. return result;
  11852. };
  11853. }());
  11854. module.exports = baseCreate;
  11855. /***/ }),
  11856. /***/ "../../node_modules/lodash/_baseEach.js":
  11857. /*!************************************************************!*\
  11858. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  11859. \************************************************************/
  11860. /*! no static exports found */
  11861. /***/ (function(module, exports, __webpack_require__) {
  11862. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  11863. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  11864. /**
  11865. * The base implementation of `_.forEach` without support for iteratee shorthands.
  11866. *
  11867. * @private
  11868. * @param {Array|Object} collection The collection to iterate over.
  11869. * @param {Function} iteratee The function invoked per iteration.
  11870. * @returns {Array|Object} Returns `collection`.
  11871. */
  11872. var baseEach = createBaseEach(baseForOwn);
  11873. module.exports = baseEach;
  11874. /***/ }),
  11875. /***/ "../../node_modules/lodash/_baseFor.js":
  11876. /*!***********************************************************!*\
  11877. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  11878. \***********************************************************/
  11879. /*! no static exports found */
  11880. /***/ (function(module, exports, __webpack_require__) {
  11881. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  11882. /**
  11883. * The base implementation of `baseForOwn` which iterates over `object`
  11884. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  11885. * Iteratee functions may exit iteration early by explicitly returning `false`.
  11886. *
  11887. * @private
  11888. * @param {Object} object The object to iterate over.
  11889. * @param {Function} iteratee The function invoked per iteration.
  11890. * @param {Function} keysFunc The function to get the keys of `object`.
  11891. * @returns {Object} Returns `object`.
  11892. */
  11893. var baseFor = createBaseFor();
  11894. module.exports = baseFor;
  11895. /***/ }),
  11896. /***/ "../../node_modules/lodash/_baseForOwn.js":
  11897. /*!**************************************************************!*\
  11898. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  11899. \**************************************************************/
  11900. /*! no static exports found */
  11901. /***/ (function(module, exports, __webpack_require__) {
  11902. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  11903. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  11904. /**
  11905. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  11906. *
  11907. * @private
  11908. * @param {Object} object The object to iterate over.
  11909. * @param {Function} iteratee The function invoked per iteration.
  11910. * @returns {Object} Returns `object`.
  11911. */
  11912. function baseForOwn(object, iteratee) {
  11913. return object && baseFor(object, iteratee, keys);
  11914. }
  11915. module.exports = baseForOwn;
  11916. /***/ }),
  11917. /***/ "../../node_modules/lodash/_baseGet.js":
  11918. /*!***********************************************************!*\
  11919. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  11920. \***********************************************************/
  11921. /*! no static exports found */
  11922. /***/ (function(module, exports, __webpack_require__) {
  11923. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  11924. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11925. /**
  11926. * The base implementation of `_.get` without support for default values.
  11927. *
  11928. * @private
  11929. * @param {Object} object The object to query.
  11930. * @param {Array|string} path The path of the property to get.
  11931. * @returns {*} Returns the resolved value.
  11932. */
  11933. function baseGet(object, path) {
  11934. path = castPath(path, object);
  11935. var index = 0,
  11936. length = path.length;
  11937. while (object != null && index < length) {
  11938. object = object[toKey(path[index++])];
  11939. }
  11940. return (index && index == length) ? object : undefined;
  11941. }
  11942. module.exports = baseGet;
  11943. /***/ }),
  11944. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  11945. /*!******************************************************************!*\
  11946. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  11947. \******************************************************************/
  11948. /*! no static exports found */
  11949. /***/ (function(module, exports, __webpack_require__) {
  11950. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  11951. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  11952. /**
  11953. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  11954. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  11955. * symbols of `object`.
  11956. *
  11957. * @private
  11958. * @param {Object} object The object to query.
  11959. * @param {Function} keysFunc The function to get the keys of `object`.
  11960. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  11961. * @returns {Array} Returns the array of property names and symbols.
  11962. */
  11963. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  11964. var result = keysFunc(object);
  11965. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  11966. }
  11967. module.exports = baseGetAllKeys;
  11968. /***/ }),
  11969. /***/ "../../node_modules/lodash/_baseGetTag.js":
  11970. /*!**************************************************************!*\
  11971. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  11972. \**************************************************************/
  11973. /*! no static exports found */
  11974. /***/ (function(module, exports, __webpack_require__) {
  11975. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11976. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  11977. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  11978. /** `Object#toString` result references. */
  11979. var nullTag = '[object Null]',
  11980. undefinedTag = '[object Undefined]';
  11981. /** Built-in value references. */
  11982. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  11983. /**
  11984. * The base implementation of `getTag` without fallbacks for buggy environments.
  11985. *
  11986. * @private
  11987. * @param {*} value The value to query.
  11988. * @returns {string} Returns the `toStringTag`.
  11989. */
  11990. function baseGetTag(value) {
  11991. if (value == null) {
  11992. return value === undefined ? undefinedTag : nullTag;
  11993. }
  11994. return (symToStringTag && symToStringTag in Object(value))
  11995. ? getRawTag(value)
  11996. : objectToString(value);
  11997. }
  11998. module.exports = baseGetTag;
  11999. /***/ }),
  12000. /***/ "../../node_modules/lodash/_baseHasIn.js":
  12001. /*!*************************************************************!*\
  12002. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  12003. \*************************************************************/
  12004. /*! no static exports found */
  12005. /***/ (function(module, exports) {
  12006. /**
  12007. * The base implementation of `_.hasIn` without support for deep paths.
  12008. *
  12009. * @private
  12010. * @param {Object} [object] The object to query.
  12011. * @param {Array|string} key The key to check.
  12012. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  12013. */
  12014. function baseHasIn(object, key) {
  12015. return object != null && key in Object(object);
  12016. }
  12017. module.exports = baseHasIn;
  12018. /***/ }),
  12019. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  12020. /*!*******************************************************************!*\
  12021. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  12022. \*******************************************************************/
  12023. /*! no static exports found */
  12024. /***/ (function(module, exports, __webpack_require__) {
  12025. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12026. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  12027. /** `Object#toString` result references. */
  12028. var argsTag = '[object Arguments]';
  12029. /**
  12030. * The base implementation of `_.isArguments`.
  12031. *
  12032. * @private
  12033. * @param {*} value The value to check.
  12034. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  12035. */
  12036. function baseIsArguments(value) {
  12037. return isObjectLike(value) && baseGetTag(value) == argsTag;
  12038. }
  12039. module.exports = baseIsArguments;
  12040. /***/ }),
  12041. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  12042. /*!***************************************************************!*\
  12043. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  12044. \***************************************************************/
  12045. /*! no static exports found */
  12046. /***/ (function(module, exports, __webpack_require__) {
  12047. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  12048. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  12049. /**
  12050. * The base implementation of `_.isEqual` which supports partial comparisons
  12051. * and tracks traversed objects.
  12052. *
  12053. * @private
  12054. * @param {*} value The value to compare.
  12055. * @param {*} other The other value to compare.
  12056. * @param {boolean} bitmask The bitmask flags.
  12057. * 1 - Unordered comparison
  12058. * 2 - Partial comparison
  12059. * @param {Function} [customizer] The function to customize comparisons.
  12060. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  12061. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  12062. */
  12063. function baseIsEqual(value, other, bitmask, customizer, stack) {
  12064. if (value === other) {
  12065. return true;
  12066. }
  12067. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  12068. return value !== value && other !== other;
  12069. }
  12070. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  12071. }
  12072. module.exports = baseIsEqual;
  12073. /***/ }),
  12074. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  12075. /*!*******************************************************************!*\
  12076. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  12077. \*******************************************************************/
  12078. /*! no static exports found */
  12079. /***/ (function(module, exports, __webpack_require__) {
  12080. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  12081. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12082. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  12083. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  12084. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  12085. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12086. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  12087. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  12088. /** Used to compose bitmasks for value comparisons. */
  12089. var COMPARE_PARTIAL_FLAG = 1;
  12090. /** `Object#toString` result references. */
  12091. var argsTag = '[object Arguments]',
  12092. arrayTag = '[object Array]',
  12093. objectTag = '[object Object]';
  12094. /** Used for built-in method references. */
  12095. var objectProto = Object.prototype;
  12096. /** Used to check objects for own properties. */
  12097. var hasOwnProperty = objectProto.hasOwnProperty;
  12098. /**
  12099. * A specialized version of `baseIsEqual` for arrays and objects which performs
  12100. * deep comparisons and tracks traversed objects enabling objects with circular
  12101. * references to be compared.
  12102. *
  12103. * @private
  12104. * @param {Object} object The object to compare.
  12105. * @param {Object} other The other object to compare.
  12106. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12107. * @param {Function} customizer The function to customize comparisons.
  12108. * @param {Function} equalFunc The function to determine equivalents of values.
  12109. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  12110. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12111. */
  12112. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  12113. var objIsArr = isArray(object),
  12114. othIsArr = isArray(other),
  12115. objTag = objIsArr ? arrayTag : getTag(object),
  12116. othTag = othIsArr ? arrayTag : getTag(other);
  12117. objTag = objTag == argsTag ? objectTag : objTag;
  12118. othTag = othTag == argsTag ? objectTag : othTag;
  12119. var objIsObj = objTag == objectTag,
  12120. othIsObj = othTag == objectTag,
  12121. isSameTag = objTag == othTag;
  12122. if (isSameTag && isBuffer(object)) {
  12123. if (!isBuffer(other)) {
  12124. return false;
  12125. }
  12126. objIsArr = true;
  12127. objIsObj = false;
  12128. }
  12129. if (isSameTag && !objIsObj) {
  12130. stack || (stack = new Stack);
  12131. return (objIsArr || isTypedArray(object))
  12132. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  12133. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  12134. }
  12135. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  12136. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  12137. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  12138. if (objIsWrapped || othIsWrapped) {
  12139. var objUnwrapped = objIsWrapped ? object.value() : object,
  12140. othUnwrapped = othIsWrapped ? other.value() : other;
  12141. stack || (stack = new Stack);
  12142. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  12143. }
  12144. }
  12145. if (!isSameTag) {
  12146. return false;
  12147. }
  12148. stack || (stack = new Stack);
  12149. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  12150. }
  12151. module.exports = baseIsEqualDeep;
  12152. /***/ }),
  12153. /***/ "../../node_modules/lodash/_baseIsMap.js":
  12154. /*!*************************************************************!*\
  12155. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  12156. \*************************************************************/
  12157. /*! no static exports found */
  12158. /***/ (function(module, exports, __webpack_require__) {
  12159. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  12160. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  12161. /** `Object#toString` result references. */
  12162. var mapTag = '[object Map]';
  12163. /**
  12164. * The base implementation of `_.isMap` without Node.js optimizations.
  12165. *
  12166. * @private
  12167. * @param {*} value The value to check.
  12168. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  12169. */
  12170. function baseIsMap(value) {
  12171. return isObjectLike(value) && getTag(value) == mapTag;
  12172. }
  12173. module.exports = baseIsMap;
  12174. /***/ }),
  12175. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  12176. /*!***************************************************************!*\
  12177. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  12178. \***************************************************************/
  12179. /*! no static exports found */
  12180. /***/ (function(module, exports, __webpack_require__) {
  12181. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  12182. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  12183. /** Used to compose bitmasks for value comparisons. */
  12184. var COMPARE_PARTIAL_FLAG = 1,
  12185. COMPARE_UNORDERED_FLAG = 2;
  12186. /**
  12187. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  12188. *
  12189. * @private
  12190. * @param {Object} object The object to inspect.
  12191. * @param {Object} source The object of property values to match.
  12192. * @param {Array} matchData The property names, values, and compare flags to match.
  12193. * @param {Function} [customizer] The function to customize comparisons.
  12194. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  12195. */
  12196. function baseIsMatch(object, source, matchData, customizer) {
  12197. var index = matchData.length,
  12198. length = index,
  12199. noCustomizer = !customizer;
  12200. if (object == null) {
  12201. return !length;
  12202. }
  12203. object = Object(object);
  12204. while (index--) {
  12205. var data = matchData[index];
  12206. if ((noCustomizer && data[2])
  12207. ? data[1] !== object[data[0]]
  12208. : !(data[0] in object)
  12209. ) {
  12210. return false;
  12211. }
  12212. }
  12213. while (++index < length) {
  12214. data = matchData[index];
  12215. var key = data[0],
  12216. objValue = object[key],
  12217. srcValue = data[1];
  12218. if (noCustomizer && data[2]) {
  12219. if (objValue === undefined && !(key in object)) {
  12220. return false;
  12221. }
  12222. } else {
  12223. var stack = new Stack;
  12224. if (customizer) {
  12225. var result = customizer(objValue, srcValue, key, object, source, stack);
  12226. }
  12227. if (!(result === undefined
  12228. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  12229. : result
  12230. )) {
  12231. return false;
  12232. }
  12233. }
  12234. }
  12235. return true;
  12236. }
  12237. module.exports = baseIsMatch;
  12238. /***/ }),
  12239. /***/ "../../node_modules/lodash/_baseIsNative.js":
  12240. /*!****************************************************************!*\
  12241. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  12242. \****************************************************************/
  12243. /*! no static exports found */
  12244. /***/ (function(module, exports, __webpack_require__) {
  12245. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  12246. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  12247. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  12248. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12249. /**
  12250. * Used to match `RegExp`
  12251. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  12252. */
  12253. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  12254. /** Used to detect host constructors (Safari). */
  12255. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  12256. /** Used for built-in method references. */
  12257. var funcProto = Function.prototype,
  12258. objectProto = Object.prototype;
  12259. /** Used to resolve the decompiled source of functions. */
  12260. var funcToString = funcProto.toString;
  12261. /** Used to check objects for own properties. */
  12262. var hasOwnProperty = objectProto.hasOwnProperty;
  12263. /** Used to detect if a method is native. */
  12264. var reIsNative = RegExp('^' +
  12265. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  12266. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  12267. );
  12268. /**
  12269. * The base implementation of `_.isNative` without bad shim checks.
  12270. *
  12271. * @private
  12272. * @param {*} value The value to check.
  12273. * @returns {boolean} Returns `true` if `value` is a native function,
  12274. * else `false`.
  12275. */
  12276. function baseIsNative(value) {
  12277. if (!isObject(value) || isMasked(value)) {
  12278. return false;
  12279. }
  12280. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  12281. return pattern.test(toSource(value));
  12282. }
  12283. module.exports = baseIsNative;
  12284. /***/ }),
  12285. /***/ "../../node_modules/lodash/_baseIsSet.js":
  12286. /*!*************************************************************!*\
  12287. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  12288. \*************************************************************/
  12289. /*! no static exports found */
  12290. /***/ (function(module, exports, __webpack_require__) {
  12291. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  12292. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  12293. /** `Object#toString` result references. */
  12294. var setTag = '[object Set]';
  12295. /**
  12296. * The base implementation of `_.isSet` without Node.js optimizations.
  12297. *
  12298. * @private
  12299. * @param {*} value The value to check.
  12300. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  12301. */
  12302. function baseIsSet(value) {
  12303. return isObjectLike(value) && getTag(value) == setTag;
  12304. }
  12305. module.exports = baseIsSet;
  12306. /***/ }),
  12307. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  12308. /*!********************************************************************!*\
  12309. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  12310. \********************************************************************/
  12311. /*! no static exports found */
  12312. /***/ (function(module, exports, __webpack_require__) {
  12313. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12314. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12315. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  12316. /** `Object#toString` result references. */
  12317. var argsTag = '[object Arguments]',
  12318. arrayTag = '[object Array]',
  12319. boolTag = '[object Boolean]',
  12320. dateTag = '[object Date]',
  12321. errorTag = '[object Error]',
  12322. funcTag = '[object Function]',
  12323. mapTag = '[object Map]',
  12324. numberTag = '[object Number]',
  12325. objectTag = '[object Object]',
  12326. regexpTag = '[object RegExp]',
  12327. setTag = '[object Set]',
  12328. stringTag = '[object String]',
  12329. weakMapTag = '[object WeakMap]';
  12330. var arrayBufferTag = '[object ArrayBuffer]',
  12331. dataViewTag = '[object DataView]',
  12332. float32Tag = '[object Float32Array]',
  12333. float64Tag = '[object Float64Array]',
  12334. int8Tag = '[object Int8Array]',
  12335. int16Tag = '[object Int16Array]',
  12336. int32Tag = '[object Int32Array]',
  12337. uint8Tag = '[object Uint8Array]',
  12338. uint8ClampedTag = '[object Uint8ClampedArray]',
  12339. uint16Tag = '[object Uint16Array]',
  12340. uint32Tag = '[object Uint32Array]';
  12341. /** Used to identify `toStringTag` values of typed arrays. */
  12342. var typedArrayTags = {};
  12343. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  12344. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  12345. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  12346. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  12347. typedArrayTags[uint32Tag] = true;
  12348. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  12349. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  12350. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  12351. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  12352. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  12353. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  12354. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  12355. typedArrayTags[weakMapTag] = false;
  12356. /**
  12357. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  12358. *
  12359. * @private
  12360. * @param {*} value The value to check.
  12361. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  12362. */
  12363. function baseIsTypedArray(value) {
  12364. return isObjectLike(value) &&
  12365. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  12366. }
  12367. module.exports = baseIsTypedArray;
  12368. /***/ }),
  12369. /***/ "../../node_modules/lodash/_baseIteratee.js":
  12370. /*!****************************************************************!*\
  12371. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  12372. \****************************************************************/
  12373. /*! no static exports found */
  12374. /***/ (function(module, exports, __webpack_require__) {
  12375. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  12376. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  12377. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  12378. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12379. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  12380. /**
  12381. * The base implementation of `_.iteratee`.
  12382. *
  12383. * @private
  12384. * @param {*} [value=_.identity] The value to convert to an iteratee.
  12385. * @returns {Function} Returns the iteratee.
  12386. */
  12387. function baseIteratee(value) {
  12388. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  12389. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  12390. if (typeof value == 'function') {
  12391. return value;
  12392. }
  12393. if (value == null) {
  12394. return identity;
  12395. }
  12396. if (typeof value == 'object') {
  12397. return isArray(value)
  12398. ? baseMatchesProperty(value[0], value[1])
  12399. : baseMatches(value);
  12400. }
  12401. return property(value);
  12402. }
  12403. module.exports = baseIteratee;
  12404. /***/ }),
  12405. /***/ "../../node_modules/lodash/_baseKeys.js":
  12406. /*!************************************************************!*\
  12407. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  12408. \************************************************************/
  12409. /*! no static exports found */
  12410. /***/ (function(module, exports, __webpack_require__) {
  12411. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  12412. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  12413. /** Used for built-in method references. */
  12414. var objectProto = Object.prototype;
  12415. /** Used to check objects for own properties. */
  12416. var hasOwnProperty = objectProto.hasOwnProperty;
  12417. /**
  12418. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  12419. *
  12420. * @private
  12421. * @param {Object} object The object to query.
  12422. * @returns {Array} Returns the array of property names.
  12423. */
  12424. function baseKeys(object) {
  12425. if (!isPrototype(object)) {
  12426. return nativeKeys(object);
  12427. }
  12428. var result = [];
  12429. for (var key in Object(object)) {
  12430. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  12431. result.push(key);
  12432. }
  12433. }
  12434. return result;
  12435. }
  12436. module.exports = baseKeys;
  12437. /***/ }),
  12438. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  12439. /*!**************************************************************!*\
  12440. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  12441. \**************************************************************/
  12442. /*! no static exports found */
  12443. /***/ (function(module, exports, __webpack_require__) {
  12444. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  12445. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  12446. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  12447. /** Used for built-in method references. */
  12448. var objectProto = Object.prototype;
  12449. /** Used to check objects for own properties. */
  12450. var hasOwnProperty = objectProto.hasOwnProperty;
  12451. /**
  12452. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  12453. *
  12454. * @private
  12455. * @param {Object} object The object to query.
  12456. * @returns {Array} Returns the array of property names.
  12457. */
  12458. function baseKeysIn(object) {
  12459. if (!isObject(object)) {
  12460. return nativeKeysIn(object);
  12461. }
  12462. var isProto = isPrototype(object),
  12463. result = [];
  12464. for (var key in object) {
  12465. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  12466. result.push(key);
  12467. }
  12468. }
  12469. return result;
  12470. }
  12471. module.exports = baseKeysIn;
  12472. /***/ }),
  12473. /***/ "../../node_modules/lodash/_baseMap.js":
  12474. /*!***********************************************************!*\
  12475. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  12476. \***********************************************************/
  12477. /*! no static exports found */
  12478. /***/ (function(module, exports, __webpack_require__) {
  12479. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  12480. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  12481. /**
  12482. * The base implementation of `_.map` without support for iteratee shorthands.
  12483. *
  12484. * @private
  12485. * @param {Array|Object} collection The collection to iterate over.
  12486. * @param {Function} iteratee The function invoked per iteration.
  12487. * @returns {Array} Returns the new mapped array.
  12488. */
  12489. function baseMap(collection, iteratee) {
  12490. var index = -1,
  12491. result = isArrayLike(collection) ? Array(collection.length) : [];
  12492. baseEach(collection, function(value, key, collection) {
  12493. result[++index] = iteratee(value, key, collection);
  12494. });
  12495. return result;
  12496. }
  12497. module.exports = baseMap;
  12498. /***/ }),
  12499. /***/ "../../node_modules/lodash/_baseMatches.js":
  12500. /*!***************************************************************!*\
  12501. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  12502. \***************************************************************/
  12503. /*! no static exports found */
  12504. /***/ (function(module, exports, __webpack_require__) {
  12505. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  12506. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  12507. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  12508. /**
  12509. * The base implementation of `_.matches` which doesn't clone `source`.
  12510. *
  12511. * @private
  12512. * @param {Object} source The object of property values to match.
  12513. * @returns {Function} Returns the new spec function.
  12514. */
  12515. function baseMatches(source) {
  12516. var matchData = getMatchData(source);
  12517. if (matchData.length == 1 && matchData[0][2]) {
  12518. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  12519. }
  12520. return function(object) {
  12521. return object === source || baseIsMatch(object, source, matchData);
  12522. };
  12523. }
  12524. module.exports = baseMatches;
  12525. /***/ }),
  12526. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  12527. /*!***********************************************************************!*\
  12528. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  12529. \***********************************************************************/
  12530. /*! no static exports found */
  12531. /***/ (function(module, exports, __webpack_require__) {
  12532. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  12533. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  12534. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  12535. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  12536. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12537. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  12538. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12539. /** Used to compose bitmasks for value comparisons. */
  12540. var COMPARE_PARTIAL_FLAG = 1,
  12541. COMPARE_UNORDERED_FLAG = 2;
  12542. /**
  12543. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  12544. *
  12545. * @private
  12546. * @param {string} path The path of the property to get.
  12547. * @param {*} srcValue The value to match.
  12548. * @returns {Function} Returns the new spec function.
  12549. */
  12550. function baseMatchesProperty(path, srcValue) {
  12551. if (isKey(path) && isStrictComparable(srcValue)) {
  12552. return matchesStrictComparable(toKey(path), srcValue);
  12553. }
  12554. return function(object) {
  12555. var objValue = get(object, path);
  12556. return (objValue === undefined && objValue === srcValue)
  12557. ? hasIn(object, path)
  12558. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  12559. };
  12560. }
  12561. module.exports = baseMatchesProperty;
  12562. /***/ }),
  12563. /***/ "../../node_modules/lodash/_baseMerge.js":
  12564. /*!*************************************************************!*\
  12565. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  12566. \*************************************************************/
  12567. /*! no static exports found */
  12568. /***/ (function(module, exports, __webpack_require__) {
  12569. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  12570. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  12571. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  12572. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  12573. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  12574. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  12575. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  12576. /**
  12577. * The base implementation of `_.merge` without support for multiple sources.
  12578. *
  12579. * @private
  12580. * @param {Object} object The destination object.
  12581. * @param {Object} source The source object.
  12582. * @param {number} srcIndex The index of `source`.
  12583. * @param {Function} [customizer] The function to customize merged values.
  12584. * @param {Object} [stack] Tracks traversed source values and their merged
  12585. * counterparts.
  12586. */
  12587. function baseMerge(object, source, srcIndex, customizer, stack) {
  12588. if (object === source) {
  12589. return;
  12590. }
  12591. baseFor(source, function(srcValue, key) {
  12592. stack || (stack = new Stack);
  12593. if (isObject(srcValue)) {
  12594. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  12595. }
  12596. else {
  12597. var newValue = customizer
  12598. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  12599. : undefined;
  12600. if (newValue === undefined) {
  12601. newValue = srcValue;
  12602. }
  12603. assignMergeValue(object, key, newValue);
  12604. }
  12605. }, keysIn);
  12606. }
  12607. module.exports = baseMerge;
  12608. /***/ }),
  12609. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  12610. /*!*****************************************************************!*\
  12611. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  12612. \*****************************************************************/
  12613. /*! no static exports found */
  12614. /***/ (function(module, exports, __webpack_require__) {
  12615. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  12616. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  12617. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  12618. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  12619. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  12620. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12621. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12622. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  12623. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  12624. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  12625. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  12626. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  12627. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  12628. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  12629. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  12630. /**
  12631. * A specialized version of `baseMerge` for arrays and objects which performs
  12632. * deep merges and tracks traversed objects enabling objects with circular
  12633. * references to be merged.
  12634. *
  12635. * @private
  12636. * @param {Object} object The destination object.
  12637. * @param {Object} source The source object.
  12638. * @param {string} key The key of the value to merge.
  12639. * @param {number} srcIndex The index of `source`.
  12640. * @param {Function} mergeFunc The function to merge values.
  12641. * @param {Function} [customizer] The function to customize assigned values.
  12642. * @param {Object} [stack] Tracks traversed source values and their merged
  12643. * counterparts.
  12644. */
  12645. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  12646. var objValue = safeGet(object, key),
  12647. srcValue = safeGet(source, key),
  12648. stacked = stack.get(srcValue);
  12649. if (stacked) {
  12650. assignMergeValue(object, key, stacked);
  12651. return;
  12652. }
  12653. var newValue = customizer
  12654. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  12655. : undefined;
  12656. var isCommon = newValue === undefined;
  12657. if (isCommon) {
  12658. var isArr = isArray(srcValue),
  12659. isBuff = !isArr && isBuffer(srcValue),
  12660. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  12661. newValue = srcValue;
  12662. if (isArr || isBuff || isTyped) {
  12663. if (isArray(objValue)) {
  12664. newValue = objValue;
  12665. }
  12666. else if (isArrayLikeObject(objValue)) {
  12667. newValue = copyArray(objValue);
  12668. }
  12669. else if (isBuff) {
  12670. isCommon = false;
  12671. newValue = cloneBuffer(srcValue, true);
  12672. }
  12673. else if (isTyped) {
  12674. isCommon = false;
  12675. newValue = cloneTypedArray(srcValue, true);
  12676. }
  12677. else {
  12678. newValue = [];
  12679. }
  12680. }
  12681. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  12682. newValue = objValue;
  12683. if (isArguments(objValue)) {
  12684. newValue = toPlainObject(objValue);
  12685. }
  12686. else if (!isObject(objValue) || isFunction(objValue)) {
  12687. newValue = initCloneObject(srcValue);
  12688. }
  12689. }
  12690. else {
  12691. isCommon = false;
  12692. }
  12693. }
  12694. if (isCommon) {
  12695. // Recursively merge objects and arrays (susceptible to call stack limits).
  12696. stack.set(srcValue, newValue);
  12697. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  12698. stack['delete'](srcValue);
  12699. }
  12700. assignMergeValue(object, key, newValue);
  12701. }
  12702. module.exports = baseMergeDeep;
  12703. /***/ }),
  12704. /***/ "../../node_modules/lodash/_baseProperty.js":
  12705. /*!****************************************************************!*\
  12706. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  12707. \****************************************************************/
  12708. /*! no static exports found */
  12709. /***/ (function(module, exports) {
  12710. /**
  12711. * The base implementation of `_.property` without support for deep paths.
  12712. *
  12713. * @private
  12714. * @param {string} key The key of the property to get.
  12715. * @returns {Function} Returns the new accessor function.
  12716. */
  12717. function baseProperty(key) {
  12718. return function(object) {
  12719. return object == null ? undefined : object[key];
  12720. };
  12721. }
  12722. module.exports = baseProperty;
  12723. /***/ }),
  12724. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  12725. /*!********************************************************************!*\
  12726. !*** D:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  12727. \********************************************************************/
  12728. /*! no static exports found */
  12729. /***/ (function(module, exports, __webpack_require__) {
  12730. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  12731. /**
  12732. * A specialized version of `baseProperty` which supports deep paths.
  12733. *
  12734. * @private
  12735. * @param {Array|string} path The path of the property to get.
  12736. * @returns {Function} Returns the new accessor function.
  12737. */
  12738. function basePropertyDeep(path) {
  12739. return function(object) {
  12740. return baseGet(object, path);
  12741. };
  12742. }
  12743. module.exports = basePropertyDeep;
  12744. /***/ }),
  12745. /***/ "../../node_modules/lodash/_baseRest.js":
  12746. /*!************************************************************!*\
  12747. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  12748. \************************************************************/
  12749. /*! no static exports found */
  12750. /***/ (function(module, exports, __webpack_require__) {
  12751. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  12752. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12753. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12754. /**
  12755. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  12756. *
  12757. * @private
  12758. * @param {Function} func The function to apply a rest parameter to.
  12759. * @param {number} [start=func.length-1] The start position of the rest parameter.
  12760. * @returns {Function} Returns the new function.
  12761. */
  12762. function baseRest(func, start) {
  12763. return setToString(overRest(func, start, identity), func + '');
  12764. }
  12765. module.exports = baseRest;
  12766. /***/ }),
  12767. /***/ "../../node_modules/lodash/_baseSetToString.js":
  12768. /*!*******************************************************************!*\
  12769. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  12770. \*******************************************************************/
  12771. /*! no static exports found */
  12772. /***/ (function(module, exports, __webpack_require__) {
  12773. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  12774. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  12775. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  12776. /**
  12777. * The base implementation of `setToString` without support for hot loop shorting.
  12778. *
  12779. * @private
  12780. * @param {Function} func The function to modify.
  12781. * @param {Function} string The `toString` result.
  12782. * @returns {Function} Returns `func`.
  12783. */
  12784. var baseSetToString = !defineProperty ? identity : function(func, string) {
  12785. return defineProperty(func, 'toString', {
  12786. 'configurable': true,
  12787. 'enumerable': false,
  12788. 'value': constant(string),
  12789. 'writable': true
  12790. });
  12791. };
  12792. module.exports = baseSetToString;
  12793. /***/ }),
  12794. /***/ "../../node_modules/lodash/_baseTimes.js":
  12795. /*!*************************************************************!*\
  12796. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  12797. \*************************************************************/
  12798. /*! no static exports found */
  12799. /***/ (function(module, exports) {
  12800. /**
  12801. * The base implementation of `_.times` without support for iteratee shorthands
  12802. * or max array length checks.
  12803. *
  12804. * @private
  12805. * @param {number} n The number of times to invoke `iteratee`.
  12806. * @param {Function} iteratee The function invoked per iteration.
  12807. * @returns {Array} Returns the array of results.
  12808. */
  12809. function baseTimes(n, iteratee) {
  12810. var index = -1,
  12811. result = Array(n);
  12812. while (++index < n) {
  12813. result[index] = iteratee(index);
  12814. }
  12815. return result;
  12816. }
  12817. module.exports = baseTimes;
  12818. /***/ }),
  12819. /***/ "../../node_modules/lodash/_baseToString.js":
  12820. /*!****************************************************************!*\
  12821. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  12822. \****************************************************************/
  12823. /*! no static exports found */
  12824. /***/ (function(module, exports, __webpack_require__) {
  12825. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12826. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  12827. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12828. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  12829. /** Used as references for various `Number` constants. */
  12830. var INFINITY = 1 / 0;
  12831. /** Used to convert symbols to primitives and strings. */
  12832. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12833. symbolToString = symbolProto ? symbolProto.toString : undefined;
  12834. /**
  12835. * The base implementation of `_.toString` which doesn't convert nullish
  12836. * values to empty strings.
  12837. *
  12838. * @private
  12839. * @param {*} value The value to process.
  12840. * @returns {string} Returns the string.
  12841. */
  12842. function baseToString(value) {
  12843. // Exit early for strings to avoid a performance hit in some environments.
  12844. if (typeof value == 'string') {
  12845. return value;
  12846. }
  12847. if (isArray(value)) {
  12848. // Recursively convert values (susceptible to call stack limits).
  12849. return arrayMap(value, baseToString) + '';
  12850. }
  12851. if (isSymbol(value)) {
  12852. return symbolToString ? symbolToString.call(value) : '';
  12853. }
  12854. var result = (value + '');
  12855. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  12856. }
  12857. module.exports = baseToString;
  12858. /***/ }),
  12859. /***/ "../../node_modules/lodash/_baseUnary.js":
  12860. /*!*************************************************************!*\
  12861. !*** D:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  12862. \*************************************************************/
  12863. /*! no static exports found */
  12864. /***/ (function(module, exports) {
  12865. /**
  12866. * The base implementation of `_.unary` without support for storing metadata.
  12867. *
  12868. * @private
  12869. * @param {Function} func The function to cap arguments for.
  12870. * @returns {Function} Returns the new capped function.
  12871. */
  12872. function baseUnary(func) {
  12873. return function(value) {
  12874. return func(value);
  12875. };
  12876. }
  12877. module.exports = baseUnary;
  12878. /***/ }),
  12879. /***/ "../../node_modules/lodash/_cacheHas.js":
  12880. /*!************************************************************!*\
  12881. !*** D:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  12882. \************************************************************/
  12883. /*! no static exports found */
  12884. /***/ (function(module, exports) {
  12885. /**
  12886. * Checks if a `cache` value for `key` exists.
  12887. *
  12888. * @private
  12889. * @param {Object} cache The cache to query.
  12890. * @param {string} key The key of the entry to check.
  12891. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  12892. */
  12893. function cacheHas(cache, key) {
  12894. return cache.has(key);
  12895. }
  12896. module.exports = cacheHas;
  12897. /***/ }),
  12898. /***/ "../../node_modules/lodash/_castFunction.js":
  12899. /*!****************************************************************!*\
  12900. !*** D:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  12901. \****************************************************************/
  12902. /*! no static exports found */
  12903. /***/ (function(module, exports, __webpack_require__) {
  12904. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  12905. /**
  12906. * Casts `value` to `identity` if it's not a function.
  12907. *
  12908. * @private
  12909. * @param {*} value The value to inspect.
  12910. * @returns {Function} Returns cast function.
  12911. */
  12912. function castFunction(value) {
  12913. return typeof value == 'function' ? value : identity;
  12914. }
  12915. module.exports = castFunction;
  12916. /***/ }),
  12917. /***/ "../../node_modules/lodash/_castPath.js":
  12918. /*!************************************************************!*\
  12919. !*** D:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  12920. \************************************************************/
  12921. /*! no static exports found */
  12922. /***/ (function(module, exports, __webpack_require__) {
  12923. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12924. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  12925. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  12926. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  12927. /**
  12928. * Casts `value` to a path array if it's not one.
  12929. *
  12930. * @private
  12931. * @param {*} value The value to inspect.
  12932. * @param {Object} [object] The object to query keys on.
  12933. * @returns {Array} Returns the cast property path array.
  12934. */
  12935. function castPath(value, object) {
  12936. if (isArray(value)) {
  12937. return value;
  12938. }
  12939. return isKey(value, object) ? [value] : stringToPath(toString(value));
  12940. }
  12941. module.exports = castPath;
  12942. /***/ }),
  12943. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  12944. /*!********************************************************************!*\
  12945. !*** D:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  12946. \********************************************************************/
  12947. /*! no static exports found */
  12948. /***/ (function(module, exports, __webpack_require__) {
  12949. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  12950. /**
  12951. * Creates a clone of `arrayBuffer`.
  12952. *
  12953. * @private
  12954. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  12955. * @returns {ArrayBuffer} Returns the cloned array buffer.
  12956. */
  12957. function cloneArrayBuffer(arrayBuffer) {
  12958. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  12959. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  12960. return result;
  12961. }
  12962. module.exports = cloneArrayBuffer;
  12963. /***/ }),
  12964. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  12965. /*!***************************************************************!*\
  12966. !*** D:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  12967. \***************************************************************/
  12968. /*! no static exports found */
  12969. /***/ (function(module, exports, __webpack_require__) {
  12970. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  12971. /** Detect free variable `exports`. */
  12972. var freeExports = true && exports && !exports.nodeType && exports;
  12973. /** Detect free variable `module`. */
  12974. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  12975. /** Detect the popular CommonJS extension `module.exports`. */
  12976. var moduleExports = freeModule && freeModule.exports === freeExports;
  12977. /** Built-in value references. */
  12978. var Buffer = moduleExports ? root.Buffer : undefined,
  12979. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  12980. /**
  12981. * Creates a clone of `buffer`.
  12982. *
  12983. * @private
  12984. * @param {Buffer} buffer The buffer to clone.
  12985. * @param {boolean} [isDeep] Specify a deep clone.
  12986. * @returns {Buffer} Returns the cloned buffer.
  12987. */
  12988. function cloneBuffer(buffer, isDeep) {
  12989. if (isDeep) {
  12990. return buffer.slice();
  12991. }
  12992. var length = buffer.length,
  12993. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  12994. buffer.copy(result);
  12995. return result;
  12996. }
  12997. module.exports = cloneBuffer;
  12998. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  12999. /***/ }),
  13000. /***/ "../../node_modules/lodash/_cloneDataView.js":
  13001. /*!*****************************************************************!*\
  13002. !*** D:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  13003. \*****************************************************************/
  13004. /*! no static exports found */
  13005. /***/ (function(module, exports, __webpack_require__) {
  13006. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  13007. /**
  13008. * Creates a clone of `dataView`.
  13009. *
  13010. * @private
  13011. * @param {Object} dataView The data view to clone.
  13012. * @param {boolean} [isDeep] Specify a deep clone.
  13013. * @returns {Object} Returns the cloned data view.
  13014. */
  13015. function cloneDataView(dataView, isDeep) {
  13016. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  13017. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  13018. }
  13019. module.exports = cloneDataView;
  13020. /***/ }),
  13021. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  13022. /*!***************************************************************!*\
  13023. !*** D:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  13024. \***************************************************************/
  13025. /*! no static exports found */
  13026. /***/ (function(module, exports) {
  13027. /** Used to match `RegExp` flags from their coerced string values. */
  13028. var reFlags = /\w*$/;
  13029. /**
  13030. * Creates a clone of `regexp`.
  13031. *
  13032. * @private
  13033. * @param {Object} regexp The regexp to clone.
  13034. * @returns {Object} Returns the cloned regexp.
  13035. */
  13036. function cloneRegExp(regexp) {
  13037. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  13038. result.lastIndex = regexp.lastIndex;
  13039. return result;
  13040. }
  13041. module.exports = cloneRegExp;
  13042. /***/ }),
  13043. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  13044. /*!***************************************************************!*\
  13045. !*** D:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  13046. \***************************************************************/
  13047. /*! no static exports found */
  13048. /***/ (function(module, exports, __webpack_require__) {
  13049. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  13050. /** Used to convert symbols to primitives and strings. */
  13051. var symbolProto = Symbol ? Symbol.prototype : undefined,
  13052. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  13053. /**
  13054. * Creates a clone of the `symbol` object.
  13055. *
  13056. * @private
  13057. * @param {Object} symbol The symbol object to clone.
  13058. * @returns {Object} Returns the cloned symbol object.
  13059. */
  13060. function cloneSymbol(symbol) {
  13061. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  13062. }
  13063. module.exports = cloneSymbol;
  13064. /***/ }),
  13065. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  13066. /*!*******************************************************************!*\
  13067. !*** D:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  13068. \*******************************************************************/
  13069. /*! no static exports found */
  13070. /***/ (function(module, exports, __webpack_require__) {
  13071. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  13072. /**
  13073. * Creates a clone of `typedArray`.
  13074. *
  13075. * @private
  13076. * @param {Object} typedArray The typed array to clone.
  13077. * @param {boolean} [isDeep] Specify a deep clone.
  13078. * @returns {Object} Returns the cloned typed array.
  13079. */
  13080. function cloneTypedArray(typedArray, isDeep) {
  13081. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  13082. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  13083. }
  13084. module.exports = cloneTypedArray;
  13085. /***/ }),
  13086. /***/ "../../node_modules/lodash/_copyArray.js":
  13087. /*!*************************************************************!*\
  13088. !*** D:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  13089. \*************************************************************/
  13090. /*! no static exports found */
  13091. /***/ (function(module, exports) {
  13092. /**
  13093. * Copies the values of `source` to `array`.
  13094. *
  13095. * @private
  13096. * @param {Array} source The array to copy values from.
  13097. * @param {Array} [array=[]] The array to copy values to.
  13098. * @returns {Array} Returns `array`.
  13099. */
  13100. function copyArray(source, array) {
  13101. var index = -1,
  13102. length = source.length;
  13103. array || (array = Array(length));
  13104. while (++index < length) {
  13105. array[index] = source[index];
  13106. }
  13107. return array;
  13108. }
  13109. module.exports = copyArray;
  13110. /***/ }),
  13111. /***/ "../../node_modules/lodash/_copyObject.js":
  13112. /*!**************************************************************!*\
  13113. !*** D:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  13114. \**************************************************************/
  13115. /*! no static exports found */
  13116. /***/ (function(module, exports, __webpack_require__) {
  13117. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  13118. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  13119. /**
  13120. * Copies properties of `source` to `object`.
  13121. *
  13122. * @private
  13123. * @param {Object} source The object to copy properties from.
  13124. * @param {Array} props The property identifiers to copy.
  13125. * @param {Object} [object={}] The object to copy properties to.
  13126. * @param {Function} [customizer] The function to customize copied values.
  13127. * @returns {Object} Returns `object`.
  13128. */
  13129. function copyObject(source, props, object, customizer) {
  13130. var isNew = !object;
  13131. object || (object = {});
  13132. var index = -1,
  13133. length = props.length;
  13134. while (++index < length) {
  13135. var key = props[index];
  13136. var newValue = customizer
  13137. ? customizer(object[key], source[key], key, object, source)
  13138. : undefined;
  13139. if (newValue === undefined) {
  13140. newValue = source[key];
  13141. }
  13142. if (isNew) {
  13143. baseAssignValue(object, key, newValue);
  13144. } else {
  13145. assignValue(object, key, newValue);
  13146. }
  13147. }
  13148. return object;
  13149. }
  13150. module.exports = copyObject;
  13151. /***/ }),
  13152. /***/ "../../node_modules/lodash/_copySymbols.js":
  13153. /*!***************************************************************!*\
  13154. !*** D:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  13155. \***************************************************************/
  13156. /*! no static exports found */
  13157. /***/ (function(module, exports, __webpack_require__) {
  13158. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  13159. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  13160. /**
  13161. * Copies own symbols of `source` to `object`.
  13162. *
  13163. * @private
  13164. * @param {Object} source The object to copy symbols from.
  13165. * @param {Object} [object={}] The object to copy symbols to.
  13166. * @returns {Object} Returns `object`.
  13167. */
  13168. function copySymbols(source, object) {
  13169. return copyObject(source, getSymbols(source), object);
  13170. }
  13171. module.exports = copySymbols;
  13172. /***/ }),
  13173. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  13174. /*!*****************************************************************!*\
  13175. !*** D:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  13176. \*****************************************************************/
  13177. /*! no static exports found */
  13178. /***/ (function(module, exports, __webpack_require__) {
  13179. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  13180. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  13181. /**
  13182. * Copies own and inherited symbols of `source` to `object`.
  13183. *
  13184. * @private
  13185. * @param {Object} source The object to copy symbols from.
  13186. * @param {Object} [object={}] The object to copy symbols to.
  13187. * @returns {Object} Returns `object`.
  13188. */
  13189. function copySymbolsIn(source, object) {
  13190. return copyObject(source, getSymbolsIn(source), object);
  13191. }
  13192. module.exports = copySymbolsIn;
  13193. /***/ }),
  13194. /***/ "../../node_modules/lodash/_coreJsData.js":
  13195. /*!**************************************************************!*\
  13196. !*** D:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  13197. \**************************************************************/
  13198. /*! no static exports found */
  13199. /***/ (function(module, exports, __webpack_require__) {
  13200. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13201. /** Used to detect overreaching core-js shims. */
  13202. var coreJsData = root['__core-js_shared__'];
  13203. module.exports = coreJsData;
  13204. /***/ }),
  13205. /***/ "../../node_modules/lodash/_createAssigner.js":
  13206. /*!******************************************************************!*\
  13207. !*** D:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  13208. \******************************************************************/
  13209. /*! no static exports found */
  13210. /***/ (function(module, exports, __webpack_require__) {
  13211. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  13212. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  13213. /**
  13214. * Creates a function like `_.assign`.
  13215. *
  13216. * @private
  13217. * @param {Function} assigner The function to assign values.
  13218. * @returns {Function} Returns the new assigner function.
  13219. */
  13220. function createAssigner(assigner) {
  13221. return baseRest(function(object, sources) {
  13222. var index = -1,
  13223. length = sources.length,
  13224. customizer = length > 1 ? sources[length - 1] : undefined,
  13225. guard = length > 2 ? sources[2] : undefined;
  13226. customizer = (assigner.length > 3 && typeof customizer == 'function')
  13227. ? (length--, customizer)
  13228. : undefined;
  13229. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  13230. customizer = length < 3 ? undefined : customizer;
  13231. length = 1;
  13232. }
  13233. object = Object(object);
  13234. while (++index < length) {
  13235. var source = sources[index];
  13236. if (source) {
  13237. assigner(object, source, index, customizer);
  13238. }
  13239. }
  13240. return object;
  13241. });
  13242. }
  13243. module.exports = createAssigner;
  13244. /***/ }),
  13245. /***/ "../../node_modules/lodash/_createBaseEach.js":
  13246. /*!******************************************************************!*\
  13247. !*** D:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  13248. \******************************************************************/
  13249. /*! no static exports found */
  13250. /***/ (function(module, exports, __webpack_require__) {
  13251. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  13252. /**
  13253. * Creates a `baseEach` or `baseEachRight` function.
  13254. *
  13255. * @private
  13256. * @param {Function} eachFunc The function to iterate over a collection.
  13257. * @param {boolean} [fromRight] Specify iterating from right to left.
  13258. * @returns {Function} Returns the new base function.
  13259. */
  13260. function createBaseEach(eachFunc, fromRight) {
  13261. return function(collection, iteratee) {
  13262. if (collection == null) {
  13263. return collection;
  13264. }
  13265. if (!isArrayLike(collection)) {
  13266. return eachFunc(collection, iteratee);
  13267. }
  13268. var length = collection.length,
  13269. index = fromRight ? length : -1,
  13270. iterable = Object(collection);
  13271. while ((fromRight ? index-- : ++index < length)) {
  13272. if (iteratee(iterable[index], index, iterable) === false) {
  13273. break;
  13274. }
  13275. }
  13276. return collection;
  13277. };
  13278. }
  13279. module.exports = createBaseEach;
  13280. /***/ }),
  13281. /***/ "../../node_modules/lodash/_createBaseFor.js":
  13282. /*!*****************************************************************!*\
  13283. !*** D:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  13284. \*****************************************************************/
  13285. /*! no static exports found */
  13286. /***/ (function(module, exports) {
  13287. /**
  13288. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  13289. *
  13290. * @private
  13291. * @param {boolean} [fromRight] Specify iterating from right to left.
  13292. * @returns {Function} Returns the new base function.
  13293. */
  13294. function createBaseFor(fromRight) {
  13295. return function(object, iteratee, keysFunc) {
  13296. var index = -1,
  13297. iterable = Object(object),
  13298. props = keysFunc(object),
  13299. length = props.length;
  13300. while (length--) {
  13301. var key = props[fromRight ? length : ++index];
  13302. if (iteratee(iterable[key], key, iterable) === false) {
  13303. break;
  13304. }
  13305. }
  13306. return object;
  13307. };
  13308. }
  13309. module.exports = createBaseFor;
  13310. /***/ }),
  13311. /***/ "../../node_modules/lodash/_defineProperty.js":
  13312. /*!******************************************************************!*\
  13313. !*** D:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  13314. \******************************************************************/
  13315. /*! no static exports found */
  13316. /***/ (function(module, exports, __webpack_require__) {
  13317. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13318. var defineProperty = (function() {
  13319. try {
  13320. var func = getNative(Object, 'defineProperty');
  13321. func({}, '', {});
  13322. return func;
  13323. } catch (e) {}
  13324. }());
  13325. module.exports = defineProperty;
  13326. /***/ }),
  13327. /***/ "../../node_modules/lodash/_equalArrays.js":
  13328. /*!***************************************************************!*\
  13329. !*** D:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  13330. \***************************************************************/
  13331. /*! no static exports found */
  13332. /***/ (function(module, exports, __webpack_require__) {
  13333. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  13334. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  13335. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  13336. /** Used to compose bitmasks for value comparisons. */
  13337. var COMPARE_PARTIAL_FLAG = 1,
  13338. COMPARE_UNORDERED_FLAG = 2;
  13339. /**
  13340. * A specialized version of `baseIsEqualDeep` for arrays with support for
  13341. * partial deep comparisons.
  13342. *
  13343. * @private
  13344. * @param {Array} array The array to compare.
  13345. * @param {Array} other The other array to compare.
  13346. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  13347. * @param {Function} customizer The function to customize comparisons.
  13348. * @param {Function} equalFunc The function to determine equivalents of values.
  13349. * @param {Object} stack Tracks traversed `array` and `other` objects.
  13350. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  13351. */
  13352. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  13353. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  13354. arrLength = array.length,
  13355. othLength = other.length;
  13356. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  13357. return false;
  13358. }
  13359. // Assume cyclic values are equal.
  13360. var stacked = stack.get(array);
  13361. if (stacked && stack.get(other)) {
  13362. return stacked == other;
  13363. }
  13364. var index = -1,
  13365. result = true,
  13366. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  13367. stack.set(array, other);
  13368. stack.set(other, array);
  13369. // Ignore non-index properties.
  13370. while (++index < arrLength) {
  13371. var arrValue = array[index],
  13372. othValue = other[index];
  13373. if (customizer) {
  13374. var compared = isPartial
  13375. ? customizer(othValue, arrValue, index, other, array, stack)
  13376. : customizer(arrValue, othValue, index, array, other, stack);
  13377. }
  13378. if (compared !== undefined) {
  13379. if (compared) {
  13380. continue;
  13381. }
  13382. result = false;
  13383. break;
  13384. }
  13385. // Recursively compare arrays (susceptible to call stack limits).
  13386. if (seen) {
  13387. if (!arraySome(other, function(othValue, othIndex) {
  13388. if (!cacheHas(seen, othIndex) &&
  13389. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  13390. return seen.push(othIndex);
  13391. }
  13392. })) {
  13393. result = false;
  13394. break;
  13395. }
  13396. } else if (!(
  13397. arrValue === othValue ||
  13398. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  13399. )) {
  13400. result = false;
  13401. break;
  13402. }
  13403. }
  13404. stack['delete'](array);
  13405. stack['delete'](other);
  13406. return result;
  13407. }
  13408. module.exports = equalArrays;
  13409. /***/ }),
  13410. /***/ "../../node_modules/lodash/_equalByTag.js":
  13411. /*!**************************************************************!*\
  13412. !*** D:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  13413. \**************************************************************/
  13414. /*! no static exports found */
  13415. /***/ (function(module, exports, __webpack_require__) {
  13416. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  13417. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  13418. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  13419. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  13420. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  13421. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  13422. /** Used to compose bitmasks for value comparisons. */
  13423. var COMPARE_PARTIAL_FLAG = 1,
  13424. COMPARE_UNORDERED_FLAG = 2;
  13425. /** `Object#toString` result references. */
  13426. var boolTag = '[object Boolean]',
  13427. dateTag = '[object Date]',
  13428. errorTag = '[object Error]',
  13429. mapTag = '[object Map]',
  13430. numberTag = '[object Number]',
  13431. regexpTag = '[object RegExp]',
  13432. setTag = '[object Set]',
  13433. stringTag = '[object String]',
  13434. symbolTag = '[object Symbol]';
  13435. var arrayBufferTag = '[object ArrayBuffer]',
  13436. dataViewTag = '[object DataView]';
  13437. /** Used to convert symbols to primitives and strings. */
  13438. var symbolProto = Symbol ? Symbol.prototype : undefined,
  13439. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  13440. /**
  13441. * A specialized version of `baseIsEqualDeep` for comparing objects of
  13442. * the same `toStringTag`.
  13443. *
  13444. * **Note:** This function only supports comparing values with tags of
  13445. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  13446. *
  13447. * @private
  13448. * @param {Object} object The object to compare.
  13449. * @param {Object} other The other object to compare.
  13450. * @param {string} tag The `toStringTag` of the objects to compare.
  13451. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  13452. * @param {Function} customizer The function to customize comparisons.
  13453. * @param {Function} equalFunc The function to determine equivalents of values.
  13454. * @param {Object} stack Tracks traversed `object` and `other` objects.
  13455. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  13456. */
  13457. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  13458. switch (tag) {
  13459. case dataViewTag:
  13460. if ((object.byteLength != other.byteLength) ||
  13461. (object.byteOffset != other.byteOffset)) {
  13462. return false;
  13463. }
  13464. object = object.buffer;
  13465. other = other.buffer;
  13466. case arrayBufferTag:
  13467. if ((object.byteLength != other.byteLength) ||
  13468. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  13469. return false;
  13470. }
  13471. return true;
  13472. case boolTag:
  13473. case dateTag:
  13474. case numberTag:
  13475. // Coerce booleans to `1` or `0` and dates to milliseconds.
  13476. // Invalid dates are coerced to `NaN`.
  13477. return eq(+object, +other);
  13478. case errorTag:
  13479. return object.name == other.name && object.message == other.message;
  13480. case regexpTag:
  13481. case stringTag:
  13482. // Coerce regexes to strings and treat strings, primitives and objects,
  13483. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  13484. // for more details.
  13485. return object == (other + '');
  13486. case mapTag:
  13487. var convert = mapToArray;
  13488. case setTag:
  13489. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  13490. convert || (convert = setToArray);
  13491. if (object.size != other.size && !isPartial) {
  13492. return false;
  13493. }
  13494. // Assume cyclic values are equal.
  13495. var stacked = stack.get(object);
  13496. if (stacked) {
  13497. return stacked == other;
  13498. }
  13499. bitmask |= COMPARE_UNORDERED_FLAG;
  13500. // Recursively compare objects (susceptible to call stack limits).
  13501. stack.set(object, other);
  13502. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  13503. stack['delete'](object);
  13504. return result;
  13505. case symbolTag:
  13506. if (symbolValueOf) {
  13507. return symbolValueOf.call(object) == symbolValueOf.call(other);
  13508. }
  13509. }
  13510. return false;
  13511. }
  13512. module.exports = equalByTag;
  13513. /***/ }),
  13514. /***/ "../../node_modules/lodash/_equalObjects.js":
  13515. /*!****************************************************************!*\
  13516. !*** D:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  13517. \****************************************************************/
  13518. /*! no static exports found */
  13519. /***/ (function(module, exports, __webpack_require__) {
  13520. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  13521. /** Used to compose bitmasks for value comparisons. */
  13522. var COMPARE_PARTIAL_FLAG = 1;
  13523. /** Used for built-in method references. */
  13524. var objectProto = Object.prototype;
  13525. /** Used to check objects for own properties. */
  13526. var hasOwnProperty = objectProto.hasOwnProperty;
  13527. /**
  13528. * A specialized version of `baseIsEqualDeep` for objects with support for
  13529. * partial deep comparisons.
  13530. *
  13531. * @private
  13532. * @param {Object} object The object to compare.
  13533. * @param {Object} other The other object to compare.
  13534. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  13535. * @param {Function} customizer The function to customize comparisons.
  13536. * @param {Function} equalFunc The function to determine equivalents of values.
  13537. * @param {Object} stack Tracks traversed `object` and `other` objects.
  13538. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  13539. */
  13540. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  13541. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  13542. objProps = getAllKeys(object),
  13543. objLength = objProps.length,
  13544. othProps = getAllKeys(other),
  13545. othLength = othProps.length;
  13546. if (objLength != othLength && !isPartial) {
  13547. return false;
  13548. }
  13549. var index = objLength;
  13550. while (index--) {
  13551. var key = objProps[index];
  13552. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  13553. return false;
  13554. }
  13555. }
  13556. // Assume cyclic values are equal.
  13557. var stacked = stack.get(object);
  13558. if (stacked && stack.get(other)) {
  13559. return stacked == other;
  13560. }
  13561. var result = true;
  13562. stack.set(object, other);
  13563. stack.set(other, object);
  13564. var skipCtor = isPartial;
  13565. while (++index < objLength) {
  13566. key = objProps[index];
  13567. var objValue = object[key],
  13568. othValue = other[key];
  13569. if (customizer) {
  13570. var compared = isPartial
  13571. ? customizer(othValue, objValue, key, other, object, stack)
  13572. : customizer(objValue, othValue, key, object, other, stack);
  13573. }
  13574. // Recursively compare objects (susceptible to call stack limits).
  13575. if (!(compared === undefined
  13576. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  13577. : compared
  13578. )) {
  13579. result = false;
  13580. break;
  13581. }
  13582. skipCtor || (skipCtor = key == 'constructor');
  13583. }
  13584. if (result && !skipCtor) {
  13585. var objCtor = object.constructor,
  13586. othCtor = other.constructor;
  13587. // Non `Object` object instances with different constructors are not equal.
  13588. if (objCtor != othCtor &&
  13589. ('constructor' in object && 'constructor' in other) &&
  13590. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  13591. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  13592. result = false;
  13593. }
  13594. }
  13595. stack['delete'](object);
  13596. stack['delete'](other);
  13597. return result;
  13598. }
  13599. module.exports = equalObjects;
  13600. /***/ }),
  13601. /***/ "../../node_modules/lodash/_freeGlobal.js":
  13602. /*!**************************************************************!*\
  13603. !*** D:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  13604. \**************************************************************/
  13605. /*! no static exports found */
  13606. /***/ (function(module, exports, __webpack_require__) {
  13607. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  13608. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  13609. module.exports = freeGlobal;
  13610. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  13611. /***/ }),
  13612. /***/ "../../node_modules/lodash/_getAllKeys.js":
  13613. /*!**************************************************************!*\
  13614. !*** D:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  13615. \**************************************************************/
  13616. /*! no static exports found */
  13617. /***/ (function(module, exports, __webpack_require__) {
  13618. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  13619. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  13620. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  13621. /**
  13622. * Creates an array of own enumerable property names and symbols of `object`.
  13623. *
  13624. * @private
  13625. * @param {Object} object The object to query.
  13626. * @returns {Array} Returns the array of property names and symbols.
  13627. */
  13628. function getAllKeys(object) {
  13629. return baseGetAllKeys(object, keys, getSymbols);
  13630. }
  13631. module.exports = getAllKeys;
  13632. /***/ }),
  13633. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  13634. /*!****************************************************************!*\
  13635. !*** D:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  13636. \****************************************************************/
  13637. /*! no static exports found */
  13638. /***/ (function(module, exports, __webpack_require__) {
  13639. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  13640. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  13641. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  13642. /**
  13643. * Creates an array of own and inherited enumerable property names and
  13644. * symbols of `object`.
  13645. *
  13646. * @private
  13647. * @param {Object} object The object to query.
  13648. * @returns {Array} Returns the array of property names and symbols.
  13649. */
  13650. function getAllKeysIn(object) {
  13651. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  13652. }
  13653. module.exports = getAllKeysIn;
  13654. /***/ }),
  13655. /***/ "../../node_modules/lodash/_getMapData.js":
  13656. /*!**************************************************************!*\
  13657. !*** D:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  13658. \**************************************************************/
  13659. /*! no static exports found */
  13660. /***/ (function(module, exports, __webpack_require__) {
  13661. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  13662. /**
  13663. * Gets the data for `map`.
  13664. *
  13665. * @private
  13666. * @param {Object} map The map to query.
  13667. * @param {string} key The reference key.
  13668. * @returns {*} Returns the map data.
  13669. */
  13670. function getMapData(map, key) {
  13671. var data = map.__data__;
  13672. return isKeyable(key)
  13673. ? data[typeof key == 'string' ? 'string' : 'hash']
  13674. : data.map;
  13675. }
  13676. module.exports = getMapData;
  13677. /***/ }),
  13678. /***/ "../../node_modules/lodash/_getMatchData.js":
  13679. /*!****************************************************************!*\
  13680. !*** D:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  13681. \****************************************************************/
  13682. /*! no static exports found */
  13683. /***/ (function(module, exports, __webpack_require__) {
  13684. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  13685. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  13686. /**
  13687. * Gets the property names, values, and compare flags of `object`.
  13688. *
  13689. * @private
  13690. * @param {Object} object The object to query.
  13691. * @returns {Array} Returns the match data of `object`.
  13692. */
  13693. function getMatchData(object) {
  13694. var result = keys(object),
  13695. length = result.length;
  13696. while (length--) {
  13697. var key = result[length],
  13698. value = object[key];
  13699. result[length] = [key, value, isStrictComparable(value)];
  13700. }
  13701. return result;
  13702. }
  13703. module.exports = getMatchData;
  13704. /***/ }),
  13705. /***/ "../../node_modules/lodash/_getNative.js":
  13706. /*!*************************************************************!*\
  13707. !*** D:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  13708. \*************************************************************/
  13709. /*! no static exports found */
  13710. /***/ (function(module, exports, __webpack_require__) {
  13711. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  13712. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  13713. /**
  13714. * Gets the native function at `key` of `object`.
  13715. *
  13716. * @private
  13717. * @param {Object} object The object to query.
  13718. * @param {string} key The key of the method to get.
  13719. * @returns {*} Returns the function if it's native, else `undefined`.
  13720. */
  13721. function getNative(object, key) {
  13722. var value = getValue(object, key);
  13723. return baseIsNative(value) ? value : undefined;
  13724. }
  13725. module.exports = getNative;
  13726. /***/ }),
  13727. /***/ "../../node_modules/lodash/_getPrototype.js":
  13728. /*!****************************************************************!*\
  13729. !*** D:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  13730. \****************************************************************/
  13731. /*! no static exports found */
  13732. /***/ (function(module, exports, __webpack_require__) {
  13733. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13734. /** Built-in value references. */
  13735. var getPrototype = overArg(Object.getPrototypeOf, Object);
  13736. module.exports = getPrototype;
  13737. /***/ }),
  13738. /***/ "../../node_modules/lodash/_getRawTag.js":
  13739. /*!*************************************************************!*\
  13740. !*** D:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  13741. \*************************************************************/
  13742. /*! no static exports found */
  13743. /***/ (function(module, exports, __webpack_require__) {
  13744. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  13745. /** Used for built-in method references. */
  13746. var objectProto = Object.prototype;
  13747. /** Used to check objects for own properties. */
  13748. var hasOwnProperty = objectProto.hasOwnProperty;
  13749. /**
  13750. * Used to resolve the
  13751. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13752. * of values.
  13753. */
  13754. var nativeObjectToString = objectProto.toString;
  13755. /** Built-in value references. */
  13756. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  13757. /**
  13758. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  13759. *
  13760. * @private
  13761. * @param {*} value The value to query.
  13762. * @returns {string} Returns the raw `toStringTag`.
  13763. */
  13764. function getRawTag(value) {
  13765. var isOwn = hasOwnProperty.call(value, symToStringTag),
  13766. tag = value[symToStringTag];
  13767. try {
  13768. value[symToStringTag] = undefined;
  13769. var unmasked = true;
  13770. } catch (e) {}
  13771. var result = nativeObjectToString.call(value);
  13772. if (unmasked) {
  13773. if (isOwn) {
  13774. value[symToStringTag] = tag;
  13775. } else {
  13776. delete value[symToStringTag];
  13777. }
  13778. }
  13779. return result;
  13780. }
  13781. module.exports = getRawTag;
  13782. /***/ }),
  13783. /***/ "../../node_modules/lodash/_getSymbols.js":
  13784. /*!**************************************************************!*\
  13785. !*** D:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  13786. \**************************************************************/
  13787. /*! no static exports found */
  13788. /***/ (function(module, exports, __webpack_require__) {
  13789. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  13790. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  13791. /** Used for built-in method references. */
  13792. var objectProto = Object.prototype;
  13793. /** Built-in value references. */
  13794. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  13795. /* Built-in method references for those with the same name as other `lodash` methods. */
  13796. var nativeGetSymbols = Object.getOwnPropertySymbols;
  13797. /**
  13798. * Creates an array of the own enumerable symbols of `object`.
  13799. *
  13800. * @private
  13801. * @param {Object} object The object to query.
  13802. * @returns {Array} Returns the array of symbols.
  13803. */
  13804. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  13805. if (object == null) {
  13806. return [];
  13807. }
  13808. object = Object(object);
  13809. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  13810. return propertyIsEnumerable.call(object, symbol);
  13811. });
  13812. };
  13813. module.exports = getSymbols;
  13814. /***/ }),
  13815. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  13816. /*!****************************************************************!*\
  13817. !*** D:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  13818. \****************************************************************/
  13819. /*! no static exports found */
  13820. /***/ (function(module, exports, __webpack_require__) {
  13821. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  13822. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  13823. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  13824. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  13825. /* Built-in method references for those with the same name as other `lodash` methods. */
  13826. var nativeGetSymbols = Object.getOwnPropertySymbols;
  13827. /**
  13828. * Creates an array of the own and inherited enumerable symbols of `object`.
  13829. *
  13830. * @private
  13831. * @param {Object} object The object to query.
  13832. * @returns {Array} Returns the array of symbols.
  13833. */
  13834. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  13835. var result = [];
  13836. while (object) {
  13837. arrayPush(result, getSymbols(object));
  13838. object = getPrototype(object);
  13839. }
  13840. return result;
  13841. };
  13842. module.exports = getSymbolsIn;
  13843. /***/ }),
  13844. /***/ "../../node_modules/lodash/_getTag.js":
  13845. /*!**********************************************************!*\
  13846. !*** D:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  13847. \**********************************************************/
  13848. /*! no static exports found */
  13849. /***/ (function(module, exports, __webpack_require__) {
  13850. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  13851. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  13852. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  13853. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  13854. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  13855. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  13856. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  13857. /** `Object#toString` result references. */
  13858. var mapTag = '[object Map]',
  13859. objectTag = '[object Object]',
  13860. promiseTag = '[object Promise]',
  13861. setTag = '[object Set]',
  13862. weakMapTag = '[object WeakMap]';
  13863. var dataViewTag = '[object DataView]';
  13864. /** Used to detect maps, sets, and weakmaps. */
  13865. var dataViewCtorString = toSource(DataView),
  13866. mapCtorString = toSource(Map),
  13867. promiseCtorString = toSource(Promise),
  13868. setCtorString = toSource(Set),
  13869. weakMapCtorString = toSource(WeakMap);
  13870. /**
  13871. * Gets the `toStringTag` of `value`.
  13872. *
  13873. * @private
  13874. * @param {*} value The value to query.
  13875. * @returns {string} Returns the `toStringTag`.
  13876. */
  13877. var getTag = baseGetTag;
  13878. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  13879. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  13880. (Map && getTag(new Map) != mapTag) ||
  13881. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  13882. (Set && getTag(new Set) != setTag) ||
  13883. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  13884. getTag = function(value) {
  13885. var result = baseGetTag(value),
  13886. Ctor = result == objectTag ? value.constructor : undefined,
  13887. ctorString = Ctor ? toSource(Ctor) : '';
  13888. if (ctorString) {
  13889. switch (ctorString) {
  13890. case dataViewCtorString: return dataViewTag;
  13891. case mapCtorString: return mapTag;
  13892. case promiseCtorString: return promiseTag;
  13893. case setCtorString: return setTag;
  13894. case weakMapCtorString: return weakMapTag;
  13895. }
  13896. }
  13897. return result;
  13898. };
  13899. }
  13900. module.exports = getTag;
  13901. /***/ }),
  13902. /***/ "../../node_modules/lodash/_getValue.js":
  13903. /*!************************************************************!*\
  13904. !*** D:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  13905. \************************************************************/
  13906. /*! no static exports found */
  13907. /***/ (function(module, exports) {
  13908. /**
  13909. * Gets the value at `key` of `object`.
  13910. *
  13911. * @private
  13912. * @param {Object} [object] The object to query.
  13913. * @param {string} key The key of the property to get.
  13914. * @returns {*} Returns the property value.
  13915. */
  13916. function getValue(object, key) {
  13917. return object == null ? undefined : object[key];
  13918. }
  13919. module.exports = getValue;
  13920. /***/ }),
  13921. /***/ "../../node_modules/lodash/_hasPath.js":
  13922. /*!***********************************************************!*\
  13923. !*** D:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  13924. \***********************************************************/
  13925. /*! no static exports found */
  13926. /***/ (function(module, exports, __webpack_require__) {
  13927. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  13928. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  13929. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  13930. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  13931. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  13932. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  13933. /**
  13934. * Checks if `path` exists on `object`.
  13935. *
  13936. * @private
  13937. * @param {Object} object The object to query.
  13938. * @param {Array|string} path The path to check.
  13939. * @param {Function} hasFunc The function to check properties.
  13940. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  13941. */
  13942. function hasPath(object, path, hasFunc) {
  13943. path = castPath(path, object);
  13944. var index = -1,
  13945. length = path.length,
  13946. result = false;
  13947. while (++index < length) {
  13948. var key = toKey(path[index]);
  13949. if (!(result = object != null && hasFunc(object, key))) {
  13950. break;
  13951. }
  13952. object = object[key];
  13953. }
  13954. if (result || ++index != length) {
  13955. return result;
  13956. }
  13957. length = object == null ? 0 : object.length;
  13958. return !!length && isLength(length) && isIndex(key, length) &&
  13959. (isArray(object) || isArguments(object));
  13960. }
  13961. module.exports = hasPath;
  13962. /***/ }),
  13963. /***/ "../../node_modules/lodash/_hashClear.js":
  13964. /*!*************************************************************!*\
  13965. !*** D:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  13966. \*************************************************************/
  13967. /*! no static exports found */
  13968. /***/ (function(module, exports, __webpack_require__) {
  13969. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13970. /**
  13971. * Removes all key-value entries from the hash.
  13972. *
  13973. * @private
  13974. * @name clear
  13975. * @memberOf Hash
  13976. */
  13977. function hashClear() {
  13978. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  13979. this.size = 0;
  13980. }
  13981. module.exports = hashClear;
  13982. /***/ }),
  13983. /***/ "../../node_modules/lodash/_hashDelete.js":
  13984. /*!**************************************************************!*\
  13985. !*** D:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  13986. \**************************************************************/
  13987. /*! no static exports found */
  13988. /***/ (function(module, exports) {
  13989. /**
  13990. * Removes `key` and its value from the hash.
  13991. *
  13992. * @private
  13993. * @name delete
  13994. * @memberOf Hash
  13995. * @param {Object} hash The hash to modify.
  13996. * @param {string} key The key of the value to remove.
  13997. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13998. */
  13999. function hashDelete(key) {
  14000. var result = this.has(key) && delete this.__data__[key];
  14001. this.size -= result ? 1 : 0;
  14002. return result;
  14003. }
  14004. module.exports = hashDelete;
  14005. /***/ }),
  14006. /***/ "../../node_modules/lodash/_hashGet.js":
  14007. /*!***********************************************************!*\
  14008. !*** D:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  14009. \***********************************************************/
  14010. /*! no static exports found */
  14011. /***/ (function(module, exports, __webpack_require__) {
  14012. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  14013. /** Used to stand-in for `undefined` hash values. */
  14014. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  14015. /** Used for built-in method references. */
  14016. var objectProto = Object.prototype;
  14017. /** Used to check objects for own properties. */
  14018. var hasOwnProperty = objectProto.hasOwnProperty;
  14019. /**
  14020. * Gets the hash value for `key`.
  14021. *
  14022. * @private
  14023. * @name get
  14024. * @memberOf Hash
  14025. * @param {string} key The key of the value to get.
  14026. * @returns {*} Returns the entry value.
  14027. */
  14028. function hashGet(key) {
  14029. var data = this.__data__;
  14030. if (nativeCreate) {
  14031. var result = data[key];
  14032. return result === HASH_UNDEFINED ? undefined : result;
  14033. }
  14034. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  14035. }
  14036. module.exports = hashGet;
  14037. /***/ }),
  14038. /***/ "../../node_modules/lodash/_hashHas.js":
  14039. /*!***********************************************************!*\
  14040. !*** D:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  14041. \***********************************************************/
  14042. /*! no static exports found */
  14043. /***/ (function(module, exports, __webpack_require__) {
  14044. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  14045. /** Used for built-in method references. */
  14046. var objectProto = Object.prototype;
  14047. /** Used to check objects for own properties. */
  14048. var hasOwnProperty = objectProto.hasOwnProperty;
  14049. /**
  14050. * Checks if a hash value for `key` exists.
  14051. *
  14052. * @private
  14053. * @name has
  14054. * @memberOf Hash
  14055. * @param {string} key The key of the entry to check.
  14056. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14057. */
  14058. function hashHas(key) {
  14059. var data = this.__data__;
  14060. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  14061. }
  14062. module.exports = hashHas;
  14063. /***/ }),
  14064. /***/ "../../node_modules/lodash/_hashSet.js":
  14065. /*!***********************************************************!*\
  14066. !*** D:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  14067. \***********************************************************/
  14068. /*! no static exports found */
  14069. /***/ (function(module, exports, __webpack_require__) {
  14070. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  14071. /** Used to stand-in for `undefined` hash values. */
  14072. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  14073. /**
  14074. * Sets the hash `key` to `value`.
  14075. *
  14076. * @private
  14077. * @name set
  14078. * @memberOf Hash
  14079. * @param {string} key The key of the value to set.
  14080. * @param {*} value The value to set.
  14081. * @returns {Object} Returns the hash instance.
  14082. */
  14083. function hashSet(key, value) {
  14084. var data = this.__data__;
  14085. this.size += this.has(key) ? 0 : 1;
  14086. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  14087. return this;
  14088. }
  14089. module.exports = hashSet;
  14090. /***/ }),
  14091. /***/ "../../node_modules/lodash/_initCloneArray.js":
  14092. /*!******************************************************************!*\
  14093. !*** D:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  14094. \******************************************************************/
  14095. /*! no static exports found */
  14096. /***/ (function(module, exports) {
  14097. /** Used for built-in method references. */
  14098. var objectProto = Object.prototype;
  14099. /** Used to check objects for own properties. */
  14100. var hasOwnProperty = objectProto.hasOwnProperty;
  14101. /**
  14102. * Initializes an array clone.
  14103. *
  14104. * @private
  14105. * @param {Array} array The array to clone.
  14106. * @returns {Array} Returns the initialized clone.
  14107. */
  14108. function initCloneArray(array) {
  14109. var length = array.length,
  14110. result = new array.constructor(length);
  14111. // Add properties assigned by `RegExp#exec`.
  14112. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  14113. result.index = array.index;
  14114. result.input = array.input;
  14115. }
  14116. return result;
  14117. }
  14118. module.exports = initCloneArray;
  14119. /***/ }),
  14120. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  14121. /*!******************************************************************!*\
  14122. !*** D:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  14123. \******************************************************************/
  14124. /*! no static exports found */
  14125. /***/ (function(module, exports, __webpack_require__) {
  14126. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  14127. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  14128. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  14129. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  14130. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  14131. /** `Object#toString` result references. */
  14132. var boolTag = '[object Boolean]',
  14133. dateTag = '[object Date]',
  14134. mapTag = '[object Map]',
  14135. numberTag = '[object Number]',
  14136. regexpTag = '[object RegExp]',
  14137. setTag = '[object Set]',
  14138. stringTag = '[object String]',
  14139. symbolTag = '[object Symbol]';
  14140. var arrayBufferTag = '[object ArrayBuffer]',
  14141. dataViewTag = '[object DataView]',
  14142. float32Tag = '[object Float32Array]',
  14143. float64Tag = '[object Float64Array]',
  14144. int8Tag = '[object Int8Array]',
  14145. int16Tag = '[object Int16Array]',
  14146. int32Tag = '[object Int32Array]',
  14147. uint8Tag = '[object Uint8Array]',
  14148. uint8ClampedTag = '[object Uint8ClampedArray]',
  14149. uint16Tag = '[object Uint16Array]',
  14150. uint32Tag = '[object Uint32Array]';
  14151. /**
  14152. * Initializes an object clone based on its `toStringTag`.
  14153. *
  14154. * **Note:** This function only supports cloning values with tags of
  14155. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  14156. *
  14157. * @private
  14158. * @param {Object} object The object to clone.
  14159. * @param {string} tag The `toStringTag` of the object to clone.
  14160. * @param {boolean} [isDeep] Specify a deep clone.
  14161. * @returns {Object} Returns the initialized clone.
  14162. */
  14163. function initCloneByTag(object, tag, isDeep) {
  14164. var Ctor = object.constructor;
  14165. switch (tag) {
  14166. case arrayBufferTag:
  14167. return cloneArrayBuffer(object);
  14168. case boolTag:
  14169. case dateTag:
  14170. return new Ctor(+object);
  14171. case dataViewTag:
  14172. return cloneDataView(object, isDeep);
  14173. case float32Tag: case float64Tag:
  14174. case int8Tag: case int16Tag: case int32Tag:
  14175. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  14176. return cloneTypedArray(object, isDeep);
  14177. case mapTag:
  14178. return new Ctor;
  14179. case numberTag:
  14180. case stringTag:
  14181. return new Ctor(object);
  14182. case regexpTag:
  14183. return cloneRegExp(object);
  14184. case setTag:
  14185. return new Ctor;
  14186. case symbolTag:
  14187. return cloneSymbol(object);
  14188. }
  14189. }
  14190. module.exports = initCloneByTag;
  14191. /***/ }),
  14192. /***/ "../../node_modules/lodash/_initCloneObject.js":
  14193. /*!*******************************************************************!*\
  14194. !*** D:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  14195. \*******************************************************************/
  14196. /*! no static exports found */
  14197. /***/ (function(module, exports, __webpack_require__) {
  14198. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  14199. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  14200. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  14201. /**
  14202. * Initializes an object clone.
  14203. *
  14204. * @private
  14205. * @param {Object} object The object to clone.
  14206. * @returns {Object} Returns the initialized clone.
  14207. */
  14208. function initCloneObject(object) {
  14209. return (typeof object.constructor == 'function' && !isPrototype(object))
  14210. ? baseCreate(getPrototype(object))
  14211. : {};
  14212. }
  14213. module.exports = initCloneObject;
  14214. /***/ }),
  14215. /***/ "../../node_modules/lodash/_isIndex.js":
  14216. /*!***********************************************************!*\
  14217. !*** D:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  14218. \***********************************************************/
  14219. /*! no static exports found */
  14220. /***/ (function(module, exports) {
  14221. /** Used as references for various `Number` constants. */
  14222. var MAX_SAFE_INTEGER = 9007199254740991;
  14223. /** Used to detect unsigned integer values. */
  14224. var reIsUint = /^(?:0|[1-9]\d*)$/;
  14225. /**
  14226. * Checks if `value` is a valid array-like index.
  14227. *
  14228. * @private
  14229. * @param {*} value The value to check.
  14230. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  14231. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  14232. */
  14233. function isIndex(value, length) {
  14234. var type = typeof value;
  14235. length = length == null ? MAX_SAFE_INTEGER : length;
  14236. return !!length &&
  14237. (type == 'number' ||
  14238. (type != 'symbol' && reIsUint.test(value))) &&
  14239. (value > -1 && value % 1 == 0 && value < length);
  14240. }
  14241. module.exports = isIndex;
  14242. /***/ }),
  14243. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  14244. /*!******************************************************************!*\
  14245. !*** D:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  14246. \******************************************************************/
  14247. /*! no static exports found */
  14248. /***/ (function(module, exports, __webpack_require__) {
  14249. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14250. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  14251. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  14252. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  14253. /**
  14254. * Checks if the given arguments are from an iteratee call.
  14255. *
  14256. * @private
  14257. * @param {*} value The potential iteratee value argument.
  14258. * @param {*} index The potential iteratee index or key argument.
  14259. * @param {*} object The potential iteratee object argument.
  14260. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  14261. * else `false`.
  14262. */
  14263. function isIterateeCall(value, index, object) {
  14264. if (!isObject(object)) {
  14265. return false;
  14266. }
  14267. var type = typeof index;
  14268. if (type == 'number'
  14269. ? (isArrayLike(object) && isIndex(index, object.length))
  14270. : (type == 'string' && index in object)
  14271. ) {
  14272. return eq(object[index], value);
  14273. }
  14274. return false;
  14275. }
  14276. module.exports = isIterateeCall;
  14277. /***/ }),
  14278. /***/ "../../node_modules/lodash/_isKey.js":
  14279. /*!*********************************************************!*\
  14280. !*** D:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  14281. \*********************************************************/
  14282. /*! no static exports found */
  14283. /***/ (function(module, exports, __webpack_require__) {
  14284. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  14285. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14286. /** Used to match property names within property paths. */
  14287. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  14288. reIsPlainProp = /^\w*$/;
  14289. /**
  14290. * Checks if `value` is a property name and not a property path.
  14291. *
  14292. * @private
  14293. * @param {*} value The value to check.
  14294. * @param {Object} [object] The object to query keys on.
  14295. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  14296. */
  14297. function isKey(value, object) {
  14298. if (isArray(value)) {
  14299. return false;
  14300. }
  14301. var type = typeof value;
  14302. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  14303. value == null || isSymbol(value)) {
  14304. return true;
  14305. }
  14306. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  14307. (object != null && value in Object(object));
  14308. }
  14309. module.exports = isKey;
  14310. /***/ }),
  14311. /***/ "../../node_modules/lodash/_isKeyable.js":
  14312. /*!*************************************************************!*\
  14313. !*** D:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  14314. \*************************************************************/
  14315. /*! no static exports found */
  14316. /***/ (function(module, exports) {
  14317. /**
  14318. * Checks if `value` is suitable for use as unique object key.
  14319. *
  14320. * @private
  14321. * @param {*} value The value to check.
  14322. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  14323. */
  14324. function isKeyable(value) {
  14325. var type = typeof value;
  14326. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  14327. ? (value !== '__proto__')
  14328. : (value === null);
  14329. }
  14330. module.exports = isKeyable;
  14331. /***/ }),
  14332. /***/ "../../node_modules/lodash/_isMasked.js":
  14333. /*!************************************************************!*\
  14334. !*** D:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  14335. \************************************************************/
  14336. /*! no static exports found */
  14337. /***/ (function(module, exports, __webpack_require__) {
  14338. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  14339. /** Used to detect methods masquerading as native. */
  14340. var maskSrcKey = (function() {
  14341. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  14342. return uid ? ('Symbol(src)_1.' + uid) : '';
  14343. }());
  14344. /**
  14345. * Checks if `func` has its source masked.
  14346. *
  14347. * @private
  14348. * @param {Function} func The function to check.
  14349. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  14350. */
  14351. function isMasked(func) {
  14352. return !!maskSrcKey && (maskSrcKey in func);
  14353. }
  14354. module.exports = isMasked;
  14355. /***/ }),
  14356. /***/ "../../node_modules/lodash/_isPrototype.js":
  14357. /*!***************************************************************!*\
  14358. !*** D:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  14359. \***************************************************************/
  14360. /*! no static exports found */
  14361. /***/ (function(module, exports) {
  14362. /** Used for built-in method references. */
  14363. var objectProto = Object.prototype;
  14364. /**
  14365. * Checks if `value` is likely a prototype object.
  14366. *
  14367. * @private
  14368. * @param {*} value The value to check.
  14369. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  14370. */
  14371. function isPrototype(value) {
  14372. var Ctor = value && value.constructor,
  14373. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  14374. return value === proto;
  14375. }
  14376. module.exports = isPrototype;
  14377. /***/ }),
  14378. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  14379. /*!**********************************************************************!*\
  14380. !*** D:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  14381. \**********************************************************************/
  14382. /*! no static exports found */
  14383. /***/ (function(module, exports, __webpack_require__) {
  14384. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  14385. /**
  14386. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  14387. *
  14388. * @private
  14389. * @param {*} value The value to check.
  14390. * @returns {boolean} Returns `true` if `value` if suitable for strict
  14391. * equality comparisons, else `false`.
  14392. */
  14393. function isStrictComparable(value) {
  14394. return value === value && !isObject(value);
  14395. }
  14396. module.exports = isStrictComparable;
  14397. /***/ }),
  14398. /***/ "../../node_modules/lodash/_listCacheClear.js":
  14399. /*!******************************************************************!*\
  14400. !*** D:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  14401. \******************************************************************/
  14402. /*! no static exports found */
  14403. /***/ (function(module, exports) {
  14404. /**
  14405. * Removes all key-value entries from the list cache.
  14406. *
  14407. * @private
  14408. * @name clear
  14409. * @memberOf ListCache
  14410. */
  14411. function listCacheClear() {
  14412. this.__data__ = [];
  14413. this.size = 0;
  14414. }
  14415. module.exports = listCacheClear;
  14416. /***/ }),
  14417. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  14418. /*!*******************************************************************!*\
  14419. !*** D:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  14420. \*******************************************************************/
  14421. /*! no static exports found */
  14422. /***/ (function(module, exports, __webpack_require__) {
  14423. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  14424. /** Used for built-in method references. */
  14425. var arrayProto = Array.prototype;
  14426. /** Built-in value references. */
  14427. var splice = arrayProto.splice;
  14428. /**
  14429. * Removes `key` and its value from the list cache.
  14430. *
  14431. * @private
  14432. * @name delete
  14433. * @memberOf ListCache
  14434. * @param {string} key The key of the value to remove.
  14435. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14436. */
  14437. function listCacheDelete(key) {
  14438. var data = this.__data__,
  14439. index = assocIndexOf(data, key);
  14440. if (index < 0) {
  14441. return false;
  14442. }
  14443. var lastIndex = data.length - 1;
  14444. if (index == lastIndex) {
  14445. data.pop();
  14446. } else {
  14447. splice.call(data, index, 1);
  14448. }
  14449. --this.size;
  14450. return true;
  14451. }
  14452. module.exports = listCacheDelete;
  14453. /***/ }),
  14454. /***/ "../../node_modules/lodash/_listCacheGet.js":
  14455. /*!****************************************************************!*\
  14456. !*** D:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  14457. \****************************************************************/
  14458. /*! no static exports found */
  14459. /***/ (function(module, exports, __webpack_require__) {
  14460. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  14461. /**
  14462. * Gets the list cache value for `key`.
  14463. *
  14464. * @private
  14465. * @name get
  14466. * @memberOf ListCache
  14467. * @param {string} key The key of the value to get.
  14468. * @returns {*} Returns the entry value.
  14469. */
  14470. function listCacheGet(key) {
  14471. var data = this.__data__,
  14472. index = assocIndexOf(data, key);
  14473. return index < 0 ? undefined : data[index][1];
  14474. }
  14475. module.exports = listCacheGet;
  14476. /***/ }),
  14477. /***/ "../../node_modules/lodash/_listCacheHas.js":
  14478. /*!****************************************************************!*\
  14479. !*** D:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  14480. \****************************************************************/
  14481. /*! no static exports found */
  14482. /***/ (function(module, exports, __webpack_require__) {
  14483. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  14484. /**
  14485. * Checks if a list cache value for `key` exists.
  14486. *
  14487. * @private
  14488. * @name has
  14489. * @memberOf ListCache
  14490. * @param {string} key The key of the entry to check.
  14491. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14492. */
  14493. function listCacheHas(key) {
  14494. return assocIndexOf(this.__data__, key) > -1;
  14495. }
  14496. module.exports = listCacheHas;
  14497. /***/ }),
  14498. /***/ "../../node_modules/lodash/_listCacheSet.js":
  14499. /*!****************************************************************!*\
  14500. !*** D:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  14501. \****************************************************************/
  14502. /*! no static exports found */
  14503. /***/ (function(module, exports, __webpack_require__) {
  14504. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  14505. /**
  14506. * Sets the list cache `key` to `value`.
  14507. *
  14508. * @private
  14509. * @name set
  14510. * @memberOf ListCache
  14511. * @param {string} key The key of the value to set.
  14512. * @param {*} value The value to set.
  14513. * @returns {Object} Returns the list cache instance.
  14514. */
  14515. function listCacheSet(key, value) {
  14516. var data = this.__data__,
  14517. index = assocIndexOf(data, key);
  14518. if (index < 0) {
  14519. ++this.size;
  14520. data.push([key, value]);
  14521. } else {
  14522. data[index][1] = value;
  14523. }
  14524. return this;
  14525. }
  14526. module.exports = listCacheSet;
  14527. /***/ }),
  14528. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  14529. /*!*****************************************************************!*\
  14530. !*** D:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  14531. \*****************************************************************/
  14532. /*! no static exports found */
  14533. /***/ (function(module, exports, __webpack_require__) {
  14534. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  14535. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  14536. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  14537. /**
  14538. * Removes all key-value entries from the map.
  14539. *
  14540. * @private
  14541. * @name clear
  14542. * @memberOf MapCache
  14543. */
  14544. function mapCacheClear() {
  14545. this.size = 0;
  14546. this.__data__ = {
  14547. 'hash': new Hash,
  14548. 'map': new (Map || ListCache),
  14549. 'string': new Hash
  14550. };
  14551. }
  14552. module.exports = mapCacheClear;
  14553. /***/ }),
  14554. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  14555. /*!******************************************************************!*\
  14556. !*** D:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  14557. \******************************************************************/
  14558. /*! no static exports found */
  14559. /***/ (function(module, exports, __webpack_require__) {
  14560. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  14561. /**
  14562. * Removes `key` and its value from the map.
  14563. *
  14564. * @private
  14565. * @name delete
  14566. * @memberOf MapCache
  14567. * @param {string} key The key of the value to remove.
  14568. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14569. */
  14570. function mapCacheDelete(key) {
  14571. var result = getMapData(this, key)['delete'](key);
  14572. this.size -= result ? 1 : 0;
  14573. return result;
  14574. }
  14575. module.exports = mapCacheDelete;
  14576. /***/ }),
  14577. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  14578. /*!***************************************************************!*\
  14579. !*** D:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  14580. \***************************************************************/
  14581. /*! no static exports found */
  14582. /***/ (function(module, exports, __webpack_require__) {
  14583. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  14584. /**
  14585. * Gets the map value for `key`.
  14586. *
  14587. * @private
  14588. * @name get
  14589. * @memberOf MapCache
  14590. * @param {string} key The key of the value to get.
  14591. * @returns {*} Returns the entry value.
  14592. */
  14593. function mapCacheGet(key) {
  14594. return getMapData(this, key).get(key);
  14595. }
  14596. module.exports = mapCacheGet;
  14597. /***/ }),
  14598. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  14599. /*!***************************************************************!*\
  14600. !*** D:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  14601. \***************************************************************/
  14602. /*! no static exports found */
  14603. /***/ (function(module, exports, __webpack_require__) {
  14604. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  14605. /**
  14606. * Checks if a map value for `key` exists.
  14607. *
  14608. * @private
  14609. * @name has
  14610. * @memberOf MapCache
  14611. * @param {string} key The key of the entry to check.
  14612. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14613. */
  14614. function mapCacheHas(key) {
  14615. return getMapData(this, key).has(key);
  14616. }
  14617. module.exports = mapCacheHas;
  14618. /***/ }),
  14619. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  14620. /*!***************************************************************!*\
  14621. !*** D:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  14622. \***************************************************************/
  14623. /*! no static exports found */
  14624. /***/ (function(module, exports, __webpack_require__) {
  14625. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  14626. /**
  14627. * Sets the map `key` to `value`.
  14628. *
  14629. * @private
  14630. * @name set
  14631. * @memberOf MapCache
  14632. * @param {string} key The key of the value to set.
  14633. * @param {*} value The value to set.
  14634. * @returns {Object} Returns the map cache instance.
  14635. */
  14636. function mapCacheSet(key, value) {
  14637. var data = getMapData(this, key),
  14638. size = data.size;
  14639. data.set(key, value);
  14640. this.size += data.size == size ? 0 : 1;
  14641. return this;
  14642. }
  14643. module.exports = mapCacheSet;
  14644. /***/ }),
  14645. /***/ "../../node_modules/lodash/_mapToArray.js":
  14646. /*!**************************************************************!*\
  14647. !*** D:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  14648. \**************************************************************/
  14649. /*! no static exports found */
  14650. /***/ (function(module, exports) {
  14651. /**
  14652. * Converts `map` to its key-value pairs.
  14653. *
  14654. * @private
  14655. * @param {Object} map The map to convert.
  14656. * @returns {Array} Returns the key-value pairs.
  14657. */
  14658. function mapToArray(map) {
  14659. var index = -1,
  14660. result = Array(map.size);
  14661. map.forEach(function(value, key) {
  14662. result[++index] = [key, value];
  14663. });
  14664. return result;
  14665. }
  14666. module.exports = mapToArray;
  14667. /***/ }),
  14668. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  14669. /*!***************************************************************************!*\
  14670. !*** D:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  14671. \***************************************************************************/
  14672. /*! no static exports found */
  14673. /***/ (function(module, exports) {
  14674. /**
  14675. * A specialized version of `matchesProperty` for source values suitable
  14676. * for strict equality comparisons, i.e. `===`.
  14677. *
  14678. * @private
  14679. * @param {string} key The key of the property to get.
  14680. * @param {*} srcValue The value to match.
  14681. * @returns {Function} Returns the new spec function.
  14682. */
  14683. function matchesStrictComparable(key, srcValue) {
  14684. return function(object) {
  14685. if (object == null) {
  14686. return false;
  14687. }
  14688. return object[key] === srcValue &&
  14689. (srcValue !== undefined || (key in Object(object)));
  14690. };
  14691. }
  14692. module.exports = matchesStrictComparable;
  14693. /***/ }),
  14694. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  14695. /*!*****************************************************************!*\
  14696. !*** D:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  14697. \*****************************************************************/
  14698. /*! no static exports found */
  14699. /***/ (function(module, exports, __webpack_require__) {
  14700. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  14701. /** Used as the maximum memoize cache size. */
  14702. var MAX_MEMOIZE_SIZE = 500;
  14703. /**
  14704. * A specialized version of `_.memoize` which clears the memoized function's
  14705. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  14706. *
  14707. * @private
  14708. * @param {Function} func The function to have its output memoized.
  14709. * @returns {Function} Returns the new memoized function.
  14710. */
  14711. function memoizeCapped(func) {
  14712. var result = memoize(func, function(key) {
  14713. if (cache.size === MAX_MEMOIZE_SIZE) {
  14714. cache.clear();
  14715. }
  14716. return key;
  14717. });
  14718. var cache = result.cache;
  14719. return result;
  14720. }
  14721. module.exports = memoizeCapped;
  14722. /***/ }),
  14723. /***/ "../../node_modules/lodash/_nativeCreate.js":
  14724. /*!****************************************************************!*\
  14725. !*** D:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  14726. \****************************************************************/
  14727. /*! no static exports found */
  14728. /***/ (function(module, exports, __webpack_require__) {
  14729. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  14730. /* Built-in method references that are verified to be native. */
  14731. var nativeCreate = getNative(Object, 'create');
  14732. module.exports = nativeCreate;
  14733. /***/ }),
  14734. /***/ "../../node_modules/lodash/_nativeKeys.js":
  14735. /*!**************************************************************!*\
  14736. !*** D:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  14737. \**************************************************************/
  14738. /*! no static exports found */
  14739. /***/ (function(module, exports, __webpack_require__) {
  14740. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  14741. /* Built-in method references for those with the same name as other `lodash` methods. */
  14742. var nativeKeys = overArg(Object.keys, Object);
  14743. module.exports = nativeKeys;
  14744. /***/ }),
  14745. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  14746. /*!****************************************************************!*\
  14747. !*** D:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  14748. \****************************************************************/
  14749. /*! no static exports found */
  14750. /***/ (function(module, exports) {
  14751. /**
  14752. * This function is like
  14753. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  14754. * except that it includes inherited enumerable properties.
  14755. *
  14756. * @private
  14757. * @param {Object} object The object to query.
  14758. * @returns {Array} Returns the array of property names.
  14759. */
  14760. function nativeKeysIn(object) {
  14761. var result = [];
  14762. if (object != null) {
  14763. for (var key in Object(object)) {
  14764. result.push(key);
  14765. }
  14766. }
  14767. return result;
  14768. }
  14769. module.exports = nativeKeysIn;
  14770. /***/ }),
  14771. /***/ "../../node_modules/lodash/_nodeUtil.js":
  14772. /*!************************************************************!*\
  14773. !*** D:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  14774. \************************************************************/
  14775. /*! no static exports found */
  14776. /***/ (function(module, exports, __webpack_require__) {
  14777. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  14778. /** Detect free variable `exports`. */
  14779. var freeExports = true && exports && !exports.nodeType && exports;
  14780. /** Detect free variable `module`. */
  14781. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  14782. /** Detect the popular CommonJS extension `module.exports`. */
  14783. var moduleExports = freeModule && freeModule.exports === freeExports;
  14784. /** Detect free variable `process` from Node.js. */
  14785. var freeProcess = moduleExports && freeGlobal.process;
  14786. /** Used to access faster Node.js helpers. */
  14787. var nodeUtil = (function() {
  14788. try {
  14789. // Use `util.types` for Node.js 10+.
  14790. var types = freeModule && freeModule.require && freeModule.require('util').types;
  14791. if (types) {
  14792. return types;
  14793. }
  14794. // Legacy `process.binding('util')` for Node.js < 10.
  14795. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  14796. } catch (e) {}
  14797. }());
  14798. module.exports = nodeUtil;
  14799. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  14800. /***/ }),
  14801. /***/ "../../node_modules/lodash/_objectToString.js":
  14802. /*!******************************************************************!*\
  14803. !*** D:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  14804. \******************************************************************/
  14805. /*! no static exports found */
  14806. /***/ (function(module, exports) {
  14807. /** Used for built-in method references. */
  14808. var objectProto = Object.prototype;
  14809. /**
  14810. * Used to resolve the
  14811. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  14812. * of values.
  14813. */
  14814. var nativeObjectToString = objectProto.toString;
  14815. /**
  14816. * Converts `value` to a string using `Object.prototype.toString`.
  14817. *
  14818. * @private
  14819. * @param {*} value The value to convert.
  14820. * @returns {string} Returns the converted string.
  14821. */
  14822. function objectToString(value) {
  14823. return nativeObjectToString.call(value);
  14824. }
  14825. module.exports = objectToString;
  14826. /***/ }),
  14827. /***/ "../../node_modules/lodash/_overArg.js":
  14828. /*!***********************************************************!*\
  14829. !*** D:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  14830. \***********************************************************/
  14831. /*! no static exports found */
  14832. /***/ (function(module, exports) {
  14833. /**
  14834. * Creates a unary function that invokes `func` with its argument transformed.
  14835. *
  14836. * @private
  14837. * @param {Function} func The function to wrap.
  14838. * @param {Function} transform The argument transform.
  14839. * @returns {Function} Returns the new function.
  14840. */
  14841. function overArg(func, transform) {
  14842. return function(arg) {
  14843. return func(transform(arg));
  14844. };
  14845. }
  14846. module.exports = overArg;
  14847. /***/ }),
  14848. /***/ "../../node_modules/lodash/_overRest.js":
  14849. /*!************************************************************!*\
  14850. !*** D:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  14851. \************************************************************/
  14852. /*! no static exports found */
  14853. /***/ (function(module, exports, __webpack_require__) {
  14854. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  14855. /* Built-in method references for those with the same name as other `lodash` methods. */
  14856. var nativeMax = Math.max;
  14857. /**
  14858. * A specialized version of `baseRest` which transforms the rest array.
  14859. *
  14860. * @private
  14861. * @param {Function} func The function to apply a rest parameter to.
  14862. * @param {number} [start=func.length-1] The start position of the rest parameter.
  14863. * @param {Function} transform The rest array transform.
  14864. * @returns {Function} Returns the new function.
  14865. */
  14866. function overRest(func, start, transform) {
  14867. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  14868. return function() {
  14869. var args = arguments,
  14870. index = -1,
  14871. length = nativeMax(args.length - start, 0),
  14872. array = Array(length);
  14873. while (++index < length) {
  14874. array[index] = args[start + index];
  14875. }
  14876. index = -1;
  14877. var otherArgs = Array(start + 1);
  14878. while (++index < start) {
  14879. otherArgs[index] = args[index];
  14880. }
  14881. otherArgs[start] = transform(array);
  14882. return apply(func, this, otherArgs);
  14883. };
  14884. }
  14885. module.exports = overRest;
  14886. /***/ }),
  14887. /***/ "../../node_modules/lodash/_root.js":
  14888. /*!********************************************************!*\
  14889. !*** D:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  14890. \********************************************************/
  14891. /*! no static exports found */
  14892. /***/ (function(module, exports, __webpack_require__) {
  14893. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  14894. /** Detect free variable `self`. */
  14895. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  14896. /** Used as a reference to the global object. */
  14897. var root = freeGlobal || freeSelf || Function('return this')();
  14898. module.exports = root;
  14899. /***/ }),
  14900. /***/ "../../node_modules/lodash/_safeGet.js":
  14901. /*!***********************************************************!*\
  14902. !*** D:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  14903. \***********************************************************/
  14904. /*! no static exports found */
  14905. /***/ (function(module, exports) {
  14906. /**
  14907. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  14908. *
  14909. * @private
  14910. * @param {Object} object The object to query.
  14911. * @param {string} key The key of the property to get.
  14912. * @returns {*} Returns the property value.
  14913. */
  14914. function safeGet(object, key) {
  14915. if (key === 'constructor' && typeof object[key] === 'function') {
  14916. return;
  14917. }
  14918. if (key == '__proto__') {
  14919. return;
  14920. }
  14921. return object[key];
  14922. }
  14923. module.exports = safeGet;
  14924. /***/ }),
  14925. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  14926. /*!***************************************************************!*\
  14927. !*** D:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  14928. \***************************************************************/
  14929. /*! no static exports found */
  14930. /***/ (function(module, exports) {
  14931. /** Used to stand-in for `undefined` hash values. */
  14932. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  14933. /**
  14934. * Adds `value` to the array cache.
  14935. *
  14936. * @private
  14937. * @name add
  14938. * @memberOf SetCache
  14939. * @alias push
  14940. * @param {*} value The value to cache.
  14941. * @returns {Object} Returns the cache instance.
  14942. */
  14943. function setCacheAdd(value) {
  14944. this.__data__.set(value, HASH_UNDEFINED);
  14945. return this;
  14946. }
  14947. module.exports = setCacheAdd;
  14948. /***/ }),
  14949. /***/ "../../node_modules/lodash/_setCacheHas.js":
  14950. /*!***************************************************************!*\
  14951. !*** D:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  14952. \***************************************************************/
  14953. /*! no static exports found */
  14954. /***/ (function(module, exports) {
  14955. /**
  14956. * Checks if `value` is in the array cache.
  14957. *
  14958. * @private
  14959. * @name has
  14960. * @memberOf SetCache
  14961. * @param {*} value The value to search for.
  14962. * @returns {number} Returns `true` if `value` is found, else `false`.
  14963. */
  14964. function setCacheHas(value) {
  14965. return this.__data__.has(value);
  14966. }
  14967. module.exports = setCacheHas;
  14968. /***/ }),
  14969. /***/ "../../node_modules/lodash/_setToArray.js":
  14970. /*!**************************************************************!*\
  14971. !*** D:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  14972. \**************************************************************/
  14973. /*! no static exports found */
  14974. /***/ (function(module, exports) {
  14975. /**
  14976. * Converts `set` to an array of its values.
  14977. *
  14978. * @private
  14979. * @param {Object} set The set to convert.
  14980. * @returns {Array} Returns the values.
  14981. */
  14982. function setToArray(set) {
  14983. var index = -1,
  14984. result = Array(set.size);
  14985. set.forEach(function(value) {
  14986. result[++index] = value;
  14987. });
  14988. return result;
  14989. }
  14990. module.exports = setToArray;
  14991. /***/ }),
  14992. /***/ "../../node_modules/lodash/_setToString.js":
  14993. /*!***************************************************************!*\
  14994. !*** D:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  14995. \***************************************************************/
  14996. /*! no static exports found */
  14997. /***/ (function(module, exports, __webpack_require__) {
  14998. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  14999. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  15000. /**
  15001. * Sets the `toString` method of `func` to return `string`.
  15002. *
  15003. * @private
  15004. * @param {Function} func The function to modify.
  15005. * @param {Function} string The `toString` result.
  15006. * @returns {Function} Returns `func`.
  15007. */
  15008. var setToString = shortOut(baseSetToString);
  15009. module.exports = setToString;
  15010. /***/ }),
  15011. /***/ "../../node_modules/lodash/_shortOut.js":
  15012. /*!************************************************************!*\
  15013. !*** D:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  15014. \************************************************************/
  15015. /*! no static exports found */
  15016. /***/ (function(module, exports) {
  15017. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  15018. var HOT_COUNT = 800,
  15019. HOT_SPAN = 16;
  15020. /* Built-in method references for those with the same name as other `lodash` methods. */
  15021. var nativeNow = Date.now;
  15022. /**
  15023. * Creates a function that'll short out and invoke `identity` instead
  15024. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  15025. * milliseconds.
  15026. *
  15027. * @private
  15028. * @param {Function} func The function to restrict.
  15029. * @returns {Function} Returns the new shortable function.
  15030. */
  15031. function shortOut(func) {
  15032. var count = 0,
  15033. lastCalled = 0;
  15034. return function() {
  15035. var stamp = nativeNow(),
  15036. remaining = HOT_SPAN - (stamp - lastCalled);
  15037. lastCalled = stamp;
  15038. if (remaining > 0) {
  15039. if (++count >= HOT_COUNT) {
  15040. return arguments[0];
  15041. }
  15042. } else {
  15043. count = 0;
  15044. }
  15045. return func.apply(undefined, arguments);
  15046. };
  15047. }
  15048. module.exports = shortOut;
  15049. /***/ }),
  15050. /***/ "../../node_modules/lodash/_stackClear.js":
  15051. /*!**************************************************************!*\
  15052. !*** D:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  15053. \**************************************************************/
  15054. /*! no static exports found */
  15055. /***/ (function(module, exports, __webpack_require__) {
  15056. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  15057. /**
  15058. * Removes all key-value entries from the stack.
  15059. *
  15060. * @private
  15061. * @name clear
  15062. * @memberOf Stack
  15063. */
  15064. function stackClear() {
  15065. this.__data__ = new ListCache;
  15066. this.size = 0;
  15067. }
  15068. module.exports = stackClear;
  15069. /***/ }),
  15070. /***/ "../../node_modules/lodash/_stackDelete.js":
  15071. /*!***************************************************************!*\
  15072. !*** D:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  15073. \***************************************************************/
  15074. /*! no static exports found */
  15075. /***/ (function(module, exports) {
  15076. /**
  15077. * Removes `key` and its value from the stack.
  15078. *
  15079. * @private
  15080. * @name delete
  15081. * @memberOf Stack
  15082. * @param {string} key The key of the value to remove.
  15083. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  15084. */
  15085. function stackDelete(key) {
  15086. var data = this.__data__,
  15087. result = data['delete'](key);
  15088. this.size = data.size;
  15089. return result;
  15090. }
  15091. module.exports = stackDelete;
  15092. /***/ }),
  15093. /***/ "../../node_modules/lodash/_stackGet.js":
  15094. /*!************************************************************!*\
  15095. !*** D:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  15096. \************************************************************/
  15097. /*! no static exports found */
  15098. /***/ (function(module, exports) {
  15099. /**
  15100. * Gets the stack value for `key`.
  15101. *
  15102. * @private
  15103. * @name get
  15104. * @memberOf Stack
  15105. * @param {string} key The key of the value to get.
  15106. * @returns {*} Returns the entry value.
  15107. */
  15108. function stackGet(key) {
  15109. return this.__data__.get(key);
  15110. }
  15111. module.exports = stackGet;
  15112. /***/ }),
  15113. /***/ "../../node_modules/lodash/_stackHas.js":
  15114. /*!************************************************************!*\
  15115. !*** D:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  15116. \************************************************************/
  15117. /*! no static exports found */
  15118. /***/ (function(module, exports) {
  15119. /**
  15120. * Checks if a stack value for `key` exists.
  15121. *
  15122. * @private
  15123. * @name has
  15124. * @memberOf Stack
  15125. * @param {string} key The key of the entry to check.
  15126. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  15127. */
  15128. function stackHas(key) {
  15129. return this.__data__.has(key);
  15130. }
  15131. module.exports = stackHas;
  15132. /***/ }),
  15133. /***/ "../../node_modules/lodash/_stackSet.js":
  15134. /*!************************************************************!*\
  15135. !*** D:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  15136. \************************************************************/
  15137. /*! no static exports found */
  15138. /***/ (function(module, exports, __webpack_require__) {
  15139. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  15140. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  15141. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  15142. /** Used as the size to enable large array optimizations. */
  15143. var LARGE_ARRAY_SIZE = 200;
  15144. /**
  15145. * Sets the stack `key` to `value`.
  15146. *
  15147. * @private
  15148. * @name set
  15149. * @memberOf Stack
  15150. * @param {string} key The key of the value to set.
  15151. * @param {*} value The value to set.
  15152. * @returns {Object} Returns the stack cache instance.
  15153. */
  15154. function stackSet(key, value) {
  15155. var data = this.__data__;
  15156. if (data instanceof ListCache) {
  15157. var pairs = data.__data__;
  15158. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  15159. pairs.push([key, value]);
  15160. this.size = ++data.size;
  15161. return this;
  15162. }
  15163. data = this.__data__ = new MapCache(pairs);
  15164. }
  15165. data.set(key, value);
  15166. this.size = data.size;
  15167. return this;
  15168. }
  15169. module.exports = stackSet;
  15170. /***/ }),
  15171. /***/ "../../node_modules/lodash/_stringToPath.js":
  15172. /*!****************************************************************!*\
  15173. !*** D:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  15174. \****************************************************************/
  15175. /*! no static exports found */
  15176. /***/ (function(module, exports, __webpack_require__) {
  15177. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  15178. /** Used to match property names within property paths. */
  15179. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  15180. /** Used to match backslashes in property paths. */
  15181. var reEscapeChar = /\\(\\)?/g;
  15182. /**
  15183. * Converts `string` to a property path array.
  15184. *
  15185. * @private
  15186. * @param {string} string The string to convert.
  15187. * @returns {Array} Returns the property path array.
  15188. */
  15189. var stringToPath = memoizeCapped(function(string) {
  15190. var result = [];
  15191. if (string.charCodeAt(0) === 46 /* . */) {
  15192. result.push('');
  15193. }
  15194. string.replace(rePropName, function(match, number, quote, subString) {
  15195. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  15196. });
  15197. return result;
  15198. });
  15199. module.exports = stringToPath;
  15200. /***/ }),
  15201. /***/ "../../node_modules/lodash/_toKey.js":
  15202. /*!*********************************************************!*\
  15203. !*** D:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  15204. \*********************************************************/
  15205. /*! no static exports found */
  15206. /***/ (function(module, exports, __webpack_require__) {
  15207. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  15208. /** Used as references for various `Number` constants. */
  15209. var INFINITY = 1 / 0;
  15210. /**
  15211. * Converts `value` to a string key if it's not a string or symbol.
  15212. *
  15213. * @private
  15214. * @param {*} value The value to inspect.
  15215. * @returns {string|symbol} Returns the key.
  15216. */
  15217. function toKey(value) {
  15218. if (typeof value == 'string' || isSymbol(value)) {
  15219. return value;
  15220. }
  15221. var result = (value + '');
  15222. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  15223. }
  15224. module.exports = toKey;
  15225. /***/ }),
  15226. /***/ "../../node_modules/lodash/_toSource.js":
  15227. /*!************************************************************!*\
  15228. !*** D:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  15229. \************************************************************/
  15230. /*! no static exports found */
  15231. /***/ (function(module, exports) {
  15232. /** Used for built-in method references. */
  15233. var funcProto = Function.prototype;
  15234. /** Used to resolve the decompiled source of functions. */
  15235. var funcToString = funcProto.toString;
  15236. /**
  15237. * Converts `func` to its source code.
  15238. *
  15239. * @private
  15240. * @param {Function} func The function to convert.
  15241. * @returns {string} Returns the source code.
  15242. */
  15243. function toSource(func) {
  15244. if (func != null) {
  15245. try {
  15246. return funcToString.call(func);
  15247. } catch (e) {}
  15248. try {
  15249. return (func + '');
  15250. } catch (e) {}
  15251. }
  15252. return '';
  15253. }
  15254. module.exports = toSource;
  15255. /***/ }),
  15256. /***/ "../../node_modules/lodash/cloneDeep.js":
  15257. /*!************************************************************!*\
  15258. !*** D:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  15259. \************************************************************/
  15260. /*! no static exports found */
  15261. /***/ (function(module, exports, __webpack_require__) {
  15262. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  15263. /** Used to compose bitmasks for cloning. */
  15264. var CLONE_DEEP_FLAG = 1,
  15265. CLONE_SYMBOLS_FLAG = 4;
  15266. /**
  15267. * This method is like `_.clone` except that it recursively clones `value`.
  15268. *
  15269. * @static
  15270. * @memberOf _
  15271. * @since 1.0.0
  15272. * @category Lang
  15273. * @param {*} value The value to recursively clone.
  15274. * @returns {*} Returns the deep cloned value.
  15275. * @see _.clone
  15276. * @example
  15277. *
  15278. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  15279. *
  15280. * var deep = _.cloneDeep(objects);
  15281. * console.log(deep[0] === objects[0]);
  15282. * // => false
  15283. */
  15284. function cloneDeep(value) {
  15285. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  15286. }
  15287. module.exports = cloneDeep;
  15288. /***/ }),
  15289. /***/ "../../node_modules/lodash/constant.js":
  15290. /*!***********************************************************!*\
  15291. !*** D:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  15292. \***********************************************************/
  15293. /*! no static exports found */
  15294. /***/ (function(module, exports) {
  15295. /**
  15296. * Creates a function that returns `value`.
  15297. *
  15298. * @static
  15299. * @memberOf _
  15300. * @since 2.4.0
  15301. * @category Util
  15302. * @param {*} value The value to return from the new function.
  15303. * @returns {Function} Returns the new constant function.
  15304. * @example
  15305. *
  15306. * var objects = _.times(2, _.constant({ 'a': 1 }));
  15307. *
  15308. * console.log(objects);
  15309. * // => [{ 'a': 1 }, { 'a': 1 }]
  15310. *
  15311. * console.log(objects[0] === objects[1]);
  15312. * // => true
  15313. */
  15314. function constant(value) {
  15315. return function() {
  15316. return value;
  15317. };
  15318. }
  15319. module.exports = constant;
  15320. /***/ }),
  15321. /***/ "../../node_modules/lodash/debounce.js":
  15322. /*!***********************************************************!*\
  15323. !*** D:/Repos/Babylon.js/node_modules/lodash/debounce.js ***!
  15324. \***********************************************************/
  15325. /*! no static exports found */
  15326. /***/ (function(module, exports, __webpack_require__) {
  15327. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15328. now = __webpack_require__(/*! ./now */ "../../node_modules/lodash/now.js"),
  15329. toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  15330. /** Error message constants. */
  15331. var FUNC_ERROR_TEXT = 'Expected a function';
  15332. /* Built-in method references for those with the same name as other `lodash` methods. */
  15333. var nativeMax = Math.max,
  15334. nativeMin = Math.min;
  15335. /**
  15336. * Creates a debounced function that delays invoking `func` until after `wait`
  15337. * milliseconds have elapsed since the last time the debounced function was
  15338. * invoked. The debounced function comes with a `cancel` method to cancel
  15339. * delayed `func` invocations and a `flush` method to immediately invoke them.
  15340. * Provide `options` to indicate whether `func` should be invoked on the
  15341. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  15342. * with the last arguments provided to the debounced function. Subsequent
  15343. * calls to the debounced function return the result of the last `func`
  15344. * invocation.
  15345. *
  15346. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  15347. * invoked on the trailing edge of the timeout only if the debounced function
  15348. * is invoked more than once during the `wait` timeout.
  15349. *
  15350. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  15351. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  15352. *
  15353. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  15354. * for details over the differences between `_.debounce` and `_.throttle`.
  15355. *
  15356. * @static
  15357. * @memberOf _
  15358. * @since 0.1.0
  15359. * @category Function
  15360. * @param {Function} func The function to debounce.
  15361. * @param {number} [wait=0] The number of milliseconds to delay.
  15362. * @param {Object} [options={}] The options object.
  15363. * @param {boolean} [options.leading=false]
  15364. * Specify invoking on the leading edge of the timeout.
  15365. * @param {number} [options.maxWait]
  15366. * The maximum time `func` is allowed to be delayed before it's invoked.
  15367. * @param {boolean} [options.trailing=true]
  15368. * Specify invoking on the trailing edge of the timeout.
  15369. * @returns {Function} Returns the new debounced function.
  15370. * @example
  15371. *
  15372. * // Avoid costly calculations while the window size is in flux.
  15373. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  15374. *
  15375. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  15376. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  15377. * 'leading': true,
  15378. * 'trailing': false
  15379. * }));
  15380. *
  15381. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  15382. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  15383. * var source = new EventSource('/stream');
  15384. * jQuery(source).on('message', debounced);
  15385. *
  15386. * // Cancel the trailing debounced invocation.
  15387. * jQuery(window).on('popstate', debounced.cancel);
  15388. */
  15389. function debounce(func, wait, options) {
  15390. var lastArgs,
  15391. lastThis,
  15392. maxWait,
  15393. result,
  15394. timerId,
  15395. lastCallTime,
  15396. lastInvokeTime = 0,
  15397. leading = false,
  15398. maxing = false,
  15399. trailing = true;
  15400. if (typeof func != 'function') {
  15401. throw new TypeError(FUNC_ERROR_TEXT);
  15402. }
  15403. wait = toNumber(wait) || 0;
  15404. if (isObject(options)) {
  15405. leading = !!options.leading;
  15406. maxing = 'maxWait' in options;
  15407. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  15408. trailing = 'trailing' in options ? !!options.trailing : trailing;
  15409. }
  15410. function invokeFunc(time) {
  15411. var args = lastArgs,
  15412. thisArg = lastThis;
  15413. lastArgs = lastThis = undefined;
  15414. lastInvokeTime = time;
  15415. result = func.apply(thisArg, args);
  15416. return result;
  15417. }
  15418. function leadingEdge(time) {
  15419. // Reset any `maxWait` timer.
  15420. lastInvokeTime = time;
  15421. // Start the timer for the trailing edge.
  15422. timerId = setTimeout(timerExpired, wait);
  15423. // Invoke the leading edge.
  15424. return leading ? invokeFunc(time) : result;
  15425. }
  15426. function remainingWait(time) {
  15427. var timeSinceLastCall = time - lastCallTime,
  15428. timeSinceLastInvoke = time - lastInvokeTime,
  15429. timeWaiting = wait - timeSinceLastCall;
  15430. return maxing
  15431. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  15432. : timeWaiting;
  15433. }
  15434. function shouldInvoke(time) {
  15435. var timeSinceLastCall = time - lastCallTime,
  15436. timeSinceLastInvoke = time - lastInvokeTime;
  15437. // Either this is the first call, activity has stopped and we're at the
  15438. // trailing edge, the system time has gone backwards and we're treating
  15439. // it as the trailing edge, or we've hit the `maxWait` limit.
  15440. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  15441. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  15442. }
  15443. function timerExpired() {
  15444. var time = now();
  15445. if (shouldInvoke(time)) {
  15446. return trailingEdge(time);
  15447. }
  15448. // Restart the timer.
  15449. timerId = setTimeout(timerExpired, remainingWait(time));
  15450. }
  15451. function trailingEdge(time) {
  15452. timerId = undefined;
  15453. // Only invoke if we have `lastArgs` which means `func` has been
  15454. // debounced at least once.
  15455. if (trailing && lastArgs) {
  15456. return invokeFunc(time);
  15457. }
  15458. lastArgs = lastThis = undefined;
  15459. return result;
  15460. }
  15461. function cancel() {
  15462. if (timerId !== undefined) {
  15463. clearTimeout(timerId);
  15464. }
  15465. lastInvokeTime = 0;
  15466. lastArgs = lastCallTime = lastThis = timerId = undefined;
  15467. }
  15468. function flush() {
  15469. return timerId === undefined ? result : trailingEdge(now());
  15470. }
  15471. function debounced() {
  15472. var time = now(),
  15473. isInvoking = shouldInvoke(time);
  15474. lastArgs = arguments;
  15475. lastThis = this;
  15476. lastCallTime = time;
  15477. if (isInvoking) {
  15478. if (timerId === undefined) {
  15479. return leadingEdge(lastCallTime);
  15480. }
  15481. if (maxing) {
  15482. // Handle invocations in a tight loop.
  15483. clearTimeout(timerId);
  15484. timerId = setTimeout(timerExpired, wait);
  15485. return invokeFunc(lastCallTime);
  15486. }
  15487. }
  15488. if (timerId === undefined) {
  15489. timerId = setTimeout(timerExpired, wait);
  15490. }
  15491. return result;
  15492. }
  15493. debounced.cancel = cancel;
  15494. debounced.flush = flush;
  15495. return debounced;
  15496. }
  15497. module.exports = debounce;
  15498. /***/ }),
  15499. /***/ "../../node_modules/lodash/each.js":
  15500. /*!*******************************************************!*\
  15501. !*** D:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  15502. \*******************************************************/
  15503. /*! no static exports found */
  15504. /***/ (function(module, exports, __webpack_require__) {
  15505. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  15506. /***/ }),
  15507. /***/ "../../node_modules/lodash/eq.js":
  15508. /*!*****************************************************!*\
  15509. !*** D:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  15510. \*****************************************************/
  15511. /*! no static exports found */
  15512. /***/ (function(module, exports) {
  15513. /**
  15514. * Performs a
  15515. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  15516. * comparison between two values to determine if they are equivalent.
  15517. *
  15518. * @static
  15519. * @memberOf _
  15520. * @since 4.0.0
  15521. * @category Lang
  15522. * @param {*} value The value to compare.
  15523. * @param {*} other The other value to compare.
  15524. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15525. * @example
  15526. *
  15527. * var object = { 'a': 1 };
  15528. * var other = { 'a': 1 };
  15529. *
  15530. * _.eq(object, object);
  15531. * // => true
  15532. *
  15533. * _.eq(object, other);
  15534. * // => false
  15535. *
  15536. * _.eq('a', 'a');
  15537. * // => true
  15538. *
  15539. * _.eq('a', Object('a'));
  15540. * // => false
  15541. *
  15542. * _.eq(NaN, NaN);
  15543. * // => true
  15544. */
  15545. function eq(value, other) {
  15546. return value === other || (value !== value && other !== other);
  15547. }
  15548. module.exports = eq;
  15549. /***/ }),
  15550. /***/ "../../node_modules/lodash/forEach.js":
  15551. /*!**********************************************************!*\
  15552. !*** D:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  15553. \**********************************************************/
  15554. /*! no static exports found */
  15555. /***/ (function(module, exports, __webpack_require__) {
  15556. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  15557. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  15558. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  15559. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  15560. /**
  15561. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  15562. * The iteratee is invoked with three arguments: (value, index|key, collection).
  15563. * Iteratee functions may exit iteration early by explicitly returning `false`.
  15564. *
  15565. * **Note:** As with other "Collections" methods, objects with a "length"
  15566. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  15567. * or `_.forOwn` for object iteration.
  15568. *
  15569. * @static
  15570. * @memberOf _
  15571. * @since 0.1.0
  15572. * @alias each
  15573. * @category Collection
  15574. * @param {Array|Object} collection The collection to iterate over.
  15575. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15576. * @returns {Array|Object} Returns `collection`.
  15577. * @see _.forEachRight
  15578. * @example
  15579. *
  15580. * _.forEach([1, 2], function(value) {
  15581. * console.log(value);
  15582. * });
  15583. * // => Logs `1` then `2`.
  15584. *
  15585. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  15586. * console.log(key);
  15587. * });
  15588. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  15589. */
  15590. function forEach(collection, iteratee) {
  15591. var func = isArray(collection) ? arrayEach : baseEach;
  15592. return func(collection, castFunction(iteratee));
  15593. }
  15594. module.exports = forEach;
  15595. /***/ }),
  15596. /***/ "../../node_modules/lodash/forOwn.js":
  15597. /*!*********************************************************!*\
  15598. !*** D:/Repos/Babylon.js/node_modules/lodash/forOwn.js ***!
  15599. \*********************************************************/
  15600. /*! no static exports found */
  15601. /***/ (function(module, exports, __webpack_require__) {
  15602. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  15603. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js");
  15604. /**
  15605. * Iterates over own enumerable string keyed properties of an object and
  15606. * invokes `iteratee` for each property. The iteratee is invoked with three
  15607. * arguments: (value, key, object). Iteratee functions may exit iteration
  15608. * early by explicitly returning `false`.
  15609. *
  15610. * @static
  15611. * @memberOf _
  15612. * @since 0.3.0
  15613. * @category Object
  15614. * @param {Object} object The object to iterate over.
  15615. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15616. * @returns {Object} Returns `object`.
  15617. * @see _.forOwnRight
  15618. * @example
  15619. *
  15620. * function Foo() {
  15621. * this.a = 1;
  15622. * this.b = 2;
  15623. * }
  15624. *
  15625. * Foo.prototype.c = 3;
  15626. *
  15627. * _.forOwn(new Foo, function(value, key) {
  15628. * console.log(key);
  15629. * });
  15630. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  15631. */
  15632. function forOwn(object, iteratee) {
  15633. return object && baseForOwn(object, castFunction(iteratee));
  15634. }
  15635. module.exports = forOwn;
  15636. /***/ }),
  15637. /***/ "../../node_modules/lodash/get.js":
  15638. /*!******************************************************!*\
  15639. !*** D:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  15640. \******************************************************/
  15641. /*! no static exports found */
  15642. /***/ (function(module, exports, __webpack_require__) {
  15643. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  15644. /**
  15645. * Gets the value at `path` of `object`. If the resolved value is
  15646. * `undefined`, the `defaultValue` is returned in its place.
  15647. *
  15648. * @static
  15649. * @memberOf _
  15650. * @since 3.7.0
  15651. * @category Object
  15652. * @param {Object} object The object to query.
  15653. * @param {Array|string} path The path of the property to get.
  15654. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  15655. * @returns {*} Returns the resolved value.
  15656. * @example
  15657. *
  15658. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  15659. *
  15660. * _.get(object, 'a[0].b.c');
  15661. * // => 3
  15662. *
  15663. * _.get(object, ['a', '0', 'b', 'c']);
  15664. * // => 3
  15665. *
  15666. * _.get(object, 'a.b.c', 'default');
  15667. * // => 'default'
  15668. */
  15669. function get(object, path, defaultValue) {
  15670. var result = object == null ? undefined : baseGet(object, path);
  15671. return result === undefined ? defaultValue : result;
  15672. }
  15673. module.exports = get;
  15674. /***/ }),
  15675. /***/ "../../node_modules/lodash/hasIn.js":
  15676. /*!********************************************************!*\
  15677. !*** D:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  15678. \********************************************************/
  15679. /*! no static exports found */
  15680. /***/ (function(module, exports, __webpack_require__) {
  15681. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  15682. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  15683. /**
  15684. * Checks if `path` is a direct or inherited property of `object`.
  15685. *
  15686. * @static
  15687. * @memberOf _
  15688. * @since 4.0.0
  15689. * @category Object
  15690. * @param {Object} object The object to query.
  15691. * @param {Array|string} path The path to check.
  15692. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  15693. * @example
  15694. *
  15695. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  15696. *
  15697. * _.hasIn(object, 'a');
  15698. * // => true
  15699. *
  15700. * _.hasIn(object, 'a.b');
  15701. * // => true
  15702. *
  15703. * _.hasIn(object, ['a', 'b']);
  15704. * // => true
  15705. *
  15706. * _.hasIn(object, 'b');
  15707. * // => false
  15708. */
  15709. function hasIn(object, path) {
  15710. return object != null && hasPath(object, path, baseHasIn);
  15711. }
  15712. module.exports = hasIn;
  15713. /***/ }),
  15714. /***/ "../../node_modules/lodash/identity.js":
  15715. /*!***********************************************************!*\
  15716. !*** D:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  15717. \***********************************************************/
  15718. /*! no static exports found */
  15719. /***/ (function(module, exports) {
  15720. /**
  15721. * This method returns the first argument it receives.
  15722. *
  15723. * @static
  15724. * @since 0.1.0
  15725. * @memberOf _
  15726. * @category Util
  15727. * @param {*} value Any value.
  15728. * @returns {*} Returns `value`.
  15729. * @example
  15730. *
  15731. * var object = { 'a': 1 };
  15732. *
  15733. * console.log(_.identity(object) === object);
  15734. * // => true
  15735. */
  15736. function identity(value) {
  15737. return value;
  15738. }
  15739. module.exports = identity;
  15740. /***/ }),
  15741. /***/ "../../node_modules/lodash/isArguments.js":
  15742. /*!**************************************************************!*\
  15743. !*** D:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  15744. \**************************************************************/
  15745. /*! no static exports found */
  15746. /***/ (function(module, exports, __webpack_require__) {
  15747. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  15748. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15749. /** Used for built-in method references. */
  15750. var objectProto = Object.prototype;
  15751. /** Used to check objects for own properties. */
  15752. var hasOwnProperty = objectProto.hasOwnProperty;
  15753. /** Built-in value references. */
  15754. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  15755. /**
  15756. * Checks if `value` is likely an `arguments` object.
  15757. *
  15758. * @static
  15759. * @memberOf _
  15760. * @since 0.1.0
  15761. * @category Lang
  15762. * @param {*} value The value to check.
  15763. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15764. * else `false`.
  15765. * @example
  15766. *
  15767. * _.isArguments(function() { return arguments; }());
  15768. * // => true
  15769. *
  15770. * _.isArguments([1, 2, 3]);
  15771. * // => false
  15772. */
  15773. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15774. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15775. !propertyIsEnumerable.call(value, 'callee');
  15776. };
  15777. module.exports = isArguments;
  15778. /***/ }),
  15779. /***/ "../../node_modules/lodash/isArray.js":
  15780. /*!**********************************************************!*\
  15781. !*** D:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  15782. \**********************************************************/
  15783. /*! no static exports found */
  15784. /***/ (function(module, exports) {
  15785. /**
  15786. * Checks if `value` is classified as an `Array` object.
  15787. *
  15788. * @static
  15789. * @memberOf _
  15790. * @since 0.1.0
  15791. * @category Lang
  15792. * @param {*} value The value to check.
  15793. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15794. * @example
  15795. *
  15796. * _.isArray([1, 2, 3]);
  15797. * // => true
  15798. *
  15799. * _.isArray(document.body.children);
  15800. * // => false
  15801. *
  15802. * _.isArray('abc');
  15803. * // => false
  15804. *
  15805. * _.isArray(_.noop);
  15806. * // => false
  15807. */
  15808. var isArray = Array.isArray;
  15809. module.exports = isArray;
  15810. /***/ }),
  15811. /***/ "../../node_modules/lodash/isArrayLike.js":
  15812. /*!**************************************************************!*\
  15813. !*** D:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  15814. \**************************************************************/
  15815. /*! no static exports found */
  15816. /***/ (function(module, exports, __webpack_require__) {
  15817. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15818. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  15819. /**
  15820. * Checks if `value` is array-like. A value is considered array-like if it's
  15821. * not a function and has a `value.length` that's an integer greater than or
  15822. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15823. *
  15824. * @static
  15825. * @memberOf _
  15826. * @since 4.0.0
  15827. * @category Lang
  15828. * @param {*} value The value to check.
  15829. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15830. * @example
  15831. *
  15832. * _.isArrayLike([1, 2, 3]);
  15833. * // => true
  15834. *
  15835. * _.isArrayLike(document.body.children);
  15836. * // => true
  15837. *
  15838. * _.isArrayLike('abc');
  15839. * // => true
  15840. *
  15841. * _.isArrayLike(_.noop);
  15842. * // => false
  15843. */
  15844. function isArrayLike(value) {
  15845. return value != null && isLength(value.length) && !isFunction(value);
  15846. }
  15847. module.exports = isArrayLike;
  15848. /***/ }),
  15849. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  15850. /*!********************************************************************!*\
  15851. !*** D:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  15852. \********************************************************************/
  15853. /*! no static exports found */
  15854. /***/ (function(module, exports, __webpack_require__) {
  15855. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15856. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15857. /**
  15858. * This method is like `_.isArrayLike` except that it also checks if `value`
  15859. * is an object.
  15860. *
  15861. * @static
  15862. * @memberOf _
  15863. * @since 4.0.0
  15864. * @category Lang
  15865. * @param {*} value The value to check.
  15866. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15867. * else `false`.
  15868. * @example
  15869. *
  15870. * _.isArrayLikeObject([1, 2, 3]);
  15871. * // => true
  15872. *
  15873. * _.isArrayLikeObject(document.body.children);
  15874. * // => true
  15875. *
  15876. * _.isArrayLikeObject('abc');
  15877. * // => false
  15878. *
  15879. * _.isArrayLikeObject(_.noop);
  15880. * // => false
  15881. */
  15882. function isArrayLikeObject(value) {
  15883. return isObjectLike(value) && isArrayLike(value);
  15884. }
  15885. module.exports = isArrayLikeObject;
  15886. /***/ }),
  15887. /***/ "../../node_modules/lodash/isBuffer.js":
  15888. /*!***********************************************************!*\
  15889. !*** D:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  15890. \***********************************************************/
  15891. /*! no static exports found */
  15892. /***/ (function(module, exports, __webpack_require__) {
  15893. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  15894. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  15895. /** Detect free variable `exports`. */
  15896. var freeExports = true && exports && !exports.nodeType && exports;
  15897. /** Detect free variable `module`. */
  15898. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  15899. /** Detect the popular CommonJS extension `module.exports`. */
  15900. var moduleExports = freeModule && freeModule.exports === freeExports;
  15901. /** Built-in value references. */
  15902. var Buffer = moduleExports ? root.Buffer : undefined;
  15903. /* Built-in method references for those with the same name as other `lodash` methods. */
  15904. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  15905. /**
  15906. * Checks if `value` is a buffer.
  15907. *
  15908. * @static
  15909. * @memberOf _
  15910. * @since 4.3.0
  15911. * @category Lang
  15912. * @param {*} value The value to check.
  15913. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15914. * @example
  15915. *
  15916. * _.isBuffer(new Buffer(2));
  15917. * // => true
  15918. *
  15919. * _.isBuffer(new Uint8Array(2));
  15920. * // => false
  15921. */
  15922. var isBuffer = nativeIsBuffer || stubFalse;
  15923. module.exports = isBuffer;
  15924. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  15925. /***/ }),
  15926. /***/ "../../node_modules/lodash/isFunction.js":
  15927. /*!*************************************************************!*\
  15928. !*** D:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  15929. \*************************************************************/
  15930. /*! no static exports found */
  15931. /***/ (function(module, exports, __webpack_require__) {
  15932. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15933. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  15934. /** `Object#toString` result references. */
  15935. var asyncTag = '[object AsyncFunction]',
  15936. funcTag = '[object Function]',
  15937. genTag = '[object GeneratorFunction]',
  15938. proxyTag = '[object Proxy]';
  15939. /**
  15940. * Checks if `value` is classified as a `Function` object.
  15941. *
  15942. * @static
  15943. * @memberOf _
  15944. * @since 0.1.0
  15945. * @category Lang
  15946. * @param {*} value The value to check.
  15947. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15948. * @example
  15949. *
  15950. * _.isFunction(_);
  15951. * // => true
  15952. *
  15953. * _.isFunction(/abc/);
  15954. * // => false
  15955. */
  15956. function isFunction(value) {
  15957. if (!isObject(value)) {
  15958. return false;
  15959. }
  15960. // The use of `Object#toString` avoids issues with the `typeof` operator
  15961. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15962. var tag = baseGetTag(value);
  15963. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15964. }
  15965. module.exports = isFunction;
  15966. /***/ }),
  15967. /***/ "../../node_modules/lodash/isLength.js":
  15968. /*!***********************************************************!*\
  15969. !*** D:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  15970. \***********************************************************/
  15971. /*! no static exports found */
  15972. /***/ (function(module, exports) {
  15973. /** Used as references for various `Number` constants. */
  15974. var MAX_SAFE_INTEGER = 9007199254740991;
  15975. /**
  15976. * Checks if `value` is a valid array-like length.
  15977. *
  15978. * **Note:** This method is loosely based on
  15979. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15980. *
  15981. * @static
  15982. * @memberOf _
  15983. * @since 4.0.0
  15984. * @category Lang
  15985. * @param {*} value The value to check.
  15986. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15987. * @example
  15988. *
  15989. * _.isLength(3);
  15990. * // => true
  15991. *
  15992. * _.isLength(Number.MIN_VALUE);
  15993. * // => false
  15994. *
  15995. * _.isLength(Infinity);
  15996. * // => false
  15997. *
  15998. * _.isLength('3');
  15999. * // => false
  16000. */
  16001. function isLength(value) {
  16002. return typeof value == 'number' &&
  16003. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  16004. }
  16005. module.exports = isLength;
  16006. /***/ }),
  16007. /***/ "../../node_modules/lodash/isMap.js":
  16008. /*!********************************************************!*\
  16009. !*** D:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  16010. \********************************************************/
  16011. /*! no static exports found */
  16012. /***/ (function(module, exports, __webpack_require__) {
  16013. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  16014. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  16015. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  16016. /* Node.js helper references. */
  16017. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  16018. /**
  16019. * Checks if `value` is classified as a `Map` object.
  16020. *
  16021. * @static
  16022. * @memberOf _
  16023. * @since 4.3.0
  16024. * @category Lang
  16025. * @param {*} value The value to check.
  16026. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  16027. * @example
  16028. *
  16029. * _.isMap(new Map);
  16030. * // => true
  16031. *
  16032. * _.isMap(new WeakMap);
  16033. * // => false
  16034. */
  16035. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  16036. module.exports = isMap;
  16037. /***/ }),
  16038. /***/ "../../node_modules/lodash/isObject.js":
  16039. /*!***********************************************************!*\
  16040. !*** D:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  16041. \***********************************************************/
  16042. /*! no static exports found */
  16043. /***/ (function(module, exports) {
  16044. /**
  16045. * Checks if `value` is the
  16046. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  16047. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  16048. *
  16049. * @static
  16050. * @memberOf _
  16051. * @since 0.1.0
  16052. * @category Lang
  16053. * @param {*} value The value to check.
  16054. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  16055. * @example
  16056. *
  16057. * _.isObject({});
  16058. * // => true
  16059. *
  16060. * _.isObject([1, 2, 3]);
  16061. * // => true
  16062. *
  16063. * _.isObject(_.noop);
  16064. * // => true
  16065. *
  16066. * _.isObject(null);
  16067. * // => false
  16068. */
  16069. function isObject(value) {
  16070. var type = typeof value;
  16071. return value != null && (type == 'object' || type == 'function');
  16072. }
  16073. module.exports = isObject;
  16074. /***/ }),
  16075. /***/ "../../node_modules/lodash/isObjectLike.js":
  16076. /*!***************************************************************!*\
  16077. !*** D:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  16078. \***************************************************************/
  16079. /*! no static exports found */
  16080. /***/ (function(module, exports) {
  16081. /**
  16082. * Checks if `value` is object-like. A value is object-like if it's not `null`
  16083. * and has a `typeof` result of "object".
  16084. *
  16085. * @static
  16086. * @memberOf _
  16087. * @since 4.0.0
  16088. * @category Lang
  16089. * @param {*} value The value to check.
  16090. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  16091. * @example
  16092. *
  16093. * _.isObjectLike({});
  16094. * // => true
  16095. *
  16096. * _.isObjectLike([1, 2, 3]);
  16097. * // => true
  16098. *
  16099. * _.isObjectLike(_.noop);
  16100. * // => false
  16101. *
  16102. * _.isObjectLike(null);
  16103. * // => false
  16104. */
  16105. function isObjectLike(value) {
  16106. return value != null && typeof value == 'object';
  16107. }
  16108. module.exports = isObjectLike;
  16109. /***/ }),
  16110. /***/ "../../node_modules/lodash/isPlainObject.js":
  16111. /*!****************************************************************!*\
  16112. !*** D:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  16113. \****************************************************************/
  16114. /*! no static exports found */
  16115. /***/ (function(module, exports, __webpack_require__) {
  16116. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  16117. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  16118. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  16119. /** `Object#toString` result references. */
  16120. var objectTag = '[object Object]';
  16121. /** Used for built-in method references. */
  16122. var funcProto = Function.prototype,
  16123. objectProto = Object.prototype;
  16124. /** Used to resolve the decompiled source of functions. */
  16125. var funcToString = funcProto.toString;
  16126. /** Used to check objects for own properties. */
  16127. var hasOwnProperty = objectProto.hasOwnProperty;
  16128. /** Used to infer the `Object` constructor. */
  16129. var objectCtorString = funcToString.call(Object);
  16130. /**
  16131. * Checks if `value` is a plain object, that is, an object created by the
  16132. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  16133. *
  16134. * @static
  16135. * @memberOf _
  16136. * @since 0.8.0
  16137. * @category Lang
  16138. * @param {*} value The value to check.
  16139. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  16140. * @example
  16141. *
  16142. * function Foo() {
  16143. * this.a = 1;
  16144. * }
  16145. *
  16146. * _.isPlainObject(new Foo);
  16147. * // => false
  16148. *
  16149. * _.isPlainObject([1, 2, 3]);
  16150. * // => false
  16151. *
  16152. * _.isPlainObject({ 'x': 0, 'y': 0 });
  16153. * // => true
  16154. *
  16155. * _.isPlainObject(Object.create(null));
  16156. * // => true
  16157. */
  16158. function isPlainObject(value) {
  16159. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  16160. return false;
  16161. }
  16162. var proto = getPrototype(value);
  16163. if (proto === null) {
  16164. return true;
  16165. }
  16166. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  16167. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  16168. funcToString.call(Ctor) == objectCtorString;
  16169. }
  16170. module.exports = isPlainObject;
  16171. /***/ }),
  16172. /***/ "../../node_modules/lodash/isSet.js":
  16173. /*!********************************************************!*\
  16174. !*** D:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  16175. \********************************************************/
  16176. /*! no static exports found */
  16177. /***/ (function(module, exports, __webpack_require__) {
  16178. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  16179. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  16180. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  16181. /* Node.js helper references. */
  16182. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  16183. /**
  16184. * Checks if `value` is classified as a `Set` object.
  16185. *
  16186. * @static
  16187. * @memberOf _
  16188. * @since 4.3.0
  16189. * @category Lang
  16190. * @param {*} value The value to check.
  16191. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  16192. * @example
  16193. *
  16194. * _.isSet(new Set);
  16195. * // => true
  16196. *
  16197. * _.isSet(new WeakSet);
  16198. * // => false
  16199. */
  16200. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  16201. module.exports = isSet;
  16202. /***/ }),
  16203. /***/ "../../node_modules/lodash/isString.js":
  16204. /*!***********************************************************!*\
  16205. !*** D:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  16206. \***********************************************************/
  16207. /*! no static exports found */
  16208. /***/ (function(module, exports, __webpack_require__) {
  16209. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  16210. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  16211. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  16212. /** `Object#toString` result references. */
  16213. var stringTag = '[object String]';
  16214. /**
  16215. * Checks if `value` is classified as a `String` primitive or object.
  16216. *
  16217. * @static
  16218. * @since 0.1.0
  16219. * @memberOf _
  16220. * @category Lang
  16221. * @param {*} value The value to check.
  16222. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  16223. * @example
  16224. *
  16225. * _.isString('abc');
  16226. * // => true
  16227. *
  16228. * _.isString(1);
  16229. * // => false
  16230. */
  16231. function isString(value) {
  16232. return typeof value == 'string' ||
  16233. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  16234. }
  16235. module.exports = isString;
  16236. /***/ }),
  16237. /***/ "../../node_modules/lodash/isSymbol.js":
  16238. /*!***********************************************************!*\
  16239. !*** D:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  16240. \***********************************************************/
  16241. /*! no static exports found */
  16242. /***/ (function(module, exports, __webpack_require__) {
  16243. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  16244. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  16245. /** `Object#toString` result references. */
  16246. var symbolTag = '[object Symbol]';
  16247. /**
  16248. * Checks if `value` is classified as a `Symbol` primitive or object.
  16249. *
  16250. * @static
  16251. * @memberOf _
  16252. * @since 4.0.0
  16253. * @category Lang
  16254. * @param {*} value The value to check.
  16255. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  16256. * @example
  16257. *
  16258. * _.isSymbol(Symbol.iterator);
  16259. * // => true
  16260. *
  16261. * _.isSymbol('abc');
  16262. * // => false
  16263. */
  16264. function isSymbol(value) {
  16265. return typeof value == 'symbol' ||
  16266. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  16267. }
  16268. module.exports = isSymbol;
  16269. /***/ }),
  16270. /***/ "../../node_modules/lodash/isTypedArray.js":
  16271. /*!***************************************************************!*\
  16272. !*** D:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  16273. \***************************************************************/
  16274. /*! no static exports found */
  16275. /***/ (function(module, exports, __webpack_require__) {
  16276. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  16277. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  16278. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  16279. /* Node.js helper references. */
  16280. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  16281. /**
  16282. * Checks if `value` is classified as a typed array.
  16283. *
  16284. * @static
  16285. * @memberOf _
  16286. * @since 3.0.0
  16287. * @category Lang
  16288. * @param {*} value The value to check.
  16289. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  16290. * @example
  16291. *
  16292. * _.isTypedArray(new Uint8Array);
  16293. * // => true
  16294. *
  16295. * _.isTypedArray([]);
  16296. * // => false
  16297. */
  16298. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  16299. module.exports = isTypedArray;
  16300. /***/ }),
  16301. /***/ "../../node_modules/lodash/isUndefined.js":
  16302. /*!**************************************************************!*\
  16303. !*** D:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  16304. \**************************************************************/
  16305. /*! no static exports found */
  16306. /***/ (function(module, exports) {
  16307. /**
  16308. * Checks if `value` is `undefined`.
  16309. *
  16310. * @static
  16311. * @since 0.1.0
  16312. * @memberOf _
  16313. * @category Lang
  16314. * @param {*} value The value to check.
  16315. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  16316. * @example
  16317. *
  16318. * _.isUndefined(void 0);
  16319. * // => true
  16320. *
  16321. * _.isUndefined(null);
  16322. * // => false
  16323. */
  16324. function isUndefined(value) {
  16325. return value === undefined;
  16326. }
  16327. module.exports = isUndefined;
  16328. /***/ }),
  16329. /***/ "../../node_modules/lodash/keys.js":
  16330. /*!*******************************************************!*\
  16331. !*** D:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  16332. \*******************************************************/
  16333. /*! no static exports found */
  16334. /***/ (function(module, exports, __webpack_require__) {
  16335. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  16336. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  16337. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  16338. /**
  16339. * Creates an array of the own enumerable property names of `object`.
  16340. *
  16341. * **Note:** Non-object values are coerced to objects. See the
  16342. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  16343. * for more details.
  16344. *
  16345. * @static
  16346. * @since 0.1.0
  16347. * @memberOf _
  16348. * @category Object
  16349. * @param {Object} object The object to query.
  16350. * @returns {Array} Returns the array of property names.
  16351. * @example
  16352. *
  16353. * function Foo() {
  16354. * this.a = 1;
  16355. * this.b = 2;
  16356. * }
  16357. *
  16358. * Foo.prototype.c = 3;
  16359. *
  16360. * _.keys(new Foo);
  16361. * // => ['a', 'b'] (iteration order is not guaranteed)
  16362. *
  16363. * _.keys('hi');
  16364. * // => ['0', '1']
  16365. */
  16366. function keys(object) {
  16367. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  16368. }
  16369. module.exports = keys;
  16370. /***/ }),
  16371. /***/ "../../node_modules/lodash/keysIn.js":
  16372. /*!*********************************************************!*\
  16373. !*** D:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  16374. \*********************************************************/
  16375. /*! no static exports found */
  16376. /***/ (function(module, exports, __webpack_require__) {
  16377. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  16378. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  16379. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  16380. /**
  16381. * Creates an array of the own and inherited enumerable property names of `object`.
  16382. *
  16383. * **Note:** Non-object values are coerced to objects.
  16384. *
  16385. * @static
  16386. * @memberOf _
  16387. * @since 3.0.0
  16388. * @category Object
  16389. * @param {Object} object The object to query.
  16390. * @returns {Array} Returns the array of property names.
  16391. * @example
  16392. *
  16393. * function Foo() {
  16394. * this.a = 1;
  16395. * this.b = 2;
  16396. * }
  16397. *
  16398. * Foo.prototype.c = 3;
  16399. *
  16400. * _.keysIn(new Foo);
  16401. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  16402. */
  16403. function keysIn(object) {
  16404. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  16405. }
  16406. module.exports = keysIn;
  16407. /***/ }),
  16408. /***/ "../../node_modules/lodash/map.js":
  16409. /*!******************************************************!*\
  16410. !*** D:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  16411. \******************************************************/
  16412. /*! no static exports found */
  16413. /***/ (function(module, exports, __webpack_require__) {
  16414. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  16415. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16416. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  16417. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  16418. /**
  16419. * Creates an array of values by running each element in `collection` thru
  16420. * `iteratee`. The iteratee is invoked with three arguments:
  16421. * (value, index|key, collection).
  16422. *
  16423. * Many lodash methods are guarded to work as iteratees for methods like
  16424. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  16425. *
  16426. * The guarded methods are:
  16427. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  16428. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  16429. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  16430. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  16431. *
  16432. * @static
  16433. * @memberOf _
  16434. * @since 0.1.0
  16435. * @category Collection
  16436. * @param {Array|Object} collection The collection to iterate over.
  16437. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16438. * @returns {Array} Returns the new mapped array.
  16439. * @example
  16440. *
  16441. * function square(n) {
  16442. * return n * n;
  16443. * }
  16444. *
  16445. * _.map([4, 8], square);
  16446. * // => [16, 64]
  16447. *
  16448. * _.map({ 'a': 4, 'b': 8 }, square);
  16449. * // => [16, 64] (iteration order is not guaranteed)
  16450. *
  16451. * var users = [
  16452. * { 'user': 'barney' },
  16453. * { 'user': 'fred' }
  16454. * ];
  16455. *
  16456. * // The `_.property` iteratee shorthand.
  16457. * _.map(users, 'user');
  16458. * // => ['barney', 'fred']
  16459. */
  16460. function map(collection, iteratee) {
  16461. var func = isArray(collection) ? arrayMap : baseMap;
  16462. return func(collection, baseIteratee(iteratee, 3));
  16463. }
  16464. module.exports = map;
  16465. /***/ }),
  16466. /***/ "../../node_modules/lodash/memoize.js":
  16467. /*!**********************************************************!*\
  16468. !*** D:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  16469. \**********************************************************/
  16470. /*! no static exports found */
  16471. /***/ (function(module, exports, __webpack_require__) {
  16472. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  16473. /** Error message constants. */
  16474. var FUNC_ERROR_TEXT = 'Expected a function';
  16475. /**
  16476. * Creates a function that memoizes the result of `func`. If `resolver` is
  16477. * provided, it determines the cache key for storing the result based on the
  16478. * arguments provided to the memoized function. By default, the first argument
  16479. * provided to the memoized function is used as the map cache key. The `func`
  16480. * is invoked with the `this` binding of the memoized function.
  16481. *
  16482. * **Note:** The cache is exposed as the `cache` property on the memoized
  16483. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  16484. * constructor with one whose instances implement the
  16485. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  16486. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  16487. *
  16488. * @static
  16489. * @memberOf _
  16490. * @since 0.1.0
  16491. * @category Function
  16492. * @param {Function} func The function to have its output memoized.
  16493. * @param {Function} [resolver] The function to resolve the cache key.
  16494. * @returns {Function} Returns the new memoized function.
  16495. * @example
  16496. *
  16497. * var object = { 'a': 1, 'b': 2 };
  16498. * var other = { 'c': 3, 'd': 4 };
  16499. *
  16500. * var values = _.memoize(_.values);
  16501. * values(object);
  16502. * // => [1, 2]
  16503. *
  16504. * values(other);
  16505. * // => [3, 4]
  16506. *
  16507. * object.a = 2;
  16508. * values(object);
  16509. * // => [1, 2]
  16510. *
  16511. * // Modify the result cache.
  16512. * values.cache.set(object, ['a', 'b']);
  16513. * values(object);
  16514. * // => ['a', 'b']
  16515. *
  16516. * // Replace `_.memoize.Cache`.
  16517. * _.memoize.Cache = WeakMap;
  16518. */
  16519. function memoize(func, resolver) {
  16520. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  16521. throw new TypeError(FUNC_ERROR_TEXT);
  16522. }
  16523. var memoized = function() {
  16524. var args = arguments,
  16525. key = resolver ? resolver.apply(this, args) : args[0],
  16526. cache = memoized.cache;
  16527. if (cache.has(key)) {
  16528. return cache.get(key);
  16529. }
  16530. var result = func.apply(this, args);
  16531. memoized.cache = cache.set(key, result) || cache;
  16532. return result;
  16533. };
  16534. memoized.cache = new (memoize.Cache || MapCache);
  16535. return memoized;
  16536. }
  16537. // Expose `MapCache`.
  16538. memoize.Cache = MapCache;
  16539. module.exports = memoize;
  16540. /***/ }),
  16541. /***/ "../../node_modules/lodash/merge.js":
  16542. /*!********************************************************!*\
  16543. !*** D:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  16544. \********************************************************/
  16545. /*! no static exports found */
  16546. /***/ (function(module, exports, __webpack_require__) {
  16547. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  16548. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  16549. /**
  16550. * This method is like `_.assign` except that it recursively merges own and
  16551. * inherited enumerable string keyed properties of source objects into the
  16552. * destination object. Source properties that resolve to `undefined` are
  16553. * skipped if a destination value exists. Array and plain object properties
  16554. * are merged recursively. Other objects and value types are overridden by
  16555. * assignment. Source objects are applied from left to right. Subsequent
  16556. * sources overwrite property assignments of previous sources.
  16557. *
  16558. * **Note:** This method mutates `object`.
  16559. *
  16560. * @static
  16561. * @memberOf _
  16562. * @since 0.5.0
  16563. * @category Object
  16564. * @param {Object} object The destination object.
  16565. * @param {...Object} [sources] The source objects.
  16566. * @returns {Object} Returns `object`.
  16567. * @example
  16568. *
  16569. * var object = {
  16570. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  16571. * };
  16572. *
  16573. * var other = {
  16574. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  16575. * };
  16576. *
  16577. * _.merge(object, other);
  16578. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  16579. */
  16580. var merge = createAssigner(function(object, source, srcIndex) {
  16581. baseMerge(object, source, srcIndex);
  16582. });
  16583. module.exports = merge;
  16584. /***/ }),
  16585. /***/ "../../node_modules/lodash/now.js":
  16586. /*!******************************************************!*\
  16587. !*** D:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  16588. \******************************************************/
  16589. /*! no static exports found */
  16590. /***/ (function(module, exports, __webpack_require__) {
  16591. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  16592. /**
  16593. * Gets the timestamp of the number of milliseconds that have elapsed since
  16594. * the Unix epoch (1 January 1970 00:00:00 UTC).
  16595. *
  16596. * @static
  16597. * @memberOf _
  16598. * @since 2.4.0
  16599. * @category Date
  16600. * @returns {number} Returns the timestamp.
  16601. * @example
  16602. *
  16603. * _.defer(function(stamp) {
  16604. * console.log(_.now() - stamp);
  16605. * }, _.now());
  16606. * // => Logs the number of milliseconds it took for the deferred invocation.
  16607. */
  16608. var now = function() {
  16609. return root.Date.now();
  16610. };
  16611. module.exports = now;
  16612. /***/ }),
  16613. /***/ "../../node_modules/lodash/property.js":
  16614. /*!***********************************************************!*\
  16615. !*** D:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  16616. \***********************************************************/
  16617. /*! no static exports found */
  16618. /***/ (function(module, exports, __webpack_require__) {
  16619. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  16620. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  16621. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  16622. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  16623. /**
  16624. * Creates a function that returns the value at `path` of a given object.
  16625. *
  16626. * @static
  16627. * @memberOf _
  16628. * @since 2.4.0
  16629. * @category Util
  16630. * @param {Array|string} path The path of the property to get.
  16631. * @returns {Function} Returns the new accessor function.
  16632. * @example
  16633. *
  16634. * var objects = [
  16635. * { 'a': { 'b': 2 } },
  16636. * { 'a': { 'b': 1 } }
  16637. * ];
  16638. *
  16639. * _.map(objects, _.property('a.b'));
  16640. * // => [2, 1]
  16641. *
  16642. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  16643. * // => [1, 2]
  16644. */
  16645. function property(path) {
  16646. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  16647. }
  16648. module.exports = property;
  16649. /***/ }),
  16650. /***/ "../../node_modules/lodash/stubArray.js":
  16651. /*!************************************************************!*\
  16652. !*** D:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  16653. \************************************************************/
  16654. /*! no static exports found */
  16655. /***/ (function(module, exports) {
  16656. /**
  16657. * This method returns a new empty array.
  16658. *
  16659. * @static
  16660. * @memberOf _
  16661. * @since 4.13.0
  16662. * @category Util
  16663. * @returns {Array} Returns the new empty array.
  16664. * @example
  16665. *
  16666. * var arrays = _.times(2, _.stubArray);
  16667. *
  16668. * console.log(arrays);
  16669. * // => [[], []]
  16670. *
  16671. * console.log(arrays[0] === arrays[1]);
  16672. * // => false
  16673. */
  16674. function stubArray() {
  16675. return [];
  16676. }
  16677. module.exports = stubArray;
  16678. /***/ }),
  16679. /***/ "../../node_modules/lodash/stubFalse.js":
  16680. /*!************************************************************!*\
  16681. !*** D:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  16682. \************************************************************/
  16683. /*! no static exports found */
  16684. /***/ (function(module, exports) {
  16685. /**
  16686. * This method returns `false`.
  16687. *
  16688. * @static
  16689. * @memberOf _
  16690. * @since 4.13.0
  16691. * @category Util
  16692. * @returns {boolean} Returns `false`.
  16693. * @example
  16694. *
  16695. * _.times(2, _.stubFalse);
  16696. * // => [false, false]
  16697. */
  16698. function stubFalse() {
  16699. return false;
  16700. }
  16701. module.exports = stubFalse;
  16702. /***/ }),
  16703. /***/ "../../node_modules/lodash/throttle.js":
  16704. /*!***********************************************************!*\
  16705. !*** D:/Repos/Babylon.js/node_modules/lodash/throttle.js ***!
  16706. \***********************************************************/
  16707. /*! no static exports found */
  16708. /***/ (function(module, exports, __webpack_require__) {
  16709. var debounce = __webpack_require__(/*! ./debounce */ "../../node_modules/lodash/debounce.js"),
  16710. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  16711. /** Error message constants. */
  16712. var FUNC_ERROR_TEXT = 'Expected a function';
  16713. /**
  16714. * Creates a throttled function that only invokes `func` at most once per
  16715. * every `wait` milliseconds. The throttled function comes with a `cancel`
  16716. * method to cancel delayed `func` invocations and a `flush` method to
  16717. * immediately invoke them. Provide `options` to indicate whether `func`
  16718. * should be invoked on the leading and/or trailing edge of the `wait`
  16719. * timeout. The `func` is invoked with the last arguments provided to the
  16720. * throttled function. Subsequent calls to the throttled function return the
  16721. * result of the last `func` invocation.
  16722. *
  16723. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  16724. * invoked on the trailing edge of the timeout only if the throttled function
  16725. * is invoked more than once during the `wait` timeout.
  16726. *
  16727. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  16728. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  16729. *
  16730. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  16731. * for details over the differences between `_.throttle` and `_.debounce`.
  16732. *
  16733. * @static
  16734. * @memberOf _
  16735. * @since 0.1.0
  16736. * @category Function
  16737. * @param {Function} func The function to throttle.
  16738. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  16739. * @param {Object} [options={}] The options object.
  16740. * @param {boolean} [options.leading=true]
  16741. * Specify invoking on the leading edge of the timeout.
  16742. * @param {boolean} [options.trailing=true]
  16743. * Specify invoking on the trailing edge of the timeout.
  16744. * @returns {Function} Returns the new throttled function.
  16745. * @example
  16746. *
  16747. * // Avoid excessively updating the position while scrolling.
  16748. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  16749. *
  16750. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  16751. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  16752. * jQuery(element).on('click', throttled);
  16753. *
  16754. * // Cancel the trailing throttled invocation.
  16755. * jQuery(window).on('popstate', throttled.cancel);
  16756. */
  16757. function throttle(func, wait, options) {
  16758. var leading = true,
  16759. trailing = true;
  16760. if (typeof func != 'function') {
  16761. throw new TypeError(FUNC_ERROR_TEXT);
  16762. }
  16763. if (isObject(options)) {
  16764. leading = 'leading' in options ? !!options.leading : leading;
  16765. trailing = 'trailing' in options ? !!options.trailing : trailing;
  16766. }
  16767. return debounce(func, wait, {
  16768. 'leading': leading,
  16769. 'maxWait': wait,
  16770. 'trailing': trailing
  16771. });
  16772. }
  16773. module.exports = throttle;
  16774. /***/ }),
  16775. /***/ "../../node_modules/lodash/toNumber.js":
  16776. /*!***********************************************************!*\
  16777. !*** D:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  16778. \***********************************************************/
  16779. /*! no static exports found */
  16780. /***/ (function(module, exports, __webpack_require__) {
  16781. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  16782. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16783. /** Used as references for various `Number` constants. */
  16784. var NAN = 0 / 0;
  16785. /** Used to match leading and trailing whitespace. */
  16786. var reTrim = /^\s+|\s+$/g;
  16787. /** Used to detect bad signed hexadecimal string values. */
  16788. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  16789. /** Used to detect binary string values. */
  16790. var reIsBinary = /^0b[01]+$/i;
  16791. /** Used to detect octal string values. */
  16792. var reIsOctal = /^0o[0-7]+$/i;
  16793. /** Built-in method references without a dependency on `root`. */
  16794. var freeParseInt = parseInt;
  16795. /**
  16796. * Converts `value` to a number.
  16797. *
  16798. * @static
  16799. * @memberOf _
  16800. * @since 4.0.0
  16801. * @category Lang
  16802. * @param {*} value The value to process.
  16803. * @returns {number} Returns the number.
  16804. * @example
  16805. *
  16806. * _.toNumber(3.2);
  16807. * // => 3.2
  16808. *
  16809. * _.toNumber(Number.MIN_VALUE);
  16810. * // => 5e-324
  16811. *
  16812. * _.toNumber(Infinity);
  16813. * // => Infinity
  16814. *
  16815. * _.toNumber('3.2');
  16816. * // => 3.2
  16817. */
  16818. function toNumber(value) {
  16819. if (typeof value == 'number') {
  16820. return value;
  16821. }
  16822. if (isSymbol(value)) {
  16823. return NAN;
  16824. }
  16825. if (isObject(value)) {
  16826. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  16827. value = isObject(other) ? (other + '') : other;
  16828. }
  16829. if (typeof value != 'string') {
  16830. return value === 0 ? value : +value;
  16831. }
  16832. value = value.replace(reTrim, '');
  16833. var isBinary = reIsBinary.test(value);
  16834. return (isBinary || reIsOctal.test(value))
  16835. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  16836. : (reIsBadHex.test(value) ? NAN : +value);
  16837. }
  16838. module.exports = toNumber;
  16839. /***/ }),
  16840. /***/ "../../node_modules/lodash/toPlainObject.js":
  16841. /*!****************************************************************!*\
  16842. !*** D:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  16843. \****************************************************************/
  16844. /*! no static exports found */
  16845. /***/ (function(module, exports, __webpack_require__) {
  16846. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  16847. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  16848. /**
  16849. * Converts `value` to a plain object flattening inherited enumerable string
  16850. * keyed properties of `value` to own properties of the plain object.
  16851. *
  16852. * @static
  16853. * @memberOf _
  16854. * @since 3.0.0
  16855. * @category Lang
  16856. * @param {*} value The value to convert.
  16857. * @returns {Object} Returns the converted plain object.
  16858. * @example
  16859. *
  16860. * function Foo() {
  16861. * this.b = 2;
  16862. * }
  16863. *
  16864. * Foo.prototype.c = 3;
  16865. *
  16866. * _.assign({ 'a': 1 }, new Foo);
  16867. * // => { 'a': 1, 'b': 2 }
  16868. *
  16869. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  16870. * // => { 'a': 1, 'b': 2, 'c': 3 }
  16871. */
  16872. function toPlainObject(value) {
  16873. return copyObject(value, keysIn(value));
  16874. }
  16875. module.exports = toPlainObject;
  16876. /***/ }),
  16877. /***/ "../../node_modules/lodash/toString.js":
  16878. /*!***********************************************************!*\
  16879. !*** D:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  16880. \***********************************************************/
  16881. /*! no static exports found */
  16882. /***/ (function(module, exports, __webpack_require__) {
  16883. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  16884. /**
  16885. * Converts `value` to a string. An empty string is returned for `null`
  16886. * and `undefined` values. The sign of `-0` is preserved.
  16887. *
  16888. * @static
  16889. * @memberOf _
  16890. * @since 4.0.0
  16891. * @category Lang
  16892. * @param {*} value The value to convert.
  16893. * @returns {string} Returns the converted string.
  16894. * @example
  16895. *
  16896. * _.toString(null);
  16897. * // => ''
  16898. *
  16899. * _.toString(-0);
  16900. * // => '-0'
  16901. *
  16902. * _.toString([1, 2, 3]);
  16903. * // => '1,2,3'
  16904. */
  16905. function toString(value) {
  16906. return value == null ? '' : baseToString(value);
  16907. }
  16908. module.exports = toString;
  16909. /***/ }),
  16910. /***/ "../../node_modules/material-colors/dist/colors.es2015.js":
  16911. /*!******************************************************************************!*\
  16912. !*** D:/Repos/Babylon.js/node_modules/material-colors/dist/colors.es2015.js ***!
  16913. \******************************************************************************/
  16914. /*! exports provided: red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, grey, blueGrey, darkText, lightText, darkIcons, lightIcons, white, black, default */
  16915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16916. "use strict";
  16917. __webpack_require__.r(__webpack_exports__);
  16918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "red", function() { return red; });
  16919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pink", function() { return pink; });
  16920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purple", function() { return purple; });
  16921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepPurple", function() { return deepPurple; });
  16922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indigo", function() { return indigo; });
  16923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blue", function() { return blue; });
  16924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightBlue", function() { return lightBlue; });
  16925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cyan", function() { return cyan; });
  16926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "teal", function() { return teal; });
  16927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "green", function() { return green; });
  16928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightGreen", function() { return lightGreen; });
  16929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lime", function() { return lime; });
  16930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yellow", function() { return yellow; });
  16931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amber", function() { return amber; });
  16932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "orange", function() { return orange; });
  16933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepOrange", function() { return deepOrange; });
  16934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brown", function() { return brown; });
  16935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "grey", function() { return grey; });
  16936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blueGrey", function() { return blueGrey; });
  16937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darkText", function() { return darkText; });
  16938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightText", function() { return lightText; });
  16939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darkIcons", function() { return darkIcons; });
  16940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightIcons", function() { return lightIcons; });
  16941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "white", function() { return white; });
  16942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "black", function() { return black; });
  16943. var red = {"50":"#ffebee","100":"#ffcdd2","200":"#ef9a9a","300":"#e57373","400":"#ef5350","500":"#f44336","600":"#e53935","700":"#d32f2f","800":"#c62828","900":"#b71c1c","a100":"#ff8a80","a200":"#ff5252","a400":"#ff1744","a700":"#d50000"};
  16944. var pink = {"50":"#fce4ec","100":"#f8bbd0","200":"#f48fb1","300":"#f06292","400":"#ec407a","500":"#e91e63","600":"#d81b60","700":"#c2185b","800":"#ad1457","900":"#880e4f","a100":"#ff80ab","a200":"#ff4081","a400":"#f50057","a700":"#c51162"};
  16945. var purple = {"50":"#f3e5f5","100":"#e1bee7","200":"#ce93d8","300":"#ba68c8","400":"#ab47bc","500":"#9c27b0","600":"#8e24aa","700":"#7b1fa2","800":"#6a1b9a","900":"#4a148c","a100":"#ea80fc","a200":"#e040fb","a400":"#d500f9","a700":"#aa00ff"};
  16946. var deepPurple = {"50":"#ede7f6","100":"#d1c4e9","200":"#b39ddb","300":"#9575cd","400":"#7e57c2","500":"#673ab7","600":"#5e35b1","700":"#512da8","800":"#4527a0","900":"#311b92","a100":"#b388ff","a200":"#7c4dff","a400":"#651fff","a700":"#6200ea"};
  16947. var indigo = {"50":"#e8eaf6","100":"#c5cae9","200":"#9fa8da","300":"#7986cb","400":"#5c6bc0","500":"#3f51b5","600":"#3949ab","700":"#303f9f","800":"#283593","900":"#1a237e","a100":"#8c9eff","a200":"#536dfe","a400":"#3d5afe","a700":"#304ffe"};
  16948. var blue = {"50":"#e3f2fd","100":"#bbdefb","200":"#90caf9","300":"#64b5f6","400":"#42a5f5","500":"#2196f3","600":"#1e88e5","700":"#1976d2","800":"#1565c0","900":"#0d47a1","a100":"#82b1ff","a200":"#448aff","a400":"#2979ff","a700":"#2962ff"};
  16949. var lightBlue = {"50":"#e1f5fe","100":"#b3e5fc","200":"#81d4fa","300":"#4fc3f7","400":"#29b6f6","500":"#03a9f4","600":"#039be5","700":"#0288d1","800":"#0277bd","900":"#01579b","a100":"#80d8ff","a200":"#40c4ff","a400":"#00b0ff","a700":"#0091ea"};
  16950. var cyan = {"50":"#e0f7fa","100":"#b2ebf2","200":"#80deea","300":"#4dd0e1","400":"#26c6da","500":"#00bcd4","600":"#00acc1","700":"#0097a7","800":"#00838f","900":"#006064","a100":"#84ffff","a200":"#18ffff","a400":"#00e5ff","a700":"#00b8d4"};
  16951. var teal = {"50":"#e0f2f1","100":"#b2dfdb","200":"#80cbc4","300":"#4db6ac","400":"#26a69a","500":"#009688","600":"#00897b","700":"#00796b","800":"#00695c","900":"#004d40","a100":"#a7ffeb","a200":"#64ffda","a400":"#1de9b6","a700":"#00bfa5"};
  16952. var green = {"50":"#e8f5e9","100":"#c8e6c9","200":"#a5d6a7","300":"#81c784","400":"#66bb6a","500":"#4caf50","600":"#43a047","700":"#388e3c","800":"#2e7d32","900":"#1b5e20","a100":"#b9f6ca","a200":"#69f0ae","a400":"#00e676","a700":"#00c853"};
  16953. var lightGreen = {"50":"#f1f8e9","100":"#dcedc8","200":"#c5e1a5","300":"#aed581","400":"#9ccc65","500":"#8bc34a","600":"#7cb342","700":"#689f38","800":"#558b2f","900":"#33691e","a100":"#ccff90","a200":"#b2ff59","a400":"#76ff03","a700":"#64dd17"};
  16954. var lime = {"50":"#f9fbe7","100":"#f0f4c3","200":"#e6ee9c","300":"#dce775","400":"#d4e157","500":"#cddc39","600":"#c0ca33","700":"#afb42b","800":"#9e9d24","900":"#827717","a100":"#f4ff81","a200":"#eeff41","a400":"#c6ff00","a700":"#aeea00"};
  16955. var yellow = {"50":"#fffde7","100":"#fff9c4","200":"#fff59d","300":"#fff176","400":"#ffee58","500":"#ffeb3b","600":"#fdd835","700":"#fbc02d","800":"#f9a825","900":"#f57f17","a100":"#ffff8d","a200":"#ffff00","a400":"#ffea00","a700":"#ffd600"};
  16956. var amber = {"50":"#fff8e1","100":"#ffecb3","200":"#ffe082","300":"#ffd54f","400":"#ffca28","500":"#ffc107","600":"#ffb300","700":"#ffa000","800":"#ff8f00","900":"#ff6f00","a100":"#ffe57f","a200":"#ffd740","a400":"#ffc400","a700":"#ffab00"};
  16957. var orange = {"50":"#fff3e0","100":"#ffe0b2","200":"#ffcc80","300":"#ffb74d","400":"#ffa726","500":"#ff9800","600":"#fb8c00","700":"#f57c00","800":"#ef6c00","900":"#e65100","a100":"#ffd180","a200":"#ffab40","a400":"#ff9100","a700":"#ff6d00"};
  16958. var deepOrange = {"50":"#fbe9e7","100":"#ffccbc","200":"#ffab91","300":"#ff8a65","400":"#ff7043","500":"#ff5722","600":"#f4511e","700":"#e64a19","800":"#d84315","900":"#bf360c","a100":"#ff9e80","a200":"#ff6e40","a400":"#ff3d00","a700":"#dd2c00"};
  16959. var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"};
  16960. var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"};
  16961. var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"};
  16962. var darkText = {"primary":"rgba(0, 0, 0, 0.87)","secondary":"rgba(0, 0, 0, 0.54)","disabled":"rgba(0, 0, 0, 0.38)","dividers":"rgba(0, 0, 0, 0.12)"};
  16963. var lightText = {"primary":"rgba(255, 255, 255, 1)","secondary":"rgba(255, 255, 255, 0.7)","disabled":"rgba(255, 255, 255, 0.5)","dividers":"rgba(255, 255, 255, 0.12)"};
  16964. var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"};
  16965. var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"};
  16966. var white = "#ffffff";
  16967. var black = "#000000";
  16968. /* harmony default export */ __webpack_exports__["default"] = ({
  16969. red: red,
  16970. pink: pink,
  16971. purple: purple,
  16972. deepPurple: deepPurple,
  16973. indigo: indigo,
  16974. blue: blue,
  16975. lightBlue: lightBlue,
  16976. cyan: cyan,
  16977. teal: teal,
  16978. green: green,
  16979. lightGreen: lightGreen,
  16980. lime: lime,
  16981. yellow: yellow,
  16982. amber: amber,
  16983. orange: orange,
  16984. deepOrange: deepOrange,
  16985. brown: brown,
  16986. grey: grey,
  16987. blueGrey: blueGrey,
  16988. darkText: darkText,
  16989. lightText: lightText,
  16990. darkIcons: darkIcons,
  16991. lightIcons: lightIcons,
  16992. white: white,
  16993. black: black
  16994. });
  16995. /***/ }),
  16996. /***/ "../../node_modules/object-assign/index.js":
  16997. /*!***************************************************************!*\
  16998. !*** D:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  16999. \***************************************************************/
  17000. /*! no static exports found */
  17001. /***/ (function(module, exports, __webpack_require__) {
  17002. "use strict";
  17003. /*
  17004. object-assign
  17005. (c) Sindre Sorhus
  17006. @license MIT
  17007. */
  17008. /* eslint-disable no-unused-vars */
  17009. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  17010. var hasOwnProperty = Object.prototype.hasOwnProperty;
  17011. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  17012. function toObject(val) {
  17013. if (val === null || val === undefined) {
  17014. throw new TypeError('Object.assign cannot be called with null or undefined');
  17015. }
  17016. return Object(val);
  17017. }
  17018. function shouldUseNative() {
  17019. try {
  17020. if (!Object.assign) {
  17021. return false;
  17022. }
  17023. // Detect buggy property enumeration order in older V8 versions.
  17024. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  17025. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  17026. test1[5] = 'de';
  17027. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  17028. return false;
  17029. }
  17030. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  17031. var test2 = {};
  17032. for (var i = 0; i < 10; i++) {
  17033. test2['_' + String.fromCharCode(i)] = i;
  17034. }
  17035. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  17036. return test2[n];
  17037. });
  17038. if (order2.join('') !== '0123456789') {
  17039. return false;
  17040. }
  17041. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  17042. var test3 = {};
  17043. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  17044. test3[letter] = letter;
  17045. });
  17046. if (Object.keys(Object.assign({}, test3)).join('') !==
  17047. 'abcdefghijklmnopqrst') {
  17048. return false;
  17049. }
  17050. return true;
  17051. } catch (err) {
  17052. // We don't expect any of the above to throw, but better to be safe.
  17053. return false;
  17054. }
  17055. }
  17056. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  17057. var from;
  17058. var to = toObject(target);
  17059. var symbols;
  17060. for (var s = 1; s < arguments.length; s++) {
  17061. from = Object(arguments[s]);
  17062. for (var key in from) {
  17063. if (hasOwnProperty.call(from, key)) {
  17064. to[key] = from[key];
  17065. }
  17066. }
  17067. if (getOwnPropertySymbols) {
  17068. symbols = getOwnPropertySymbols(from);
  17069. for (var i = 0; i < symbols.length; i++) {
  17070. if (propIsEnumerable.call(from, symbols[i])) {
  17071. to[symbols[i]] = from[symbols[i]];
  17072. }
  17073. }
  17074. }
  17075. }
  17076. return to;
  17077. };
  17078. /***/ }),
  17079. /***/ "../../node_modules/process/browser.js":
  17080. /*!***********************************************************!*\
  17081. !*** D:/Repos/Babylon.js/node_modules/process/browser.js ***!
  17082. \***********************************************************/
  17083. /*! no static exports found */
  17084. /***/ (function(module, exports) {
  17085. // shim for using process in browser
  17086. var process = module.exports = {};
  17087. // cached from whatever global is present so that test runners that stub it
  17088. // don't break things. But we need to wrap it in a try catch in case it is
  17089. // wrapped in strict mode code which doesn't define any globals. It's inside a
  17090. // function because try/catches deoptimize in certain engines.
  17091. var cachedSetTimeout;
  17092. var cachedClearTimeout;
  17093. function defaultSetTimout() {
  17094. throw new Error('setTimeout has not been defined');
  17095. }
  17096. function defaultClearTimeout () {
  17097. throw new Error('clearTimeout has not been defined');
  17098. }
  17099. (function () {
  17100. try {
  17101. if (typeof setTimeout === 'function') {
  17102. cachedSetTimeout = setTimeout;
  17103. } else {
  17104. cachedSetTimeout = defaultSetTimout;
  17105. }
  17106. } catch (e) {
  17107. cachedSetTimeout = defaultSetTimout;
  17108. }
  17109. try {
  17110. if (typeof clearTimeout === 'function') {
  17111. cachedClearTimeout = clearTimeout;
  17112. } else {
  17113. cachedClearTimeout = defaultClearTimeout;
  17114. }
  17115. } catch (e) {
  17116. cachedClearTimeout = defaultClearTimeout;
  17117. }
  17118. } ())
  17119. function runTimeout(fun) {
  17120. if (cachedSetTimeout === setTimeout) {
  17121. //normal enviroments in sane situations
  17122. return setTimeout(fun, 0);
  17123. }
  17124. // if setTimeout wasn't available but was latter defined
  17125. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  17126. cachedSetTimeout = setTimeout;
  17127. return setTimeout(fun, 0);
  17128. }
  17129. try {
  17130. // when when somebody has screwed with setTimeout but no I.E. maddness
  17131. return cachedSetTimeout(fun, 0);
  17132. } catch(e){
  17133. try {
  17134. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  17135. return cachedSetTimeout.call(null, fun, 0);
  17136. } catch(e){
  17137. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  17138. return cachedSetTimeout.call(this, fun, 0);
  17139. }
  17140. }
  17141. }
  17142. function runClearTimeout(marker) {
  17143. if (cachedClearTimeout === clearTimeout) {
  17144. //normal enviroments in sane situations
  17145. return clearTimeout(marker);
  17146. }
  17147. // if clearTimeout wasn't available but was latter defined
  17148. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  17149. cachedClearTimeout = clearTimeout;
  17150. return clearTimeout(marker);
  17151. }
  17152. try {
  17153. // when when somebody has screwed with setTimeout but no I.E. maddness
  17154. return cachedClearTimeout(marker);
  17155. } catch (e){
  17156. try {
  17157. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  17158. return cachedClearTimeout.call(null, marker);
  17159. } catch (e){
  17160. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  17161. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  17162. return cachedClearTimeout.call(this, marker);
  17163. }
  17164. }
  17165. }
  17166. var queue = [];
  17167. var draining = false;
  17168. var currentQueue;
  17169. var queueIndex = -1;
  17170. function cleanUpNextTick() {
  17171. if (!draining || !currentQueue) {
  17172. return;
  17173. }
  17174. draining = false;
  17175. if (currentQueue.length) {
  17176. queue = currentQueue.concat(queue);
  17177. } else {
  17178. queueIndex = -1;
  17179. }
  17180. if (queue.length) {
  17181. drainQueue();
  17182. }
  17183. }
  17184. function drainQueue() {
  17185. if (draining) {
  17186. return;
  17187. }
  17188. var timeout = runTimeout(cleanUpNextTick);
  17189. draining = true;
  17190. var len = queue.length;
  17191. while(len) {
  17192. currentQueue = queue;
  17193. queue = [];
  17194. while (++queueIndex < len) {
  17195. if (currentQueue) {
  17196. currentQueue[queueIndex].run();
  17197. }
  17198. }
  17199. queueIndex = -1;
  17200. len = queue.length;
  17201. }
  17202. currentQueue = null;
  17203. draining = false;
  17204. runClearTimeout(timeout);
  17205. }
  17206. process.nextTick = function (fun) {
  17207. var args = new Array(arguments.length - 1);
  17208. if (arguments.length > 1) {
  17209. for (var i = 1; i < arguments.length; i++) {
  17210. args[i - 1] = arguments[i];
  17211. }
  17212. }
  17213. queue.push(new Item(fun, args));
  17214. if (queue.length === 1 && !draining) {
  17215. runTimeout(drainQueue);
  17216. }
  17217. };
  17218. // v8 likes predictible objects
  17219. function Item(fun, array) {
  17220. this.fun = fun;
  17221. this.array = array;
  17222. }
  17223. Item.prototype.run = function () {
  17224. this.fun.apply(null, this.array);
  17225. };
  17226. process.title = 'browser';
  17227. process.browser = true;
  17228. process.env = {};
  17229. process.argv = [];
  17230. process.version = ''; // empty string to avoid regexp issues
  17231. process.versions = {};
  17232. function noop() {}
  17233. process.on = noop;
  17234. process.addListener = noop;
  17235. process.once = noop;
  17236. process.off = noop;
  17237. process.removeListener = noop;
  17238. process.removeAllListeners = noop;
  17239. process.emit = noop;
  17240. process.prependListener = noop;
  17241. process.prependOnceListener = noop;
  17242. process.listeners = function (name) { return [] }
  17243. process.binding = function (name) {
  17244. throw new Error('process.binding is not supported');
  17245. };
  17246. process.cwd = function () { return '/' };
  17247. process.chdir = function (dir) {
  17248. throw new Error('process.chdir is not supported');
  17249. };
  17250. process.umask = function() { return 0; };
  17251. /***/ }),
  17252. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  17253. /*!*********************************************************************!*\
  17254. !*** D:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  17255. \*********************************************************************/
  17256. /*! no static exports found */
  17257. /***/ (function(module, exports, __webpack_require__) {
  17258. "use strict";
  17259. /**
  17260. * Copyright (c) 2013-present, Facebook, Inc.
  17261. *
  17262. * This source code is licensed under the MIT license found in the
  17263. * LICENSE file in the root directory of this source tree.
  17264. */
  17265. var printWarning = function() {};
  17266. if (true) {
  17267. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  17268. var loggedTypeFailures = {};
  17269. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  17270. printWarning = function(text) {
  17271. var message = 'Warning: ' + text;
  17272. if (typeof console !== 'undefined') {
  17273. console.error(message);
  17274. }
  17275. try {
  17276. // --- Welcome to debugging React ---
  17277. // This error was thrown as a convenience so that you can use this stack
  17278. // to find the callsite that caused this warning to fire.
  17279. throw new Error(message);
  17280. } catch (x) {}
  17281. };
  17282. }
  17283. /**
  17284. * Assert that the values match with the type specs.
  17285. * Error messages are memorized and will only be shown once.
  17286. *
  17287. * @param {object} typeSpecs Map of name to a ReactPropType
  17288. * @param {object} values Runtime values that need to be type-checked
  17289. * @param {string} location e.g. "prop", "context", "child context"
  17290. * @param {string} componentName Name of the component for error messages.
  17291. * @param {?Function} getStack Returns the component stack.
  17292. * @private
  17293. */
  17294. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  17295. if (true) {
  17296. for (var typeSpecName in typeSpecs) {
  17297. if (has(typeSpecs, typeSpecName)) {
  17298. var error;
  17299. // Prop type validation may throw. In case they do, we don't want to
  17300. // fail the render phase where it didn't fail before. So we log it.
  17301. // After these have been cleaned up, we'll let them throw.
  17302. try {
  17303. // This is intentionally an invariant that gets caught. It's the same
  17304. // behavior as without this statement except with a better message.
  17305. if (typeof typeSpecs[typeSpecName] !== 'function') {
  17306. var err = Error(
  17307. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  17308. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  17309. );
  17310. err.name = 'Invariant Violation';
  17311. throw err;
  17312. }
  17313. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  17314. } catch (ex) {
  17315. error = ex;
  17316. }
  17317. if (error && !(error instanceof Error)) {
  17318. printWarning(
  17319. (componentName || 'React class') + ': type specification of ' +
  17320. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  17321. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  17322. 'You may have forgotten to pass an argument to the type checker ' +
  17323. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  17324. 'shape all require an argument).'
  17325. );
  17326. }
  17327. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  17328. // Only monitor this failure once because there tends to be a lot of the
  17329. // same error.
  17330. loggedTypeFailures[error.message] = true;
  17331. var stack = getStack ? getStack() : '';
  17332. printWarning(
  17333. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  17334. );
  17335. }
  17336. }
  17337. }
  17338. }
  17339. }
  17340. /**
  17341. * Resets warning cache when testing.
  17342. *
  17343. * @private
  17344. */
  17345. checkPropTypes.resetWarningCache = function() {
  17346. if (true) {
  17347. loggedTypeFailures = {};
  17348. }
  17349. }
  17350. module.exports = checkPropTypes;
  17351. /***/ }),
  17352. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  17353. /*!******************************************************************************!*\
  17354. !*** D:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  17355. \******************************************************************************/
  17356. /*! no static exports found */
  17357. /***/ (function(module, exports, __webpack_require__) {
  17358. "use strict";
  17359. /**
  17360. * Copyright (c) 2013-present, Facebook, Inc.
  17361. *
  17362. * This source code is licensed under the MIT license found in the
  17363. * LICENSE file in the root directory of this source tree.
  17364. */
  17365. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  17366. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  17367. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  17368. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  17369. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  17370. var printWarning = function() {};
  17371. if (true) {
  17372. printWarning = function(text) {
  17373. var message = 'Warning: ' + text;
  17374. if (typeof console !== 'undefined') {
  17375. console.error(message);
  17376. }
  17377. try {
  17378. // --- Welcome to debugging React ---
  17379. // This error was thrown as a convenience so that you can use this stack
  17380. // to find the callsite that caused this warning to fire.
  17381. throw new Error(message);
  17382. } catch (x) {}
  17383. };
  17384. }
  17385. function emptyFunctionThatReturnsNull() {
  17386. return null;
  17387. }
  17388. module.exports = function(isValidElement, throwOnDirectAccess) {
  17389. /* global Symbol */
  17390. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  17391. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  17392. /**
  17393. * Returns the iterator method function contained on the iterable object.
  17394. *
  17395. * Be sure to invoke the function with the iterable as context:
  17396. *
  17397. * var iteratorFn = getIteratorFn(myIterable);
  17398. * if (iteratorFn) {
  17399. * var iterator = iteratorFn.call(myIterable);
  17400. * ...
  17401. * }
  17402. *
  17403. * @param {?object} maybeIterable
  17404. * @return {?function}
  17405. */
  17406. function getIteratorFn(maybeIterable) {
  17407. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  17408. if (typeof iteratorFn === 'function') {
  17409. return iteratorFn;
  17410. }
  17411. }
  17412. /**
  17413. * Collection of methods that allow declaration and validation of props that are
  17414. * supplied to React components. Example usage:
  17415. *
  17416. * var Props = require('ReactPropTypes');
  17417. * var MyArticle = React.createClass({
  17418. * propTypes: {
  17419. * // An optional string prop named "description".
  17420. * description: Props.string,
  17421. *
  17422. * // A required enum prop named "category".
  17423. * category: Props.oneOf(['News','Photos']).isRequired,
  17424. *
  17425. * // A prop named "dialog" that requires an instance of Dialog.
  17426. * dialog: Props.instanceOf(Dialog).isRequired
  17427. * },
  17428. * render: function() { ... }
  17429. * });
  17430. *
  17431. * A more formal specification of how these methods are used:
  17432. *
  17433. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  17434. * decl := ReactPropTypes.{type}(.isRequired)?
  17435. *
  17436. * Each and every declaration produces a function with the same signature. This
  17437. * allows the creation of custom validation functions. For example:
  17438. *
  17439. * var MyLink = React.createClass({
  17440. * propTypes: {
  17441. * // An optional string or URI prop named "href".
  17442. * href: function(props, propName, componentName) {
  17443. * var propValue = props[propName];
  17444. * if (propValue != null && typeof propValue !== 'string' &&
  17445. * !(propValue instanceof URI)) {
  17446. * return new Error(
  17447. * 'Expected a string or an URI for ' + propName + ' in ' +
  17448. * componentName
  17449. * );
  17450. * }
  17451. * }
  17452. * },
  17453. * render: function() {...}
  17454. * });
  17455. *
  17456. * @internal
  17457. */
  17458. var ANONYMOUS = '<<anonymous>>';
  17459. // Important!
  17460. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  17461. var ReactPropTypes = {
  17462. array: createPrimitiveTypeChecker('array'),
  17463. bool: createPrimitiveTypeChecker('boolean'),
  17464. func: createPrimitiveTypeChecker('function'),
  17465. number: createPrimitiveTypeChecker('number'),
  17466. object: createPrimitiveTypeChecker('object'),
  17467. string: createPrimitiveTypeChecker('string'),
  17468. symbol: createPrimitiveTypeChecker('symbol'),
  17469. any: createAnyTypeChecker(),
  17470. arrayOf: createArrayOfTypeChecker,
  17471. element: createElementTypeChecker(),
  17472. elementType: createElementTypeTypeChecker(),
  17473. instanceOf: createInstanceTypeChecker,
  17474. node: createNodeChecker(),
  17475. objectOf: createObjectOfTypeChecker,
  17476. oneOf: createEnumTypeChecker,
  17477. oneOfType: createUnionTypeChecker,
  17478. shape: createShapeTypeChecker,
  17479. exact: createStrictShapeTypeChecker,
  17480. };
  17481. /**
  17482. * inlined Object.is polyfill to avoid requiring consumers ship their own
  17483. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  17484. */
  17485. /*eslint-disable no-self-compare*/
  17486. function is(x, y) {
  17487. // SameValue algorithm
  17488. if (x === y) {
  17489. // Steps 1-5, 7-10
  17490. // Steps 6.b-6.e: +0 != -0
  17491. return x !== 0 || 1 / x === 1 / y;
  17492. } else {
  17493. // Step 6.a: NaN == NaN
  17494. return x !== x && y !== y;
  17495. }
  17496. }
  17497. /*eslint-enable no-self-compare*/
  17498. /**
  17499. * We use an Error-like object for backward compatibility as people may call
  17500. * PropTypes directly and inspect their output. However, we don't use real
  17501. * Errors anymore. We don't inspect their stack anyway, and creating them
  17502. * is prohibitively expensive if they are created too often, such as what
  17503. * happens in oneOfType() for any type before the one that matched.
  17504. */
  17505. function PropTypeError(message) {
  17506. this.message = message;
  17507. this.stack = '';
  17508. }
  17509. // Make `instanceof Error` still work for returned errors.
  17510. PropTypeError.prototype = Error.prototype;
  17511. function createChainableTypeChecker(validate) {
  17512. if (true) {
  17513. var manualPropTypeCallCache = {};
  17514. var manualPropTypeWarningCount = 0;
  17515. }
  17516. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  17517. componentName = componentName || ANONYMOUS;
  17518. propFullName = propFullName || propName;
  17519. if (secret !== ReactPropTypesSecret) {
  17520. if (throwOnDirectAccess) {
  17521. // New behavior only for users of `prop-types` package
  17522. var err = new Error(
  17523. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  17524. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  17525. 'Read more at http://fb.me/use-check-prop-types'
  17526. );
  17527. err.name = 'Invariant Violation';
  17528. throw err;
  17529. } else if ( true && typeof console !== 'undefined') {
  17530. // Old behavior for people using React.PropTypes
  17531. var cacheKey = componentName + ':' + propName;
  17532. if (
  17533. !manualPropTypeCallCache[cacheKey] &&
  17534. // Avoid spamming the console because they are often not actionable except for lib authors
  17535. manualPropTypeWarningCount < 3
  17536. ) {
  17537. printWarning(
  17538. 'You are manually calling a React.PropTypes validation ' +
  17539. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  17540. 'and will throw in the standalone `prop-types` package. ' +
  17541. 'You may be seeing this warning due to a third-party PropTypes ' +
  17542. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  17543. );
  17544. manualPropTypeCallCache[cacheKey] = true;
  17545. manualPropTypeWarningCount++;
  17546. }
  17547. }
  17548. }
  17549. if (props[propName] == null) {
  17550. if (isRequired) {
  17551. if (props[propName] === null) {
  17552. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  17553. }
  17554. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  17555. }
  17556. return null;
  17557. } else {
  17558. return validate(props, propName, componentName, location, propFullName);
  17559. }
  17560. }
  17561. var chainedCheckType = checkType.bind(null, false);
  17562. chainedCheckType.isRequired = checkType.bind(null, true);
  17563. return chainedCheckType;
  17564. }
  17565. function createPrimitiveTypeChecker(expectedType) {
  17566. function validate(props, propName, componentName, location, propFullName, secret) {
  17567. var propValue = props[propName];
  17568. var propType = getPropType(propValue);
  17569. if (propType !== expectedType) {
  17570. // `propValue` being instance of, say, date/regexp, pass the 'object'
  17571. // check, but we can offer a more precise error message here rather than
  17572. // 'of type `object`'.
  17573. var preciseType = getPreciseType(propValue);
  17574. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  17575. }
  17576. return null;
  17577. }
  17578. return createChainableTypeChecker(validate);
  17579. }
  17580. function createAnyTypeChecker() {
  17581. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  17582. }
  17583. function createArrayOfTypeChecker(typeChecker) {
  17584. function validate(props, propName, componentName, location, propFullName) {
  17585. if (typeof typeChecker !== 'function') {
  17586. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  17587. }
  17588. var propValue = props[propName];
  17589. if (!Array.isArray(propValue)) {
  17590. var propType = getPropType(propValue);
  17591. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  17592. }
  17593. for (var i = 0; i < propValue.length; i++) {
  17594. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  17595. if (error instanceof Error) {
  17596. return error;
  17597. }
  17598. }
  17599. return null;
  17600. }
  17601. return createChainableTypeChecker(validate);
  17602. }
  17603. function createElementTypeChecker() {
  17604. function validate(props, propName, componentName, location, propFullName) {
  17605. var propValue = props[propName];
  17606. if (!isValidElement(propValue)) {
  17607. var propType = getPropType(propValue);
  17608. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  17609. }
  17610. return null;
  17611. }
  17612. return createChainableTypeChecker(validate);
  17613. }
  17614. function createElementTypeTypeChecker() {
  17615. function validate(props, propName, componentName, location, propFullName) {
  17616. var propValue = props[propName];
  17617. if (!ReactIs.isValidElementType(propValue)) {
  17618. var propType = getPropType(propValue);
  17619. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  17620. }
  17621. return null;
  17622. }
  17623. return createChainableTypeChecker(validate);
  17624. }
  17625. function createInstanceTypeChecker(expectedClass) {
  17626. function validate(props, propName, componentName, location, propFullName) {
  17627. if (!(props[propName] instanceof expectedClass)) {
  17628. var expectedClassName = expectedClass.name || ANONYMOUS;
  17629. var actualClassName = getClassName(props[propName]);
  17630. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  17631. }
  17632. return null;
  17633. }
  17634. return createChainableTypeChecker(validate);
  17635. }
  17636. function createEnumTypeChecker(expectedValues) {
  17637. if (!Array.isArray(expectedValues)) {
  17638. if (true) {
  17639. if (arguments.length > 1) {
  17640. printWarning(
  17641. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  17642. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  17643. );
  17644. } else {
  17645. printWarning('Invalid argument supplied to oneOf, expected an array.');
  17646. }
  17647. }
  17648. return emptyFunctionThatReturnsNull;
  17649. }
  17650. function validate(props, propName, componentName, location, propFullName) {
  17651. var propValue = props[propName];
  17652. for (var i = 0; i < expectedValues.length; i++) {
  17653. if (is(propValue, expectedValues[i])) {
  17654. return null;
  17655. }
  17656. }
  17657. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  17658. var type = getPreciseType(value);
  17659. if (type === 'symbol') {
  17660. return String(value);
  17661. }
  17662. return value;
  17663. });
  17664. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  17665. }
  17666. return createChainableTypeChecker(validate);
  17667. }
  17668. function createObjectOfTypeChecker(typeChecker) {
  17669. function validate(props, propName, componentName, location, propFullName) {
  17670. if (typeof typeChecker !== 'function') {
  17671. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  17672. }
  17673. var propValue = props[propName];
  17674. var propType = getPropType(propValue);
  17675. if (propType !== 'object') {
  17676. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  17677. }
  17678. for (var key in propValue) {
  17679. if (has(propValue, key)) {
  17680. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  17681. if (error instanceof Error) {
  17682. return error;
  17683. }
  17684. }
  17685. }
  17686. return null;
  17687. }
  17688. return createChainableTypeChecker(validate);
  17689. }
  17690. function createUnionTypeChecker(arrayOfTypeCheckers) {
  17691. if (!Array.isArray(arrayOfTypeCheckers)) {
  17692. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  17693. return emptyFunctionThatReturnsNull;
  17694. }
  17695. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  17696. var checker = arrayOfTypeCheckers[i];
  17697. if (typeof checker !== 'function') {
  17698. printWarning(
  17699. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  17700. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  17701. );
  17702. return emptyFunctionThatReturnsNull;
  17703. }
  17704. }
  17705. function validate(props, propName, componentName, location, propFullName) {
  17706. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  17707. var checker = arrayOfTypeCheckers[i];
  17708. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  17709. return null;
  17710. }
  17711. }
  17712. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  17713. }
  17714. return createChainableTypeChecker(validate);
  17715. }
  17716. function createNodeChecker() {
  17717. function validate(props, propName, componentName, location, propFullName) {
  17718. if (!isNode(props[propName])) {
  17719. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  17720. }
  17721. return null;
  17722. }
  17723. return createChainableTypeChecker(validate);
  17724. }
  17725. function createShapeTypeChecker(shapeTypes) {
  17726. function validate(props, propName, componentName, location, propFullName) {
  17727. var propValue = props[propName];
  17728. var propType = getPropType(propValue);
  17729. if (propType !== 'object') {
  17730. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  17731. }
  17732. for (var key in shapeTypes) {
  17733. var checker = shapeTypes[key];
  17734. if (!checker) {
  17735. continue;
  17736. }
  17737. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  17738. if (error) {
  17739. return error;
  17740. }
  17741. }
  17742. return null;
  17743. }
  17744. return createChainableTypeChecker(validate);
  17745. }
  17746. function createStrictShapeTypeChecker(shapeTypes) {
  17747. function validate(props, propName, componentName, location, propFullName) {
  17748. var propValue = props[propName];
  17749. var propType = getPropType(propValue);
  17750. if (propType !== 'object') {
  17751. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  17752. }
  17753. // We need to check all keys in case some are required but missing from
  17754. // props.
  17755. var allKeys = assign({}, props[propName], shapeTypes);
  17756. for (var key in allKeys) {
  17757. var checker = shapeTypes[key];
  17758. if (!checker) {
  17759. return new PropTypeError(
  17760. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  17761. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  17762. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  17763. );
  17764. }
  17765. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  17766. if (error) {
  17767. return error;
  17768. }
  17769. }
  17770. return null;
  17771. }
  17772. return createChainableTypeChecker(validate);
  17773. }
  17774. function isNode(propValue) {
  17775. switch (typeof propValue) {
  17776. case 'number':
  17777. case 'string':
  17778. case 'undefined':
  17779. return true;
  17780. case 'boolean':
  17781. return !propValue;
  17782. case 'object':
  17783. if (Array.isArray(propValue)) {
  17784. return propValue.every(isNode);
  17785. }
  17786. if (propValue === null || isValidElement(propValue)) {
  17787. return true;
  17788. }
  17789. var iteratorFn = getIteratorFn(propValue);
  17790. if (iteratorFn) {
  17791. var iterator = iteratorFn.call(propValue);
  17792. var step;
  17793. if (iteratorFn !== propValue.entries) {
  17794. while (!(step = iterator.next()).done) {
  17795. if (!isNode(step.value)) {
  17796. return false;
  17797. }
  17798. }
  17799. } else {
  17800. // Iterator will provide entry [k,v] tuples rather than values.
  17801. while (!(step = iterator.next()).done) {
  17802. var entry = step.value;
  17803. if (entry) {
  17804. if (!isNode(entry[1])) {
  17805. return false;
  17806. }
  17807. }
  17808. }
  17809. }
  17810. } else {
  17811. return false;
  17812. }
  17813. return true;
  17814. default:
  17815. return false;
  17816. }
  17817. }
  17818. function isSymbol(propType, propValue) {
  17819. // Native Symbol.
  17820. if (propType === 'symbol') {
  17821. return true;
  17822. }
  17823. // falsy value can't be a Symbol
  17824. if (!propValue) {
  17825. return false;
  17826. }
  17827. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  17828. if (propValue['@@toStringTag'] === 'Symbol') {
  17829. return true;
  17830. }
  17831. // Fallback for non-spec compliant Symbols which are polyfilled.
  17832. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  17833. return true;
  17834. }
  17835. return false;
  17836. }
  17837. // Equivalent of `typeof` but with special handling for array and regexp.
  17838. function getPropType(propValue) {
  17839. var propType = typeof propValue;
  17840. if (Array.isArray(propValue)) {
  17841. return 'array';
  17842. }
  17843. if (propValue instanceof RegExp) {
  17844. // Old webkits (at least until Android 4.0) return 'function' rather than
  17845. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  17846. // passes PropTypes.object.
  17847. return 'object';
  17848. }
  17849. if (isSymbol(propType, propValue)) {
  17850. return 'symbol';
  17851. }
  17852. return propType;
  17853. }
  17854. // This handles more types than `getPropType`. Only used for error messages.
  17855. // See `createPrimitiveTypeChecker`.
  17856. function getPreciseType(propValue) {
  17857. if (typeof propValue === 'undefined' || propValue === null) {
  17858. return '' + propValue;
  17859. }
  17860. var propType = getPropType(propValue);
  17861. if (propType === 'object') {
  17862. if (propValue instanceof Date) {
  17863. return 'date';
  17864. } else if (propValue instanceof RegExp) {
  17865. return 'regexp';
  17866. }
  17867. }
  17868. return propType;
  17869. }
  17870. // Returns a string that is postfixed to a warning about an invalid type.
  17871. // For example, "undefined" or "of type array"
  17872. function getPostfixForTypeWarning(value) {
  17873. var type = getPreciseType(value);
  17874. switch (type) {
  17875. case 'array':
  17876. case 'object':
  17877. return 'an ' + type;
  17878. case 'boolean':
  17879. case 'date':
  17880. case 'regexp':
  17881. return 'a ' + type;
  17882. default:
  17883. return type;
  17884. }
  17885. }
  17886. // Returns class name of the object, if any.
  17887. function getClassName(propValue) {
  17888. if (!propValue.constructor || !propValue.constructor.name) {
  17889. return ANONYMOUS;
  17890. }
  17891. return propValue.constructor.name;
  17892. }
  17893. ReactPropTypes.checkPropTypes = checkPropTypes;
  17894. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  17895. ReactPropTypes.PropTypes = ReactPropTypes;
  17896. return ReactPropTypes;
  17897. };
  17898. /***/ }),
  17899. /***/ "../../node_modules/prop-types/index.js":
  17900. /*!************************************************************!*\
  17901. !*** D:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  17902. \************************************************************/
  17903. /*! no static exports found */
  17904. /***/ (function(module, exports, __webpack_require__) {
  17905. /**
  17906. * Copyright (c) 2013-present, Facebook, Inc.
  17907. *
  17908. * This source code is licensed under the MIT license found in the
  17909. * LICENSE file in the root directory of this source tree.
  17910. */
  17911. if (true) {
  17912. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  17913. // By explicitly using `prop-types` you are opting into new development behavior.
  17914. // http://fb.me/prop-types-in-prod
  17915. var throwOnDirectAccess = true;
  17916. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  17917. } else {}
  17918. /***/ }),
  17919. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  17920. /*!*******************************************************************************!*\
  17921. !*** D:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  17922. \*******************************************************************************/
  17923. /*! no static exports found */
  17924. /***/ (function(module, exports, __webpack_require__) {
  17925. "use strict";
  17926. /**
  17927. * Copyright (c) 2013-present, Facebook, Inc.
  17928. *
  17929. * This source code is licensed under the MIT license found in the
  17930. * LICENSE file in the root directory of this source tree.
  17931. */
  17932. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  17933. module.exports = ReactPropTypesSecret;
  17934. /***/ }),
  17935. /***/ "../../node_modules/re-resizable/lib/index.es5.js":
  17936. /*!**********************************************************************!*\
  17937. !*** D:/Repos/Babylon.js/node_modules/re-resizable/lib/index.es5.js ***!
  17938. \**********************************************************************/
  17939. /*! no static exports found */
  17940. /***/ (function(module, exports, __webpack_require__) {
  17941. "use strict";
  17942. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  17943. var classCallCheck = function (instance, Constructor) {
  17944. if (!(instance instanceof Constructor)) {
  17945. throw new TypeError("Cannot call a class as a function");
  17946. }
  17947. };
  17948. var createClass = function () {
  17949. function defineProperties(target, props) {
  17950. for (var i = 0; i < props.length; i++) {
  17951. var descriptor = props[i];
  17952. descriptor.enumerable = descriptor.enumerable || false;
  17953. descriptor.configurable = true;
  17954. if ("value" in descriptor) descriptor.writable = true;
  17955. Object.defineProperty(target, descriptor.key, descriptor);
  17956. }
  17957. }
  17958. return function (Constructor, protoProps, staticProps) {
  17959. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  17960. if (staticProps) defineProperties(Constructor, staticProps);
  17961. return Constructor;
  17962. };
  17963. }();
  17964. var _extends = Object.assign || function (target) {
  17965. for (var i = 1; i < arguments.length; i++) {
  17966. var source = arguments[i];
  17967. for (var key in source) {
  17968. if (Object.prototype.hasOwnProperty.call(source, key)) {
  17969. target[key] = source[key];
  17970. }
  17971. }
  17972. }
  17973. return target;
  17974. };
  17975. var inherits = function (subClass, superClass) {
  17976. if (typeof superClass !== "function" && superClass !== null) {
  17977. throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
  17978. }
  17979. subClass.prototype = Object.create(superClass && superClass.prototype, {
  17980. constructor: {
  17981. value: subClass,
  17982. enumerable: false,
  17983. writable: true,
  17984. configurable: true
  17985. }
  17986. });
  17987. if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
  17988. };
  17989. var possibleConstructorReturn = function (self, call) {
  17990. if (!self) {
  17991. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  17992. }
  17993. return call && (typeof call === "object" || typeof call === "function") ? call : self;
  17994. };
  17995. var styles = {
  17996. base: {
  17997. position: 'absolute',
  17998. userSelect: 'none',
  17999. MsUserSelect: 'none'
  18000. },
  18001. top: {
  18002. width: '100%',
  18003. height: '10px',
  18004. top: '-5px',
  18005. left: '0px',
  18006. cursor: 'row-resize'
  18007. },
  18008. right: {
  18009. width: '10px',
  18010. height: '100%',
  18011. top: '0px',
  18012. right: '-5px',
  18013. cursor: 'col-resize'
  18014. },
  18015. bottom: {
  18016. width: '100%',
  18017. height: '10px',
  18018. bottom: '-5px',
  18019. left: '0px',
  18020. cursor: 'row-resize'
  18021. },
  18022. left: {
  18023. width: '10px',
  18024. height: '100%',
  18025. top: '0px',
  18026. left: '-5px',
  18027. cursor: 'col-resize'
  18028. },
  18029. topRight: {
  18030. width: '20px',
  18031. height: '20px',
  18032. position: 'absolute',
  18033. right: '-10px',
  18034. top: '-10px',
  18035. cursor: 'ne-resize'
  18036. },
  18037. bottomRight: {
  18038. width: '20px',
  18039. height: '20px',
  18040. position: 'absolute',
  18041. right: '-10px',
  18042. bottom: '-10px',
  18043. cursor: 'se-resize'
  18044. },
  18045. bottomLeft: {
  18046. width: '20px',
  18047. height: '20px',
  18048. position: 'absolute',
  18049. left: '-10px',
  18050. bottom: '-10px',
  18051. cursor: 'sw-resize'
  18052. },
  18053. topLeft: {
  18054. width: '20px',
  18055. height: '20px',
  18056. position: 'absolute',
  18057. left: '-10px',
  18058. top: '-10px',
  18059. cursor: 'nw-resize'
  18060. }
  18061. };
  18062. var Resizer = (function (props) {
  18063. return React.createElement(
  18064. 'div',
  18065. {
  18066. className: props.className,
  18067. style: _extends({}, styles.base, styles[props.direction], props.replaceStyles || {}),
  18068. onMouseDown: function onMouseDown(e) {
  18069. props.onResizeStart(e, props.direction);
  18070. },
  18071. onTouchStart: function onTouchStart(e) {
  18072. props.onResizeStart(e, props.direction);
  18073. }
  18074. },
  18075. props.children
  18076. );
  18077. });
  18078. var userSelectNone = {
  18079. userSelect: 'none',
  18080. MozUserSelect: 'none',
  18081. WebkitUserSelect: 'none',
  18082. MsUserSelect: 'none'
  18083. };
  18084. var userSelectAuto = {
  18085. userSelect: 'auto',
  18086. MozUserSelect: 'auto',
  18087. WebkitUserSelect: 'auto',
  18088. MsUserSelect: 'auto'
  18089. };
  18090. var clamp = function clamp(n, min, max) {
  18091. return Math.max(Math.min(n, max), min);
  18092. };
  18093. var snap = function snap(n, size) {
  18094. return Math.round(n / size) * size;
  18095. };
  18096. var findClosestSnap = function findClosestSnap(n, snapArray) {
  18097. return snapArray.reduce(function (prev, curr) {
  18098. return Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev;
  18099. });
  18100. };
  18101. var endsWith = function endsWith(str, searchStr) {
  18102. return str.substr(str.length - searchStr.length, searchStr.length) === searchStr;
  18103. };
  18104. var getStringSize = function getStringSize(n) {
  18105. if (n.toString() === 'auto') return n.toString();
  18106. if (endsWith(n.toString(), 'px')) return n.toString();
  18107. if (endsWith(n.toString(), '%')) return n.toString();
  18108. if (endsWith(n.toString(), 'vh')) return n.toString();
  18109. if (endsWith(n.toString(), 'vw')) return n.toString();
  18110. if (endsWith(n.toString(), 'vmax')) return n.toString();
  18111. if (endsWith(n.toString(), 'vmin')) return n.toString();
  18112. return n + 'px';
  18113. };
  18114. 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'];
  18115. var baseClassName = '__resizable_base__';
  18116. var Resizable = function (_React$Component) {
  18117. inherits(Resizable, _React$Component);
  18118. function Resizable(props) {
  18119. classCallCheck(this, Resizable);
  18120. var _this = possibleConstructorReturn(this, (Resizable.__proto__ || Object.getPrototypeOf(Resizable)).call(this, props));
  18121. _this.state = {
  18122. isResizing: false,
  18123. resizeCursor: 'auto',
  18124. width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.width,
  18125. height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined' ? 'auto' : _this.propsSize && _this.propsSize.height,
  18126. direction: 'right',
  18127. original: {
  18128. x: 0,
  18129. y: 0,
  18130. width: 0,
  18131. height: 0
  18132. }
  18133. };
  18134. _this.updateExtendsProps(props);
  18135. _this.onResizeStart = _this.onResizeStart.bind(_this);
  18136. _this.onMouseMove = _this.onMouseMove.bind(_this);
  18137. _this.onMouseUp = _this.onMouseUp.bind(_this);
  18138. if (typeof window !== 'undefined') {
  18139. window.addEventListener('mouseup', _this.onMouseUp);
  18140. window.addEventListener('mousemove', _this.onMouseMove);
  18141. window.addEventListener('mouseleave', _this.onMouseUp);
  18142. window.addEventListener('touchmove', _this.onMouseMove);
  18143. window.addEventListener('touchend', _this.onMouseUp);
  18144. }
  18145. return _this;
  18146. }
  18147. createClass(Resizable, [{
  18148. key: 'updateExtendsProps',
  18149. value: function updateExtendsProps(props) {
  18150. this.extendsProps = Object.keys(props).reduce(function (acc, key) {
  18151. if (definedProps.indexOf(key) !== -1) return acc;
  18152. acc[key] = props[key];
  18153. return acc;
  18154. }, {});
  18155. }
  18156. }, {
  18157. key: 'getParentSize',
  18158. value: function getParentSize() {
  18159. var base = this.base;
  18160. if (!base) return { width: window.innerWidth, height: window.innerHeight };
  18161. // INFO: To calculate parent width with flex layout
  18162. var wrapChanged = false;
  18163. var wrap = this.parentNode.style.flexWrap;
  18164. var minWidth = base.style.minWidth;
  18165. if (wrap !== 'wrap') {
  18166. wrapChanged = true;
  18167. this.parentNode.style.flexWrap = 'wrap';
  18168. // HACK: Use relative to get parent padding size
  18169. }
  18170. base.style.position = 'relative';
  18171. base.style.minWidth = '100%';
  18172. var size = {
  18173. width: base.offsetWidth,
  18174. height: base.offsetHeight
  18175. };
  18176. base.style.position = 'absolute';
  18177. if (wrapChanged) this.parentNode.style.flexWrap = wrap;
  18178. base.style.minWidth = minWidth;
  18179. return size;
  18180. }
  18181. }, {
  18182. key: 'componentDidMount',
  18183. value: function componentDidMount() {
  18184. var size = this.size;
  18185. this.setState({
  18186. width: this.state.width || size.width,
  18187. height: this.state.height || size.height
  18188. });
  18189. var parent = this.parentNode;
  18190. if (!(parent instanceof HTMLElement)) return;
  18191. if (this.base) return;
  18192. var element = document.createElement('div');
  18193. element.style.width = '100%';
  18194. element.style.height = '100%';
  18195. element.style.position = 'absolute';
  18196. element.style.transform = 'scale(0, 0)';
  18197. element.style.left = '0';
  18198. element.style.flex = '0';
  18199. if (element.classList) {
  18200. element.classList.add(baseClassName);
  18201. } else {
  18202. element.className += baseClassName;
  18203. }
  18204. parent.appendChild(element);
  18205. }
  18206. }, {
  18207. key: 'componentWillReceiveProps',
  18208. value: function componentWillReceiveProps(next) {
  18209. this.updateExtendsProps(next);
  18210. }
  18211. }, {
  18212. key: 'componentWillUnmount',
  18213. value: function componentWillUnmount() {
  18214. if (typeof window !== 'undefined') {
  18215. window.removeEventListener('mouseup', this.onMouseUp);
  18216. window.removeEventListener('mousemove', this.onMouseMove);
  18217. window.removeEventListener('mouseleave', this.onMouseUp);
  18218. window.removeEventListener('touchmove', this.onMouseMove);
  18219. window.removeEventListener('touchend', this.onMouseUp);
  18220. var parent = this.parentNode;
  18221. var base = this.base;
  18222. if (!base || !parent) return;
  18223. if (!(parent instanceof HTMLElement) || !(base instanceof Node)) return;
  18224. parent.removeChild(base);
  18225. }
  18226. }
  18227. }, {
  18228. key: 'calculateNewSize',
  18229. value: function calculateNewSize(newSize, kind) {
  18230. var propsSize = this.propsSize && this.propsSize[kind];
  18231. return this.state[kind] === 'auto' && this.state.original[kind] === newSize && (typeof propsSize === 'undefined' || propsSize === 'auto') ? 'auto' : newSize;
  18232. }
  18233. }, {
  18234. key: 'onResizeStart',
  18235. value: function onResizeStart(event, direction) {
  18236. var clientX = 0;
  18237. var clientY = 0;
  18238. if (event.nativeEvent instanceof MouseEvent) {
  18239. clientX = event.nativeEvent.clientX;
  18240. clientY = event.nativeEvent.clientY;
  18241. // When user click with right button the resize is stuck in resizing mode
  18242. // until users clicks again, dont continue if right click is used.
  18243. // HACK: MouseEvent does not have `which` from flow-bin v0.68.
  18244. if (event.nativeEvent.which === 3) {
  18245. return;
  18246. }
  18247. } else if (event.nativeEvent instanceof TouchEvent) {
  18248. clientX = event.nativeEvent.touches[0].clientX;
  18249. clientY = event.nativeEvent.touches[0].clientY;
  18250. }
  18251. if (this.props.onResizeStart) {
  18252. this.props.onResizeStart(event, direction, this.resizable);
  18253. }
  18254. // Fix #168
  18255. if (this.props.size) {
  18256. if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) {
  18257. this.setState({ height: this.props.size.height });
  18258. }
  18259. if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) {
  18260. this.setState({ width: this.props.size.width });
  18261. }
  18262. }
  18263. this.setState({
  18264. original: {
  18265. x: clientX,
  18266. y: clientY,
  18267. width: this.size.width,
  18268. height: this.size.height
  18269. },
  18270. isResizing: true,
  18271. resizeCursor: window.getComputedStyle(event.target).cursor,
  18272. direction: direction
  18273. });
  18274. }
  18275. }, {
  18276. key: 'onMouseMove',
  18277. value: function onMouseMove(event) {
  18278. if (!this.state.isResizing) return;
  18279. var clientX = event instanceof MouseEvent ? event.clientX : event.touches[0].clientX;
  18280. var clientY = event instanceof MouseEvent ? event.clientY : event.touches[0].clientY;
  18281. var _state = this.state,
  18282. direction = _state.direction,
  18283. original = _state.original,
  18284. width = _state.width,
  18285. height = _state.height;
  18286. var _props = this.props,
  18287. lockAspectRatio = _props.lockAspectRatio,
  18288. lockAspectRatioExtraHeight = _props.lockAspectRatioExtraHeight,
  18289. lockAspectRatioExtraWidth = _props.lockAspectRatioExtraWidth;
  18290. var _props2 = this.props,
  18291. maxWidth = _props2.maxWidth,
  18292. maxHeight = _props2.maxHeight,
  18293. minWidth = _props2.minWidth,
  18294. minHeight = _props2.minHeight;
  18295. // TODO: refactor
  18296. var parentSize = this.getParentSize();
  18297. if (maxWidth && typeof maxWidth === 'string' && endsWith(maxWidth, '%')) {
  18298. var _ratio = Number(maxWidth.replace('%', '')) / 100;
  18299. maxWidth = parentSize.width * _ratio;
  18300. }
  18301. if (maxHeight && typeof maxHeight === 'string' && endsWith(maxHeight, '%')) {
  18302. var _ratio2 = Number(maxHeight.replace('%', '')) / 100;
  18303. maxHeight = parentSize.height * _ratio2;
  18304. }
  18305. if (minWidth && typeof minWidth === 'string' && endsWith(minWidth, '%')) {
  18306. var _ratio3 = Number(minWidth.replace('%', '')) / 100;
  18307. minWidth = parentSize.width * _ratio3;
  18308. }
  18309. if (minHeight && typeof minHeight === 'string' && endsWith(minHeight, '%')) {
  18310. var _ratio4 = Number(minHeight.replace('%', '')) / 100;
  18311. minHeight = parentSize.height * _ratio4;
  18312. }
  18313. maxWidth = typeof maxWidth === 'undefined' ? undefined : Number(maxWidth);
  18314. maxHeight = typeof maxHeight === 'undefined' ? undefined : Number(maxHeight);
  18315. minWidth = typeof minWidth === 'undefined' ? undefined : Number(minWidth);
  18316. minHeight = typeof minHeight === 'undefined' ? undefined : Number(minHeight);
  18317. var ratio = typeof lockAspectRatio === 'number' ? lockAspectRatio : original.width / original.height;
  18318. var newWidth = original.width;
  18319. var newHeight = original.height;
  18320. if (/right/i.test(direction)) {
  18321. newWidth = original.width + (clientX - original.x);
  18322. if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  18323. }
  18324. if (/left/i.test(direction)) {
  18325. newWidth = original.width - (clientX - original.x);
  18326. if (lockAspectRatio) newHeight = (newWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  18327. }
  18328. if (/bottom/i.test(direction)) {
  18329. newHeight = original.height + (clientY - original.y);
  18330. if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  18331. }
  18332. if (/top/i.test(direction)) {
  18333. newHeight = original.height - (clientY - original.y);
  18334. if (lockAspectRatio) newWidth = (newHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  18335. }
  18336. if (this.props.bounds === 'parent') {
  18337. var parent = this.parentNode;
  18338. if (parent instanceof HTMLElement) {
  18339. var parentRect = parent.getBoundingClientRect();
  18340. var parentLeft = parentRect.left;
  18341. var parentTop = parentRect.top;
  18342. var _resizable$getBoundin = this.resizable.getBoundingClientRect(),
  18343. _left = _resizable$getBoundin.left,
  18344. _top = _resizable$getBoundin.top;
  18345. var boundWidth = parent.offsetWidth + (parentLeft - _left);
  18346. var boundHeight = parent.offsetHeight + (parentTop - _top);
  18347. maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth;
  18348. maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight;
  18349. }
  18350. } else if (this.props.bounds === 'window') {
  18351. if (typeof window !== 'undefined') {
  18352. var _resizable$getBoundin2 = this.resizable.getBoundingClientRect(),
  18353. _left2 = _resizable$getBoundin2.left,
  18354. _top2 = _resizable$getBoundin2.top;
  18355. var _boundWidth = window.innerWidth - _left2;
  18356. var _boundHeight = window.innerHeight - _top2;
  18357. maxWidth = maxWidth && maxWidth < _boundWidth ? maxWidth : _boundWidth;
  18358. maxHeight = maxHeight && maxHeight < _boundHeight ? maxHeight : _boundHeight;
  18359. }
  18360. } else if (this.props.bounds instanceof HTMLElement) {
  18361. var targetRect = this.props.bounds.getBoundingClientRect();
  18362. var targetLeft = targetRect.left;
  18363. var targetTop = targetRect.top;
  18364. var _resizable$getBoundin3 = this.resizable.getBoundingClientRect(),
  18365. _left3 = _resizable$getBoundin3.left,
  18366. _top3 = _resizable$getBoundin3.top;
  18367. if (!(this.props.bounds instanceof HTMLElement)) return;
  18368. var _boundWidth2 = this.props.bounds.offsetWidth + (targetLeft - _left3);
  18369. var _boundHeight2 = this.props.bounds.offsetHeight + (targetTop - _top3);
  18370. maxWidth = maxWidth && maxWidth < _boundWidth2 ? maxWidth : _boundWidth2;
  18371. maxHeight = maxHeight && maxHeight < _boundHeight2 ? maxHeight : _boundHeight2;
  18372. }
  18373. var computedMinWidth = typeof minWidth === 'undefined' ? 10 : minWidth;
  18374. var computedMaxWidth = typeof maxWidth === 'undefined' || maxWidth < 0 ? newWidth : maxWidth;
  18375. var computedMinHeight = typeof minHeight === 'undefined' ? 10 : minHeight;
  18376. var computedMaxHeight = typeof maxHeight === 'undefined' || maxHeight < 0 ? newHeight : maxHeight;
  18377. if (lockAspectRatio) {
  18378. var extraMinWidth = (computedMinHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  18379. var extraMaxWidth = (computedMaxHeight - lockAspectRatioExtraHeight) * ratio + lockAspectRatioExtraWidth;
  18380. var extraMinHeight = (computedMinWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  18381. var extraMaxHeight = (computedMaxWidth - lockAspectRatioExtraWidth) / ratio + lockAspectRatioExtraHeight;
  18382. var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth);
  18383. var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth);
  18384. var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight);
  18385. var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight);
  18386. newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth);
  18387. newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight);
  18388. } else {
  18389. newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth);
  18390. newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight);
  18391. }
  18392. if (this.props.grid) {
  18393. newWidth = snap(newWidth, this.props.grid[0]);
  18394. }
  18395. if (this.props.grid) {
  18396. newHeight = snap(newHeight, this.props.grid[1]);
  18397. }
  18398. if (this.props.snap && this.props.snap.x) {
  18399. newWidth = findClosestSnap(newWidth, this.props.snap.x);
  18400. }
  18401. if (this.props.snap && this.props.snap.y) {
  18402. newHeight = findClosestSnap(newHeight, this.props.snap.y);
  18403. }
  18404. var delta = {
  18405. width: newWidth - original.width,
  18406. height: newHeight - original.height
  18407. };
  18408. if (width && typeof width === 'string' && endsWith(width, '%')) {
  18409. var percent = newWidth / parentSize.width * 100;
  18410. newWidth = percent + '%';
  18411. }
  18412. if (height && typeof height === 'string' && endsWith(height, '%')) {
  18413. var _percent = newHeight / parentSize.height * 100;
  18414. newHeight = _percent + '%';
  18415. }
  18416. this.setState({
  18417. width: this.calculateNewSize(newWidth, 'width'),
  18418. height: this.calculateNewSize(newHeight, 'height')
  18419. });
  18420. if (this.props.onResize) {
  18421. this.props.onResize(event, direction, this.resizable, delta);
  18422. }
  18423. }
  18424. }, {
  18425. key: 'onMouseUp',
  18426. value: function onMouseUp(event) {
  18427. var _state2 = this.state,
  18428. isResizing = _state2.isResizing,
  18429. direction = _state2.direction,
  18430. original = _state2.original;
  18431. if (!isResizing) return;
  18432. var delta = {
  18433. width: this.size.width - original.width,
  18434. height: this.size.height - original.height
  18435. };
  18436. if (this.props.onResizeStop) {
  18437. this.props.onResizeStop(event, direction, this.resizable, delta);
  18438. }
  18439. if (this.props.size) {
  18440. this.setState(this.props.size);
  18441. }
  18442. this.setState({ isResizing: false, resizeCursor: 'auto' });
  18443. }
  18444. }, {
  18445. key: 'updateSize',
  18446. value: function updateSize(size) {
  18447. this.setState({ width: size.width, height: size.height });
  18448. }
  18449. }, {
  18450. key: 'renderResizer',
  18451. value: function renderResizer() {
  18452. var _this2 = this;
  18453. var _props3 = this.props,
  18454. enable = _props3.enable,
  18455. handleStyles = _props3.handleStyles,
  18456. handleClasses = _props3.handleClasses,
  18457. handleWrapperStyle = _props3.handleWrapperStyle,
  18458. handleWrapperClass = _props3.handleWrapperClass,
  18459. handleComponent = _props3.handleComponent;
  18460. if (!enable) return null;
  18461. var resizers = Object.keys(enable).map(function (dir) {
  18462. if (enable[dir] !== false) {
  18463. return React.createElement(
  18464. Resizer,
  18465. {
  18466. key: dir,
  18467. direction: dir,
  18468. onResizeStart: _this2.onResizeStart,
  18469. replaceStyles: handleStyles && handleStyles[dir],
  18470. className: handleClasses && handleClasses[dir]
  18471. },
  18472. handleComponent && handleComponent[dir] ? React.createElement(handleComponent[dir]) : null
  18473. );
  18474. }
  18475. return null;
  18476. });
  18477. // #93 Wrap the resize box in span (will not break 100% width/height)
  18478. return React.createElement(
  18479. 'span',
  18480. { className: handleWrapperClass, style: handleWrapperStyle },
  18481. resizers
  18482. );
  18483. }
  18484. }, {
  18485. key: 'render',
  18486. value: function render() {
  18487. var _this3 = this;
  18488. var userSelect = this.state.isResizing ? userSelectNone : userSelectAuto;
  18489. return React.createElement(
  18490. 'div',
  18491. _extends({
  18492. ref: function ref(c) {
  18493. if (c) {
  18494. _this3.resizable = c;
  18495. }
  18496. },
  18497. style: _extends({
  18498. position: 'relative'
  18499. }, userSelect, this.props.style, this.sizeStyle, {
  18500. maxWidth: this.props.maxWidth,
  18501. maxHeight: this.props.maxHeight,
  18502. minWidth: this.props.minWidth,
  18503. minHeight: this.props.minHeight,
  18504. boxSizing: 'border-box'
  18505. }),
  18506. className: this.props.className
  18507. }, this.extendsProps),
  18508. this.state.isResizing && React.createElement('div', {
  18509. style: {
  18510. height: '100%',
  18511. width: '100%',
  18512. backgroundColor: 'rgba(0,0,0,0)',
  18513. cursor: '' + (this.state.resizeCursor || 'auto'),
  18514. opacity: '0',
  18515. position: 'fixed',
  18516. zIndex: '9999',
  18517. top: '0',
  18518. left: '0',
  18519. bottom: '0',
  18520. right: '0'
  18521. }
  18522. }),
  18523. this.props.children,
  18524. this.renderResizer()
  18525. );
  18526. }
  18527. }, {
  18528. key: 'parentNode',
  18529. get: function get$$1() {
  18530. return this.resizable.parentNode;
  18531. }
  18532. }, {
  18533. key: 'propsSize',
  18534. get: function get$$1() {
  18535. return this.props.size || this.props.defaultSize;
  18536. }
  18537. }, {
  18538. key: 'base',
  18539. get: function get$$1() {
  18540. var parent = this.parentNode;
  18541. if (!parent) return undefined;
  18542. var children = [].slice.call(parent.children);
  18543. for (var i = 0; i < children.length; i += 1) {
  18544. var n = children[i];
  18545. if (n instanceof HTMLElement) {
  18546. if (n.classList.contains(baseClassName)) {
  18547. return n;
  18548. }
  18549. }
  18550. }
  18551. return undefined;
  18552. }
  18553. }, {
  18554. key: 'size',
  18555. get: function get$$1() {
  18556. var width = 0;
  18557. var height = 0;
  18558. if (typeof window !== 'undefined') {
  18559. var orgWidth = this.resizable.offsetWidth;
  18560. var orgHeight = this.resizable.offsetHeight;
  18561. // HACK: Set position `relative` to get parent size.
  18562. // This is because when re-resizable set `absolute`, I can not get base width correctly.
  18563. var orgPosition = this.resizable.style.position;
  18564. if (orgPosition !== 'relative') {
  18565. this.resizable.style.position = 'relative';
  18566. }
  18567. // INFO: Use original width or height if set auto.
  18568. width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth;
  18569. height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight;
  18570. // Restore original position
  18571. this.resizable.style.position = orgPosition;
  18572. }
  18573. return { width: width, height: height };
  18574. }
  18575. }, {
  18576. key: 'sizeStyle',
  18577. get: function get$$1() {
  18578. var _this4 = this;
  18579. var size = this.props.size;
  18580. var getSize = function getSize(key) {
  18581. if (typeof _this4.state[key] === 'undefined' || _this4.state[key] === 'auto') return 'auto';
  18582. if (_this4.propsSize && _this4.propsSize[key] && endsWith(_this4.propsSize[key].toString(), '%')) {
  18583. if (endsWith(_this4.state[key].toString(), '%')) return _this4.state[key].toString();
  18584. var parentSize = _this4.getParentSize();
  18585. var value = Number(_this4.state[key].toString().replace('px', ''));
  18586. var percent = value / parentSize[key] * 100;
  18587. return percent + '%';
  18588. }
  18589. return getStringSize(_this4.state[key]);
  18590. };
  18591. var width = size && typeof size.width !== 'undefined' && !this.state.isResizing ? getStringSize(size.width) : getSize('width');
  18592. var height = size && typeof size.height !== 'undefined' && !this.state.isResizing ? getStringSize(size.height) : getSize('height');
  18593. return { width: width, height: height };
  18594. }
  18595. }]);
  18596. return Resizable;
  18597. }(React.Component);
  18598. Resizable.defaultProps = {
  18599. onResizeStart: function onResizeStart() {},
  18600. onResize: function onResize() {},
  18601. onResizeStop: function onResizeStop() {},
  18602. enable: {
  18603. top: true,
  18604. right: true,
  18605. bottom: true,
  18606. left: true,
  18607. topRight: true,
  18608. bottomRight: true,
  18609. bottomLeft: true,
  18610. topLeft: true
  18611. },
  18612. style: {},
  18613. grid: [1, 1],
  18614. lockAspectRatio: false,
  18615. lockAspectRatioExtraWidth: 0,
  18616. lockAspectRatioExtraHeight: 0
  18617. };
  18618. module.exports = Resizable;
  18619. /***/ }),
  18620. /***/ "../../node_modules/react-color/lib/components/alpha/Alpha.js":
  18621. /*!**********************************************************************************!*\
  18622. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/alpha/Alpha.js ***!
  18623. \**********************************************************************************/
  18624. /*! no static exports found */
  18625. /***/ (function(module, exports, __webpack_require__) {
  18626. "use strict";
  18627. Object.defineProperty(exports, "__esModule", {
  18628. value: true
  18629. });
  18630. exports.AlphaPicker = undefined;
  18631. 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; };
  18632. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18633. var _react2 = _interopRequireDefault(_react);
  18634. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18635. var _reactcss2 = _interopRequireDefault(_reactcss);
  18636. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18637. var _AlphaPointer = __webpack_require__(/*! ./AlphaPointer */ "../../node_modules/react-color/lib/components/alpha/AlphaPointer.js");
  18638. var _AlphaPointer2 = _interopRequireDefault(_AlphaPointer);
  18639. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18640. var AlphaPicker = exports.AlphaPicker = function AlphaPicker(_ref) {
  18641. var rgb = _ref.rgb,
  18642. hsl = _ref.hsl,
  18643. width = _ref.width,
  18644. height = _ref.height,
  18645. onChange = _ref.onChange,
  18646. direction = _ref.direction,
  18647. style = _ref.style,
  18648. renderers = _ref.renderers,
  18649. pointer = _ref.pointer,
  18650. _ref$className = _ref.className,
  18651. className = _ref$className === undefined ? '' : _ref$className;
  18652. var styles = (0, _reactcss2.default)({
  18653. 'default': {
  18654. picker: {
  18655. position: 'relative',
  18656. width: width,
  18657. height: height
  18658. },
  18659. alpha: {
  18660. radius: '2px',
  18661. style: style
  18662. }
  18663. }
  18664. });
  18665. return _react2.default.createElement(
  18666. 'div',
  18667. { style: styles.picker, className: 'alpha-picker ' + className },
  18668. _react2.default.createElement(_common.Alpha, _extends({}, styles.alpha, {
  18669. rgb: rgb,
  18670. hsl: hsl,
  18671. pointer: pointer,
  18672. renderers: renderers,
  18673. onChange: onChange,
  18674. direction: direction
  18675. }))
  18676. );
  18677. };
  18678. AlphaPicker.defaultProps = {
  18679. width: '316px',
  18680. height: '16px',
  18681. direction: 'horizontal',
  18682. pointer: _AlphaPointer2.default
  18683. };
  18684. exports.default = (0, _common.ColorWrap)(AlphaPicker);
  18685. /***/ }),
  18686. /***/ "../../node_modules/react-color/lib/components/alpha/AlphaPointer.js":
  18687. /*!*****************************************************************************************!*\
  18688. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/alpha/AlphaPointer.js ***!
  18689. \*****************************************************************************************/
  18690. /*! no static exports found */
  18691. /***/ (function(module, exports, __webpack_require__) {
  18692. "use strict";
  18693. Object.defineProperty(exports, "__esModule", {
  18694. value: true
  18695. });
  18696. exports.AlphaPointer = undefined;
  18697. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18698. var _react2 = _interopRequireDefault(_react);
  18699. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18700. var _reactcss2 = _interopRequireDefault(_reactcss);
  18701. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18702. var AlphaPointer = exports.AlphaPointer = function AlphaPointer(_ref) {
  18703. var direction = _ref.direction;
  18704. var styles = (0, _reactcss2.default)({
  18705. 'default': {
  18706. picker: {
  18707. width: '18px',
  18708. height: '18px',
  18709. borderRadius: '50%',
  18710. transform: 'translate(-9px, -1px)',
  18711. backgroundColor: 'rgb(248, 248, 248)',
  18712. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  18713. }
  18714. },
  18715. 'vertical': {
  18716. picker: {
  18717. transform: 'translate(-3px, -9px)'
  18718. }
  18719. }
  18720. }, { vertical: direction === 'vertical' });
  18721. return _react2.default.createElement('div', { style: styles.picker });
  18722. };
  18723. exports.default = AlphaPointer;
  18724. /***/ }),
  18725. /***/ "../../node_modules/react-color/lib/components/block/Block.js":
  18726. /*!**********************************************************************************!*\
  18727. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/block/Block.js ***!
  18728. \**********************************************************************************/
  18729. /*! no static exports found */
  18730. /***/ (function(module, exports, __webpack_require__) {
  18731. "use strict";
  18732. Object.defineProperty(exports, "__esModule", {
  18733. value: true
  18734. });
  18735. exports.Block = undefined;
  18736. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18737. var _react2 = _interopRequireDefault(_react);
  18738. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  18739. var _propTypes2 = _interopRequireDefault(_propTypes);
  18740. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18741. var _reactcss2 = _interopRequireDefault(_reactcss);
  18742. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  18743. var _merge2 = _interopRequireDefault(_merge);
  18744. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  18745. var _color2 = _interopRequireDefault(_color);
  18746. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18747. var _BlockSwatches = __webpack_require__(/*! ./BlockSwatches */ "../../node_modules/react-color/lib/components/block/BlockSwatches.js");
  18748. var _BlockSwatches2 = _interopRequireDefault(_BlockSwatches);
  18749. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18750. var Block = exports.Block = function Block(_ref) {
  18751. var onChange = _ref.onChange,
  18752. onSwatchHover = _ref.onSwatchHover,
  18753. hex = _ref.hex,
  18754. colors = _ref.colors,
  18755. width = _ref.width,
  18756. triangle = _ref.triangle,
  18757. _ref$styles = _ref.styles,
  18758. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  18759. _ref$className = _ref.className,
  18760. className = _ref$className === undefined ? '' : _ref$className;
  18761. var transparent = hex === 'transparent';
  18762. var handleChange = function handleChange(hexCode, e) {
  18763. _color2.default.isValidHex(hexCode) && onChange({
  18764. hex: hexCode,
  18765. source: 'hex'
  18766. }, e);
  18767. };
  18768. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  18769. 'default': {
  18770. card: {
  18771. width: width,
  18772. background: '#fff',
  18773. boxShadow: '0 1px rgba(0,0,0,.1)',
  18774. borderRadius: '6px',
  18775. position: 'relative'
  18776. },
  18777. head: {
  18778. height: '110px',
  18779. background: hex,
  18780. borderRadius: '6px 6px 0 0',
  18781. display: 'flex',
  18782. alignItems: 'center',
  18783. justifyContent: 'center',
  18784. position: 'relative'
  18785. },
  18786. body: {
  18787. padding: '10px'
  18788. },
  18789. label: {
  18790. fontSize: '18px',
  18791. color: _color2.default.getContrastingColor(hex),
  18792. position: 'relative'
  18793. },
  18794. triangle: {
  18795. width: '0px',
  18796. height: '0px',
  18797. borderStyle: 'solid',
  18798. borderWidth: '0 10px 10px 10px',
  18799. borderColor: 'transparent transparent ' + hex + ' transparent',
  18800. position: 'absolute',
  18801. top: '-10px',
  18802. left: '50%',
  18803. marginLeft: '-10px'
  18804. },
  18805. input: {
  18806. width: '100%',
  18807. fontSize: '12px',
  18808. color: '#666',
  18809. border: '0px',
  18810. outline: 'none',
  18811. height: '22px',
  18812. boxShadow: 'inset 0 0 0 1px #ddd',
  18813. borderRadius: '4px',
  18814. padding: '0 7px',
  18815. boxSizing: 'border-box'
  18816. }
  18817. },
  18818. 'hide-triangle': {
  18819. triangle: {
  18820. display: 'none'
  18821. }
  18822. }
  18823. }, passedStyles), { 'hide-triangle': triangle === 'hide' });
  18824. return _react2.default.createElement(
  18825. 'div',
  18826. { style: styles.card, className: 'block-picker ' + className },
  18827. _react2.default.createElement('div', { style: styles.triangle }),
  18828. _react2.default.createElement(
  18829. 'div',
  18830. { style: styles.head },
  18831. transparent && _react2.default.createElement(_common.Checkboard, { borderRadius: '6px 6px 0 0' }),
  18832. _react2.default.createElement(
  18833. 'div',
  18834. { style: styles.label },
  18835. hex
  18836. )
  18837. ),
  18838. _react2.default.createElement(
  18839. 'div',
  18840. { style: styles.body },
  18841. _react2.default.createElement(_BlockSwatches2.default, { colors: colors, onClick: handleChange, onSwatchHover: onSwatchHover }),
  18842. _react2.default.createElement(_common.EditableInput, {
  18843. style: { input: styles.input },
  18844. value: hex,
  18845. onChange: handleChange
  18846. })
  18847. )
  18848. );
  18849. };
  18850. Block.propTypes = {
  18851. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  18852. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  18853. triangle: _propTypes2.default.oneOf(['top', 'hide']),
  18854. styles: _propTypes2.default.object
  18855. };
  18856. Block.defaultProps = {
  18857. width: 170,
  18858. colors: ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'],
  18859. triangle: 'top',
  18860. styles: {}
  18861. };
  18862. exports.default = (0, _common.ColorWrap)(Block);
  18863. /***/ }),
  18864. /***/ "../../node_modules/react-color/lib/components/block/BlockSwatches.js":
  18865. /*!******************************************************************************************!*\
  18866. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/block/BlockSwatches.js ***!
  18867. \******************************************************************************************/
  18868. /*! no static exports found */
  18869. /***/ (function(module, exports, __webpack_require__) {
  18870. "use strict";
  18871. Object.defineProperty(exports, "__esModule", {
  18872. value: true
  18873. });
  18874. exports.BlockSwatches = undefined;
  18875. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18876. var _react2 = _interopRequireDefault(_react);
  18877. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18878. var _reactcss2 = _interopRequireDefault(_reactcss);
  18879. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  18880. var _map2 = _interopRequireDefault(_map);
  18881. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18882. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18883. var BlockSwatches = exports.BlockSwatches = function BlockSwatches(_ref) {
  18884. var colors = _ref.colors,
  18885. onClick = _ref.onClick,
  18886. onSwatchHover = _ref.onSwatchHover;
  18887. var styles = (0, _reactcss2.default)({
  18888. 'default': {
  18889. swatches: {
  18890. marginRight: '-10px'
  18891. },
  18892. swatch: {
  18893. width: '22px',
  18894. height: '22px',
  18895. float: 'left',
  18896. marginRight: '10px',
  18897. marginBottom: '10px',
  18898. borderRadius: '4px'
  18899. },
  18900. clear: {
  18901. clear: 'both'
  18902. }
  18903. }
  18904. });
  18905. return _react2.default.createElement(
  18906. 'div',
  18907. { style: styles.swatches },
  18908. (0, _map2.default)(colors, function (c) {
  18909. return _react2.default.createElement(_common.Swatch, {
  18910. key: c,
  18911. color: c,
  18912. style: styles.swatch,
  18913. onClick: onClick,
  18914. onHover: onSwatchHover,
  18915. focusStyle: {
  18916. boxShadow: '0 0 4px ' + c
  18917. }
  18918. });
  18919. }),
  18920. _react2.default.createElement('div', { style: styles.clear })
  18921. );
  18922. };
  18923. exports.default = BlockSwatches;
  18924. /***/ }),
  18925. /***/ "../../node_modules/react-color/lib/components/chrome/Chrome.js":
  18926. /*!************************************************************************************!*\
  18927. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/Chrome.js ***!
  18928. \************************************************************************************/
  18929. /*! no static exports found */
  18930. /***/ (function(module, exports, __webpack_require__) {
  18931. "use strict";
  18932. Object.defineProperty(exports, "__esModule", {
  18933. value: true
  18934. });
  18935. exports.Chrome = undefined;
  18936. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  18937. var _react2 = _interopRequireDefault(_react);
  18938. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  18939. var _propTypes2 = _interopRequireDefault(_propTypes);
  18940. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  18941. var _reactcss2 = _interopRequireDefault(_reactcss);
  18942. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  18943. var _merge2 = _interopRequireDefault(_merge);
  18944. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  18945. var _ChromeFields = __webpack_require__(/*! ./ChromeFields */ "../../node_modules/react-color/lib/components/chrome/ChromeFields.js");
  18946. var _ChromeFields2 = _interopRequireDefault(_ChromeFields);
  18947. var _ChromePointer = __webpack_require__(/*! ./ChromePointer */ "../../node_modules/react-color/lib/components/chrome/ChromePointer.js");
  18948. var _ChromePointer2 = _interopRequireDefault(_ChromePointer);
  18949. var _ChromePointerCircle = __webpack_require__(/*! ./ChromePointerCircle */ "../../node_modules/react-color/lib/components/chrome/ChromePointerCircle.js");
  18950. var _ChromePointerCircle2 = _interopRequireDefault(_ChromePointerCircle);
  18951. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  18952. var Chrome = exports.Chrome = function Chrome(_ref) {
  18953. var width = _ref.width,
  18954. onChange = _ref.onChange,
  18955. disableAlpha = _ref.disableAlpha,
  18956. rgb = _ref.rgb,
  18957. hsl = _ref.hsl,
  18958. hsv = _ref.hsv,
  18959. hex = _ref.hex,
  18960. renderers = _ref.renderers,
  18961. _ref$styles = _ref.styles,
  18962. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  18963. _ref$className = _ref.className,
  18964. className = _ref$className === undefined ? '' : _ref$className,
  18965. defaultView = _ref.defaultView;
  18966. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  18967. 'default': {
  18968. picker: {
  18969. width: width,
  18970. background: '#fff',
  18971. borderRadius: '2px',
  18972. boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)',
  18973. boxSizing: 'initial',
  18974. fontFamily: 'Menlo'
  18975. },
  18976. saturation: {
  18977. width: '100%',
  18978. paddingBottom: '55%',
  18979. position: 'relative',
  18980. borderRadius: '2px 2px 0 0',
  18981. overflow: 'hidden'
  18982. },
  18983. Saturation: {
  18984. radius: '2px 2px 0 0'
  18985. },
  18986. body: {
  18987. padding: '16px 16px 12px'
  18988. },
  18989. controls: {
  18990. display: 'flex'
  18991. },
  18992. color: {
  18993. width: '32px'
  18994. },
  18995. swatch: {
  18996. marginTop: '6px',
  18997. width: '16px',
  18998. height: '16px',
  18999. borderRadius: '8px',
  19000. position: 'relative',
  19001. overflow: 'hidden'
  19002. },
  19003. active: {
  19004. absolute: '0px 0px 0px 0px',
  19005. borderRadius: '8px',
  19006. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)',
  19007. background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')',
  19008. zIndex: '2'
  19009. },
  19010. toggles: {
  19011. flex: '1'
  19012. },
  19013. hue: {
  19014. height: '10px',
  19015. position: 'relative',
  19016. marginBottom: '8px'
  19017. },
  19018. Hue: {
  19019. radius: '2px'
  19020. },
  19021. alpha: {
  19022. height: '10px',
  19023. position: 'relative'
  19024. },
  19025. Alpha: {
  19026. radius: '2px'
  19027. }
  19028. },
  19029. 'disableAlpha': {
  19030. color: {
  19031. width: '22px'
  19032. },
  19033. alpha: {
  19034. display: 'none'
  19035. },
  19036. hue: {
  19037. marginBottom: '0px'
  19038. },
  19039. swatch: {
  19040. width: '10px',
  19041. height: '10px',
  19042. marginTop: '0px'
  19043. }
  19044. }
  19045. }, passedStyles), { disableAlpha: disableAlpha });
  19046. return _react2.default.createElement(
  19047. 'div',
  19048. { style: styles.picker, className: 'chrome-picker ' + className },
  19049. _react2.default.createElement(
  19050. 'div',
  19051. { style: styles.saturation },
  19052. _react2.default.createElement(_common.Saturation, {
  19053. style: styles.Saturation,
  19054. hsl: hsl,
  19055. hsv: hsv,
  19056. pointer: _ChromePointerCircle2.default,
  19057. onChange: onChange
  19058. })
  19059. ),
  19060. _react2.default.createElement(
  19061. 'div',
  19062. { style: styles.body },
  19063. _react2.default.createElement(
  19064. 'div',
  19065. { style: styles.controls, className: 'flexbox-fix' },
  19066. _react2.default.createElement(
  19067. 'div',
  19068. { style: styles.color },
  19069. _react2.default.createElement(
  19070. 'div',
  19071. { style: styles.swatch },
  19072. _react2.default.createElement('div', { style: styles.active }),
  19073. _react2.default.createElement(_common.Checkboard, { renderers: renderers })
  19074. )
  19075. ),
  19076. _react2.default.createElement(
  19077. 'div',
  19078. { style: styles.toggles },
  19079. _react2.default.createElement(
  19080. 'div',
  19081. { style: styles.hue },
  19082. _react2.default.createElement(_common.Hue, {
  19083. style: styles.Hue,
  19084. hsl: hsl,
  19085. pointer: _ChromePointer2.default,
  19086. onChange: onChange
  19087. })
  19088. ),
  19089. _react2.default.createElement(
  19090. 'div',
  19091. { style: styles.alpha },
  19092. _react2.default.createElement(_common.Alpha, {
  19093. style: styles.Alpha,
  19094. rgb: rgb,
  19095. hsl: hsl,
  19096. pointer: _ChromePointer2.default,
  19097. renderers: renderers,
  19098. onChange: onChange
  19099. })
  19100. )
  19101. )
  19102. ),
  19103. _react2.default.createElement(_ChromeFields2.default, {
  19104. rgb: rgb,
  19105. hsl: hsl,
  19106. hex: hex,
  19107. view: defaultView,
  19108. onChange: onChange,
  19109. disableAlpha: disableAlpha
  19110. })
  19111. )
  19112. );
  19113. };
  19114. Chrome.propTypes = {
  19115. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  19116. disableAlpha: _propTypes2.default.bool,
  19117. styles: _propTypes2.default.object,
  19118. defaultView: _propTypes2.default.oneOf(["hex", "rgb", "hsl"])
  19119. };
  19120. Chrome.defaultProps = {
  19121. width: 225,
  19122. disableAlpha: false,
  19123. styles: {}
  19124. };
  19125. exports.default = (0, _common.ColorWrap)(Chrome);
  19126. /***/ }),
  19127. /***/ "../../node_modules/react-color/lib/components/chrome/ChromeFields.js":
  19128. /*!******************************************************************************************!*\
  19129. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromeFields.js ***!
  19130. \******************************************************************************************/
  19131. /*! no static exports found */
  19132. /***/ (function(module, exports, __webpack_require__) {
  19133. "use strict";
  19134. Object.defineProperty(exports, "__esModule", {
  19135. value: true
  19136. });
  19137. exports.ChromeFields = undefined;
  19138. 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; }; }();
  19139. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19140. var _react2 = _interopRequireDefault(_react);
  19141. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19142. var _reactcss2 = _interopRequireDefault(_reactcss);
  19143. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  19144. var _color2 = _interopRequireDefault(_color);
  19145. var _isUndefined = __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js");
  19146. var _isUndefined2 = _interopRequireDefault(_isUndefined);
  19147. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  19148. var _UnfoldMoreHorizontalIcon = __webpack_require__(/*! @icons/material/UnfoldMoreHorizontalIcon */ "../../node_modules/@icons/material/UnfoldMoreHorizontalIcon.js");
  19149. var _UnfoldMoreHorizontalIcon2 = _interopRequireDefault(_UnfoldMoreHorizontalIcon);
  19150. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19151. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19152. 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; }
  19153. 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; } /* eslint-disable react/no-did-mount-set-state, no-param-reassign */
  19154. var ChromeFields = exports.ChromeFields = function (_React$Component) {
  19155. _inherits(ChromeFields, _React$Component);
  19156. function ChromeFields(props) {
  19157. _classCallCheck(this, ChromeFields);
  19158. var _this = _possibleConstructorReturn(this, (ChromeFields.__proto__ || Object.getPrototypeOf(ChromeFields)).call(this));
  19159. _this.toggleViews = function () {
  19160. if (_this.state.view === 'hex') {
  19161. _this.setState({ view: 'rgb' });
  19162. } else if (_this.state.view === 'rgb') {
  19163. _this.setState({ view: 'hsl' });
  19164. } else if (_this.state.view === 'hsl') {
  19165. if (_this.props.hsl.a === 1) {
  19166. _this.setState({ view: 'hex' });
  19167. } else {
  19168. _this.setState({ view: 'rgb' });
  19169. }
  19170. }
  19171. };
  19172. _this.handleChange = function (data, e) {
  19173. if (data.hex) {
  19174. _color2.default.isValidHex(data.hex) && _this.props.onChange({
  19175. hex: data.hex,
  19176. source: 'hex'
  19177. }, e);
  19178. } else if (data.r || data.g || data.b) {
  19179. _this.props.onChange({
  19180. r: data.r || _this.props.rgb.r,
  19181. g: data.g || _this.props.rgb.g,
  19182. b: data.b || _this.props.rgb.b,
  19183. source: 'rgb'
  19184. }, e);
  19185. } else if (data.a) {
  19186. if (data.a < 0) {
  19187. data.a = 0;
  19188. } else if (data.a > 1) {
  19189. data.a = 1;
  19190. }
  19191. _this.props.onChange({
  19192. h: _this.props.hsl.h,
  19193. s: _this.props.hsl.s,
  19194. l: _this.props.hsl.l,
  19195. a: Math.round(data.a * 100) / 100,
  19196. source: 'rgb'
  19197. }, e);
  19198. } else if (data.h || data.s || data.l) {
  19199. // Remove any occurances of '%'.
  19200. if (typeof data.s === 'string' && data.s.includes('%')) {
  19201. data.s = data.s.replace('%', '');
  19202. }
  19203. if (typeof data.l === 'string' && data.l.includes('%')) {
  19204. data.l = data.l.replace('%', '');
  19205. }
  19206. // We store HSL as a unit interval so we need to override the 1 input to 0.01
  19207. if (data.s == 1) {
  19208. data.s = 0.01;
  19209. } else if (data.l == 1) {
  19210. data.l = 0.01;
  19211. }
  19212. _this.props.onChange({
  19213. h: data.h || _this.props.hsl.h,
  19214. s: Number(!(0, _isUndefined2.default)(data.s) ? data.s : _this.props.hsl.s),
  19215. l: Number(!(0, _isUndefined2.default)(data.l) ? data.l : _this.props.hsl.l),
  19216. source: 'hsl'
  19217. }, e);
  19218. }
  19219. };
  19220. _this.showHighlight = function (e) {
  19221. e.currentTarget.style.background = '#eee';
  19222. };
  19223. _this.hideHighlight = function (e) {
  19224. e.currentTarget.style.background = 'transparent';
  19225. };
  19226. if (props.hsl.a !== 1 && props.view === "hex") {
  19227. _this.state = {
  19228. view: "rgb"
  19229. };
  19230. } else {
  19231. _this.state = {
  19232. view: props.view
  19233. };
  19234. }
  19235. return _this;
  19236. }
  19237. _createClass(ChromeFields, [{
  19238. key: 'render',
  19239. value: function render() {
  19240. var _this2 = this;
  19241. var styles = (0, _reactcss2.default)({
  19242. 'default': {
  19243. wrap: {
  19244. paddingTop: '16px',
  19245. display: 'flex'
  19246. },
  19247. fields: {
  19248. flex: '1',
  19249. display: 'flex',
  19250. marginLeft: '-6px'
  19251. },
  19252. field: {
  19253. paddingLeft: '6px',
  19254. width: '100%'
  19255. },
  19256. alpha: {
  19257. paddingLeft: '6px',
  19258. width: '100%'
  19259. },
  19260. toggle: {
  19261. width: '32px',
  19262. textAlign: 'right',
  19263. position: 'relative'
  19264. },
  19265. icon: {
  19266. marginRight: '-4px',
  19267. marginTop: '12px',
  19268. cursor: 'pointer',
  19269. position: 'relative'
  19270. },
  19271. iconHighlight: {
  19272. position: 'absolute',
  19273. width: '24px',
  19274. height: '28px',
  19275. background: '#eee',
  19276. borderRadius: '4px',
  19277. top: '10px',
  19278. left: '12px',
  19279. display: 'none'
  19280. },
  19281. input: {
  19282. fontSize: '11px',
  19283. color: '#333',
  19284. width: '100%',
  19285. borderRadius: '2px',
  19286. border: 'none',
  19287. boxShadow: 'inset 0 0 0 1px #dadada',
  19288. height: '21px',
  19289. textAlign: 'center'
  19290. },
  19291. label: {
  19292. textTransform: 'uppercase',
  19293. fontSize: '11px',
  19294. lineHeight: '11px',
  19295. color: '#969696',
  19296. textAlign: 'center',
  19297. display: 'block',
  19298. marginTop: '12px'
  19299. },
  19300. svg: {
  19301. fill: '#333',
  19302. width: '24px',
  19303. height: '24px',
  19304. border: '1px transparent solid',
  19305. borderRadius: '5px'
  19306. }
  19307. },
  19308. 'disableAlpha': {
  19309. alpha: {
  19310. display: 'none'
  19311. }
  19312. }
  19313. }, this.props, this.state);
  19314. var fields = void 0;
  19315. if (this.state.view === 'hex') {
  19316. fields = _react2.default.createElement(
  19317. 'div',
  19318. { style: styles.fields, className: 'flexbox-fix' },
  19319. _react2.default.createElement(
  19320. 'div',
  19321. { style: styles.field },
  19322. _react2.default.createElement(_common.EditableInput, {
  19323. style: { input: styles.input, label: styles.label },
  19324. label: 'hex', value: this.props.hex,
  19325. onChange: this.handleChange
  19326. })
  19327. )
  19328. );
  19329. } else if (this.state.view === 'rgb') {
  19330. fields = _react2.default.createElement(
  19331. 'div',
  19332. { style: styles.fields, className: 'flexbox-fix' },
  19333. _react2.default.createElement(
  19334. 'div',
  19335. { style: styles.field },
  19336. _react2.default.createElement(_common.EditableInput, {
  19337. style: { input: styles.input, label: styles.label },
  19338. label: 'r',
  19339. value: this.props.rgb.r,
  19340. onChange: this.handleChange
  19341. })
  19342. ),
  19343. _react2.default.createElement(
  19344. 'div',
  19345. { style: styles.field },
  19346. _react2.default.createElement(_common.EditableInput, {
  19347. style: { input: styles.input, label: styles.label },
  19348. label: 'g',
  19349. value: this.props.rgb.g,
  19350. onChange: this.handleChange
  19351. })
  19352. ),
  19353. _react2.default.createElement(
  19354. 'div',
  19355. { style: styles.field },
  19356. _react2.default.createElement(_common.EditableInput, {
  19357. style: { input: styles.input, label: styles.label },
  19358. label: 'b',
  19359. value: this.props.rgb.b,
  19360. onChange: this.handleChange
  19361. })
  19362. ),
  19363. _react2.default.createElement(
  19364. 'div',
  19365. { style: styles.alpha },
  19366. _react2.default.createElement(_common.EditableInput, {
  19367. style: { input: styles.input, label: styles.label },
  19368. label: 'a',
  19369. value: this.props.rgb.a,
  19370. arrowOffset: 0.01,
  19371. onChange: this.handleChange
  19372. })
  19373. )
  19374. );
  19375. } else if (this.state.view === 'hsl') {
  19376. fields = _react2.default.createElement(
  19377. 'div',
  19378. { style: styles.fields, className: 'flexbox-fix' },
  19379. _react2.default.createElement(
  19380. 'div',
  19381. { style: styles.field },
  19382. _react2.default.createElement(_common.EditableInput, {
  19383. style: { input: styles.input, label: styles.label },
  19384. label: 'h',
  19385. value: Math.round(this.props.hsl.h),
  19386. onChange: this.handleChange
  19387. })
  19388. ),
  19389. _react2.default.createElement(
  19390. 'div',
  19391. { style: styles.field },
  19392. _react2.default.createElement(_common.EditableInput, {
  19393. style: { input: styles.input, label: styles.label },
  19394. label: 's',
  19395. value: Math.round(this.props.hsl.s * 100) + '%',
  19396. onChange: this.handleChange
  19397. })
  19398. ),
  19399. _react2.default.createElement(
  19400. 'div',
  19401. { style: styles.field },
  19402. _react2.default.createElement(_common.EditableInput, {
  19403. style: { input: styles.input, label: styles.label },
  19404. label: 'l',
  19405. value: Math.round(this.props.hsl.l * 100) + '%',
  19406. onChange: this.handleChange
  19407. })
  19408. ),
  19409. _react2.default.createElement(
  19410. 'div',
  19411. { style: styles.alpha },
  19412. _react2.default.createElement(_common.EditableInput, {
  19413. style: { input: styles.input, label: styles.label },
  19414. label: 'a',
  19415. value: this.props.hsl.a,
  19416. arrowOffset: 0.01,
  19417. onChange: this.handleChange
  19418. })
  19419. )
  19420. );
  19421. }
  19422. return _react2.default.createElement(
  19423. 'div',
  19424. { style: styles.wrap, className: 'flexbox-fix' },
  19425. fields,
  19426. _react2.default.createElement(
  19427. 'div',
  19428. { style: styles.toggle },
  19429. _react2.default.createElement(
  19430. 'div',
  19431. { style: styles.icon, onClick: this.toggleViews, ref: function ref(icon) {
  19432. return _this2.icon = icon;
  19433. } },
  19434. _react2.default.createElement(_UnfoldMoreHorizontalIcon2.default, {
  19435. style: styles.svg,
  19436. onMouseOver: this.showHighlight,
  19437. onMouseEnter: this.showHighlight,
  19438. onMouseOut: this.hideHighlight
  19439. })
  19440. )
  19441. )
  19442. );
  19443. }
  19444. }], [{
  19445. key: 'getDerivedStateFromProps',
  19446. value: function getDerivedStateFromProps(nextProps, state) {
  19447. if (nextProps.hsl.a !== 1 && state.view === 'hex') {
  19448. return { view: 'rgb' };
  19449. }
  19450. return null;
  19451. }
  19452. }]);
  19453. return ChromeFields;
  19454. }(_react2.default.Component);
  19455. ChromeFields.defaultProps = {
  19456. view: "hex"
  19457. };
  19458. exports.default = ChromeFields;
  19459. /***/ }),
  19460. /***/ "../../node_modules/react-color/lib/components/chrome/ChromePointer.js":
  19461. /*!*******************************************************************************************!*\
  19462. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromePointer.js ***!
  19463. \*******************************************************************************************/
  19464. /*! no static exports found */
  19465. /***/ (function(module, exports, __webpack_require__) {
  19466. "use strict";
  19467. Object.defineProperty(exports, "__esModule", {
  19468. value: true
  19469. });
  19470. exports.ChromePointer = undefined;
  19471. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19472. var _react2 = _interopRequireDefault(_react);
  19473. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19474. var _reactcss2 = _interopRequireDefault(_reactcss);
  19475. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19476. var ChromePointer = exports.ChromePointer = function ChromePointer() {
  19477. var styles = (0, _reactcss2.default)({
  19478. 'default': {
  19479. picker: {
  19480. width: '12px',
  19481. height: '12px',
  19482. borderRadius: '6px',
  19483. transform: 'translate(-6px, -1px)',
  19484. backgroundColor: 'rgb(248, 248, 248)',
  19485. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  19486. }
  19487. }
  19488. });
  19489. return _react2.default.createElement('div', { style: styles.picker });
  19490. };
  19491. exports.default = ChromePointer;
  19492. /***/ }),
  19493. /***/ "../../node_modules/react-color/lib/components/chrome/ChromePointerCircle.js":
  19494. /*!*************************************************************************************************!*\
  19495. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromePointerCircle.js ***!
  19496. \*************************************************************************************************/
  19497. /*! no static exports found */
  19498. /***/ (function(module, exports, __webpack_require__) {
  19499. "use strict";
  19500. Object.defineProperty(exports, "__esModule", {
  19501. value: true
  19502. });
  19503. exports.ChromePointerCircle = undefined;
  19504. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19505. var _react2 = _interopRequireDefault(_react);
  19506. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19507. var _reactcss2 = _interopRequireDefault(_reactcss);
  19508. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19509. var ChromePointerCircle = exports.ChromePointerCircle = function ChromePointerCircle() {
  19510. var styles = (0, _reactcss2.default)({
  19511. 'default': {
  19512. picker: {
  19513. width: '12px',
  19514. height: '12px',
  19515. borderRadius: '6px',
  19516. boxShadow: 'inset 0 0 0 1px #fff',
  19517. transform: 'translate(-6px, -6px)'
  19518. }
  19519. }
  19520. });
  19521. return _react2.default.createElement('div', { style: styles.picker });
  19522. };
  19523. exports.default = ChromePointerCircle;
  19524. /***/ }),
  19525. /***/ "../../node_modules/react-color/lib/components/circle/Circle.js":
  19526. /*!************************************************************************************!*\
  19527. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/circle/Circle.js ***!
  19528. \************************************************************************************/
  19529. /*! no static exports found */
  19530. /***/ (function(module, exports, __webpack_require__) {
  19531. "use strict";
  19532. Object.defineProperty(exports, "__esModule", {
  19533. value: true
  19534. });
  19535. exports.Circle = undefined;
  19536. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19537. var _react2 = _interopRequireDefault(_react);
  19538. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  19539. var _propTypes2 = _interopRequireDefault(_propTypes);
  19540. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19541. var _reactcss2 = _interopRequireDefault(_reactcss);
  19542. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  19543. var _map2 = _interopRequireDefault(_map);
  19544. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  19545. var _merge2 = _interopRequireDefault(_merge);
  19546. var _materialColors = __webpack_require__(/*! material-colors */ "../../node_modules/material-colors/dist/colors.es2015.js");
  19547. var material = _interopRequireWildcard(_materialColors);
  19548. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  19549. var _CircleSwatch = __webpack_require__(/*! ./CircleSwatch */ "../../node_modules/react-color/lib/components/circle/CircleSwatch.js");
  19550. var _CircleSwatch2 = _interopRequireDefault(_CircleSwatch);
  19551. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  19552. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19553. var Circle = exports.Circle = function Circle(_ref) {
  19554. var width = _ref.width,
  19555. onChange = _ref.onChange,
  19556. onSwatchHover = _ref.onSwatchHover,
  19557. colors = _ref.colors,
  19558. hex = _ref.hex,
  19559. circleSize = _ref.circleSize,
  19560. _ref$styles = _ref.styles,
  19561. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  19562. circleSpacing = _ref.circleSpacing,
  19563. _ref$className = _ref.className,
  19564. className = _ref$className === undefined ? '' : _ref$className;
  19565. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  19566. 'default': {
  19567. card: {
  19568. width: width,
  19569. display: 'flex',
  19570. flexWrap: 'wrap',
  19571. marginRight: -circleSpacing,
  19572. marginBottom: -circleSpacing
  19573. }
  19574. }
  19575. }, passedStyles));
  19576. var handleChange = function handleChange(hexCode, e) {
  19577. return onChange({ hex: hexCode, source: 'hex' }, e);
  19578. };
  19579. return _react2.default.createElement(
  19580. 'div',
  19581. { style: styles.card, className: 'circle-picker ' + className },
  19582. (0, _map2.default)(colors, function (c) {
  19583. return _react2.default.createElement(_CircleSwatch2.default, {
  19584. key: c,
  19585. color: c,
  19586. onClick: handleChange,
  19587. onSwatchHover: onSwatchHover,
  19588. active: hex === c.toLowerCase(),
  19589. circleSize: circleSize,
  19590. circleSpacing: circleSpacing
  19591. });
  19592. })
  19593. );
  19594. };
  19595. Circle.propTypes = {
  19596. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  19597. circleSize: _propTypes2.default.number,
  19598. circleSpacing: _propTypes2.default.number,
  19599. styles: _propTypes2.default.object
  19600. };
  19601. Circle.defaultProps = {
  19602. width: 252,
  19603. circleSize: 28,
  19604. circleSpacing: 14,
  19605. colors: [material.red['500'], material.pink['500'], material.purple['500'], material.deepPurple['500'], material.indigo['500'], material.blue['500'], material.lightBlue['500'], material.cyan['500'], material.teal['500'], material.green['500'], material.lightGreen['500'], material.lime['500'], material.yellow['500'], material.amber['500'], material.orange['500'], material.deepOrange['500'], material.brown['500'], material.blueGrey['500']],
  19606. styles: {}
  19607. };
  19608. exports.default = (0, _common.ColorWrap)(Circle);
  19609. /***/ }),
  19610. /***/ "../../node_modules/react-color/lib/components/circle/CircleSwatch.js":
  19611. /*!******************************************************************************************!*\
  19612. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/circle/CircleSwatch.js ***!
  19613. \******************************************************************************************/
  19614. /*! no static exports found */
  19615. /***/ (function(module, exports, __webpack_require__) {
  19616. "use strict";
  19617. Object.defineProperty(exports, "__esModule", {
  19618. value: true
  19619. });
  19620. exports.CircleSwatch = undefined;
  19621. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19622. var _react2 = _interopRequireDefault(_react);
  19623. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19624. var _reactcss2 = _interopRequireDefault(_reactcss);
  19625. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  19626. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19627. var CircleSwatch = exports.CircleSwatch = function CircleSwatch(_ref) {
  19628. var color = _ref.color,
  19629. onClick = _ref.onClick,
  19630. onSwatchHover = _ref.onSwatchHover,
  19631. hover = _ref.hover,
  19632. active = _ref.active,
  19633. circleSize = _ref.circleSize,
  19634. circleSpacing = _ref.circleSpacing;
  19635. var styles = (0, _reactcss2.default)({
  19636. 'default': {
  19637. swatch: {
  19638. width: circleSize,
  19639. height: circleSize,
  19640. marginRight: circleSpacing,
  19641. marginBottom: circleSpacing,
  19642. transform: 'scale(1)',
  19643. transition: '100ms transform ease'
  19644. },
  19645. Swatch: {
  19646. borderRadius: '50%',
  19647. background: 'transparent',
  19648. boxShadow: 'inset 0 0 0 ' + (circleSize / 2 + 1) + 'px ' + color,
  19649. transition: '100ms box-shadow ease'
  19650. }
  19651. },
  19652. 'hover': {
  19653. swatch: {
  19654. transform: 'scale(1.2)'
  19655. }
  19656. },
  19657. 'active': {
  19658. Swatch: {
  19659. boxShadow: 'inset 0 0 0 3px ' + color
  19660. }
  19661. }
  19662. }, { hover: hover, active: active });
  19663. return _react2.default.createElement(
  19664. 'div',
  19665. { style: styles.swatch },
  19666. _react2.default.createElement(_common.Swatch, {
  19667. style: styles.Swatch,
  19668. color: color,
  19669. onClick: onClick,
  19670. onHover: onSwatchHover,
  19671. focusStyle: { boxShadow: styles.Swatch.boxShadow + ', 0 0 5px ' + color }
  19672. })
  19673. );
  19674. };
  19675. CircleSwatch.defaultProps = {
  19676. circleSize: 28,
  19677. circleSpacing: 14
  19678. };
  19679. exports.default = (0, _reactcss.handleHover)(CircleSwatch);
  19680. /***/ }),
  19681. /***/ "../../node_modules/react-color/lib/components/common/Alpha.js":
  19682. /*!***********************************************************************************!*\
  19683. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Alpha.js ***!
  19684. \***********************************************************************************/
  19685. /*! no static exports found */
  19686. /***/ (function(module, exports, __webpack_require__) {
  19687. "use strict";
  19688. Object.defineProperty(exports, "__esModule", {
  19689. value: true
  19690. });
  19691. exports.Alpha = undefined;
  19692. 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; };
  19693. 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; }; }();
  19694. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19695. var _react2 = _interopRequireDefault(_react);
  19696. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19697. var _reactcss2 = _interopRequireDefault(_reactcss);
  19698. var _alpha = __webpack_require__(/*! ../../helpers/alpha */ "../../node_modules/react-color/lib/helpers/alpha.js");
  19699. var alpha = _interopRequireWildcard(_alpha);
  19700. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  19701. var _Checkboard2 = _interopRequireDefault(_Checkboard);
  19702. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  19703. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19704. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19705. 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; }
  19706. 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; }
  19707. var Alpha = exports.Alpha = function (_ref) {
  19708. _inherits(Alpha, _ref);
  19709. function Alpha() {
  19710. var _ref2;
  19711. var _temp, _this, _ret;
  19712. _classCallCheck(this, Alpha);
  19713. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  19714. args[_key] = arguments[_key];
  19715. }
  19716. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Alpha.__proto__ || Object.getPrototypeOf(Alpha)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
  19717. var change = alpha.calculateChange(e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container);
  19718. change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
  19719. }, _this.handleMouseDown = function (e) {
  19720. _this.handleChange(e);
  19721. window.addEventListener('mousemove', _this.handleChange);
  19722. window.addEventListener('mouseup', _this.handleMouseUp);
  19723. }, _this.handleMouseUp = function () {
  19724. _this.unbindEventListeners();
  19725. }, _this.unbindEventListeners = function () {
  19726. window.removeEventListener('mousemove', _this.handleChange);
  19727. window.removeEventListener('mouseup', _this.handleMouseUp);
  19728. }, _temp), _possibleConstructorReturn(_this, _ret);
  19729. }
  19730. _createClass(Alpha, [{
  19731. key: 'componentWillUnmount',
  19732. value: function componentWillUnmount() {
  19733. this.unbindEventListeners();
  19734. }
  19735. }, {
  19736. key: 'render',
  19737. value: function render() {
  19738. var _this2 = this;
  19739. var rgb = this.props.rgb;
  19740. var styles = (0, _reactcss2.default)({
  19741. 'default': {
  19742. alpha: {
  19743. absolute: '0px 0px 0px 0px',
  19744. borderRadius: this.props.radius
  19745. },
  19746. checkboard: {
  19747. absolute: '0px 0px 0px 0px',
  19748. overflow: 'hidden',
  19749. borderRadius: this.props.radius
  19750. },
  19751. gradient: {
  19752. absolute: '0px 0px 0px 0px',
  19753. background: 'linear-gradient(to right, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)',
  19754. boxShadow: this.props.shadow,
  19755. borderRadius: this.props.radius
  19756. },
  19757. container: {
  19758. position: 'relative',
  19759. height: '100%',
  19760. margin: '0 3px'
  19761. },
  19762. pointer: {
  19763. position: 'absolute',
  19764. left: rgb.a * 100 + '%'
  19765. },
  19766. slider: {
  19767. width: '4px',
  19768. borderRadius: '1px',
  19769. height: '8px',
  19770. boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
  19771. background: '#fff',
  19772. marginTop: '1px',
  19773. transform: 'translateX(-2px)'
  19774. }
  19775. },
  19776. 'vertical': {
  19777. gradient: {
  19778. background: 'linear-gradient(to bottom, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)'
  19779. },
  19780. pointer: {
  19781. left: 0,
  19782. top: rgb.a * 100 + '%'
  19783. }
  19784. },
  19785. 'overwrite': _extends({}, this.props.style)
  19786. }, {
  19787. vertical: this.props.direction === 'vertical',
  19788. overwrite: true
  19789. });
  19790. return _react2.default.createElement(
  19791. 'div',
  19792. { style: styles.alpha },
  19793. _react2.default.createElement(
  19794. 'div',
  19795. { style: styles.checkboard },
  19796. _react2.default.createElement(_Checkboard2.default, { renderers: this.props.renderers })
  19797. ),
  19798. _react2.default.createElement('div', { style: styles.gradient }),
  19799. _react2.default.createElement(
  19800. 'div',
  19801. {
  19802. style: styles.container,
  19803. ref: function ref(container) {
  19804. return _this2.container = container;
  19805. },
  19806. onMouseDown: this.handleMouseDown,
  19807. onTouchMove: this.handleChange,
  19808. onTouchStart: this.handleChange
  19809. },
  19810. _react2.default.createElement(
  19811. 'div',
  19812. { style: styles.pointer },
  19813. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.slider })
  19814. )
  19815. )
  19816. );
  19817. }
  19818. }]);
  19819. return Alpha;
  19820. }(_react.PureComponent || _react.Component);
  19821. exports.default = Alpha;
  19822. /***/ }),
  19823. /***/ "../../node_modules/react-color/lib/components/common/Checkboard.js":
  19824. /*!****************************************************************************************!*\
  19825. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Checkboard.js ***!
  19826. \****************************************************************************************/
  19827. /*! no static exports found */
  19828. /***/ (function(module, exports, __webpack_require__) {
  19829. "use strict";
  19830. Object.defineProperty(exports, "__esModule", {
  19831. value: true
  19832. });
  19833. exports.Checkboard = undefined;
  19834. 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; };
  19835. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19836. var _react2 = _interopRequireDefault(_react);
  19837. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19838. var _reactcss2 = _interopRequireDefault(_reactcss);
  19839. var _checkboard = __webpack_require__(/*! ../../helpers/checkboard */ "../../node_modules/react-color/lib/helpers/checkboard.js");
  19840. var checkboard = _interopRequireWildcard(_checkboard);
  19841. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  19842. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19843. var Checkboard = exports.Checkboard = function Checkboard(_ref) {
  19844. var white = _ref.white,
  19845. grey = _ref.grey,
  19846. size = _ref.size,
  19847. renderers = _ref.renderers,
  19848. borderRadius = _ref.borderRadius,
  19849. boxShadow = _ref.boxShadow,
  19850. children = _ref.children;
  19851. var styles = (0, _reactcss2.default)({
  19852. 'default': {
  19853. grid: {
  19854. borderRadius: borderRadius,
  19855. boxShadow: boxShadow,
  19856. absolute: '0px 0px 0px 0px',
  19857. background: 'url(' + checkboard.get(white, grey, size, renderers.canvas) + ') center left'
  19858. }
  19859. }
  19860. });
  19861. return (0, _react.isValidElement)(children) ? _react2.default.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : _react2.default.createElement('div', { style: styles.grid });
  19862. };
  19863. Checkboard.defaultProps = {
  19864. size: 8,
  19865. white: 'transparent',
  19866. grey: 'rgba(0,0,0,.08)',
  19867. renderers: {}
  19868. };
  19869. exports.default = Checkboard;
  19870. /***/ }),
  19871. /***/ "../../node_modules/react-color/lib/components/common/ColorWrap.js":
  19872. /*!***************************************************************************************!*\
  19873. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/ColorWrap.js ***!
  19874. \***************************************************************************************/
  19875. /*! no static exports found */
  19876. /***/ (function(module, exports, __webpack_require__) {
  19877. "use strict";
  19878. Object.defineProperty(exports, "__esModule", {
  19879. value: true
  19880. });
  19881. exports.ColorWrap = undefined;
  19882. 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; };
  19883. 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; }; }();
  19884. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19885. var _react2 = _interopRequireDefault(_react);
  19886. var _debounce = __webpack_require__(/*! lodash/debounce */ "../../node_modules/lodash/debounce.js");
  19887. var _debounce2 = _interopRequireDefault(_debounce);
  19888. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  19889. var _color2 = _interopRequireDefault(_color);
  19890. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19891. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19892. 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; }
  19893. 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; }
  19894. var ColorWrap = exports.ColorWrap = function ColorWrap(Picker) {
  19895. var ColorPicker = function (_ref) {
  19896. _inherits(ColorPicker, _ref);
  19897. function ColorPicker(props) {
  19898. _classCallCheck(this, ColorPicker);
  19899. var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this));
  19900. _this.handleChange = function (data, event) {
  19901. var isValidColor = _color2.default.simpleCheckForValidColor(data);
  19902. if (isValidColor) {
  19903. var colors = _color2.default.toState(data, data.h || _this.state.oldHue);
  19904. _this.setState(colors);
  19905. _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
  19906. _this.props.onChange && _this.props.onChange(colors, event);
  19907. }
  19908. };
  19909. _this.handleSwatchHover = function (data, event) {
  19910. var isValidColor = _color2.default.simpleCheckForValidColor(data);
  19911. if (isValidColor) {
  19912. var colors = _color2.default.toState(data, data.h || _this.state.oldHue);
  19913. _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
  19914. }
  19915. };
  19916. _this.state = _extends({}, _color2.default.toState(props.color, 0));
  19917. _this.debounce = (0, _debounce2.default)(function (fn, data, event) {
  19918. fn(data, event);
  19919. }, 100);
  19920. return _this;
  19921. }
  19922. _createClass(ColorPicker, [{
  19923. key: 'render',
  19924. value: function render() {
  19925. var optionalEvents = {};
  19926. if (this.props.onSwatchHover) {
  19927. optionalEvents.onSwatchHover = this.handleSwatchHover;
  19928. }
  19929. return _react2.default.createElement(Picker, _extends({}, this.props, this.state, {
  19930. onChange: this.handleChange
  19931. }, optionalEvents));
  19932. }
  19933. }], [{
  19934. key: 'getDerivedStateFromProps',
  19935. value: function getDerivedStateFromProps(nextProps, state) {
  19936. return _extends({}, _color2.default.toState(nextProps.color, state.oldHue));
  19937. }
  19938. }]);
  19939. return ColorPicker;
  19940. }(_react.PureComponent || _react.Component);
  19941. ColorPicker.propTypes = _extends({}, Picker.propTypes);
  19942. ColorPicker.defaultProps = _extends({}, Picker.defaultProps, {
  19943. color: {
  19944. h: 250,
  19945. s: 0.50,
  19946. l: 0.20,
  19947. a: 1
  19948. }
  19949. });
  19950. return ColorPicker;
  19951. };
  19952. exports.default = ColorWrap;
  19953. /***/ }),
  19954. /***/ "../../node_modules/react-color/lib/components/common/EditableInput.js":
  19955. /*!*******************************************************************************************!*\
  19956. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/EditableInput.js ***!
  19957. \*******************************************************************************************/
  19958. /*! no static exports found */
  19959. /***/ (function(module, exports, __webpack_require__) {
  19960. "use strict";
  19961. Object.defineProperty(exports, "__esModule", {
  19962. value: true
  19963. });
  19964. exports.EditableInput = undefined;
  19965. 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; }; }();
  19966. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  19967. var _react2 = _interopRequireDefault(_react);
  19968. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  19969. var _reactcss2 = _interopRequireDefault(_reactcss);
  19970. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19971. 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; }
  19972. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19973. 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; }
  19974. 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; }
  19975. var DEFAULT_ARROW_OFFSET = 1;
  19976. var UP_KEY_CODE = 38;
  19977. var DOWN_KEY_CODE = 40;
  19978. var VALID_KEY_CODES = [UP_KEY_CODE, DOWN_KEY_CODE];
  19979. var isValidKeyCode = function isValidKeyCode(keyCode) {
  19980. return VALID_KEY_CODES.indexOf(keyCode) > -1;
  19981. };
  19982. var getNumberValue = function getNumberValue(value) {
  19983. return Number(String(value).replace(/%/g, ''));
  19984. };
  19985. var EditableInput = exports.EditableInput = function (_ref) {
  19986. _inherits(EditableInput, _ref);
  19987. function EditableInput(props) {
  19988. _classCallCheck(this, EditableInput);
  19989. var _this = _possibleConstructorReturn(this, (EditableInput.__proto__ || Object.getPrototypeOf(EditableInput)).call(this));
  19990. _this.handleBlur = function () {
  19991. if (_this.state.blurValue) {
  19992. _this.setState({ value: _this.state.blurValue, blurValue: null });
  19993. }
  19994. };
  19995. _this.handleChange = function (e) {
  19996. _this.setUpdatedValue(e.target.value, e);
  19997. };
  19998. _this.handleKeyDown = function (e) {
  19999. // In case `e.target.value` is a percentage remove the `%` character
  20000. // and update accordingly with a percentage
  20001. // https://github.com/casesandberg/react-color/issues/383
  20002. var value = getNumberValue(e.target.value);
  20003. if (!isNaN(value) && isValidKeyCode(e.keyCode)) {
  20004. var offset = _this.getArrowOffset();
  20005. var updatedValue = e.keyCode === UP_KEY_CODE ? value + offset : value - offset;
  20006. _this.setUpdatedValue(updatedValue, e);
  20007. }
  20008. };
  20009. _this.handleDrag = function (e) {
  20010. if (_this.props.dragLabel) {
  20011. var newValue = Math.round(_this.props.value + e.movementX);
  20012. if (newValue >= 0 && newValue <= _this.props.dragMax) {
  20013. _this.props.onChange && _this.props.onChange(_this.getValueObjectWithLabel(newValue), e);
  20014. }
  20015. }
  20016. };
  20017. _this.handleMouseDown = function (e) {
  20018. if (_this.props.dragLabel) {
  20019. e.preventDefault();
  20020. _this.handleDrag(e);
  20021. window.addEventListener('mousemove', _this.handleDrag);
  20022. window.addEventListener('mouseup', _this.handleMouseUp);
  20023. }
  20024. };
  20025. _this.handleMouseUp = function () {
  20026. _this.unbindEventListeners();
  20027. };
  20028. _this.unbindEventListeners = function () {
  20029. window.removeEventListener('mousemove', _this.handleDrag);
  20030. window.removeEventListener('mouseup', _this.handleMouseUp);
  20031. };
  20032. _this.state = {
  20033. value: String(props.value).toUpperCase(),
  20034. blurValue: String(props.value).toUpperCase()
  20035. };
  20036. return _this;
  20037. }
  20038. _createClass(EditableInput, [{
  20039. key: 'componentDidUpdate',
  20040. value: function componentDidUpdate(prevProps, prevState) {
  20041. if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) {
  20042. if (this.input === document.activeElement) {
  20043. this.setState({ blurValue: String(this.props.value).toUpperCase() });
  20044. } else {
  20045. this.setState({ value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && String(this.props.value).toUpperCase() });
  20046. }
  20047. }
  20048. }
  20049. }, {
  20050. key: 'componentWillUnmount',
  20051. value: function componentWillUnmount() {
  20052. this.unbindEventListeners();
  20053. }
  20054. }, {
  20055. key: 'getValueObjectWithLabel',
  20056. value: function getValueObjectWithLabel(value) {
  20057. return _defineProperty({}, this.props.label, value);
  20058. }
  20059. }, {
  20060. key: 'getArrowOffset',
  20061. value: function getArrowOffset() {
  20062. return this.props.arrowOffset || DEFAULT_ARROW_OFFSET;
  20063. }
  20064. }, {
  20065. key: 'setUpdatedValue',
  20066. value: function setUpdatedValue(value, e) {
  20067. var onChangeValue = this.props.label ? this.getValueObjectWithLabel(value) : value;
  20068. this.props.onChange && this.props.onChange(onChangeValue, e);
  20069. this.setState({ value: value });
  20070. }
  20071. }, {
  20072. key: 'render',
  20073. value: function render() {
  20074. var _this2 = this;
  20075. var styles = (0, _reactcss2.default)({
  20076. 'default': {
  20077. wrap: {
  20078. position: 'relative'
  20079. }
  20080. },
  20081. 'user-override': {
  20082. wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {},
  20083. input: this.props.style && this.props.style.input ? this.props.style.input : {},
  20084. label: this.props.style && this.props.style.label ? this.props.style.label : {}
  20085. },
  20086. 'dragLabel-true': {
  20087. label: {
  20088. cursor: 'ew-resize'
  20089. }
  20090. }
  20091. }, {
  20092. 'user-override': true
  20093. }, this.props);
  20094. return _react2.default.createElement(
  20095. 'div',
  20096. { style: styles.wrap },
  20097. _react2.default.createElement('input', {
  20098. style: styles.input,
  20099. ref: function ref(input) {
  20100. return _this2.input = input;
  20101. },
  20102. value: this.state.value,
  20103. onKeyDown: this.handleKeyDown,
  20104. onChange: this.handleChange,
  20105. onBlur: this.handleBlur,
  20106. placeholder: this.props.placeholder,
  20107. spellCheck: 'false'
  20108. }),
  20109. this.props.label && !this.props.hideLabel ? _react2.default.createElement(
  20110. 'span',
  20111. { style: styles.label, onMouseDown: this.handleMouseDown },
  20112. this.props.label
  20113. ) : null
  20114. );
  20115. }
  20116. }]);
  20117. return EditableInput;
  20118. }(_react.PureComponent || _react.Component);
  20119. exports.default = EditableInput;
  20120. /***/ }),
  20121. /***/ "../../node_modules/react-color/lib/components/common/Hue.js":
  20122. /*!*********************************************************************************!*\
  20123. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Hue.js ***!
  20124. \*********************************************************************************/
  20125. /*! no static exports found */
  20126. /***/ (function(module, exports, __webpack_require__) {
  20127. "use strict";
  20128. Object.defineProperty(exports, "__esModule", {
  20129. value: true
  20130. });
  20131. exports.Hue = undefined;
  20132. 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; }; }();
  20133. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20134. var _react2 = _interopRequireDefault(_react);
  20135. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20136. var _reactcss2 = _interopRequireDefault(_reactcss);
  20137. var _hue = __webpack_require__(/*! ../../helpers/hue */ "../../node_modules/react-color/lib/helpers/hue.js");
  20138. var hue = _interopRequireWildcard(_hue);
  20139. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  20140. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20141. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20142. 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; }
  20143. 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; }
  20144. var Hue = exports.Hue = function (_ref) {
  20145. _inherits(Hue, _ref);
  20146. function Hue() {
  20147. var _ref2;
  20148. var _temp, _this, _ret;
  20149. _classCallCheck(this, Hue);
  20150. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  20151. args[_key] = arguments[_key];
  20152. }
  20153. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Hue.__proto__ || Object.getPrototypeOf(Hue)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
  20154. var change = hue.calculateChange(e, _this.props.direction, _this.props.hsl, _this.container);
  20155. change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
  20156. }, _this.handleMouseDown = function (e) {
  20157. _this.handleChange(e);
  20158. window.addEventListener('mousemove', _this.handleChange);
  20159. window.addEventListener('mouseup', _this.handleMouseUp);
  20160. }, _this.handleMouseUp = function () {
  20161. _this.unbindEventListeners();
  20162. }, _temp), _possibleConstructorReturn(_this, _ret);
  20163. }
  20164. _createClass(Hue, [{
  20165. key: 'componentWillUnmount',
  20166. value: function componentWillUnmount() {
  20167. this.unbindEventListeners();
  20168. }
  20169. }, {
  20170. key: 'unbindEventListeners',
  20171. value: function unbindEventListeners() {
  20172. window.removeEventListener('mousemove', this.handleChange);
  20173. window.removeEventListener('mouseup', this.handleMouseUp);
  20174. }
  20175. }, {
  20176. key: 'render',
  20177. value: function render() {
  20178. var _this2 = this;
  20179. var _props$direction = this.props.direction,
  20180. direction = _props$direction === undefined ? 'horizontal' : _props$direction;
  20181. var styles = (0, _reactcss2.default)({
  20182. 'default': {
  20183. hue: {
  20184. absolute: '0px 0px 0px 0px',
  20185. borderRadius: this.props.radius,
  20186. boxShadow: this.props.shadow
  20187. },
  20188. container: {
  20189. padding: '0 2px',
  20190. position: 'relative',
  20191. height: '100%',
  20192. borderRadius: this.props.radius
  20193. },
  20194. pointer: {
  20195. position: 'absolute',
  20196. left: this.props.hsl.h * 100 / 360 + '%'
  20197. },
  20198. slider: {
  20199. marginTop: '1px',
  20200. width: '4px',
  20201. borderRadius: '1px',
  20202. height: '8px',
  20203. boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
  20204. background: '#fff',
  20205. transform: 'translateX(-2px)'
  20206. }
  20207. },
  20208. 'vertical': {
  20209. pointer: {
  20210. left: '0px',
  20211. top: -(this.props.hsl.h * 100 / 360) + 100 + '%'
  20212. }
  20213. }
  20214. }, { vertical: direction === 'vertical' });
  20215. return _react2.default.createElement(
  20216. 'div',
  20217. { style: styles.hue },
  20218. _react2.default.createElement(
  20219. 'div',
  20220. {
  20221. className: 'hue-' + direction,
  20222. style: styles.container,
  20223. ref: function ref(container) {
  20224. return _this2.container = container;
  20225. },
  20226. onMouseDown: this.handleMouseDown,
  20227. onTouchMove: this.handleChange,
  20228. onTouchStart: this.handleChange
  20229. },
  20230. _react2.default.createElement(
  20231. 'style',
  20232. null,
  20233. '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n '
  20234. ),
  20235. _react2.default.createElement(
  20236. 'div',
  20237. { style: styles.pointer },
  20238. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.slider })
  20239. )
  20240. )
  20241. );
  20242. }
  20243. }]);
  20244. return Hue;
  20245. }(_react.PureComponent || _react.Component);
  20246. exports.default = Hue;
  20247. /***/ }),
  20248. /***/ "../../node_modules/react-color/lib/components/common/Raised.js":
  20249. /*!************************************************************************************!*\
  20250. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Raised.js ***!
  20251. \************************************************************************************/
  20252. /*! no static exports found */
  20253. /***/ (function(module, exports, __webpack_require__) {
  20254. "use strict";
  20255. Object.defineProperty(exports, "__esModule", {
  20256. value: true
  20257. });
  20258. exports.Raised = undefined;
  20259. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20260. var _react2 = _interopRequireDefault(_react);
  20261. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  20262. var _propTypes2 = _interopRequireDefault(_propTypes);
  20263. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20264. var _reactcss2 = _interopRequireDefault(_reactcss);
  20265. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20266. var _merge2 = _interopRequireDefault(_merge);
  20267. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20268. var Raised = exports.Raised = function Raised(_ref) {
  20269. var zDepth = _ref.zDepth,
  20270. radius = _ref.radius,
  20271. background = _ref.background,
  20272. children = _ref.children,
  20273. _ref$styles = _ref.styles,
  20274. passedStyles = _ref$styles === undefined ? {} : _ref$styles;
  20275. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20276. 'default': {
  20277. wrap: {
  20278. position: 'relative',
  20279. display: 'inline-block'
  20280. },
  20281. content: {
  20282. position: 'relative'
  20283. },
  20284. bg: {
  20285. absolute: '0px 0px 0px 0px',
  20286. boxShadow: '0 ' + zDepth + 'px ' + zDepth * 4 + 'px rgba(0,0,0,.24)',
  20287. borderRadius: radius,
  20288. background: background
  20289. }
  20290. },
  20291. 'zDepth-0': {
  20292. bg: {
  20293. boxShadow: 'none'
  20294. }
  20295. },
  20296. 'zDepth-1': {
  20297. bg: {
  20298. boxShadow: '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)'
  20299. }
  20300. },
  20301. 'zDepth-2': {
  20302. bg: {
  20303. boxShadow: '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)'
  20304. }
  20305. },
  20306. 'zDepth-3': {
  20307. bg: {
  20308. boxShadow: '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)'
  20309. }
  20310. },
  20311. 'zDepth-4': {
  20312. bg: {
  20313. boxShadow: '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)'
  20314. }
  20315. },
  20316. 'zDepth-5': {
  20317. bg: {
  20318. boxShadow: '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)'
  20319. }
  20320. },
  20321. 'square': {
  20322. bg: {
  20323. borderRadius: '0'
  20324. }
  20325. },
  20326. 'circle': {
  20327. bg: {
  20328. borderRadius: '50%'
  20329. }
  20330. }
  20331. }, passedStyles), { 'zDepth-1': zDepth === 1 });
  20332. return _react2.default.createElement(
  20333. 'div',
  20334. { style: styles.wrap },
  20335. _react2.default.createElement('div', { style: styles.bg }),
  20336. _react2.default.createElement(
  20337. 'div',
  20338. { style: styles.content },
  20339. children
  20340. )
  20341. );
  20342. };
  20343. Raised.propTypes = {
  20344. background: _propTypes2.default.string,
  20345. zDepth: _propTypes2.default.oneOf([0, 1, 2, 3, 4, 5]),
  20346. radius: _propTypes2.default.number,
  20347. styles: _propTypes2.default.object
  20348. };
  20349. Raised.defaultProps = {
  20350. background: '#fff',
  20351. zDepth: 1,
  20352. radius: 2,
  20353. styles: {}
  20354. };
  20355. exports.default = Raised;
  20356. /***/ }),
  20357. /***/ "../../node_modules/react-color/lib/components/common/Saturation.js":
  20358. /*!****************************************************************************************!*\
  20359. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Saturation.js ***!
  20360. \****************************************************************************************/
  20361. /*! no static exports found */
  20362. /***/ (function(module, exports, __webpack_require__) {
  20363. "use strict";
  20364. Object.defineProperty(exports, "__esModule", {
  20365. value: true
  20366. });
  20367. exports.Saturation = undefined;
  20368. 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; }; }();
  20369. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20370. var _react2 = _interopRequireDefault(_react);
  20371. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20372. var _reactcss2 = _interopRequireDefault(_reactcss);
  20373. var _throttle = __webpack_require__(/*! lodash/throttle */ "../../node_modules/lodash/throttle.js");
  20374. var _throttle2 = _interopRequireDefault(_throttle);
  20375. var _saturation = __webpack_require__(/*! ../../helpers/saturation */ "../../node_modules/react-color/lib/helpers/saturation.js");
  20376. var saturation = _interopRequireWildcard(_saturation);
  20377. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  20378. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20379. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20380. 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; }
  20381. 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; }
  20382. var Saturation = exports.Saturation = function (_ref) {
  20383. _inherits(Saturation, _ref);
  20384. function Saturation(props) {
  20385. _classCallCheck(this, Saturation);
  20386. var _this = _possibleConstructorReturn(this, (Saturation.__proto__ || Object.getPrototypeOf(Saturation)).call(this, props));
  20387. _this.handleChange = function (e) {
  20388. typeof _this.props.onChange === 'function' && _this.throttle(_this.props.onChange, saturation.calculateChange(e, _this.props.hsl, _this.container), e);
  20389. };
  20390. _this.handleMouseDown = function (e) {
  20391. _this.handleChange(e);
  20392. window.addEventListener('mousemove', _this.handleChange);
  20393. window.addEventListener('mouseup', _this.handleMouseUp);
  20394. };
  20395. _this.handleMouseUp = function () {
  20396. _this.unbindEventListeners();
  20397. };
  20398. _this.throttle = (0, _throttle2.default)(function (fn, data, e) {
  20399. fn(data, e);
  20400. }, 50);
  20401. return _this;
  20402. }
  20403. _createClass(Saturation, [{
  20404. key: 'componentWillUnmount',
  20405. value: function componentWillUnmount() {
  20406. this.throttle.cancel();
  20407. this.unbindEventListeners();
  20408. }
  20409. }, {
  20410. key: 'unbindEventListeners',
  20411. value: function unbindEventListeners() {
  20412. window.removeEventListener('mousemove', this.handleChange);
  20413. window.removeEventListener('mouseup', this.handleMouseUp);
  20414. }
  20415. }, {
  20416. key: 'render',
  20417. value: function render() {
  20418. var _this2 = this;
  20419. var _ref2 = this.props.style || {},
  20420. color = _ref2.color,
  20421. white = _ref2.white,
  20422. black = _ref2.black,
  20423. pointer = _ref2.pointer,
  20424. circle = _ref2.circle;
  20425. var styles = (0, _reactcss2.default)({
  20426. 'default': {
  20427. color: {
  20428. absolute: '0px 0px 0px 0px',
  20429. background: 'hsl(' + this.props.hsl.h + ',100%, 50%)',
  20430. borderRadius: this.props.radius
  20431. },
  20432. white: {
  20433. absolute: '0px 0px 0px 0px',
  20434. borderRadius: this.props.radius
  20435. },
  20436. black: {
  20437. absolute: '0px 0px 0px 0px',
  20438. boxShadow: this.props.shadow,
  20439. borderRadius: this.props.radius
  20440. },
  20441. pointer: {
  20442. position: 'absolute',
  20443. top: -(this.props.hsv.v * 100) + 100 + '%',
  20444. left: this.props.hsv.s * 100 + '%',
  20445. cursor: 'default'
  20446. },
  20447. circle: {
  20448. width: '4px',
  20449. height: '4px',
  20450. boxShadow: '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)',
  20451. borderRadius: '50%',
  20452. cursor: 'hand',
  20453. transform: 'translate(-2px, -2px)'
  20454. }
  20455. },
  20456. 'custom': {
  20457. color: color,
  20458. white: white,
  20459. black: black,
  20460. pointer: pointer,
  20461. circle: circle
  20462. }
  20463. }, { 'custom': !!this.props.style });
  20464. return _react2.default.createElement(
  20465. 'div',
  20466. {
  20467. style: styles.color,
  20468. ref: function ref(container) {
  20469. return _this2.container = container;
  20470. },
  20471. onMouseDown: this.handleMouseDown,
  20472. onTouchMove: this.handleChange,
  20473. onTouchStart: this.handleChange
  20474. },
  20475. _react2.default.createElement(
  20476. 'style',
  20477. null,
  20478. '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n '
  20479. ),
  20480. _react2.default.createElement(
  20481. 'div',
  20482. { style: styles.white, className: 'saturation-white' },
  20483. _react2.default.createElement('div', { style: styles.black, className: 'saturation-black' }),
  20484. _react2.default.createElement(
  20485. 'div',
  20486. { style: styles.pointer },
  20487. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.circle })
  20488. )
  20489. )
  20490. );
  20491. }
  20492. }]);
  20493. return Saturation;
  20494. }(_react.PureComponent || _react.Component);
  20495. exports.default = Saturation;
  20496. /***/ }),
  20497. /***/ "../../node_modules/react-color/lib/components/common/Swatch.js":
  20498. /*!************************************************************************************!*\
  20499. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Swatch.js ***!
  20500. \************************************************************************************/
  20501. /*! no static exports found */
  20502. /***/ (function(module, exports, __webpack_require__) {
  20503. "use strict";
  20504. Object.defineProperty(exports, "__esModule", {
  20505. value: true
  20506. });
  20507. exports.Swatch = undefined;
  20508. 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; };
  20509. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20510. var _react2 = _interopRequireDefault(_react);
  20511. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20512. var _reactcss2 = _interopRequireDefault(_reactcss);
  20513. var _interaction = __webpack_require__(/*! ../../helpers/interaction */ "../../node_modules/react-color/lib/helpers/interaction.js");
  20514. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  20515. var _Checkboard2 = _interopRequireDefault(_Checkboard);
  20516. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20517. var ENTER = 13;
  20518. var Swatch = exports.Swatch = function Swatch(_ref) {
  20519. var color = _ref.color,
  20520. style = _ref.style,
  20521. _ref$onClick = _ref.onClick,
  20522. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  20523. onHover = _ref.onHover,
  20524. _ref$title = _ref.title,
  20525. title = _ref$title === undefined ? color : _ref$title,
  20526. children = _ref.children,
  20527. focus = _ref.focus,
  20528. _ref$focusStyle = _ref.focusStyle,
  20529. focusStyle = _ref$focusStyle === undefined ? {} : _ref$focusStyle;
  20530. var transparent = color === 'transparent';
  20531. var styles = (0, _reactcss2.default)({
  20532. default: {
  20533. swatch: _extends({
  20534. background: color,
  20535. height: '100%',
  20536. width: '100%',
  20537. cursor: 'pointer',
  20538. position: 'relative',
  20539. outline: 'none'
  20540. }, style, focus ? focusStyle : {})
  20541. }
  20542. });
  20543. var handleClick = function handleClick(e) {
  20544. return onClick(color, e);
  20545. };
  20546. var handleKeyDown = function handleKeyDown(e) {
  20547. return e.keyCode === ENTER && onClick(color, e);
  20548. };
  20549. var handleHover = function handleHover(e) {
  20550. return onHover(color, e);
  20551. };
  20552. var optionalEvents = {};
  20553. if (onHover) {
  20554. optionalEvents.onMouseOver = handleHover;
  20555. }
  20556. return _react2.default.createElement(
  20557. 'div',
  20558. _extends({
  20559. style: styles.swatch,
  20560. onClick: handleClick,
  20561. title: title,
  20562. tabIndex: 0,
  20563. onKeyDown: handleKeyDown
  20564. }, optionalEvents),
  20565. children,
  20566. transparent && _react2.default.createElement(_Checkboard2.default, {
  20567. borderRadius: styles.swatch.borderRadius,
  20568. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)'
  20569. })
  20570. );
  20571. };
  20572. exports.default = (0, _interaction.handleFocus)(Swatch);
  20573. /***/ }),
  20574. /***/ "../../node_modules/react-color/lib/components/common/index.js":
  20575. /*!***********************************************************************************!*\
  20576. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/common/index.js ***!
  20577. \***********************************************************************************/
  20578. /*! no static exports found */
  20579. /***/ (function(module, exports, __webpack_require__) {
  20580. "use strict";
  20581. Object.defineProperty(exports, "__esModule", {
  20582. value: true
  20583. });
  20584. var _Alpha = __webpack_require__(/*! ./Alpha */ "../../node_modules/react-color/lib/components/common/Alpha.js");
  20585. Object.defineProperty(exports, 'Alpha', {
  20586. enumerable: true,
  20587. get: function get() {
  20588. return _interopRequireDefault(_Alpha).default;
  20589. }
  20590. });
  20591. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  20592. Object.defineProperty(exports, 'Checkboard', {
  20593. enumerable: true,
  20594. get: function get() {
  20595. return _interopRequireDefault(_Checkboard).default;
  20596. }
  20597. });
  20598. var _EditableInput = __webpack_require__(/*! ./EditableInput */ "../../node_modules/react-color/lib/components/common/EditableInput.js");
  20599. Object.defineProperty(exports, 'EditableInput', {
  20600. enumerable: true,
  20601. get: function get() {
  20602. return _interopRequireDefault(_EditableInput).default;
  20603. }
  20604. });
  20605. var _Hue = __webpack_require__(/*! ./Hue */ "../../node_modules/react-color/lib/components/common/Hue.js");
  20606. Object.defineProperty(exports, 'Hue', {
  20607. enumerable: true,
  20608. get: function get() {
  20609. return _interopRequireDefault(_Hue).default;
  20610. }
  20611. });
  20612. var _Raised = __webpack_require__(/*! ./Raised */ "../../node_modules/react-color/lib/components/common/Raised.js");
  20613. Object.defineProperty(exports, 'Raised', {
  20614. enumerable: true,
  20615. get: function get() {
  20616. return _interopRequireDefault(_Raised).default;
  20617. }
  20618. });
  20619. var _Saturation = __webpack_require__(/*! ./Saturation */ "../../node_modules/react-color/lib/components/common/Saturation.js");
  20620. Object.defineProperty(exports, 'Saturation', {
  20621. enumerable: true,
  20622. get: function get() {
  20623. return _interopRequireDefault(_Saturation).default;
  20624. }
  20625. });
  20626. var _ColorWrap = __webpack_require__(/*! ./ColorWrap */ "../../node_modules/react-color/lib/components/common/ColorWrap.js");
  20627. Object.defineProperty(exports, 'ColorWrap', {
  20628. enumerable: true,
  20629. get: function get() {
  20630. return _interopRequireDefault(_ColorWrap).default;
  20631. }
  20632. });
  20633. var _Swatch = __webpack_require__(/*! ./Swatch */ "../../node_modules/react-color/lib/components/common/Swatch.js");
  20634. Object.defineProperty(exports, 'Swatch', {
  20635. enumerable: true,
  20636. get: function get() {
  20637. return _interopRequireDefault(_Swatch).default;
  20638. }
  20639. });
  20640. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20641. /***/ }),
  20642. /***/ "../../node_modules/react-color/lib/components/compact/Compact.js":
  20643. /*!**************************************************************************************!*\
  20644. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/Compact.js ***!
  20645. \**************************************************************************************/
  20646. /*! no static exports found */
  20647. /***/ (function(module, exports, __webpack_require__) {
  20648. "use strict";
  20649. Object.defineProperty(exports, "__esModule", {
  20650. value: true
  20651. });
  20652. exports.Compact = undefined;
  20653. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20654. var _react2 = _interopRequireDefault(_react);
  20655. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  20656. var _propTypes2 = _interopRequireDefault(_propTypes);
  20657. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20658. var _reactcss2 = _interopRequireDefault(_reactcss);
  20659. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  20660. var _map2 = _interopRequireDefault(_map);
  20661. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20662. var _merge2 = _interopRequireDefault(_merge);
  20663. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  20664. var _color2 = _interopRequireDefault(_color);
  20665. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20666. var _CompactColor = __webpack_require__(/*! ./CompactColor */ "../../node_modules/react-color/lib/components/compact/CompactColor.js");
  20667. var _CompactColor2 = _interopRequireDefault(_CompactColor);
  20668. var _CompactFields = __webpack_require__(/*! ./CompactFields */ "../../node_modules/react-color/lib/components/compact/CompactFields.js");
  20669. var _CompactFields2 = _interopRequireDefault(_CompactFields);
  20670. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20671. var Compact = exports.Compact = function Compact(_ref) {
  20672. var onChange = _ref.onChange,
  20673. onSwatchHover = _ref.onSwatchHover,
  20674. colors = _ref.colors,
  20675. hex = _ref.hex,
  20676. rgb = _ref.rgb,
  20677. _ref$styles = _ref.styles,
  20678. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  20679. _ref$className = _ref.className,
  20680. className = _ref$className === undefined ? '' : _ref$className;
  20681. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20682. 'default': {
  20683. Compact: {
  20684. background: '#f6f6f6',
  20685. radius: '4px'
  20686. },
  20687. compact: {
  20688. paddingTop: '5px',
  20689. paddingLeft: '5px',
  20690. boxSizing: 'initial',
  20691. width: '240px'
  20692. },
  20693. clear: {
  20694. clear: 'both'
  20695. }
  20696. }
  20697. }, passedStyles));
  20698. var handleChange = function handleChange(data, e) {
  20699. if (data.hex) {
  20700. _color2.default.isValidHex(data.hex) && onChange({
  20701. hex: data.hex,
  20702. source: 'hex'
  20703. }, e);
  20704. } else {
  20705. onChange(data, e);
  20706. }
  20707. };
  20708. return _react2.default.createElement(
  20709. _common.Raised,
  20710. { style: styles.Compact, styles: passedStyles },
  20711. _react2.default.createElement(
  20712. 'div',
  20713. { style: styles.compact, className: 'compact-picker ' + className },
  20714. _react2.default.createElement(
  20715. 'div',
  20716. null,
  20717. (0, _map2.default)(colors, function (c) {
  20718. return _react2.default.createElement(_CompactColor2.default, {
  20719. key: c,
  20720. color: c,
  20721. active: c.toLowerCase() === hex,
  20722. onClick: handleChange,
  20723. onSwatchHover: onSwatchHover
  20724. });
  20725. }),
  20726. _react2.default.createElement('div', { style: styles.clear })
  20727. ),
  20728. _react2.default.createElement(_CompactFields2.default, { hex: hex, rgb: rgb, onChange: handleChange })
  20729. )
  20730. );
  20731. };
  20732. Compact.propTypes = {
  20733. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  20734. styles: _propTypes2.default.object
  20735. };
  20736. Compact.defaultProps = {
  20737. colors: ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'],
  20738. styles: {}
  20739. };
  20740. exports.default = (0, _common.ColorWrap)(Compact);
  20741. /***/ }),
  20742. /***/ "../../node_modules/react-color/lib/components/compact/CompactColor.js":
  20743. /*!*******************************************************************************************!*\
  20744. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/CompactColor.js ***!
  20745. \*******************************************************************************************/
  20746. /*! no static exports found */
  20747. /***/ (function(module, exports, __webpack_require__) {
  20748. "use strict";
  20749. Object.defineProperty(exports, "__esModule", {
  20750. value: true
  20751. });
  20752. exports.CompactColor = undefined;
  20753. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20754. var _react2 = _interopRequireDefault(_react);
  20755. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20756. var _reactcss2 = _interopRequireDefault(_reactcss);
  20757. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  20758. var _color2 = _interopRequireDefault(_color);
  20759. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20760. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20761. var CompactColor = exports.CompactColor = function CompactColor(_ref) {
  20762. var color = _ref.color,
  20763. _ref$onClick = _ref.onClick,
  20764. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  20765. onSwatchHover = _ref.onSwatchHover,
  20766. active = _ref.active;
  20767. var styles = (0, _reactcss2.default)({
  20768. 'default': {
  20769. color: {
  20770. background: color,
  20771. width: '15px',
  20772. height: '15px',
  20773. float: 'left',
  20774. marginRight: '5px',
  20775. marginBottom: '5px',
  20776. position: 'relative',
  20777. cursor: 'pointer'
  20778. },
  20779. dot: {
  20780. absolute: '5px 5px 5px 5px',
  20781. background: _color2.default.getContrastingColor(color),
  20782. borderRadius: '50%',
  20783. opacity: '0'
  20784. }
  20785. },
  20786. 'active': {
  20787. dot: {
  20788. opacity: '1'
  20789. }
  20790. },
  20791. 'color-#FFFFFF': {
  20792. color: {
  20793. boxShadow: 'inset 0 0 0 1px #ddd'
  20794. },
  20795. dot: {
  20796. background: '#000'
  20797. }
  20798. },
  20799. 'transparent': {
  20800. dot: {
  20801. background: '#000'
  20802. }
  20803. }
  20804. }, { active: active, 'color-#FFFFFF': color === '#FFFFFF', 'transparent': color === 'transparent' });
  20805. return _react2.default.createElement(
  20806. _common.Swatch,
  20807. {
  20808. style: styles.color,
  20809. color: color,
  20810. onClick: onClick,
  20811. onHover: onSwatchHover,
  20812. focusStyle: { boxShadow: '0 0 4px ' + color }
  20813. },
  20814. _react2.default.createElement('div', { style: styles.dot })
  20815. );
  20816. };
  20817. exports.default = CompactColor;
  20818. /***/ }),
  20819. /***/ "../../node_modules/react-color/lib/components/compact/CompactFields.js":
  20820. /*!********************************************************************************************!*\
  20821. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/CompactFields.js ***!
  20822. \********************************************************************************************/
  20823. /*! no static exports found */
  20824. /***/ (function(module, exports, __webpack_require__) {
  20825. "use strict";
  20826. Object.defineProperty(exports, "__esModule", {
  20827. value: true
  20828. });
  20829. exports.CompactFields = undefined;
  20830. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20831. var _react2 = _interopRequireDefault(_react);
  20832. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20833. var _reactcss2 = _interopRequireDefault(_reactcss);
  20834. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20835. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20836. var CompactFields = exports.CompactFields = function CompactFields(_ref) {
  20837. var hex = _ref.hex,
  20838. rgb = _ref.rgb,
  20839. onChange = _ref.onChange;
  20840. var styles = (0, _reactcss2.default)({
  20841. 'default': {
  20842. fields: {
  20843. display: 'flex',
  20844. paddingBottom: '6px',
  20845. paddingRight: '5px',
  20846. position: 'relative'
  20847. },
  20848. active: {
  20849. position: 'absolute',
  20850. top: '6px',
  20851. left: '5px',
  20852. height: '9px',
  20853. width: '9px',
  20854. background: hex
  20855. },
  20856. HEXwrap: {
  20857. flex: '6',
  20858. position: 'relative'
  20859. },
  20860. HEXinput: {
  20861. width: '80%',
  20862. padding: '0px',
  20863. paddingLeft: '20%',
  20864. border: 'none',
  20865. outline: 'none',
  20866. background: 'none',
  20867. fontSize: '12px',
  20868. color: '#333',
  20869. height: '16px'
  20870. },
  20871. HEXlabel: {
  20872. display: 'none'
  20873. },
  20874. RGBwrap: {
  20875. flex: '3',
  20876. position: 'relative'
  20877. },
  20878. RGBinput: {
  20879. width: '70%',
  20880. padding: '0px',
  20881. paddingLeft: '30%',
  20882. border: 'none',
  20883. outline: 'none',
  20884. background: 'none',
  20885. fontSize: '12px',
  20886. color: '#333',
  20887. height: '16px'
  20888. },
  20889. RGBlabel: {
  20890. position: 'absolute',
  20891. top: '3px',
  20892. left: '0px',
  20893. lineHeight: '16px',
  20894. textTransform: 'uppercase',
  20895. fontSize: '12px',
  20896. color: '#999'
  20897. }
  20898. }
  20899. });
  20900. var handleChange = function handleChange(data, e) {
  20901. if (data.r || data.g || data.b) {
  20902. onChange({
  20903. r: data.r || rgb.r,
  20904. g: data.g || rgb.g,
  20905. b: data.b || rgb.b,
  20906. source: 'rgb'
  20907. }, e);
  20908. } else {
  20909. onChange({
  20910. hex: data.hex,
  20911. source: 'hex'
  20912. }, e);
  20913. }
  20914. };
  20915. return _react2.default.createElement(
  20916. 'div',
  20917. { style: styles.fields, className: 'flexbox-fix' },
  20918. _react2.default.createElement('div', { style: styles.active }),
  20919. _react2.default.createElement(_common.EditableInput, {
  20920. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  20921. label: 'hex',
  20922. value: hex,
  20923. onChange: handleChange
  20924. }),
  20925. _react2.default.createElement(_common.EditableInput, {
  20926. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  20927. label: 'r',
  20928. value: rgb.r,
  20929. onChange: handleChange
  20930. }),
  20931. _react2.default.createElement(_common.EditableInput, {
  20932. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  20933. label: 'g',
  20934. value: rgb.g,
  20935. onChange: handleChange
  20936. }),
  20937. _react2.default.createElement(_common.EditableInput, {
  20938. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  20939. label: 'b',
  20940. value: rgb.b,
  20941. onChange: handleChange
  20942. })
  20943. );
  20944. };
  20945. exports.default = CompactFields;
  20946. /***/ }),
  20947. /***/ "../../node_modules/react-color/lib/components/github/Github.js":
  20948. /*!************************************************************************************!*\
  20949. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/github/Github.js ***!
  20950. \************************************************************************************/
  20951. /*! no static exports found */
  20952. /***/ (function(module, exports, __webpack_require__) {
  20953. "use strict";
  20954. Object.defineProperty(exports, "__esModule", {
  20955. value: true
  20956. });
  20957. exports.Github = undefined;
  20958. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  20959. var _react2 = _interopRequireDefault(_react);
  20960. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  20961. var _propTypes2 = _interopRequireDefault(_propTypes);
  20962. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  20963. var _reactcss2 = _interopRequireDefault(_reactcss);
  20964. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  20965. var _map2 = _interopRequireDefault(_map);
  20966. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  20967. var _merge2 = _interopRequireDefault(_merge);
  20968. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  20969. var _GithubSwatch = __webpack_require__(/*! ./GithubSwatch */ "../../node_modules/react-color/lib/components/github/GithubSwatch.js");
  20970. var _GithubSwatch2 = _interopRequireDefault(_GithubSwatch);
  20971. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20972. var Github = exports.Github = function Github(_ref) {
  20973. var width = _ref.width,
  20974. colors = _ref.colors,
  20975. onChange = _ref.onChange,
  20976. onSwatchHover = _ref.onSwatchHover,
  20977. triangle = _ref.triangle,
  20978. _ref$styles = _ref.styles,
  20979. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  20980. _ref$className = _ref.className,
  20981. className = _ref$className === undefined ? '' : _ref$className;
  20982. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  20983. 'default': {
  20984. card: {
  20985. width: width,
  20986. background: '#fff',
  20987. border: '1px solid rgba(0,0,0,0.2)',
  20988. boxShadow: '0 3px 12px rgba(0,0,0,0.15)',
  20989. borderRadius: '4px',
  20990. position: 'relative',
  20991. padding: '5px',
  20992. display: 'flex',
  20993. flexWrap: 'wrap'
  20994. },
  20995. triangle: {
  20996. position: 'absolute',
  20997. border: '7px solid transparent',
  20998. borderBottomColor: '#fff'
  20999. },
  21000. triangleShadow: {
  21001. position: 'absolute',
  21002. border: '8px solid transparent',
  21003. borderBottomColor: 'rgba(0,0,0,0.15)'
  21004. }
  21005. },
  21006. 'hide-triangle': {
  21007. triangle: {
  21008. display: 'none'
  21009. },
  21010. triangleShadow: {
  21011. display: 'none'
  21012. }
  21013. },
  21014. 'top-left-triangle': {
  21015. triangle: {
  21016. top: '-14px',
  21017. left: '10px'
  21018. },
  21019. triangleShadow: {
  21020. top: '-16px',
  21021. left: '9px'
  21022. }
  21023. },
  21024. 'top-right-triangle': {
  21025. triangle: {
  21026. top: '-14px',
  21027. right: '10px'
  21028. },
  21029. triangleShadow: {
  21030. top: '-16px',
  21031. right: '9px'
  21032. }
  21033. },
  21034. 'bottom-left-triangle': {
  21035. triangle: {
  21036. top: '35px',
  21037. left: '10px',
  21038. transform: 'rotate(180deg)'
  21039. },
  21040. triangleShadow: {
  21041. top: '37px',
  21042. left: '9px',
  21043. transform: 'rotate(180deg)'
  21044. }
  21045. },
  21046. 'bottom-right-triangle': {
  21047. triangle: {
  21048. top: '35px',
  21049. right: '10px',
  21050. transform: 'rotate(180deg)'
  21051. },
  21052. triangleShadow: {
  21053. top: '37px',
  21054. right: '9px',
  21055. transform: 'rotate(180deg)'
  21056. }
  21057. }
  21058. }, passedStyles), {
  21059. 'hide-triangle': triangle === 'hide',
  21060. 'top-left-triangle': triangle === 'top-left',
  21061. 'top-right-triangle': triangle === 'top-right',
  21062. 'bottom-left-triangle': triangle === 'bottom-left',
  21063. 'bottom-right-triangle': triangle === 'bottom-right'
  21064. });
  21065. var handleChange = function handleChange(hex, e) {
  21066. return onChange({ hex: hex, source: 'hex' }, e);
  21067. };
  21068. return _react2.default.createElement(
  21069. 'div',
  21070. { style: styles.card, className: 'github-picker ' + className },
  21071. _react2.default.createElement('div', { style: styles.triangleShadow }),
  21072. _react2.default.createElement('div', { style: styles.triangle }),
  21073. (0, _map2.default)(colors, function (c) {
  21074. return _react2.default.createElement(_GithubSwatch2.default, {
  21075. color: c,
  21076. key: c,
  21077. onClick: handleChange,
  21078. onSwatchHover: onSwatchHover
  21079. });
  21080. })
  21081. );
  21082. };
  21083. Github.propTypes = {
  21084. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  21085. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  21086. triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right', 'bottom-left', 'bottom-right']),
  21087. styles: _propTypes2.default.object
  21088. };
  21089. Github.defaultProps = {
  21090. width: 200,
  21091. colors: ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'],
  21092. triangle: 'top-left',
  21093. styles: {}
  21094. };
  21095. exports.default = (0, _common.ColorWrap)(Github);
  21096. /***/ }),
  21097. /***/ "../../node_modules/react-color/lib/components/github/GithubSwatch.js":
  21098. /*!******************************************************************************************!*\
  21099. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/github/GithubSwatch.js ***!
  21100. \******************************************************************************************/
  21101. /*! no static exports found */
  21102. /***/ (function(module, exports, __webpack_require__) {
  21103. "use strict";
  21104. Object.defineProperty(exports, "__esModule", {
  21105. value: true
  21106. });
  21107. exports.GithubSwatch = undefined;
  21108. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21109. var _react2 = _interopRequireDefault(_react);
  21110. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21111. var _reactcss2 = _interopRequireDefault(_reactcss);
  21112. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21113. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21114. var GithubSwatch = exports.GithubSwatch = function GithubSwatch(_ref) {
  21115. var hover = _ref.hover,
  21116. color = _ref.color,
  21117. onClick = _ref.onClick,
  21118. onSwatchHover = _ref.onSwatchHover;
  21119. var hoverSwatch = {
  21120. position: 'relative',
  21121. zIndex: '2',
  21122. outline: '2px solid #fff',
  21123. boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)'
  21124. };
  21125. var styles = (0, _reactcss2.default)({
  21126. 'default': {
  21127. swatch: {
  21128. width: '25px',
  21129. height: '25px',
  21130. fontSize: '0'
  21131. }
  21132. },
  21133. 'hover': {
  21134. swatch: hoverSwatch
  21135. }
  21136. }, { hover: hover });
  21137. return _react2.default.createElement(
  21138. 'div',
  21139. { style: styles.swatch },
  21140. _react2.default.createElement(_common.Swatch, {
  21141. color: color,
  21142. onClick: onClick,
  21143. onHover: onSwatchHover,
  21144. focusStyle: hoverSwatch
  21145. })
  21146. );
  21147. };
  21148. exports.default = (0, _reactcss.handleHover)(GithubSwatch);
  21149. /***/ }),
  21150. /***/ "../../node_modules/react-color/lib/components/hue/Hue.js":
  21151. /*!******************************************************************************!*\
  21152. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/hue/Hue.js ***!
  21153. \******************************************************************************/
  21154. /*! no static exports found */
  21155. /***/ (function(module, exports, __webpack_require__) {
  21156. "use strict";
  21157. Object.defineProperty(exports, "__esModule", {
  21158. value: true
  21159. });
  21160. exports.HuePicker = undefined;
  21161. 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; };
  21162. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21163. var _react2 = _interopRequireDefault(_react);
  21164. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  21165. var _propTypes2 = _interopRequireDefault(_propTypes);
  21166. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21167. var _reactcss2 = _interopRequireDefault(_reactcss);
  21168. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  21169. var _merge2 = _interopRequireDefault(_merge);
  21170. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21171. var _HuePointer = __webpack_require__(/*! ./HuePointer */ "../../node_modules/react-color/lib/components/hue/HuePointer.js");
  21172. var _HuePointer2 = _interopRequireDefault(_HuePointer);
  21173. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21174. var HuePicker = exports.HuePicker = function HuePicker(_ref) {
  21175. var width = _ref.width,
  21176. height = _ref.height,
  21177. onChange = _ref.onChange,
  21178. hsl = _ref.hsl,
  21179. direction = _ref.direction,
  21180. pointer = _ref.pointer,
  21181. _ref$styles = _ref.styles,
  21182. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  21183. _ref$className = _ref.className,
  21184. className = _ref$className === undefined ? '' : _ref$className;
  21185. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  21186. 'default': {
  21187. picker: {
  21188. position: 'relative',
  21189. width: width,
  21190. height: height
  21191. },
  21192. hue: {
  21193. radius: '2px'
  21194. }
  21195. }
  21196. }, passedStyles));
  21197. // Overwrite to provide pure hue color
  21198. var handleChange = function handleChange(data) {
  21199. return onChange({ a: 1, h: data.h, l: 0.5, s: 1 });
  21200. };
  21201. return _react2.default.createElement(
  21202. 'div',
  21203. { style: styles.picker, className: 'hue-picker ' + className },
  21204. _react2.default.createElement(_common.Hue, _extends({}, styles.hue, {
  21205. hsl: hsl,
  21206. pointer: pointer,
  21207. onChange: handleChange,
  21208. direction: direction
  21209. }))
  21210. );
  21211. };
  21212. HuePicker.propTypes = {
  21213. styles: _propTypes2.default.object
  21214. };
  21215. HuePicker.defaultProps = {
  21216. width: '316px',
  21217. height: '16px',
  21218. direction: 'horizontal',
  21219. pointer: _HuePointer2.default,
  21220. styles: {}
  21221. };
  21222. exports.default = (0, _common.ColorWrap)(HuePicker);
  21223. /***/ }),
  21224. /***/ "../../node_modules/react-color/lib/components/hue/HuePointer.js":
  21225. /*!*************************************************************************************!*\
  21226. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/hue/HuePointer.js ***!
  21227. \*************************************************************************************/
  21228. /*! no static exports found */
  21229. /***/ (function(module, exports, __webpack_require__) {
  21230. "use strict";
  21231. Object.defineProperty(exports, "__esModule", {
  21232. value: true
  21233. });
  21234. exports.SliderPointer = undefined;
  21235. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21236. var _react2 = _interopRequireDefault(_react);
  21237. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21238. var _reactcss2 = _interopRequireDefault(_reactcss);
  21239. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21240. var SliderPointer = exports.SliderPointer = function SliderPointer(_ref) {
  21241. var direction = _ref.direction;
  21242. var styles = (0, _reactcss2.default)({
  21243. 'default': {
  21244. picker: {
  21245. width: '18px',
  21246. height: '18px',
  21247. borderRadius: '50%',
  21248. transform: 'translate(-9px, -1px)',
  21249. backgroundColor: 'rgb(248, 248, 248)',
  21250. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  21251. }
  21252. },
  21253. 'vertical': {
  21254. picker: {
  21255. transform: 'translate(-3px, -9px)'
  21256. }
  21257. }
  21258. }, { vertical: direction === 'vertical' });
  21259. return _react2.default.createElement('div', { style: styles.picker });
  21260. };
  21261. exports.default = SliderPointer;
  21262. /***/ }),
  21263. /***/ "../../node_modules/react-color/lib/components/material/Material.js":
  21264. /*!****************************************************************************************!*\
  21265. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/material/Material.js ***!
  21266. \****************************************************************************************/
  21267. /*! no static exports found */
  21268. /***/ (function(module, exports, __webpack_require__) {
  21269. "use strict";
  21270. Object.defineProperty(exports, "__esModule", {
  21271. value: true
  21272. });
  21273. exports.Material = undefined;
  21274. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21275. var _react2 = _interopRequireDefault(_react);
  21276. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21277. var _reactcss2 = _interopRequireDefault(_reactcss);
  21278. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  21279. var _merge2 = _interopRequireDefault(_merge);
  21280. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  21281. var _color2 = _interopRequireDefault(_color);
  21282. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21283. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21284. var Material = exports.Material = function Material(_ref) {
  21285. var onChange = _ref.onChange,
  21286. hex = _ref.hex,
  21287. rgb = _ref.rgb,
  21288. _ref$styles = _ref.styles,
  21289. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  21290. _ref$className = _ref.className,
  21291. className = _ref$className === undefined ? '' : _ref$className;
  21292. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  21293. 'default': {
  21294. material: {
  21295. width: '98px',
  21296. height: '98px',
  21297. padding: '16px',
  21298. fontFamily: 'Roboto'
  21299. },
  21300. HEXwrap: {
  21301. position: 'relative'
  21302. },
  21303. HEXinput: {
  21304. width: '100%',
  21305. marginTop: '12px',
  21306. fontSize: '15px',
  21307. color: '#333',
  21308. padding: '0px',
  21309. border: '0px',
  21310. borderBottom: '2px solid ' + hex,
  21311. outline: 'none',
  21312. height: '30px'
  21313. },
  21314. HEXlabel: {
  21315. position: 'absolute',
  21316. top: '0px',
  21317. left: '0px',
  21318. fontSize: '11px',
  21319. color: '#999999',
  21320. textTransform: 'capitalize'
  21321. },
  21322. Hex: {
  21323. style: {}
  21324. },
  21325. RGBwrap: {
  21326. position: 'relative'
  21327. },
  21328. RGBinput: {
  21329. width: '100%',
  21330. marginTop: '12px',
  21331. fontSize: '15px',
  21332. color: '#333',
  21333. padding: '0px',
  21334. border: '0px',
  21335. borderBottom: '1px solid #eee',
  21336. outline: 'none',
  21337. height: '30px'
  21338. },
  21339. RGBlabel: {
  21340. position: 'absolute',
  21341. top: '0px',
  21342. left: '0px',
  21343. fontSize: '11px',
  21344. color: '#999999',
  21345. textTransform: 'capitalize'
  21346. },
  21347. split: {
  21348. display: 'flex',
  21349. marginRight: '-10px',
  21350. paddingTop: '11px'
  21351. },
  21352. third: {
  21353. flex: '1',
  21354. paddingRight: '10px'
  21355. }
  21356. }
  21357. }, passedStyles));
  21358. var handleChange = function handleChange(data, e) {
  21359. if (data.hex) {
  21360. _color2.default.isValidHex(data.hex) && onChange({
  21361. hex: data.hex,
  21362. source: 'hex'
  21363. }, e);
  21364. } else if (data.r || data.g || data.b) {
  21365. onChange({
  21366. r: data.r || rgb.r,
  21367. g: data.g || rgb.g,
  21368. b: data.b || rgb.b,
  21369. source: 'rgb'
  21370. }, e);
  21371. }
  21372. };
  21373. return _react2.default.createElement(
  21374. _common.Raised,
  21375. { styles: passedStyles },
  21376. _react2.default.createElement(
  21377. 'div',
  21378. { style: styles.material, className: 'material-picker ' + className },
  21379. _react2.default.createElement(_common.EditableInput, {
  21380. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  21381. label: 'hex',
  21382. value: hex,
  21383. onChange: handleChange
  21384. }),
  21385. _react2.default.createElement(
  21386. 'div',
  21387. { style: styles.split, className: 'flexbox-fix' },
  21388. _react2.default.createElement(
  21389. 'div',
  21390. { style: styles.third },
  21391. _react2.default.createElement(_common.EditableInput, {
  21392. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21393. label: 'r', value: rgb.r,
  21394. onChange: handleChange
  21395. })
  21396. ),
  21397. _react2.default.createElement(
  21398. 'div',
  21399. { style: styles.third },
  21400. _react2.default.createElement(_common.EditableInput, {
  21401. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21402. label: 'g',
  21403. value: rgb.g,
  21404. onChange: handleChange
  21405. })
  21406. ),
  21407. _react2.default.createElement(
  21408. 'div',
  21409. { style: styles.third },
  21410. _react2.default.createElement(_common.EditableInput, {
  21411. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21412. label: 'b',
  21413. value: rgb.b,
  21414. onChange: handleChange
  21415. })
  21416. )
  21417. )
  21418. )
  21419. );
  21420. };
  21421. exports.default = (0, _common.ColorWrap)(Material);
  21422. /***/ }),
  21423. /***/ "../../node_modules/react-color/lib/components/photoshop/Photoshop.js":
  21424. /*!******************************************************************************************!*\
  21425. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/Photoshop.js ***!
  21426. \******************************************************************************************/
  21427. /*! no static exports found */
  21428. /***/ (function(module, exports, __webpack_require__) {
  21429. "use strict";
  21430. Object.defineProperty(exports, "__esModule", {
  21431. value: true
  21432. });
  21433. exports.Photoshop = undefined;
  21434. 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; }; }();
  21435. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21436. var _react2 = _interopRequireDefault(_react);
  21437. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  21438. var _propTypes2 = _interopRequireDefault(_propTypes);
  21439. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21440. var _reactcss2 = _interopRequireDefault(_reactcss);
  21441. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  21442. var _merge2 = _interopRequireDefault(_merge);
  21443. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21444. var _PhotoshopFields = __webpack_require__(/*! ./PhotoshopFields */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopFields.js");
  21445. var _PhotoshopFields2 = _interopRequireDefault(_PhotoshopFields);
  21446. var _PhotoshopPointerCircle = __webpack_require__(/*! ./PhotoshopPointerCircle */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js");
  21447. var _PhotoshopPointerCircle2 = _interopRequireDefault(_PhotoshopPointerCircle);
  21448. var _PhotoshopPointer = __webpack_require__(/*! ./PhotoshopPointer */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js");
  21449. var _PhotoshopPointer2 = _interopRequireDefault(_PhotoshopPointer);
  21450. var _PhotoshopButton = __webpack_require__(/*! ./PhotoshopButton */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopButton.js");
  21451. var _PhotoshopButton2 = _interopRequireDefault(_PhotoshopButton);
  21452. var _PhotoshopPreviews = __webpack_require__(/*! ./PhotoshopPreviews */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js");
  21453. var _PhotoshopPreviews2 = _interopRequireDefault(_PhotoshopPreviews);
  21454. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21455. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  21456. 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; }
  21457. 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; }
  21458. var Photoshop = exports.Photoshop = function (_React$Component) {
  21459. _inherits(Photoshop, _React$Component);
  21460. function Photoshop(props) {
  21461. _classCallCheck(this, Photoshop);
  21462. var _this = _possibleConstructorReturn(this, (Photoshop.__proto__ || Object.getPrototypeOf(Photoshop)).call(this));
  21463. _this.state = {
  21464. currentColor: props.hex
  21465. };
  21466. return _this;
  21467. }
  21468. _createClass(Photoshop, [{
  21469. key: 'render',
  21470. value: function render() {
  21471. var _props = this.props,
  21472. _props$styles = _props.styles,
  21473. passedStyles = _props$styles === undefined ? {} : _props$styles,
  21474. _props$className = _props.className,
  21475. className = _props$className === undefined ? '' : _props$className;
  21476. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  21477. 'default': {
  21478. picker: {
  21479. background: '#DCDCDC',
  21480. borderRadius: '4px',
  21481. boxShadow: '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)',
  21482. boxSizing: 'initial',
  21483. width: '513px'
  21484. },
  21485. head: {
  21486. backgroundImage: 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)',
  21487. borderBottom: '1px solid #B1B1B1',
  21488. boxShadow: 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)',
  21489. height: '23px',
  21490. lineHeight: '24px',
  21491. borderRadius: '4px 4px 0 0',
  21492. fontSize: '13px',
  21493. color: '#4D4D4D',
  21494. textAlign: 'center'
  21495. },
  21496. body: {
  21497. padding: '15px 15px 0',
  21498. display: 'flex'
  21499. },
  21500. saturation: {
  21501. width: '256px',
  21502. height: '256px',
  21503. position: 'relative',
  21504. border: '2px solid #B3B3B3',
  21505. borderBottom: '2px solid #F0F0F0',
  21506. overflow: 'hidden'
  21507. },
  21508. hue: {
  21509. position: 'relative',
  21510. height: '256px',
  21511. width: '19px',
  21512. marginLeft: '10px',
  21513. border: '2px solid #B3B3B3',
  21514. borderBottom: '2px solid #F0F0F0'
  21515. },
  21516. controls: {
  21517. width: '180px',
  21518. marginLeft: '10px'
  21519. },
  21520. top: {
  21521. display: 'flex'
  21522. },
  21523. previews: {
  21524. width: '60px'
  21525. },
  21526. actions: {
  21527. flex: '1',
  21528. marginLeft: '20px'
  21529. }
  21530. }
  21531. }, passedStyles));
  21532. return _react2.default.createElement(
  21533. 'div',
  21534. { style: styles.picker, className: 'photoshop-picker ' + className },
  21535. _react2.default.createElement(
  21536. 'div',
  21537. { style: styles.head },
  21538. this.props.header
  21539. ),
  21540. _react2.default.createElement(
  21541. 'div',
  21542. { style: styles.body, className: 'flexbox-fix' },
  21543. _react2.default.createElement(
  21544. 'div',
  21545. { style: styles.saturation },
  21546. _react2.default.createElement(_common.Saturation, {
  21547. hsl: this.props.hsl,
  21548. hsv: this.props.hsv,
  21549. pointer: _PhotoshopPointerCircle2.default,
  21550. onChange: this.props.onChange
  21551. })
  21552. ),
  21553. _react2.default.createElement(
  21554. 'div',
  21555. { style: styles.hue },
  21556. _react2.default.createElement(_common.Hue, {
  21557. direction: 'vertical',
  21558. hsl: this.props.hsl,
  21559. pointer: _PhotoshopPointer2.default,
  21560. onChange: this.props.onChange
  21561. })
  21562. ),
  21563. _react2.default.createElement(
  21564. 'div',
  21565. { style: styles.controls },
  21566. _react2.default.createElement(
  21567. 'div',
  21568. { style: styles.top, className: 'flexbox-fix' },
  21569. _react2.default.createElement(
  21570. 'div',
  21571. { style: styles.previews },
  21572. _react2.default.createElement(_PhotoshopPreviews2.default, {
  21573. rgb: this.props.rgb,
  21574. currentColor: this.state.currentColor
  21575. })
  21576. ),
  21577. _react2.default.createElement(
  21578. 'div',
  21579. { style: styles.actions },
  21580. _react2.default.createElement(_PhotoshopButton2.default, { label: 'OK', onClick: this.props.onAccept, active: true }),
  21581. _react2.default.createElement(_PhotoshopButton2.default, { label: 'Cancel', onClick: this.props.onCancel }),
  21582. _react2.default.createElement(_PhotoshopFields2.default, {
  21583. onChange: this.props.onChange,
  21584. rgb: this.props.rgb,
  21585. hsv: this.props.hsv,
  21586. hex: this.props.hex
  21587. })
  21588. )
  21589. )
  21590. )
  21591. )
  21592. );
  21593. }
  21594. }]);
  21595. return Photoshop;
  21596. }(_react2.default.Component);
  21597. Photoshop.propTypes = {
  21598. header: _propTypes2.default.string,
  21599. styles: _propTypes2.default.object
  21600. };
  21601. Photoshop.defaultProps = {
  21602. header: 'Color Picker',
  21603. styles: {}
  21604. };
  21605. exports.default = (0, _common.ColorWrap)(Photoshop);
  21606. /***/ }),
  21607. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopButton.js":
  21608. /*!************************************************************************************************!*\
  21609. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopButton.js ***!
  21610. \************************************************************************************************/
  21611. /*! no static exports found */
  21612. /***/ (function(module, exports, __webpack_require__) {
  21613. "use strict";
  21614. Object.defineProperty(exports, "__esModule", {
  21615. value: true
  21616. });
  21617. exports.PhotoshopButton = undefined;
  21618. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21619. var _react2 = _interopRequireDefault(_react);
  21620. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21621. var _reactcss2 = _interopRequireDefault(_reactcss);
  21622. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21623. var PhotoshopButton = exports.PhotoshopButton = function PhotoshopButton(_ref) {
  21624. var onClick = _ref.onClick,
  21625. label = _ref.label,
  21626. children = _ref.children,
  21627. active = _ref.active;
  21628. var styles = (0, _reactcss2.default)({
  21629. 'default': {
  21630. button: {
  21631. backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)',
  21632. border: '1px solid #878787',
  21633. borderRadius: '2px',
  21634. height: '20px',
  21635. boxShadow: '0 1px 0 0 #EAEAEA',
  21636. fontSize: '14px',
  21637. color: '#000',
  21638. lineHeight: '20px',
  21639. textAlign: 'center',
  21640. marginBottom: '10px',
  21641. cursor: 'pointer'
  21642. }
  21643. },
  21644. 'active': {
  21645. button: {
  21646. boxShadow: '0 0 0 1px #878787'
  21647. }
  21648. }
  21649. }, { active: active });
  21650. return _react2.default.createElement(
  21651. 'div',
  21652. { style: styles.button, onClick: onClick },
  21653. label || children
  21654. );
  21655. };
  21656. exports.default = PhotoshopButton;
  21657. /***/ }),
  21658. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopFields.js":
  21659. /*!************************************************************************************************!*\
  21660. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopFields.js ***!
  21661. \************************************************************************************************/
  21662. /*! no static exports found */
  21663. /***/ (function(module, exports, __webpack_require__) {
  21664. "use strict";
  21665. Object.defineProperty(exports, "__esModule", {
  21666. value: true
  21667. });
  21668. exports.PhotoshopPicker = undefined;
  21669. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21670. var _react2 = _interopRequireDefault(_react);
  21671. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21672. var _reactcss2 = _interopRequireDefault(_reactcss);
  21673. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  21674. var _color2 = _interopRequireDefault(_color);
  21675. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  21676. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21677. var PhotoshopPicker = exports.PhotoshopPicker = function PhotoshopPicker(_ref) {
  21678. var onChange = _ref.onChange,
  21679. rgb = _ref.rgb,
  21680. hsv = _ref.hsv,
  21681. hex = _ref.hex;
  21682. var styles = (0, _reactcss2.default)({
  21683. 'default': {
  21684. fields: {
  21685. paddingTop: '5px',
  21686. paddingBottom: '9px',
  21687. width: '80px',
  21688. position: 'relative'
  21689. },
  21690. divider: {
  21691. height: '5px'
  21692. },
  21693. RGBwrap: {
  21694. position: 'relative'
  21695. },
  21696. RGBinput: {
  21697. marginLeft: '40%',
  21698. width: '40%',
  21699. height: '18px',
  21700. border: '1px solid #888888',
  21701. boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
  21702. marginBottom: '5px',
  21703. fontSize: '13px',
  21704. paddingLeft: '3px',
  21705. marginRight: '10px'
  21706. },
  21707. RGBlabel: {
  21708. left: '0px',
  21709. width: '34px',
  21710. textTransform: 'uppercase',
  21711. fontSize: '13px',
  21712. height: '18px',
  21713. lineHeight: '22px',
  21714. position: 'absolute'
  21715. },
  21716. HEXwrap: {
  21717. position: 'relative'
  21718. },
  21719. HEXinput: {
  21720. marginLeft: '20%',
  21721. width: '80%',
  21722. height: '18px',
  21723. border: '1px solid #888888',
  21724. boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
  21725. marginBottom: '6px',
  21726. fontSize: '13px',
  21727. paddingLeft: '3px'
  21728. },
  21729. HEXlabel: {
  21730. position: 'absolute',
  21731. top: '0px',
  21732. left: '0px',
  21733. width: '14px',
  21734. textTransform: 'uppercase',
  21735. fontSize: '13px',
  21736. height: '18px',
  21737. lineHeight: '22px'
  21738. },
  21739. fieldSymbols: {
  21740. position: 'absolute',
  21741. top: '5px',
  21742. right: '-7px',
  21743. fontSize: '13px'
  21744. },
  21745. symbol: {
  21746. height: '20px',
  21747. lineHeight: '22px',
  21748. paddingBottom: '7px'
  21749. }
  21750. }
  21751. });
  21752. var handleChange = function handleChange(data, e) {
  21753. if (data['#']) {
  21754. _color2.default.isValidHex(data['#']) && onChange({
  21755. hex: data['#'],
  21756. source: 'hex'
  21757. }, e);
  21758. } else if (data.r || data.g || data.b) {
  21759. onChange({
  21760. r: data.r || rgb.r,
  21761. g: data.g || rgb.g,
  21762. b: data.b || rgb.b,
  21763. source: 'rgb'
  21764. }, e);
  21765. } else if (data.h || data.s || data.v) {
  21766. onChange({
  21767. h: data.h || hsv.h,
  21768. s: data.s || hsv.s,
  21769. v: data.v || hsv.v,
  21770. source: 'hsv'
  21771. }, e);
  21772. }
  21773. };
  21774. return _react2.default.createElement(
  21775. 'div',
  21776. { style: styles.fields },
  21777. _react2.default.createElement(_common.EditableInput, {
  21778. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21779. label: 'h',
  21780. value: Math.round(hsv.h),
  21781. onChange: handleChange
  21782. }),
  21783. _react2.default.createElement(_common.EditableInput, {
  21784. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21785. label: 's',
  21786. value: Math.round(hsv.s * 100),
  21787. onChange: handleChange
  21788. }),
  21789. _react2.default.createElement(_common.EditableInput, {
  21790. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21791. label: 'v',
  21792. value: Math.round(hsv.v * 100),
  21793. onChange: handleChange
  21794. }),
  21795. _react2.default.createElement('div', { style: styles.divider }),
  21796. _react2.default.createElement(_common.EditableInput, {
  21797. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21798. label: 'r',
  21799. value: rgb.r,
  21800. onChange: handleChange
  21801. }),
  21802. _react2.default.createElement(_common.EditableInput, {
  21803. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21804. label: 'g',
  21805. value: rgb.g,
  21806. onChange: handleChange
  21807. }),
  21808. _react2.default.createElement(_common.EditableInput, {
  21809. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  21810. label: 'b',
  21811. value: rgb.b,
  21812. onChange: handleChange
  21813. }),
  21814. _react2.default.createElement('div', { style: styles.divider }),
  21815. _react2.default.createElement(_common.EditableInput, {
  21816. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  21817. label: '#',
  21818. value: hex.replace('#', ''),
  21819. onChange: handleChange
  21820. }),
  21821. _react2.default.createElement(
  21822. 'div',
  21823. { style: styles.fieldSymbols },
  21824. _react2.default.createElement(
  21825. 'div',
  21826. { style: styles.symbol },
  21827. '\xB0'
  21828. ),
  21829. _react2.default.createElement(
  21830. 'div',
  21831. { style: styles.symbol },
  21832. '%'
  21833. ),
  21834. _react2.default.createElement(
  21835. 'div',
  21836. { style: styles.symbol },
  21837. '%'
  21838. )
  21839. )
  21840. );
  21841. };
  21842. exports.default = PhotoshopPicker;
  21843. /***/ }),
  21844. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js":
  21845. /*!*************************************************************************************************!*\
  21846. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js ***!
  21847. \*************************************************************************************************/
  21848. /*! no static exports found */
  21849. /***/ (function(module, exports, __webpack_require__) {
  21850. "use strict";
  21851. Object.defineProperty(exports, "__esModule", {
  21852. value: true
  21853. });
  21854. exports.PhotoshopPointerCircle = undefined;
  21855. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21856. var _react2 = _interopRequireDefault(_react);
  21857. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21858. var _reactcss2 = _interopRequireDefault(_reactcss);
  21859. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21860. var PhotoshopPointerCircle = exports.PhotoshopPointerCircle = function PhotoshopPointerCircle() {
  21861. var styles = (0, _reactcss2.default)({
  21862. 'default': {
  21863. triangle: {
  21864. width: 0,
  21865. height: 0,
  21866. borderStyle: 'solid',
  21867. borderWidth: '4px 0 4px 6px',
  21868. borderColor: 'transparent transparent transparent #fff',
  21869. position: 'absolute',
  21870. top: '1px',
  21871. left: '1px'
  21872. },
  21873. triangleBorder: {
  21874. width: 0,
  21875. height: 0,
  21876. borderStyle: 'solid',
  21877. borderWidth: '5px 0 5px 8px',
  21878. borderColor: 'transparent transparent transparent #555'
  21879. },
  21880. left: {
  21881. Extend: 'triangleBorder',
  21882. transform: 'translate(-13px, -4px)'
  21883. },
  21884. leftInside: {
  21885. Extend: 'triangle',
  21886. transform: 'translate(-8px, -5px)'
  21887. },
  21888. right: {
  21889. Extend: 'triangleBorder',
  21890. transform: 'translate(20px, -14px) rotate(180deg)'
  21891. },
  21892. rightInside: {
  21893. Extend: 'triangle',
  21894. transform: 'translate(-8px, -5px)'
  21895. }
  21896. }
  21897. });
  21898. return _react2.default.createElement(
  21899. 'div',
  21900. { style: styles.pointer },
  21901. _react2.default.createElement(
  21902. 'div',
  21903. { style: styles.left },
  21904. _react2.default.createElement('div', { style: styles.leftInside })
  21905. ),
  21906. _react2.default.createElement(
  21907. 'div',
  21908. { style: styles.right },
  21909. _react2.default.createElement('div', { style: styles.rightInside })
  21910. )
  21911. );
  21912. };
  21913. exports.default = PhotoshopPointerCircle;
  21914. /***/ }),
  21915. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js":
  21916. /*!*******************************************************************************************************!*\
  21917. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js ***!
  21918. \*******************************************************************************************************/
  21919. /*! no static exports found */
  21920. /***/ (function(module, exports, __webpack_require__) {
  21921. "use strict";
  21922. Object.defineProperty(exports, "__esModule", {
  21923. value: true
  21924. });
  21925. exports.PhotoshopPointerCircle = undefined;
  21926. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21927. var _react2 = _interopRequireDefault(_react);
  21928. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21929. var _reactcss2 = _interopRequireDefault(_reactcss);
  21930. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21931. var PhotoshopPointerCircle = exports.PhotoshopPointerCircle = function PhotoshopPointerCircle(_ref) {
  21932. var hsl = _ref.hsl;
  21933. var styles = (0, _reactcss2.default)({
  21934. 'default': {
  21935. picker: {
  21936. width: '12px',
  21937. height: '12px',
  21938. borderRadius: '6px',
  21939. boxShadow: 'inset 0 0 0 1px #fff',
  21940. transform: 'translate(-6px, -6px)'
  21941. }
  21942. },
  21943. 'black-outline': {
  21944. picker: {
  21945. boxShadow: 'inset 0 0 0 1px #000'
  21946. }
  21947. }
  21948. }, { 'black-outline': hsl.l > 0.5 });
  21949. return _react2.default.createElement('div', { style: styles.picker });
  21950. };
  21951. exports.default = PhotoshopPointerCircle;
  21952. /***/ }),
  21953. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js":
  21954. /*!**************************************************************************************************!*\
  21955. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js ***!
  21956. \**************************************************************************************************/
  21957. /*! no static exports found */
  21958. /***/ (function(module, exports, __webpack_require__) {
  21959. "use strict";
  21960. Object.defineProperty(exports, "__esModule", {
  21961. value: true
  21962. });
  21963. exports.PhotoshopPreviews = undefined;
  21964. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21965. var _react2 = _interopRequireDefault(_react);
  21966. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  21967. var _reactcss2 = _interopRequireDefault(_reactcss);
  21968. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21969. var PhotoshopPreviews = exports.PhotoshopPreviews = function PhotoshopPreviews(_ref) {
  21970. var rgb = _ref.rgb,
  21971. currentColor = _ref.currentColor;
  21972. var styles = (0, _reactcss2.default)({
  21973. 'default': {
  21974. swatches: {
  21975. border: '1px solid #B3B3B3',
  21976. borderBottom: '1px solid #F0F0F0',
  21977. marginBottom: '2px',
  21978. marginTop: '1px'
  21979. },
  21980. new: {
  21981. height: '34px',
  21982. background: 'rgb(' + rgb.r + ',' + rgb.g + ', ' + rgb.b + ')',
  21983. boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000'
  21984. },
  21985. current: {
  21986. height: '34px',
  21987. background: currentColor,
  21988. boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000'
  21989. },
  21990. label: {
  21991. fontSize: '14px',
  21992. color: '#000',
  21993. textAlign: 'center'
  21994. }
  21995. }
  21996. });
  21997. return _react2.default.createElement(
  21998. 'div',
  21999. null,
  22000. _react2.default.createElement(
  22001. 'div',
  22002. { style: styles.label },
  22003. 'new'
  22004. ),
  22005. _react2.default.createElement(
  22006. 'div',
  22007. { style: styles.swatches },
  22008. _react2.default.createElement('div', { style: styles.new }),
  22009. _react2.default.createElement('div', { style: styles.current })
  22010. ),
  22011. _react2.default.createElement(
  22012. 'div',
  22013. { style: styles.label },
  22014. 'current'
  22015. )
  22016. );
  22017. };
  22018. exports.default = PhotoshopPreviews;
  22019. /***/ }),
  22020. /***/ "../../node_modules/react-color/lib/components/sketch/Sketch.js":
  22021. /*!************************************************************************************!*\
  22022. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/Sketch.js ***!
  22023. \************************************************************************************/
  22024. /*! no static exports found */
  22025. /***/ (function(module, exports, __webpack_require__) {
  22026. "use strict";
  22027. Object.defineProperty(exports, "__esModule", {
  22028. value: true
  22029. });
  22030. exports.Sketch = undefined;
  22031. 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; };
  22032. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22033. var _react2 = _interopRequireDefault(_react);
  22034. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22035. var _propTypes2 = _interopRequireDefault(_propTypes);
  22036. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22037. var _reactcss2 = _interopRequireDefault(_reactcss);
  22038. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22039. var _merge2 = _interopRequireDefault(_merge);
  22040. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22041. var _SketchFields = __webpack_require__(/*! ./SketchFields */ "../../node_modules/react-color/lib/components/sketch/SketchFields.js");
  22042. var _SketchFields2 = _interopRequireDefault(_SketchFields);
  22043. var _SketchPresetColors = __webpack_require__(/*! ./SketchPresetColors */ "../../node_modules/react-color/lib/components/sketch/SketchPresetColors.js");
  22044. var _SketchPresetColors2 = _interopRequireDefault(_SketchPresetColors);
  22045. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22046. var Sketch = exports.Sketch = function Sketch(_ref) {
  22047. var width = _ref.width,
  22048. rgb = _ref.rgb,
  22049. hex = _ref.hex,
  22050. hsv = _ref.hsv,
  22051. hsl = _ref.hsl,
  22052. onChange = _ref.onChange,
  22053. onSwatchHover = _ref.onSwatchHover,
  22054. disableAlpha = _ref.disableAlpha,
  22055. presetColors = _ref.presetColors,
  22056. renderers = _ref.renderers,
  22057. _ref$styles = _ref.styles,
  22058. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  22059. _ref$className = _ref.className,
  22060. className = _ref$className === undefined ? '' : _ref$className;
  22061. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  22062. 'default': _extends({
  22063. picker: {
  22064. width: width,
  22065. padding: '10px 10px 0',
  22066. boxSizing: 'initial',
  22067. background: '#fff',
  22068. borderRadius: '4px',
  22069. boxShadow: '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)'
  22070. },
  22071. saturation: {
  22072. width: '100%',
  22073. paddingBottom: '75%',
  22074. position: 'relative',
  22075. overflow: 'hidden'
  22076. },
  22077. Saturation: {
  22078. radius: '3px',
  22079. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  22080. },
  22081. controls: {
  22082. display: 'flex'
  22083. },
  22084. sliders: {
  22085. padding: '4px 0',
  22086. flex: '1'
  22087. },
  22088. color: {
  22089. width: '24px',
  22090. height: '24px',
  22091. position: 'relative',
  22092. marginTop: '4px',
  22093. marginLeft: '4px',
  22094. borderRadius: '3px'
  22095. },
  22096. activeColor: {
  22097. absolute: '0px 0px 0px 0px',
  22098. borderRadius: '2px',
  22099. background: 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')',
  22100. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  22101. },
  22102. hue: {
  22103. position: 'relative',
  22104. height: '10px',
  22105. overflow: 'hidden'
  22106. },
  22107. Hue: {
  22108. radius: '2px',
  22109. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  22110. },
  22111. alpha: {
  22112. position: 'relative',
  22113. height: '10px',
  22114. marginTop: '4px',
  22115. overflow: 'hidden'
  22116. },
  22117. Alpha: {
  22118. radius: '2px',
  22119. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  22120. }
  22121. }, passedStyles),
  22122. 'disableAlpha': {
  22123. color: {
  22124. height: '10px'
  22125. },
  22126. hue: {
  22127. height: '10px'
  22128. },
  22129. alpha: {
  22130. display: 'none'
  22131. }
  22132. }
  22133. }, passedStyles), { disableAlpha: disableAlpha });
  22134. return _react2.default.createElement(
  22135. 'div',
  22136. { style: styles.picker, className: 'sketch-picker ' + className },
  22137. _react2.default.createElement(
  22138. 'div',
  22139. { style: styles.saturation },
  22140. _react2.default.createElement(_common.Saturation, {
  22141. style: styles.Saturation,
  22142. hsl: hsl,
  22143. hsv: hsv,
  22144. onChange: onChange
  22145. })
  22146. ),
  22147. _react2.default.createElement(
  22148. 'div',
  22149. { style: styles.controls, className: 'flexbox-fix' },
  22150. _react2.default.createElement(
  22151. 'div',
  22152. { style: styles.sliders },
  22153. _react2.default.createElement(
  22154. 'div',
  22155. { style: styles.hue },
  22156. _react2.default.createElement(_common.Hue, {
  22157. style: styles.Hue,
  22158. hsl: hsl,
  22159. onChange: onChange
  22160. })
  22161. ),
  22162. _react2.default.createElement(
  22163. 'div',
  22164. { style: styles.alpha },
  22165. _react2.default.createElement(_common.Alpha, {
  22166. style: styles.Alpha,
  22167. rgb: rgb,
  22168. hsl: hsl,
  22169. renderers: renderers,
  22170. onChange: onChange
  22171. })
  22172. )
  22173. ),
  22174. _react2.default.createElement(
  22175. 'div',
  22176. { style: styles.color },
  22177. _react2.default.createElement(_common.Checkboard, null),
  22178. _react2.default.createElement('div', { style: styles.activeColor })
  22179. )
  22180. ),
  22181. _react2.default.createElement(_SketchFields2.default, {
  22182. rgb: rgb,
  22183. hsl: hsl,
  22184. hex: hex,
  22185. onChange: onChange,
  22186. disableAlpha: disableAlpha
  22187. }),
  22188. _react2.default.createElement(_SketchPresetColors2.default, {
  22189. colors: presetColors,
  22190. onClick: onChange,
  22191. onSwatchHover: onSwatchHover
  22192. })
  22193. );
  22194. };
  22195. Sketch.propTypes = {
  22196. disableAlpha: _propTypes2.default.bool,
  22197. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  22198. styles: _propTypes2.default.object
  22199. };
  22200. Sketch.defaultProps = {
  22201. disableAlpha: false,
  22202. width: 200,
  22203. styles: {},
  22204. presetColors: ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF']
  22205. };
  22206. exports.default = (0, _common.ColorWrap)(Sketch);
  22207. /***/ }),
  22208. /***/ "../../node_modules/react-color/lib/components/sketch/SketchFields.js":
  22209. /*!******************************************************************************************!*\
  22210. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/SketchFields.js ***!
  22211. \******************************************************************************************/
  22212. /*! no static exports found */
  22213. /***/ (function(module, exports, __webpack_require__) {
  22214. "use strict";
  22215. Object.defineProperty(exports, "__esModule", {
  22216. value: true
  22217. });
  22218. exports.SketchFields = undefined;
  22219. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22220. var _react2 = _interopRequireDefault(_react);
  22221. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22222. var _reactcss2 = _interopRequireDefault(_reactcss);
  22223. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  22224. var _color2 = _interopRequireDefault(_color);
  22225. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22226. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22227. /* eslint-disable no-param-reassign */
  22228. var SketchFields = exports.SketchFields = function SketchFields(_ref) {
  22229. var onChange = _ref.onChange,
  22230. rgb = _ref.rgb,
  22231. hsl = _ref.hsl,
  22232. hex = _ref.hex,
  22233. disableAlpha = _ref.disableAlpha;
  22234. var styles = (0, _reactcss2.default)({
  22235. 'default': {
  22236. fields: {
  22237. display: 'flex',
  22238. paddingTop: '4px'
  22239. },
  22240. single: {
  22241. flex: '1',
  22242. paddingLeft: '6px'
  22243. },
  22244. alpha: {
  22245. flex: '1',
  22246. paddingLeft: '6px'
  22247. },
  22248. double: {
  22249. flex: '2'
  22250. },
  22251. input: {
  22252. width: '80%',
  22253. padding: '4px 10% 3px',
  22254. border: 'none',
  22255. boxShadow: 'inset 0 0 0 1px #ccc',
  22256. fontSize: '11px'
  22257. },
  22258. label: {
  22259. display: 'block',
  22260. textAlign: 'center',
  22261. fontSize: '11px',
  22262. color: '#222',
  22263. paddingTop: '3px',
  22264. paddingBottom: '4px',
  22265. textTransform: 'capitalize'
  22266. }
  22267. },
  22268. 'disableAlpha': {
  22269. alpha: {
  22270. display: 'none'
  22271. }
  22272. }
  22273. }, { disableAlpha: disableAlpha });
  22274. var handleChange = function handleChange(data, e) {
  22275. if (data.hex) {
  22276. _color2.default.isValidHex(data.hex) && onChange({
  22277. hex: data.hex,
  22278. source: 'hex'
  22279. }, e);
  22280. } else if (data.r || data.g || data.b) {
  22281. onChange({
  22282. r: data.r || rgb.r,
  22283. g: data.g || rgb.g,
  22284. b: data.b || rgb.b,
  22285. a: rgb.a,
  22286. source: 'rgb'
  22287. }, e);
  22288. } else if (data.a) {
  22289. if (data.a < 0) {
  22290. data.a = 0;
  22291. } else if (data.a > 100) {
  22292. data.a = 100;
  22293. }
  22294. data.a /= 100;
  22295. onChange({
  22296. h: hsl.h,
  22297. s: hsl.s,
  22298. l: hsl.l,
  22299. a: data.a,
  22300. source: 'rgb'
  22301. }, e);
  22302. }
  22303. };
  22304. return _react2.default.createElement(
  22305. 'div',
  22306. { style: styles.fields, className: 'flexbox-fix' },
  22307. _react2.default.createElement(
  22308. 'div',
  22309. { style: styles.double },
  22310. _react2.default.createElement(_common.EditableInput, {
  22311. style: { input: styles.input, label: styles.label },
  22312. label: 'hex',
  22313. value: hex.replace('#', ''),
  22314. onChange: handleChange
  22315. })
  22316. ),
  22317. _react2.default.createElement(
  22318. 'div',
  22319. { style: styles.single },
  22320. _react2.default.createElement(_common.EditableInput, {
  22321. style: { input: styles.input, label: styles.label },
  22322. label: 'r',
  22323. value: rgb.r,
  22324. onChange: handleChange,
  22325. dragLabel: 'true',
  22326. dragMax: '255'
  22327. })
  22328. ),
  22329. _react2.default.createElement(
  22330. 'div',
  22331. { style: styles.single },
  22332. _react2.default.createElement(_common.EditableInput, {
  22333. style: { input: styles.input, label: styles.label },
  22334. label: 'g',
  22335. value: rgb.g,
  22336. onChange: handleChange,
  22337. dragLabel: 'true',
  22338. dragMax: '255'
  22339. })
  22340. ),
  22341. _react2.default.createElement(
  22342. 'div',
  22343. { style: styles.single },
  22344. _react2.default.createElement(_common.EditableInput, {
  22345. style: { input: styles.input, label: styles.label },
  22346. label: 'b',
  22347. value: rgb.b,
  22348. onChange: handleChange,
  22349. dragLabel: 'true',
  22350. dragMax: '255'
  22351. })
  22352. ),
  22353. _react2.default.createElement(
  22354. 'div',
  22355. { style: styles.alpha },
  22356. _react2.default.createElement(_common.EditableInput, {
  22357. style: { input: styles.input, label: styles.label },
  22358. label: 'a',
  22359. value: Math.round(rgb.a * 100),
  22360. onChange: handleChange,
  22361. dragLabel: 'true',
  22362. dragMax: '100'
  22363. })
  22364. )
  22365. );
  22366. };
  22367. exports.default = SketchFields;
  22368. /***/ }),
  22369. /***/ "../../node_modules/react-color/lib/components/sketch/SketchPresetColors.js":
  22370. /*!************************************************************************************************!*\
  22371. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/SketchPresetColors.js ***!
  22372. \************************************************************************************************/
  22373. /*! no static exports found */
  22374. /***/ (function(module, exports, __webpack_require__) {
  22375. "use strict";
  22376. Object.defineProperty(exports, "__esModule", {
  22377. value: true
  22378. });
  22379. exports.SketchPresetColors = undefined;
  22380. 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; };
  22381. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22382. var _react2 = _interopRequireDefault(_react);
  22383. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22384. var _propTypes2 = _interopRequireDefault(_propTypes);
  22385. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22386. var _reactcss2 = _interopRequireDefault(_reactcss);
  22387. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22388. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22389. var SketchPresetColors = exports.SketchPresetColors = function SketchPresetColors(_ref) {
  22390. var colors = _ref.colors,
  22391. _ref$onClick = _ref.onClick,
  22392. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  22393. onSwatchHover = _ref.onSwatchHover;
  22394. var styles = (0, _reactcss2.default)({
  22395. 'default': {
  22396. colors: {
  22397. margin: '0 -10px',
  22398. padding: '10px 0 0 10px',
  22399. borderTop: '1px solid #eee',
  22400. display: 'flex',
  22401. flexWrap: 'wrap',
  22402. position: 'relative'
  22403. },
  22404. swatchWrap: {
  22405. width: '16px',
  22406. height: '16px',
  22407. margin: '0 10px 10px 0'
  22408. },
  22409. swatch: {
  22410. borderRadius: '3px',
  22411. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)'
  22412. }
  22413. },
  22414. 'no-presets': {
  22415. colors: {
  22416. display: 'none'
  22417. }
  22418. }
  22419. }, {
  22420. 'no-presets': !colors || !colors.length
  22421. });
  22422. var handleClick = function handleClick(hex, e) {
  22423. onClick({
  22424. hex: hex,
  22425. source: 'hex'
  22426. }, e);
  22427. };
  22428. return _react2.default.createElement(
  22429. 'div',
  22430. { style: styles.colors, className: 'flexbox-fix' },
  22431. colors.map(function (colorObjOrString) {
  22432. var c = typeof colorObjOrString === 'string' ? { color: colorObjOrString } : colorObjOrString;
  22433. var key = '' + c.color + (c.title || '');
  22434. return _react2.default.createElement(
  22435. 'div',
  22436. { key: key, style: styles.swatchWrap },
  22437. _react2.default.createElement(_common.Swatch, _extends({}, c, {
  22438. style: styles.swatch,
  22439. onClick: handleClick,
  22440. onHover: onSwatchHover,
  22441. focusStyle: {
  22442. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + c.color
  22443. }
  22444. }))
  22445. );
  22446. })
  22447. );
  22448. };
  22449. SketchPresetColors.propTypes = {
  22450. colors: _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({
  22451. color: _propTypes2.default.string,
  22452. title: _propTypes2.default.string
  22453. })])).isRequired
  22454. };
  22455. exports.default = SketchPresetColors;
  22456. /***/ }),
  22457. /***/ "../../node_modules/react-color/lib/components/slider/Slider.js":
  22458. /*!************************************************************************************!*\
  22459. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/Slider.js ***!
  22460. \************************************************************************************/
  22461. /*! no static exports found */
  22462. /***/ (function(module, exports, __webpack_require__) {
  22463. "use strict";
  22464. Object.defineProperty(exports, "__esModule", {
  22465. value: true
  22466. });
  22467. exports.Slider = undefined;
  22468. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22469. var _react2 = _interopRequireDefault(_react);
  22470. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22471. var _propTypes2 = _interopRequireDefault(_propTypes);
  22472. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22473. var _reactcss2 = _interopRequireDefault(_reactcss);
  22474. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22475. var _merge2 = _interopRequireDefault(_merge);
  22476. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22477. var _SliderSwatches = __webpack_require__(/*! ./SliderSwatches */ "../../node_modules/react-color/lib/components/slider/SliderSwatches.js");
  22478. var _SliderSwatches2 = _interopRequireDefault(_SliderSwatches);
  22479. var _SliderPointer = __webpack_require__(/*! ./SliderPointer */ "../../node_modules/react-color/lib/components/slider/SliderPointer.js");
  22480. var _SliderPointer2 = _interopRequireDefault(_SliderPointer);
  22481. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22482. var Slider = exports.Slider = function Slider(_ref) {
  22483. var hsl = _ref.hsl,
  22484. onChange = _ref.onChange,
  22485. pointer = _ref.pointer,
  22486. _ref$styles = _ref.styles,
  22487. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  22488. _ref$className = _ref.className,
  22489. className = _ref$className === undefined ? '' : _ref$className;
  22490. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  22491. 'default': {
  22492. hue: {
  22493. height: '12px',
  22494. position: 'relative'
  22495. },
  22496. Hue: {
  22497. radius: '2px'
  22498. }
  22499. }
  22500. }, passedStyles));
  22501. return _react2.default.createElement(
  22502. 'div',
  22503. { style: styles.wrap || {}, className: 'slider-picker ' + className },
  22504. _react2.default.createElement(
  22505. 'div',
  22506. { style: styles.hue },
  22507. _react2.default.createElement(_common.Hue, {
  22508. style: styles.Hue,
  22509. hsl: hsl,
  22510. pointer: pointer,
  22511. onChange: onChange
  22512. })
  22513. ),
  22514. _react2.default.createElement(
  22515. 'div',
  22516. { style: styles.swatches },
  22517. _react2.default.createElement(_SliderSwatches2.default, { hsl: hsl, onClick: onChange })
  22518. )
  22519. );
  22520. };
  22521. Slider.propTypes = {
  22522. styles: _propTypes2.default.object
  22523. };
  22524. Slider.defaultProps = {
  22525. pointer: _SliderPointer2.default,
  22526. styles: {}
  22527. };
  22528. exports.default = (0, _common.ColorWrap)(Slider);
  22529. /***/ }),
  22530. /***/ "../../node_modules/react-color/lib/components/slider/SliderPointer.js":
  22531. /*!*******************************************************************************************!*\
  22532. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderPointer.js ***!
  22533. \*******************************************************************************************/
  22534. /*! no static exports found */
  22535. /***/ (function(module, exports, __webpack_require__) {
  22536. "use strict";
  22537. Object.defineProperty(exports, "__esModule", {
  22538. value: true
  22539. });
  22540. exports.SliderPointer = undefined;
  22541. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22542. var _react2 = _interopRequireDefault(_react);
  22543. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22544. var _reactcss2 = _interopRequireDefault(_reactcss);
  22545. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22546. var SliderPointer = exports.SliderPointer = function SliderPointer() {
  22547. var styles = (0, _reactcss2.default)({
  22548. 'default': {
  22549. picker: {
  22550. width: '14px',
  22551. height: '14px',
  22552. borderRadius: '6px',
  22553. transform: 'translate(-7px, -1px)',
  22554. backgroundColor: 'rgb(248, 248, 248)',
  22555. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  22556. }
  22557. }
  22558. });
  22559. return _react2.default.createElement('div', { style: styles.picker });
  22560. };
  22561. exports.default = SliderPointer;
  22562. /***/ }),
  22563. /***/ "../../node_modules/react-color/lib/components/slider/SliderSwatch.js":
  22564. /*!******************************************************************************************!*\
  22565. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderSwatch.js ***!
  22566. \******************************************************************************************/
  22567. /*! no static exports found */
  22568. /***/ (function(module, exports, __webpack_require__) {
  22569. "use strict";
  22570. Object.defineProperty(exports, "__esModule", {
  22571. value: true
  22572. });
  22573. exports.SliderSwatch = undefined;
  22574. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22575. var _react2 = _interopRequireDefault(_react);
  22576. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22577. var _reactcss2 = _interopRequireDefault(_reactcss);
  22578. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22579. var SliderSwatch = exports.SliderSwatch = function SliderSwatch(_ref) {
  22580. var hsl = _ref.hsl,
  22581. offset = _ref.offset,
  22582. _ref$onClick = _ref.onClick,
  22583. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  22584. active = _ref.active,
  22585. first = _ref.first,
  22586. last = _ref.last;
  22587. var styles = (0, _reactcss2.default)({
  22588. 'default': {
  22589. swatch: {
  22590. height: '12px',
  22591. background: 'hsl(' + hsl.h + ', 50%, ' + offset * 100 + '%)',
  22592. cursor: 'pointer'
  22593. }
  22594. },
  22595. 'first': {
  22596. swatch: {
  22597. borderRadius: '2px 0 0 2px'
  22598. }
  22599. },
  22600. 'last': {
  22601. swatch: {
  22602. borderRadius: '0 2px 2px 0'
  22603. }
  22604. },
  22605. 'active': {
  22606. swatch: {
  22607. transform: 'scaleY(1.8)',
  22608. borderRadius: '3.6px/2px'
  22609. }
  22610. }
  22611. }, { active: active, first: first, last: last });
  22612. var handleClick = function handleClick(e) {
  22613. return onClick({
  22614. h: hsl.h,
  22615. s: 0.5,
  22616. l: offset,
  22617. source: 'hsl'
  22618. }, e);
  22619. };
  22620. return _react2.default.createElement('div', { style: styles.swatch, onClick: handleClick });
  22621. };
  22622. exports.default = SliderSwatch;
  22623. /***/ }),
  22624. /***/ "../../node_modules/react-color/lib/components/slider/SliderSwatches.js":
  22625. /*!********************************************************************************************!*\
  22626. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderSwatches.js ***!
  22627. \********************************************************************************************/
  22628. /*! no static exports found */
  22629. /***/ (function(module, exports, __webpack_require__) {
  22630. "use strict";
  22631. Object.defineProperty(exports, "__esModule", {
  22632. value: true
  22633. });
  22634. exports.SliderSwatches = undefined;
  22635. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22636. var _react2 = _interopRequireDefault(_react);
  22637. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22638. var _reactcss2 = _interopRequireDefault(_reactcss);
  22639. var _SliderSwatch = __webpack_require__(/*! ./SliderSwatch */ "../../node_modules/react-color/lib/components/slider/SliderSwatch.js");
  22640. var _SliderSwatch2 = _interopRequireDefault(_SliderSwatch);
  22641. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22642. var SliderSwatches = exports.SliderSwatches = function SliderSwatches(_ref) {
  22643. var onClick = _ref.onClick,
  22644. hsl = _ref.hsl;
  22645. var styles = (0, _reactcss2.default)({
  22646. 'default': {
  22647. swatches: {
  22648. marginTop: '20px'
  22649. },
  22650. swatch: {
  22651. boxSizing: 'border-box',
  22652. width: '20%',
  22653. paddingRight: '1px',
  22654. float: 'left'
  22655. },
  22656. clear: {
  22657. clear: 'both'
  22658. }
  22659. }
  22660. });
  22661. // Acceptible difference in floating point equality
  22662. var epsilon = 0.1;
  22663. return _react2.default.createElement(
  22664. 'div',
  22665. { style: styles.swatches },
  22666. _react2.default.createElement(
  22667. 'div',
  22668. { style: styles.swatch },
  22669. _react2.default.createElement(_SliderSwatch2.default, {
  22670. hsl: hsl,
  22671. offset: '.80',
  22672. active: Math.abs(hsl.l - 0.80) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22673. onClick: onClick,
  22674. first: true
  22675. })
  22676. ),
  22677. _react2.default.createElement(
  22678. 'div',
  22679. { style: styles.swatch },
  22680. _react2.default.createElement(_SliderSwatch2.default, {
  22681. hsl: hsl,
  22682. offset: '.65',
  22683. active: Math.abs(hsl.l - 0.65) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22684. onClick: onClick
  22685. })
  22686. ),
  22687. _react2.default.createElement(
  22688. 'div',
  22689. { style: styles.swatch },
  22690. _react2.default.createElement(_SliderSwatch2.default, {
  22691. hsl: hsl,
  22692. offset: '.50',
  22693. active: Math.abs(hsl.l - 0.50) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22694. onClick: onClick
  22695. })
  22696. ),
  22697. _react2.default.createElement(
  22698. 'div',
  22699. { style: styles.swatch },
  22700. _react2.default.createElement(_SliderSwatch2.default, {
  22701. hsl: hsl,
  22702. offset: '.35',
  22703. active: Math.abs(hsl.l - 0.35) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22704. onClick: onClick
  22705. })
  22706. ),
  22707. _react2.default.createElement(
  22708. 'div',
  22709. { style: styles.swatch },
  22710. _react2.default.createElement(_SliderSwatch2.default, {
  22711. hsl: hsl,
  22712. offset: '.20',
  22713. active: Math.abs(hsl.l - 0.20) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  22714. onClick: onClick,
  22715. last: true
  22716. })
  22717. ),
  22718. _react2.default.createElement('div', { style: styles.clear })
  22719. );
  22720. };
  22721. exports.default = SliderSwatches;
  22722. /***/ }),
  22723. /***/ "../../node_modules/react-color/lib/components/swatches/Swatches.js":
  22724. /*!****************************************************************************************!*\
  22725. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/Swatches.js ***!
  22726. \****************************************************************************************/
  22727. /*! no static exports found */
  22728. /***/ (function(module, exports, __webpack_require__) {
  22729. "use strict";
  22730. Object.defineProperty(exports, "__esModule", {
  22731. value: true
  22732. });
  22733. exports.Swatches = undefined;
  22734. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22735. var _react2 = _interopRequireDefault(_react);
  22736. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22737. var _propTypes2 = _interopRequireDefault(_propTypes);
  22738. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22739. var _reactcss2 = _interopRequireDefault(_reactcss);
  22740. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  22741. var _map2 = _interopRequireDefault(_map);
  22742. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22743. var _merge2 = _interopRequireDefault(_merge);
  22744. var _materialColors = __webpack_require__(/*! material-colors */ "../../node_modules/material-colors/dist/colors.es2015.js");
  22745. var material = _interopRequireWildcard(_materialColors);
  22746. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22747. var _SwatchesGroup = __webpack_require__(/*! ./SwatchesGroup */ "../../node_modules/react-color/lib/components/swatches/SwatchesGroup.js");
  22748. var _SwatchesGroup2 = _interopRequireDefault(_SwatchesGroup);
  22749. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  22750. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22751. var Swatches = exports.Swatches = function Swatches(_ref) {
  22752. var width = _ref.width,
  22753. height = _ref.height,
  22754. onChange = _ref.onChange,
  22755. onSwatchHover = _ref.onSwatchHover,
  22756. colors = _ref.colors,
  22757. hex = _ref.hex,
  22758. _ref$styles = _ref.styles,
  22759. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  22760. _ref$className = _ref.className,
  22761. className = _ref$className === undefined ? '' : _ref$className;
  22762. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  22763. 'default': {
  22764. picker: {
  22765. width: width,
  22766. height: height
  22767. },
  22768. overflow: {
  22769. height: height,
  22770. overflowY: 'scroll'
  22771. },
  22772. body: {
  22773. padding: '16px 0 6px 16px'
  22774. },
  22775. clear: {
  22776. clear: 'both'
  22777. }
  22778. }
  22779. }, passedStyles));
  22780. var handleChange = function handleChange(data, e) {
  22781. return onChange({ hex: data, source: 'hex' }, e);
  22782. };
  22783. return _react2.default.createElement(
  22784. 'div',
  22785. { style: styles.picker, className: 'swatches-picker ' + className },
  22786. _react2.default.createElement(
  22787. _common.Raised,
  22788. null,
  22789. _react2.default.createElement(
  22790. 'div',
  22791. { style: styles.overflow },
  22792. _react2.default.createElement(
  22793. 'div',
  22794. { style: styles.body },
  22795. (0, _map2.default)(colors, function (group) {
  22796. return _react2.default.createElement(_SwatchesGroup2.default, {
  22797. key: group.toString(),
  22798. group: group,
  22799. active: hex,
  22800. onClick: handleChange,
  22801. onSwatchHover: onSwatchHover
  22802. });
  22803. }),
  22804. _react2.default.createElement('div', { style: styles.clear })
  22805. )
  22806. )
  22807. )
  22808. );
  22809. };
  22810. Swatches.propTypes = {
  22811. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  22812. height: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  22813. colors: _propTypes2.default.arrayOf(_propTypes2.default.arrayOf(_propTypes2.default.string)),
  22814. styles: _propTypes2.default.object
  22815. /* eslint-disable max-len */
  22816. };Swatches.defaultProps = {
  22817. width: 320,
  22818. height: 240,
  22819. colors: [[material.red['900'], material.red['700'], material.red['500'], material.red['300'], material.red['100']], [material.pink['900'], material.pink['700'], material.pink['500'], material.pink['300'], material.pink['100']], [material.purple['900'], material.purple['700'], material.purple['500'], material.purple['300'], material.purple['100']], [material.deepPurple['900'], material.deepPurple['700'], material.deepPurple['500'], material.deepPurple['300'], material.deepPurple['100']], [material.indigo['900'], material.indigo['700'], material.indigo['500'], material.indigo['300'], material.indigo['100']], [material.blue['900'], material.blue['700'], material.blue['500'], material.blue['300'], material.blue['100']], [material.lightBlue['900'], material.lightBlue['700'], material.lightBlue['500'], material.lightBlue['300'], material.lightBlue['100']], [material.cyan['900'], material.cyan['700'], material.cyan['500'], material.cyan['300'], material.cyan['100']], [material.teal['900'], material.teal['700'], material.teal['500'], material.teal['300'], material.teal['100']], ['#194D33', material.green['700'], material.green['500'], material.green['300'], material.green['100']], [material.lightGreen['900'], material.lightGreen['700'], material.lightGreen['500'], material.lightGreen['300'], material.lightGreen['100']], [material.lime['900'], material.lime['700'], material.lime['500'], material.lime['300'], material.lime['100']], [material.yellow['900'], material.yellow['700'], material.yellow['500'], material.yellow['300'], material.yellow['100']], [material.amber['900'], material.amber['700'], material.amber['500'], material.amber['300'], material.amber['100']], [material.orange['900'], material.orange['700'], material.orange['500'], material.orange['300'], material.orange['100']], [material.deepOrange['900'], material.deepOrange['700'], material.deepOrange['500'], material.deepOrange['300'], material.deepOrange['100']], [material.brown['900'], material.brown['700'], material.brown['500'], material.brown['300'], material.brown['100']], [material.blueGrey['900'], material.blueGrey['700'], material.blueGrey['500'], material.blueGrey['300'], material.blueGrey['100']], ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF']],
  22820. styles: {}
  22821. };
  22822. exports.default = (0, _common.ColorWrap)(Swatches);
  22823. /***/ }),
  22824. /***/ "../../node_modules/react-color/lib/components/swatches/SwatchesColor.js":
  22825. /*!*********************************************************************************************!*\
  22826. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/SwatchesColor.js ***!
  22827. \*********************************************************************************************/
  22828. /*! no static exports found */
  22829. /***/ (function(module, exports, __webpack_require__) {
  22830. "use strict";
  22831. Object.defineProperty(exports, "__esModule", {
  22832. value: true
  22833. });
  22834. exports.SwatchesColor = undefined;
  22835. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22836. var _react2 = _interopRequireDefault(_react);
  22837. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22838. var _reactcss2 = _interopRequireDefault(_reactcss);
  22839. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  22840. var _color2 = _interopRequireDefault(_color);
  22841. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22842. var _CheckIcon = __webpack_require__(/*! @icons/material/CheckIcon */ "../../node_modules/@icons/material/CheckIcon.js");
  22843. var _CheckIcon2 = _interopRequireDefault(_CheckIcon);
  22844. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22845. var SwatchesColor = exports.SwatchesColor = function SwatchesColor(_ref) {
  22846. var color = _ref.color,
  22847. _ref$onClick = _ref.onClick,
  22848. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  22849. onSwatchHover = _ref.onSwatchHover,
  22850. first = _ref.first,
  22851. last = _ref.last,
  22852. active = _ref.active;
  22853. var styles = (0, _reactcss2.default)({
  22854. 'default': {
  22855. color: {
  22856. width: '40px',
  22857. height: '24px',
  22858. cursor: 'pointer',
  22859. background: color,
  22860. marginBottom: '1px'
  22861. },
  22862. check: {
  22863. color: _color2.default.getContrastingColor(color),
  22864. marginLeft: '8px',
  22865. display: 'none'
  22866. }
  22867. },
  22868. 'first': {
  22869. color: {
  22870. overflow: 'hidden',
  22871. borderRadius: '2px 2px 0 0'
  22872. }
  22873. },
  22874. 'last': {
  22875. color: {
  22876. overflow: 'hidden',
  22877. borderRadius: '0 0 2px 2px'
  22878. }
  22879. },
  22880. 'active': {
  22881. check: {
  22882. display: 'block'
  22883. }
  22884. },
  22885. 'color-#FFFFFF': {
  22886. color: {
  22887. boxShadow: 'inset 0 0 0 1px #ddd'
  22888. },
  22889. check: {
  22890. color: '#333'
  22891. }
  22892. },
  22893. 'transparent': {
  22894. check: {
  22895. color: '#333'
  22896. }
  22897. }
  22898. }, {
  22899. first: first,
  22900. last: last,
  22901. active: active,
  22902. 'color-#FFFFFF': color === '#FFFFFF',
  22903. 'transparent': color === 'transparent'
  22904. });
  22905. return _react2.default.createElement(
  22906. _common.Swatch,
  22907. {
  22908. color: color,
  22909. style: styles.color,
  22910. onClick: onClick,
  22911. onHover: onSwatchHover,
  22912. focusStyle: { boxShadow: '0 0 4px ' + color }
  22913. },
  22914. _react2.default.createElement(
  22915. 'div',
  22916. { style: styles.check },
  22917. _react2.default.createElement(_CheckIcon2.default, null)
  22918. )
  22919. );
  22920. };
  22921. exports.default = SwatchesColor;
  22922. /***/ }),
  22923. /***/ "../../node_modules/react-color/lib/components/swatches/SwatchesGroup.js":
  22924. /*!*********************************************************************************************!*\
  22925. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/SwatchesGroup.js ***!
  22926. \*********************************************************************************************/
  22927. /*! no static exports found */
  22928. /***/ (function(module, exports, __webpack_require__) {
  22929. "use strict";
  22930. Object.defineProperty(exports, "__esModule", {
  22931. value: true
  22932. });
  22933. exports.SwatchesGroup = undefined;
  22934. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22935. var _react2 = _interopRequireDefault(_react);
  22936. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22937. var _reactcss2 = _interopRequireDefault(_reactcss);
  22938. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  22939. var _map2 = _interopRequireDefault(_map);
  22940. var _SwatchesColor = __webpack_require__(/*! ./SwatchesColor */ "../../node_modules/react-color/lib/components/swatches/SwatchesColor.js");
  22941. var _SwatchesColor2 = _interopRequireDefault(_SwatchesColor);
  22942. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22943. var SwatchesGroup = exports.SwatchesGroup = function SwatchesGroup(_ref) {
  22944. var onClick = _ref.onClick,
  22945. onSwatchHover = _ref.onSwatchHover,
  22946. group = _ref.group,
  22947. active = _ref.active;
  22948. var styles = (0, _reactcss2.default)({
  22949. 'default': {
  22950. group: {
  22951. paddingBottom: '10px',
  22952. width: '40px',
  22953. float: 'left',
  22954. marginRight: '10px'
  22955. }
  22956. }
  22957. });
  22958. return _react2.default.createElement(
  22959. 'div',
  22960. { style: styles.group },
  22961. (0, _map2.default)(group, function (color, i) {
  22962. return _react2.default.createElement(_SwatchesColor2.default, {
  22963. key: color,
  22964. color: color,
  22965. active: color.toLowerCase() === active,
  22966. first: i === 0,
  22967. last: i === group.length - 1,
  22968. onClick: onClick,
  22969. onSwatchHover: onSwatchHover
  22970. });
  22971. })
  22972. );
  22973. };
  22974. exports.default = SwatchesGroup;
  22975. /***/ }),
  22976. /***/ "../../node_modules/react-color/lib/components/twitter/Twitter.js":
  22977. /*!**************************************************************************************!*\
  22978. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/components/twitter/Twitter.js ***!
  22979. \**************************************************************************************/
  22980. /*! no static exports found */
  22981. /***/ (function(module, exports, __webpack_require__) {
  22982. "use strict";
  22983. Object.defineProperty(exports, "__esModule", {
  22984. value: true
  22985. });
  22986. exports.Twitter = undefined;
  22987. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22988. var _react2 = _interopRequireDefault(_react);
  22989. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  22990. var _propTypes2 = _interopRequireDefault(_propTypes);
  22991. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22992. var _reactcss2 = _interopRequireDefault(_reactcss);
  22993. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  22994. var _map2 = _interopRequireDefault(_map);
  22995. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  22996. var _merge2 = _interopRequireDefault(_merge);
  22997. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  22998. var _color2 = _interopRequireDefault(_color);
  22999. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23000. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23001. var Twitter = exports.Twitter = function Twitter(_ref) {
  23002. var onChange = _ref.onChange,
  23003. onSwatchHover = _ref.onSwatchHover,
  23004. hex = _ref.hex,
  23005. colors = _ref.colors,
  23006. width = _ref.width,
  23007. triangle = _ref.triangle,
  23008. _ref$styles = _ref.styles,
  23009. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  23010. _ref$className = _ref.className,
  23011. className = _ref$className === undefined ? '' : _ref$className;
  23012. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  23013. 'default': {
  23014. card: {
  23015. width: width,
  23016. background: '#fff',
  23017. border: '0 solid rgba(0,0,0,0.25)',
  23018. boxShadow: '0 1px 4px rgba(0,0,0,0.25)',
  23019. borderRadius: '4px',
  23020. position: 'relative'
  23021. },
  23022. body: {
  23023. padding: '15px 9px 9px 15px'
  23024. },
  23025. label: {
  23026. fontSize: '18px',
  23027. color: '#fff'
  23028. },
  23029. triangle: {
  23030. width: '0px',
  23031. height: '0px',
  23032. borderStyle: 'solid',
  23033. borderWidth: '0 9px 10px 9px',
  23034. borderColor: 'transparent transparent #fff transparent',
  23035. position: 'absolute'
  23036. },
  23037. triangleShadow: {
  23038. width: '0px',
  23039. height: '0px',
  23040. borderStyle: 'solid',
  23041. borderWidth: '0 9px 10px 9px',
  23042. borderColor: 'transparent transparent rgba(0,0,0,.1) transparent',
  23043. position: 'absolute'
  23044. },
  23045. hash: {
  23046. background: '#F0F0F0',
  23047. height: '30px',
  23048. width: '30px',
  23049. borderRadius: '4px 0 0 4px',
  23050. float: 'left',
  23051. color: '#98A1A4',
  23052. display: 'flex',
  23053. alignItems: 'center',
  23054. justifyContent: 'center'
  23055. },
  23056. input: {
  23057. width: '100px',
  23058. fontSize: '14px',
  23059. color: '#666',
  23060. border: '0px',
  23061. outline: 'none',
  23062. height: '28px',
  23063. boxShadow: 'inset 0 0 0 1px #F0F0F0',
  23064. boxSizing: 'content-box',
  23065. borderRadius: '0 4px 4px 0',
  23066. float: 'left',
  23067. paddingLeft: '8px'
  23068. },
  23069. swatch: {
  23070. width: '30px',
  23071. height: '30px',
  23072. float: 'left',
  23073. borderRadius: '4px',
  23074. margin: '0 6px 6px 0'
  23075. },
  23076. clear: {
  23077. clear: 'both'
  23078. }
  23079. },
  23080. 'hide-triangle': {
  23081. triangle: {
  23082. display: 'none'
  23083. },
  23084. triangleShadow: {
  23085. display: 'none'
  23086. }
  23087. },
  23088. 'top-left-triangle': {
  23089. triangle: {
  23090. top: '-10px',
  23091. left: '12px'
  23092. },
  23093. triangleShadow: {
  23094. top: '-11px',
  23095. left: '12px'
  23096. }
  23097. },
  23098. 'top-right-triangle': {
  23099. triangle: {
  23100. top: '-10px',
  23101. right: '12px'
  23102. },
  23103. triangleShadow: {
  23104. top: '-11px',
  23105. right: '12px'
  23106. }
  23107. }
  23108. }, passedStyles), {
  23109. 'hide-triangle': triangle === 'hide',
  23110. 'top-left-triangle': triangle === 'top-left',
  23111. 'top-right-triangle': triangle === 'top-right'
  23112. });
  23113. var handleChange = function handleChange(hexcode, e) {
  23114. _color2.default.isValidHex(hexcode) && onChange({
  23115. hex: hexcode,
  23116. source: 'hex'
  23117. }, e);
  23118. };
  23119. return _react2.default.createElement(
  23120. 'div',
  23121. { style: styles.card, className: 'twitter-picker ' + className },
  23122. _react2.default.createElement('div', { style: styles.triangleShadow }),
  23123. _react2.default.createElement('div', { style: styles.triangle }),
  23124. _react2.default.createElement(
  23125. 'div',
  23126. { style: styles.body },
  23127. (0, _map2.default)(colors, function (c, i) {
  23128. return _react2.default.createElement(_common.Swatch, {
  23129. key: i,
  23130. color: c,
  23131. hex: c,
  23132. style: styles.swatch,
  23133. onClick: handleChange,
  23134. onHover: onSwatchHover,
  23135. focusStyle: {
  23136. boxShadow: '0 0 4px ' + c
  23137. }
  23138. });
  23139. }),
  23140. _react2.default.createElement(
  23141. 'div',
  23142. { style: styles.hash },
  23143. '#'
  23144. ),
  23145. _react2.default.createElement(_common.EditableInput, {
  23146. label: null,
  23147. style: { input: styles.input },
  23148. value: hex.replace('#', ''),
  23149. onChange: handleChange
  23150. }),
  23151. _react2.default.createElement('div', { style: styles.clear })
  23152. )
  23153. );
  23154. };
  23155. Twitter.propTypes = {
  23156. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  23157. triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right']),
  23158. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  23159. styles: _propTypes2.default.object
  23160. };
  23161. Twitter.defaultProps = {
  23162. width: 276,
  23163. colors: ['#FF6900', '#FCB900', '#7BDCB5', '#00D084', '#8ED1FC', '#0693E3', '#ABB8C3', '#EB144C', '#F78DA7', '#9900EF'],
  23164. triangle: 'top-left',
  23165. styles: {}
  23166. };
  23167. exports.default = (0, _common.ColorWrap)(Twitter);
  23168. /***/ }),
  23169. /***/ "../../node_modules/react-color/lib/helpers/alpha.js":
  23170. /*!*************************************************************************!*\
  23171. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/helpers/alpha.js ***!
  23172. \*************************************************************************/
  23173. /*! no static exports found */
  23174. /***/ (function(module, exports, __webpack_require__) {
  23175. "use strict";
  23176. Object.defineProperty(exports, "__esModule", {
  23177. value: true
  23178. });
  23179. var calculateChange = exports.calculateChange = function calculateChange(e, hsl, direction, initialA, container) {
  23180. var containerWidth = container.clientWidth;
  23181. var containerHeight = container.clientHeight;
  23182. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  23183. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  23184. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  23185. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  23186. if (direction === 'vertical') {
  23187. var a = void 0;
  23188. if (top < 0) {
  23189. a = 0;
  23190. } else if (top > containerHeight) {
  23191. a = 1;
  23192. } else {
  23193. a = Math.round(top * 100 / containerHeight) / 100;
  23194. }
  23195. if (hsl.a !== a) {
  23196. return {
  23197. h: hsl.h,
  23198. s: hsl.s,
  23199. l: hsl.l,
  23200. a: a,
  23201. source: 'rgb'
  23202. };
  23203. }
  23204. } else {
  23205. var _a = void 0;
  23206. if (left < 0) {
  23207. _a = 0;
  23208. } else if (left > containerWidth) {
  23209. _a = 1;
  23210. } else {
  23211. _a = Math.round(left * 100 / containerWidth) / 100;
  23212. }
  23213. if (initialA !== _a) {
  23214. return {
  23215. h: hsl.h,
  23216. s: hsl.s,
  23217. l: hsl.l,
  23218. a: _a,
  23219. source: 'rgb'
  23220. };
  23221. }
  23222. }
  23223. return null;
  23224. };
  23225. /***/ }),
  23226. /***/ "../../node_modules/react-color/lib/helpers/checkboard.js":
  23227. /*!******************************************************************************!*\
  23228. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/helpers/checkboard.js ***!
  23229. \******************************************************************************/
  23230. /*! no static exports found */
  23231. /***/ (function(module, exports, __webpack_require__) {
  23232. "use strict";
  23233. Object.defineProperty(exports, "__esModule", {
  23234. value: true
  23235. });
  23236. var checkboardCache = {};
  23237. var render = exports.render = function render(c1, c2, size, serverCanvas) {
  23238. if (typeof document === 'undefined' && !serverCanvas) {
  23239. return null;
  23240. }
  23241. var canvas = serverCanvas ? new serverCanvas() : document.createElement('canvas');
  23242. canvas.width = size * 2;
  23243. canvas.height = size * 2;
  23244. var ctx = canvas.getContext('2d');
  23245. if (!ctx) {
  23246. return null;
  23247. } // If no context can be found, return early.
  23248. ctx.fillStyle = c1;
  23249. ctx.fillRect(0, 0, canvas.width, canvas.height);
  23250. ctx.fillStyle = c2;
  23251. ctx.fillRect(0, 0, size, size);
  23252. ctx.translate(size, size);
  23253. ctx.fillRect(0, 0, size, size);
  23254. return canvas.toDataURL();
  23255. };
  23256. var get = exports.get = function get(c1, c2, size, serverCanvas) {
  23257. var key = c1 + '-' + c2 + '-' + size + (serverCanvas ? '-server' : '');
  23258. if (checkboardCache[key]) {
  23259. return checkboardCache[key];
  23260. }
  23261. var checkboard = render(c1, c2, size, serverCanvas);
  23262. checkboardCache[key] = checkboard;
  23263. return checkboard;
  23264. };
  23265. /***/ }),
  23266. /***/ "../../node_modules/react-color/lib/helpers/color.js":
  23267. /*!*************************************************************************!*\
  23268. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/helpers/color.js ***!
  23269. \*************************************************************************/
  23270. /*! no static exports found */
  23271. /***/ (function(module, exports, __webpack_require__) {
  23272. "use strict";
  23273. Object.defineProperty(exports, "__esModule", {
  23274. value: true
  23275. });
  23276. exports.red = exports.getContrastingColor = exports.isValidHex = exports.toState = exports.simpleCheckForValidColor = undefined;
  23277. var _each = __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js");
  23278. var _each2 = _interopRequireDefault(_each);
  23279. var _tinycolor = __webpack_require__(/*! tinycolor2 */ "../../node_modules/tinycolor2/tinycolor.js");
  23280. var _tinycolor2 = _interopRequireDefault(_tinycolor);
  23281. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23282. var simpleCheckForValidColor = exports.simpleCheckForValidColor = function simpleCheckForValidColor(data) {
  23283. var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
  23284. var checked = 0;
  23285. var passed = 0;
  23286. (0, _each2.default)(keysToCheck, function (letter) {
  23287. if (data[letter]) {
  23288. checked += 1;
  23289. if (!isNaN(data[letter])) {
  23290. passed += 1;
  23291. }
  23292. if (letter === 's' || letter === 'l') {
  23293. var percentPatt = /^\d+%$/;
  23294. if (percentPatt.test(data[letter])) {
  23295. passed += 1;
  23296. }
  23297. }
  23298. }
  23299. });
  23300. return checked === passed ? data : false;
  23301. };
  23302. var toState = exports.toState = function toState(data, oldHue) {
  23303. var color = data.hex ? (0, _tinycolor2.default)(data.hex) : (0, _tinycolor2.default)(data);
  23304. var hsl = color.toHsl();
  23305. var hsv = color.toHsv();
  23306. var rgb = color.toRgb();
  23307. var hex = color.toHex();
  23308. if (hsl.s === 0) {
  23309. hsl.h = oldHue || 0;
  23310. hsv.h = oldHue || 0;
  23311. }
  23312. var transparent = hex === '000000' && rgb.a === 0;
  23313. return {
  23314. hsl: hsl,
  23315. hex: transparent ? 'transparent' : '#' + hex,
  23316. rgb: rgb,
  23317. hsv: hsv,
  23318. oldHue: data.h || oldHue || hsl.h,
  23319. source: data.source
  23320. };
  23321. };
  23322. var isValidHex = exports.isValidHex = function isValidHex(hex) {
  23323. // disable hex4 and hex8
  23324. var lh = String(hex).charAt(0) === '#' ? 1 : 0;
  23325. return hex.length !== 4 + lh && hex.length < 7 + lh && (0, _tinycolor2.default)(hex).isValid();
  23326. };
  23327. var getContrastingColor = exports.getContrastingColor = function getContrastingColor(data) {
  23328. if (!data) {
  23329. return '#fff';
  23330. }
  23331. var col = toState(data);
  23332. if (col.hex === 'transparent') {
  23333. return 'rgba(0,0,0,0.4)';
  23334. }
  23335. var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
  23336. return yiq >= 128 ? '#000' : '#fff';
  23337. };
  23338. var red = exports.red = {
  23339. hsl: { a: 1, h: 0, l: 0.5, s: 1 },
  23340. hex: '#ff0000',
  23341. rgb: { r: 255, g: 0, b: 0, a: 1 },
  23342. hsv: { h: 0, s: 1, v: 1, a: 1 }
  23343. };
  23344. exports.default = exports;
  23345. /***/ }),
  23346. /***/ "../../node_modules/react-color/lib/helpers/hue.js":
  23347. /*!***********************************************************************!*\
  23348. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/helpers/hue.js ***!
  23349. \***********************************************************************/
  23350. /*! no static exports found */
  23351. /***/ (function(module, exports, __webpack_require__) {
  23352. "use strict";
  23353. Object.defineProperty(exports, "__esModule", {
  23354. value: true
  23355. });
  23356. var calculateChange = exports.calculateChange = function calculateChange(e, direction, hsl, container) {
  23357. var containerWidth = container.clientWidth;
  23358. var containerHeight = container.clientHeight;
  23359. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  23360. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  23361. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  23362. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  23363. if (direction === 'vertical') {
  23364. var h = void 0;
  23365. if (top < 0) {
  23366. h = 359;
  23367. } else if (top > containerHeight) {
  23368. h = 0;
  23369. } else {
  23370. var percent = -(top * 100 / containerHeight) + 100;
  23371. h = 360 * percent / 100;
  23372. }
  23373. if (hsl.h !== h) {
  23374. return {
  23375. h: h,
  23376. s: hsl.s,
  23377. l: hsl.l,
  23378. a: hsl.a,
  23379. source: 'hsl'
  23380. };
  23381. }
  23382. } else {
  23383. var _h = void 0;
  23384. if (left < 0) {
  23385. _h = 0;
  23386. } else if (left > containerWidth) {
  23387. _h = 359;
  23388. } else {
  23389. var _percent = left * 100 / containerWidth;
  23390. _h = 360 * _percent / 100;
  23391. }
  23392. if (hsl.h !== _h) {
  23393. return {
  23394. h: _h,
  23395. s: hsl.s,
  23396. l: hsl.l,
  23397. a: hsl.a,
  23398. source: 'hsl'
  23399. };
  23400. }
  23401. }
  23402. return null;
  23403. };
  23404. /***/ }),
  23405. /***/ "../../node_modules/react-color/lib/helpers/interaction.js":
  23406. /*!*******************************************************************************!*\
  23407. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/helpers/interaction.js ***!
  23408. \*******************************************************************************/
  23409. /*! no static exports found */
  23410. /***/ (function(module, exports, __webpack_require__) {
  23411. "use strict";
  23412. Object.defineProperty(exports, "__esModule", {
  23413. value: true
  23414. });
  23415. exports.handleFocus = undefined;
  23416. 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; };
  23417. 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; }; }();
  23418. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23419. var _react2 = _interopRequireDefault(_react);
  23420. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23421. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23422. 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; }
  23423. 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; } /* eslint-disable no-invalid-this */
  23424. var handleFocus = exports.handleFocus = function handleFocus(Component) {
  23425. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  23426. return function (_React$Component) {
  23427. _inherits(Focus, _React$Component);
  23428. function Focus() {
  23429. var _ref;
  23430. var _temp, _this, _ret;
  23431. _classCallCheck(this, Focus);
  23432. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  23433. args[_key] = arguments[_key];
  23434. }
  23435. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply(_ref, [this].concat(args))), _this), _this.state = { focus: false }, _this.handleFocus = function () {
  23436. return _this.setState({ focus: true });
  23437. }, _this.handleBlur = function () {
  23438. return _this.setState({ focus: false });
  23439. }, _temp), _possibleConstructorReturn(_this, _ret);
  23440. }
  23441. _createClass(Focus, [{
  23442. key: 'render',
  23443. value: function render() {
  23444. return _react2.default.createElement(
  23445. Span,
  23446. { onFocus: this.handleFocus, onBlur: this.handleBlur },
  23447. _react2.default.createElement(Component, _extends({}, this.props, this.state))
  23448. );
  23449. }
  23450. }]);
  23451. return Focus;
  23452. }(_react2.default.Component);
  23453. };
  23454. /***/ }),
  23455. /***/ "../../node_modules/react-color/lib/helpers/saturation.js":
  23456. /*!******************************************************************************!*\
  23457. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/helpers/saturation.js ***!
  23458. \******************************************************************************/
  23459. /*! no static exports found */
  23460. /***/ (function(module, exports, __webpack_require__) {
  23461. "use strict";
  23462. Object.defineProperty(exports, "__esModule", {
  23463. value: true
  23464. });
  23465. var calculateChange = exports.calculateChange = function calculateChange(e, hsl, container) {
  23466. var _container$getBoundin = container.getBoundingClientRect(),
  23467. containerWidth = _container$getBoundin.width,
  23468. containerHeight = _container$getBoundin.height;
  23469. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  23470. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  23471. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  23472. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  23473. if (left < 0) {
  23474. left = 0;
  23475. } else if (left > containerWidth) {
  23476. left = containerWidth;
  23477. }
  23478. if (top < 0) {
  23479. top = 0;
  23480. } else if (top > containerHeight) {
  23481. top = containerHeight;
  23482. }
  23483. var saturation = left / containerWidth;
  23484. var bright = 1 - top / containerHeight;
  23485. return {
  23486. h: hsl.h,
  23487. s: saturation,
  23488. v: bright,
  23489. a: hsl.a,
  23490. source: 'hsv'
  23491. };
  23492. };
  23493. /***/ }),
  23494. /***/ "../../node_modules/react-color/lib/index.js":
  23495. /*!*****************************************************************!*\
  23496. !*** D:/Repos/Babylon.js/node_modules/react-color/lib/index.js ***!
  23497. \*****************************************************************/
  23498. /*! no static exports found */
  23499. /***/ (function(module, exports, __webpack_require__) {
  23500. "use strict";
  23501. Object.defineProperty(exports, "__esModule", {
  23502. value: true
  23503. });
  23504. exports.CustomPicker = exports.TwitterPicker = exports.SwatchesPicker = exports.SliderPicker = exports.SketchPicker = exports.PhotoshopPicker = exports.MaterialPicker = exports.HuePicker = exports.GithubPicker = exports.CompactPicker = exports.ChromePicker = exports.default = exports.CirclePicker = exports.BlockPicker = exports.AlphaPicker = undefined;
  23505. var _Alpha = __webpack_require__(/*! ./components/alpha/Alpha */ "../../node_modules/react-color/lib/components/alpha/Alpha.js");
  23506. Object.defineProperty(exports, 'AlphaPicker', {
  23507. enumerable: true,
  23508. get: function get() {
  23509. return _interopRequireDefault(_Alpha).default;
  23510. }
  23511. });
  23512. var _Block = __webpack_require__(/*! ./components/block/Block */ "../../node_modules/react-color/lib/components/block/Block.js");
  23513. Object.defineProperty(exports, 'BlockPicker', {
  23514. enumerable: true,
  23515. get: function get() {
  23516. return _interopRequireDefault(_Block).default;
  23517. }
  23518. });
  23519. var _Circle = __webpack_require__(/*! ./components/circle/Circle */ "../../node_modules/react-color/lib/components/circle/Circle.js");
  23520. Object.defineProperty(exports, 'CirclePicker', {
  23521. enumerable: true,
  23522. get: function get() {
  23523. return _interopRequireDefault(_Circle).default;
  23524. }
  23525. });
  23526. var _Chrome = __webpack_require__(/*! ./components/chrome/Chrome */ "../../node_modules/react-color/lib/components/chrome/Chrome.js");
  23527. Object.defineProperty(exports, 'ChromePicker', {
  23528. enumerable: true,
  23529. get: function get() {
  23530. return _interopRequireDefault(_Chrome).default;
  23531. }
  23532. });
  23533. var _Compact = __webpack_require__(/*! ./components/compact/Compact */ "../../node_modules/react-color/lib/components/compact/Compact.js");
  23534. Object.defineProperty(exports, 'CompactPicker', {
  23535. enumerable: true,
  23536. get: function get() {
  23537. return _interopRequireDefault(_Compact).default;
  23538. }
  23539. });
  23540. var _Github = __webpack_require__(/*! ./components/github/Github */ "../../node_modules/react-color/lib/components/github/Github.js");
  23541. Object.defineProperty(exports, 'GithubPicker', {
  23542. enumerable: true,
  23543. get: function get() {
  23544. return _interopRequireDefault(_Github).default;
  23545. }
  23546. });
  23547. var _Hue = __webpack_require__(/*! ./components/hue/Hue */ "../../node_modules/react-color/lib/components/hue/Hue.js");
  23548. Object.defineProperty(exports, 'HuePicker', {
  23549. enumerable: true,
  23550. get: function get() {
  23551. return _interopRequireDefault(_Hue).default;
  23552. }
  23553. });
  23554. var _Material = __webpack_require__(/*! ./components/material/Material */ "../../node_modules/react-color/lib/components/material/Material.js");
  23555. Object.defineProperty(exports, 'MaterialPicker', {
  23556. enumerable: true,
  23557. get: function get() {
  23558. return _interopRequireDefault(_Material).default;
  23559. }
  23560. });
  23561. var _Photoshop = __webpack_require__(/*! ./components/photoshop/Photoshop */ "../../node_modules/react-color/lib/components/photoshop/Photoshop.js");
  23562. Object.defineProperty(exports, 'PhotoshopPicker', {
  23563. enumerable: true,
  23564. get: function get() {
  23565. return _interopRequireDefault(_Photoshop).default;
  23566. }
  23567. });
  23568. var _Sketch = __webpack_require__(/*! ./components/sketch/Sketch */ "../../node_modules/react-color/lib/components/sketch/Sketch.js");
  23569. Object.defineProperty(exports, 'SketchPicker', {
  23570. enumerable: true,
  23571. get: function get() {
  23572. return _interopRequireDefault(_Sketch).default;
  23573. }
  23574. });
  23575. var _Slider = __webpack_require__(/*! ./components/slider/Slider */ "../../node_modules/react-color/lib/components/slider/Slider.js");
  23576. Object.defineProperty(exports, 'SliderPicker', {
  23577. enumerable: true,
  23578. get: function get() {
  23579. return _interopRequireDefault(_Slider).default;
  23580. }
  23581. });
  23582. var _Swatches = __webpack_require__(/*! ./components/swatches/Swatches */ "../../node_modules/react-color/lib/components/swatches/Swatches.js");
  23583. Object.defineProperty(exports, 'SwatchesPicker', {
  23584. enumerable: true,
  23585. get: function get() {
  23586. return _interopRequireDefault(_Swatches).default;
  23587. }
  23588. });
  23589. var _Twitter = __webpack_require__(/*! ./components/twitter/Twitter */ "../../node_modules/react-color/lib/components/twitter/Twitter.js");
  23590. Object.defineProperty(exports, 'TwitterPicker', {
  23591. enumerable: true,
  23592. get: function get() {
  23593. return _interopRequireDefault(_Twitter).default;
  23594. }
  23595. });
  23596. var _ColorWrap = __webpack_require__(/*! ./components/common/ColorWrap */ "../../node_modules/react-color/lib/components/common/ColorWrap.js");
  23597. Object.defineProperty(exports, 'CustomPicker', {
  23598. enumerable: true,
  23599. get: function get() {
  23600. return _interopRequireDefault(_ColorWrap).default;
  23601. }
  23602. });
  23603. var _Chrome2 = _interopRequireDefault(_Chrome);
  23604. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23605. exports.default = _Chrome2.default;
  23606. /***/ }),
  23607. /***/ "../../node_modules/react-contextmenu/es6/AbstractMenu.js":
  23608. /*!******************************************************************************!*\
  23609. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/AbstractMenu.js ***!
  23610. \******************************************************************************/
  23611. /*! exports provided: default */
  23612. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23613. "use strict";
  23614. __webpack_require__.r(__webpack_exports__);
  23615. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23616. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  23617. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  23618. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  23619. /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "../../node_modules/react-contextmenu/es6/MenuItem.js");
  23620. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23621. 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; }
  23622. 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; }
  23623. var AbstractMenu = function (_Component) {
  23624. _inherits(AbstractMenu, _Component);
  23625. function AbstractMenu(props) {
  23626. _classCallCheck(this, AbstractMenu);
  23627. var _this = _possibleConstructorReturn(this, (AbstractMenu.__proto__ || Object.getPrototypeOf(AbstractMenu)).call(this, props));
  23628. _initialiseProps.call(_this);
  23629. _this.seletedItemRef = null;
  23630. _this.state = {
  23631. selectedItem: null,
  23632. forceSubMenuOpen: false
  23633. };
  23634. return _this;
  23635. }
  23636. return AbstractMenu;
  23637. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  23638. AbstractMenu.propTypes = {
  23639. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired
  23640. };
  23641. var _initialiseProps = function _initialiseProps() {
  23642. var _this2 = this;
  23643. this.handleKeyNavigation = function (e) {
  23644. // check for isVisible strictly here as it might be undefined when this code executes in the context of SubMenu
  23645. // but we only need to check when it runs in the ContextMenu context
  23646. if (_this2.state.isVisible === false) {
  23647. return;
  23648. }
  23649. switch (e.keyCode) {
  23650. case 37: // left arrow
  23651. case 27:
  23652. // escape
  23653. e.preventDefault();
  23654. _this2.hideMenu(e);
  23655. break;
  23656. case 38:
  23657. // up arrow
  23658. e.preventDefault();
  23659. _this2.selectChildren(true);
  23660. break;
  23661. case 40:
  23662. // down arrow
  23663. e.preventDefault();
  23664. _this2.selectChildren(false);
  23665. break;
  23666. case 39:
  23667. // right arrow
  23668. _this2.tryToOpenSubMenu(e);
  23669. break;
  23670. case 13:
  23671. // enter
  23672. e.preventDefault();
  23673. _this2.tryToOpenSubMenu(e);
  23674. {
  23675. // determine the selected item is disabled or not
  23676. var disabled = _this2.seletedItemRef && _this2.seletedItemRef.props && _this2.seletedItemRef.props.disabled;
  23677. if (_this2.seletedItemRef && _this2.seletedItemRef.ref instanceof HTMLElement && !disabled) {
  23678. _this2.seletedItemRef.ref.click();
  23679. } else {
  23680. _this2.hideMenu(e);
  23681. }
  23682. }
  23683. break;
  23684. default:
  23685. // do nothing
  23686. }
  23687. };
  23688. this.handleForceClose = function () {
  23689. _this2.setState({ forceSubMenuOpen: false });
  23690. };
  23691. this.tryToOpenSubMenu = function (e) {
  23692. if (_this2.state.selectedItem && _this2.state.selectedItem.type === _this2.getSubMenuType()) {
  23693. e.preventDefault();
  23694. _this2.setState({ forceSubMenuOpen: true });
  23695. }
  23696. };
  23697. this.selectChildren = function (forward) {
  23698. var selectedItem = _this2.state.selectedItem;
  23699. var children = [];
  23700. var disabledChildrenCount = 0;
  23701. var disabledChildIndexes = {};
  23702. var childCollector = function childCollector(child, index) {
  23703. // child can be empty in case you do conditional rendering of components, in which
  23704. // case it should not be accounted for as a real child
  23705. if (!child) {
  23706. return;
  23707. }
  23708. if ([_MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"], _this2.getSubMenuType()].indexOf(child.type) < 0) {
  23709. // Maybe the MenuItem or SubMenu is capsuled in a wrapper div or something else
  23710. react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(child.props.children, childCollector);
  23711. } else if (!child.props.divider) {
  23712. if (child.props.disabled) {
  23713. ++disabledChildrenCount;
  23714. disabledChildIndexes[index] = true;
  23715. }
  23716. children.push(child);
  23717. }
  23718. };
  23719. react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(_this2.props.children, childCollector);
  23720. if (disabledChildrenCount === children.length) {
  23721. // All menu items are disabled, so none can be selected, don't do anything
  23722. return;
  23723. }
  23724. function findNextEnabledChildIndex(currentIndex) {
  23725. var i = currentIndex;
  23726. var incrementCounter = function incrementCounter() {
  23727. if (forward) {
  23728. --i;
  23729. } else {
  23730. ++i;
  23731. }
  23732. if (i < 0) {
  23733. i = children.length - 1;
  23734. } else if (i >= children.length) {
  23735. i = 0;
  23736. }
  23737. };
  23738. do {
  23739. incrementCounter();
  23740. } while (i !== currentIndex && disabledChildIndexes[i]);
  23741. return i === currentIndex ? null : i;
  23742. }
  23743. var currentIndex = children.indexOf(selectedItem);
  23744. var nextEnabledChildIndex = findNextEnabledChildIndex(currentIndex);
  23745. if (nextEnabledChildIndex !== null) {
  23746. _this2.setState({
  23747. selectedItem: children[nextEnabledChildIndex],
  23748. forceSubMenuOpen: false
  23749. });
  23750. }
  23751. };
  23752. this.onChildMouseMove = function (child) {
  23753. if (_this2.state.selectedItem !== child) {
  23754. _this2.setState({ selectedItem: child, forceSubMenuOpen: false });
  23755. }
  23756. };
  23757. this.onChildMouseLeave = function () {
  23758. _this2.setState({ selectedItem: null, forceSubMenuOpen: false });
  23759. };
  23760. this.renderChildren = function (children) {
  23761. return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (child) {
  23762. var props = {};
  23763. if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) return child;
  23764. if ([_MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"], _this2.getSubMenuType()].indexOf(child.type) < 0) {
  23765. // Maybe the MenuItem or SubMenu is capsuled in a wrapper div or something else
  23766. props.children = _this2.renderChildren(child.props.children);
  23767. return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, props);
  23768. }
  23769. props.onMouseLeave = _this2.onChildMouseLeave.bind(_this2);
  23770. if (child.type === _this2.getSubMenuType()) {
  23771. // special props for SubMenu only
  23772. props.forceOpen = _this2.state.forceSubMenuOpen && _this2.state.selectedItem === child;
  23773. props.forceClose = _this2.handleForceClose;
  23774. props.parentKeyNavigationHandler = _this2.handleKeyNavigation;
  23775. }
  23776. if (!child.props.divider && _this2.state.selectedItem === child) {
  23777. // special props for selected item only
  23778. props.selected = true;
  23779. props.ref = function (ref) {
  23780. _this2.seletedItemRef = ref;
  23781. };
  23782. return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, props);
  23783. }
  23784. // onMouseMove is only needed for non selected items
  23785. props.onMouseMove = function () {
  23786. return _this2.onChildMouseMove(child);
  23787. };
  23788. return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, props);
  23789. });
  23790. };
  23791. };
  23792. /* harmony default export */ __webpack_exports__["default"] = (AbstractMenu);
  23793. /***/ }),
  23794. /***/ "../../node_modules/react-contextmenu/es6/ContextMenu.js":
  23795. /*!*****************************************************************************!*\
  23796. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/ContextMenu.js ***!
  23797. \*****************************************************************************/
  23798. /*! exports provided: default */
  23799. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23800. "use strict";
  23801. __webpack_require__.r(__webpack_exports__);
  23802. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23803. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  23804. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  23805. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  23806. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  23807. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  23808. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  23809. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  23810. /* harmony import */ var _globalEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./globalEventListener */ "../../node_modules/react-contextmenu/es6/globalEventListener.js");
  23811. /* harmony import */ var _AbstractMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AbstractMenu */ "../../node_modules/react-contextmenu/es6/AbstractMenu.js");
  23812. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SubMenu */ "../../node_modules/react-contextmenu/es6/SubMenu.js");
  23813. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  23814. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  23815. 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; }; }();
  23816. 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; }
  23817. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23818. 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; }
  23819. 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; }
  23820. var ContextMenu = function (_AbstractMenu) {
  23821. _inherits(ContextMenu, _AbstractMenu);
  23822. function ContextMenu(props) {
  23823. _classCallCheck(this, ContextMenu);
  23824. var _this = _possibleConstructorReturn(this, (ContextMenu.__proto__ || Object.getPrototypeOf(ContextMenu)).call(this, props));
  23825. _this.registerHandlers = function () {
  23826. document.addEventListener('mousedown', _this.handleOutsideClick);
  23827. document.addEventListener('touchstart', _this.handleOutsideClick);
  23828. if (!_this.props.preventHideOnScroll) document.addEventListener('scroll', _this.handleHide);
  23829. if (!_this.props.preventHideOnContextMenu) document.addEventListener('contextmenu', _this.handleHide);
  23830. document.addEventListener('keydown', _this.handleKeyNavigation);
  23831. if (!_this.props.preventHideOnResize) window.addEventListener('resize', _this.handleHide);
  23832. };
  23833. _this.unregisterHandlers = function () {
  23834. document.removeEventListener('mousedown', _this.handleOutsideClick);
  23835. document.removeEventListener('touchstart', _this.handleOutsideClick);
  23836. document.removeEventListener('scroll', _this.handleHide);
  23837. document.removeEventListener('contextmenu', _this.handleHide);
  23838. document.removeEventListener('keydown', _this.handleKeyNavigation);
  23839. window.removeEventListener('resize', _this.handleHide);
  23840. };
  23841. _this.handleShow = function (e) {
  23842. if (e.detail.id !== _this.props.id || _this.state.isVisible) return;
  23843. var _e$detail$position = e.detail.position,
  23844. x = _e$detail$position.x,
  23845. y = _e$detail$position.y;
  23846. _this.setState({ isVisible: true, x: x, y: y });
  23847. _this.registerHandlers();
  23848. Object(_helpers__WEBPACK_IMPORTED_MODULE_8__["callIfExists"])(_this.props.onShow, e);
  23849. };
  23850. _this.handleHide = function (e) {
  23851. if (_this.state.isVisible && (!e.detail || !e.detail.id || e.detail.id === _this.props.id)) {
  23852. _this.unregisterHandlers();
  23853. _this.setState({ isVisible: false, selectedItem: null, forceSubMenuOpen: false });
  23854. Object(_helpers__WEBPACK_IMPORTED_MODULE_8__["callIfExists"])(_this.props.onHide, e);
  23855. }
  23856. };
  23857. _this.handleOutsideClick = function (e) {
  23858. if (!_this.menu.contains(e.target)) Object(_actions__WEBPACK_IMPORTED_MODULE_7__["hideMenu"])();
  23859. };
  23860. _this.handleMouseLeave = function (event) {
  23861. event.preventDefault();
  23862. 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);
  23863. if (_this.props.hideOnLeave) Object(_actions__WEBPACK_IMPORTED_MODULE_7__["hideMenu"])();
  23864. };
  23865. _this.handleContextMenu = function (e) {
  23866. if (false) {}
  23867. _this.handleHide(e);
  23868. };
  23869. _this.hideMenu = function (e) {
  23870. if (e.keyCode === 27 || e.keyCode === 13) {
  23871. // ECS or enter
  23872. Object(_actions__WEBPACK_IMPORTED_MODULE_7__["hideMenu"])();
  23873. }
  23874. };
  23875. _this.getMenuPosition = function () {
  23876. var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  23877. var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  23878. var menuStyles = {
  23879. top: y,
  23880. left: x
  23881. };
  23882. if (!_this.menu) return menuStyles;
  23883. var _window = window,
  23884. innerWidth = _window.innerWidth,
  23885. innerHeight = _window.innerHeight;
  23886. var rect = _this.menu.getBoundingClientRect();
  23887. if (y + rect.height > innerHeight) {
  23888. menuStyles.top -= rect.height;
  23889. }
  23890. if (x + rect.width > innerWidth) {
  23891. menuStyles.left -= rect.width;
  23892. }
  23893. if (menuStyles.top < 0) {
  23894. menuStyles.top = rect.height < innerHeight ? (innerHeight - rect.height) / 2 : 0;
  23895. }
  23896. if (menuStyles.left < 0) {
  23897. menuStyles.left = rect.width < innerWidth ? (innerWidth - rect.width) / 2 : 0;
  23898. }
  23899. return menuStyles;
  23900. };
  23901. _this.getRTLMenuPosition = function () {
  23902. var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  23903. var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  23904. var menuStyles = {
  23905. top: y,
  23906. left: x
  23907. };
  23908. if (!_this.menu) return menuStyles;
  23909. var _window2 = window,
  23910. innerWidth = _window2.innerWidth,
  23911. innerHeight = _window2.innerHeight;
  23912. var rect = _this.menu.getBoundingClientRect();
  23913. // Try to position the menu on the left side of the cursor
  23914. menuStyles.left = x - rect.width;
  23915. if (y + rect.height > innerHeight) {
  23916. menuStyles.top -= rect.height;
  23917. }
  23918. if (menuStyles.left < 0) {
  23919. menuStyles.left += rect.width;
  23920. }
  23921. if (menuStyles.top < 0) {
  23922. menuStyles.top = rect.height < innerHeight ? (innerHeight - rect.height) / 2 : 0;
  23923. }
  23924. if (menuStyles.left + rect.width > innerWidth) {
  23925. menuStyles.left = rect.width < innerWidth ? (innerWidth - rect.width) / 2 : 0;
  23926. }
  23927. return menuStyles;
  23928. };
  23929. _this.menuRef = function (c) {
  23930. _this.menu = c;
  23931. };
  23932. _this.state = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.state, {
  23933. x: 0,
  23934. y: 0,
  23935. isVisible: false
  23936. });
  23937. return _this;
  23938. }
  23939. _createClass(ContextMenu, [{
  23940. key: 'getSubMenuType',
  23941. value: function getSubMenuType() {
  23942. // eslint-disable-line class-methods-use-this
  23943. return _SubMenu__WEBPACK_IMPORTED_MODULE_6__["default"];
  23944. }
  23945. }, {
  23946. key: 'componentDidMount',
  23947. value: function componentDidMount() {
  23948. this.listenId = _globalEventListener__WEBPACK_IMPORTED_MODULE_4__["default"].register(this.handleShow, this.handleHide);
  23949. }
  23950. }, {
  23951. key: 'componentDidUpdate',
  23952. value: function componentDidUpdate() {
  23953. var _this2 = this;
  23954. var wrapper = window.requestAnimationFrame || setTimeout;
  23955. if (this.state.isVisible) {
  23956. wrapper(function () {
  23957. var _state = _this2.state,
  23958. x = _state.x,
  23959. y = _state.y;
  23960. var _ref = _this2.props.rtl ? _this2.getRTLMenuPosition(x, y) : _this2.getMenuPosition(x, y),
  23961. top = _ref.top,
  23962. left = _ref.left;
  23963. wrapper(function () {
  23964. if (!_this2.menu) return;
  23965. _this2.menu.style.top = top + 'px';
  23966. _this2.menu.style.left = left + 'px';
  23967. _this2.menu.style.opacity = 1;
  23968. _this2.menu.style.pointerEvents = 'auto';
  23969. });
  23970. });
  23971. } else {
  23972. wrapper(function () {
  23973. if (!_this2.menu) return;
  23974. _this2.menu.style.opacity = 0;
  23975. _this2.menu.style.pointerEvents = 'none';
  23976. });
  23977. }
  23978. }
  23979. }, {
  23980. key: 'componentWillUnmount',
  23981. value: function componentWillUnmount() {
  23982. if (this.listenId) {
  23983. _globalEventListener__WEBPACK_IMPORTED_MODULE_4__["default"].unregister(this.listenId);
  23984. }
  23985. this.unregisterHandlers();
  23986. }
  23987. }, {
  23988. key: 'render',
  23989. value: function render() {
  23990. var _props = this.props,
  23991. children = _props.children,
  23992. className = _props.className,
  23993. style = _props.style;
  23994. var isVisible = this.state.isVisible;
  23995. var inlineStyle = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, style, { position: 'fixed', opacity: 0, pointerEvents: 'none' });
  23996. 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));
  23997. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  23998. 'nav',
  23999. {
  24000. role: 'menu', tabIndex: '-1', ref: this.menuRef, style: inlineStyle, className: menuClassnames,
  24001. onContextMenu: this.handleContextMenu, onMouseLeave: this.handleMouseLeave },
  24002. this.renderChildren(children)
  24003. );
  24004. }
  24005. }]);
  24006. return ContextMenu;
  24007. }(_AbstractMenu__WEBPACK_IMPORTED_MODULE_5__["default"]);
  24008. ContextMenu.propTypes = {
  24009. id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  24010. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  24011. data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  24012. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  24013. hideOnLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24014. rtl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24015. onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24016. onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24017. onShow: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24018. preventHideOnContextMenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24019. preventHideOnResize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24020. preventHideOnScroll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24021. style: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  24022. };
  24023. ContextMenu.defaultProps = {
  24024. className: '',
  24025. data: {},
  24026. hideOnLeave: false,
  24027. rtl: false,
  24028. onHide: function onHide() {
  24029. return null;
  24030. },
  24031. onMouseLeave: function onMouseLeave() {
  24032. return null;
  24033. },
  24034. onShow: function onShow() {
  24035. return null;
  24036. },
  24037. preventHideOnContextMenu: false,
  24038. preventHideOnResize: false,
  24039. preventHideOnScroll: false,
  24040. style: {}
  24041. };
  24042. /* harmony default export */ __webpack_exports__["default"] = (ContextMenu);
  24043. /***/ }),
  24044. /***/ "../../node_modules/react-contextmenu/es6/ContextMenuTrigger.js":
  24045. /*!************************************************************************************!*\
  24046. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/ContextMenuTrigger.js ***!
  24047. \************************************************************************************/
  24048. /*! exports provided: default */
  24049. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24050. "use strict";
  24051. __webpack_require__.r(__webpack_exports__);
  24052. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24053. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  24054. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  24055. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  24056. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  24057. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  24058. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  24059. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  24060. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  24061. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  24062. 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; }; }();
  24063. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24064. 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; }
  24065. 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; }
  24066. var ContextMenuTrigger = function (_Component) {
  24067. _inherits(ContextMenuTrigger, _Component);
  24068. function ContextMenuTrigger() {
  24069. var _ref;
  24070. var _temp, _this, _ret;
  24071. _classCallCheck(this, ContextMenuTrigger);
  24072. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  24073. args[_key] = arguments[_key];
  24074. }
  24075. 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) {
  24076. if (_this.props.holdToDisplay >= 0 && event.button === 0) {
  24077. event.persist();
  24078. event.stopPropagation();
  24079. _this.mouseDownTimeoutId = setTimeout(function () {
  24080. return _this.handleContextClick(event);
  24081. }, _this.props.holdToDisplay);
  24082. }
  24083. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onMouseDown, event);
  24084. }, _this.handleMouseUp = function (event) {
  24085. if (event.button === 0) {
  24086. clearTimeout(_this.mouseDownTimeoutId);
  24087. }
  24088. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onMouseUp, event);
  24089. }, _this.handleMouseOut = function (event) {
  24090. if (event.button === 0) {
  24091. clearTimeout(_this.mouseDownTimeoutId);
  24092. }
  24093. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onMouseOut, event);
  24094. }, _this.handleTouchstart = function (event) {
  24095. _this.touchHandled = false;
  24096. if (_this.props.holdToDisplay >= 0) {
  24097. event.persist();
  24098. event.stopPropagation();
  24099. _this.touchstartTimeoutId = setTimeout(function () {
  24100. _this.handleContextClick(event);
  24101. _this.touchHandled = true;
  24102. }, _this.props.holdToDisplay);
  24103. }
  24104. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onTouchStart, event);
  24105. }, _this.handleTouchEnd = function (event) {
  24106. if (_this.touchHandled) {
  24107. event.preventDefault();
  24108. }
  24109. clearTimeout(_this.touchstartTimeoutId);
  24110. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onTouchEnd, event);
  24111. }, _this.handleContextMenu = function (event) {
  24112. if (event.button === _this.props.mouseButton) {
  24113. _this.handleContextClick(event);
  24114. }
  24115. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onContextMenu, event);
  24116. }, _this.handleMouseClick = function (event) {
  24117. if (event.button === _this.props.mouseButton) {
  24118. _this.handleContextClick(event);
  24119. }
  24120. Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.attributes.onClick, event);
  24121. }, _this.handleContextClick = function (event) {
  24122. if (_this.props.disable) return;
  24123. if (_this.props.disableIfShiftIsPressed && event.shiftKey) return;
  24124. event.preventDefault();
  24125. event.stopPropagation();
  24126. var x = event.clientX || event.touches && event.touches[0].pageX;
  24127. var y = event.clientY || event.touches && event.touches[0].pageY;
  24128. if (_this.props.posX) {
  24129. x -= _this.props.posX;
  24130. }
  24131. if (_this.props.posY) {
  24132. y -= _this.props.posY;
  24133. }
  24134. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["hideMenu"])();
  24135. var data = Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["callIfExists"])(_this.props.collect, _this.props);
  24136. var showMenuConfig = {
  24137. position: { x: x, y: y },
  24138. target: _this.elem,
  24139. id: _this.props.id
  24140. };
  24141. if (data && typeof data.then === 'function') {
  24142. // it's promise
  24143. data.then(function (resp) {
  24144. showMenuConfig.data = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, resp, {
  24145. target: event.target
  24146. });
  24147. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["showMenu"])(showMenuConfig);
  24148. });
  24149. } else {
  24150. showMenuConfig.data = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, data, {
  24151. target: event.target
  24152. });
  24153. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["showMenu"])(showMenuConfig);
  24154. }
  24155. }, _this.elemRef = function (c) {
  24156. _this.elem = c;
  24157. }, _temp), _possibleConstructorReturn(_this, _ret);
  24158. }
  24159. _createClass(ContextMenuTrigger, [{
  24160. key: 'render',
  24161. value: function render() {
  24162. var _props = this.props,
  24163. renderTag = _props.renderTag,
  24164. attributes = _props.attributes,
  24165. children = _props.children;
  24166. var newAttrs = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, attributes, {
  24167. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_5__["cssClasses"].menuWrapper, attributes.className),
  24168. onContextMenu: this.handleContextMenu,
  24169. onClick: this.handleMouseClick,
  24170. onMouseDown: this.handleMouseDown,
  24171. onMouseUp: this.handleMouseUp,
  24172. onTouchStart: this.handleTouchstart,
  24173. onTouchEnd: this.handleTouchEnd,
  24174. onMouseOut: this.handleMouseOut,
  24175. ref: this.elemRef
  24176. });
  24177. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(renderTag, newAttrs, children);
  24178. }
  24179. }]);
  24180. return ContextMenuTrigger;
  24181. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  24182. ContextMenuTrigger.propTypes = {
  24183. id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  24184. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  24185. attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  24186. collect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24187. disable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24188. holdToDisplay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  24189. posX: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  24190. posY: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  24191. renderTag: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.elementType,
  24192. mouseButton: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  24193. disableIfShiftIsPressed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
  24194. };
  24195. ContextMenuTrigger.defaultProps = {
  24196. attributes: {},
  24197. collect: function collect() {
  24198. return null;
  24199. },
  24200. disable: false,
  24201. holdToDisplay: 1000,
  24202. renderTag: 'div',
  24203. posX: 0,
  24204. posY: 0,
  24205. mouseButton: 2, // 0 is left click, 2 is right click
  24206. disableIfShiftIsPressed: false
  24207. };
  24208. /* harmony default export */ __webpack_exports__["default"] = (ContextMenuTrigger);
  24209. /***/ }),
  24210. /***/ "../../node_modules/react-contextmenu/es6/MenuItem.js":
  24211. /*!**************************************************************************!*\
  24212. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/MenuItem.js ***!
  24213. \**************************************************************************/
  24214. /*! exports provided: default */
  24215. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24216. "use strict";
  24217. __webpack_require__.r(__webpack_exports__);
  24218. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24219. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  24220. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  24221. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  24222. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  24223. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  24224. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  24225. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  24226. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  24227. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  24228. 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; };
  24229. 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; }; }();
  24230. 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; }
  24231. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24232. 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; }
  24233. 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; }
  24234. var MenuItem = function (_Component) {
  24235. _inherits(MenuItem, _Component);
  24236. function MenuItem() {
  24237. var _ref;
  24238. var _temp, _this, _ret;
  24239. _classCallCheck(this, MenuItem);
  24240. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  24241. args[_key] = arguments[_key];
  24242. }
  24243. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MenuItem.__proto__ || Object.getPrototypeOf(MenuItem)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (event) {
  24244. if (event.button !== 0 && event.button !== 1) {
  24245. event.preventDefault();
  24246. }
  24247. if (_this.props.disabled || _this.props.divider) return;
  24248. 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);
  24249. if (_this.props.preventClose) return;
  24250. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["hideMenu"])();
  24251. }, _temp), _possibleConstructorReturn(_this, _ret);
  24252. }
  24253. _createClass(MenuItem, [{
  24254. key: 'render',
  24255. value: function render() {
  24256. var _cx,
  24257. _this2 = this;
  24258. var _props = this.props,
  24259. attributes = _props.attributes,
  24260. children = _props.children,
  24261. className = _props.className,
  24262. disabled = _props.disabled,
  24263. divider = _props.divider,
  24264. selected = _props.selected;
  24265. var menuItemClassNames = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, _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));
  24266. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  24267. 'div',
  24268. _extends({}, attributes, { className: menuItemClassNames,
  24269. role: 'menuitem', tabIndex: '-1', 'aria-disabled': disabled ? 'true' : 'false',
  24270. 'aria-orientation': divider ? 'horizontal' : null,
  24271. ref: function ref(_ref2) {
  24272. _this2.ref = _ref2;
  24273. },
  24274. onMouseMove: this.props.onMouseMove, onMouseLeave: this.props.onMouseLeave,
  24275. onTouchEnd: this.handleClick, onClick: this.handleClick }),
  24276. divider ? null : children
  24277. );
  24278. }
  24279. }]);
  24280. return MenuItem;
  24281. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  24282. MenuItem.propTypes = {
  24283. attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  24284. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  24285. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  24286. data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  24287. disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24288. divider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24289. onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24290. onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24291. onMouseMove: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24292. preventClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24293. selected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
  24294. };
  24295. MenuItem.defaultProps = {
  24296. attributes: {},
  24297. children: null,
  24298. className: '',
  24299. data: {},
  24300. disabled: false,
  24301. divider: false,
  24302. onClick: function onClick() {
  24303. return null;
  24304. },
  24305. onMouseMove: function onMouseMove() {
  24306. return null;
  24307. },
  24308. onMouseLeave: function onMouseLeave() {
  24309. return null;
  24310. },
  24311. preventClose: false,
  24312. selected: false
  24313. };
  24314. /* harmony default export */ __webpack_exports__["default"] = (MenuItem);
  24315. /***/ }),
  24316. /***/ "../../node_modules/react-contextmenu/es6/SubMenu.js":
  24317. /*!*************************************************************************!*\
  24318. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/SubMenu.js ***!
  24319. \*************************************************************************/
  24320. /*! exports provided: default */
  24321. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24322. "use strict";
  24323. __webpack_require__.r(__webpack_exports__);
  24324. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24325. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  24326. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  24327. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  24328. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
  24329. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  24330. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  24331. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_3__);
  24332. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  24333. /* harmony import */ var _AbstractMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AbstractMenu */ "../../node_modules/react-contextmenu/es6/AbstractMenu.js");
  24334. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  24335. /* harmony import */ var _globalEventListener__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./globalEventListener */ "../../node_modules/react-contextmenu/es6/globalEventListener.js");
  24336. 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; };
  24337. 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; }; }();
  24338. 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; }
  24339. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24340. 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; }
  24341. 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; }
  24342. var SubMenu = function (_AbstractMenu) {
  24343. _inherits(SubMenu, _AbstractMenu);
  24344. function SubMenu(props) {
  24345. _classCallCheck(this, SubMenu);
  24346. var _this = _possibleConstructorReturn(this, (SubMenu.__proto__ || Object.getPrototypeOf(SubMenu)).call(this, props));
  24347. _this.getMenuPosition = function () {
  24348. var _window = window,
  24349. innerWidth = _window.innerWidth,
  24350. innerHeight = _window.innerHeight;
  24351. var rect = _this.subMenu.getBoundingClientRect();
  24352. var position = {};
  24353. if (rect.bottom > innerHeight) {
  24354. position.bottom = 0;
  24355. } else {
  24356. position.top = 0;
  24357. }
  24358. if (rect.right < innerWidth) {
  24359. position.left = '100%';
  24360. } else {
  24361. position.right = '100%';
  24362. }
  24363. return position;
  24364. };
  24365. _this.getRTLMenuPosition = function () {
  24366. var _window2 = window,
  24367. innerHeight = _window2.innerHeight;
  24368. var rect = _this.subMenu.getBoundingClientRect();
  24369. var position = {};
  24370. if (rect.bottom > innerHeight) {
  24371. position.bottom = 0;
  24372. } else {
  24373. position.top = 0;
  24374. }
  24375. if (rect.left < 0) {
  24376. position.left = '100%';
  24377. } else {
  24378. position.right = '100%';
  24379. }
  24380. return position;
  24381. };
  24382. _this.hideSubMenu = function (e) {
  24383. // avoid closing submenus of a different menu tree
  24384. if (e.detail && e.detail.id && _this.menu && e.detail.id !== _this.menu.id) {
  24385. return;
  24386. }
  24387. if (_this.props.forceOpen) {
  24388. _this.props.forceClose();
  24389. }
  24390. _this.setState({ visible: false, selectedItem: null });
  24391. _this.unregisterHandlers();
  24392. };
  24393. _this.handleClick = function (event) {
  24394. event.preventDefault();
  24395. if (_this.props.disabled) return;
  24396. Object(_helpers__WEBPACK_IMPORTED_MODULE_6__["callIfExists"])(_this.props.onClick, event, object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.props.data, _helpers__WEBPACK_IMPORTED_MODULE_6__["store"].data), _helpers__WEBPACK_IMPORTED_MODULE_6__["store"].target);
  24397. if (!_this.props.onClick || _this.props.preventCloseOnClick) return;
  24398. Object(_actions__WEBPACK_IMPORTED_MODULE_4__["hideMenu"])();
  24399. };
  24400. _this.handleMouseEnter = function () {
  24401. if (_this.closetimer) clearTimeout(_this.closetimer);
  24402. if (_this.props.disabled || _this.state.visible) return;
  24403. _this.opentimer = setTimeout(function () {
  24404. return _this.setState({
  24405. visible: true,
  24406. selectedItem: null
  24407. });
  24408. }, _this.props.hoverDelay);
  24409. };
  24410. _this.handleMouseLeave = function () {
  24411. if (_this.opentimer) clearTimeout(_this.opentimer);
  24412. if (!_this.state.visible) return;
  24413. _this.closetimer = setTimeout(function () {
  24414. return _this.setState({
  24415. visible: false,
  24416. selectedItem: null
  24417. });
  24418. }, _this.props.hoverDelay);
  24419. };
  24420. _this.menuRef = function (c) {
  24421. _this.menu = c;
  24422. };
  24423. _this.subMenuRef = function (c) {
  24424. _this.subMenu = c;
  24425. };
  24426. _this.registerHandlers = function () {
  24427. document.removeEventListener('keydown', _this.props.parentKeyNavigationHandler);
  24428. document.addEventListener('keydown', _this.handleKeyNavigation);
  24429. };
  24430. _this.unregisterHandlers = function (dismounting) {
  24431. document.removeEventListener('keydown', _this.handleKeyNavigation);
  24432. if (!dismounting) {
  24433. document.addEventListener('keydown', _this.props.parentKeyNavigationHandler);
  24434. }
  24435. };
  24436. _this.state = object_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, _this.state, {
  24437. visible: false
  24438. });
  24439. return _this;
  24440. }
  24441. _createClass(SubMenu, [{
  24442. key: 'componentDidMount',
  24443. value: function componentDidMount() {
  24444. this.listenId = _globalEventListener__WEBPACK_IMPORTED_MODULE_7__["default"].register(function () {}, this.hideSubMenu);
  24445. }
  24446. }, {
  24447. key: 'getSubMenuType',
  24448. value: function getSubMenuType() {
  24449. // eslint-disable-line class-methods-use-this
  24450. return SubMenu;
  24451. }
  24452. }, {
  24453. key: 'shouldComponentUpdate',
  24454. value: function shouldComponentUpdate(nextProps, nextState) {
  24455. this.isVisibilityChange = (this.state.visible !== nextState.visible || this.props.forceOpen !== nextProps.forceOpen) && !(this.state.visible && nextProps.forceOpen) && !(this.props.forceOpen && nextState.visible);
  24456. return true;
  24457. }
  24458. }, {
  24459. key: 'componentDidUpdate',
  24460. value: function componentDidUpdate() {
  24461. var _this2 = this;
  24462. if (!this.isVisibilityChange) return;
  24463. if (this.props.forceOpen || this.state.visible) {
  24464. var wrapper = window.requestAnimationFrame || setTimeout;
  24465. wrapper(function () {
  24466. var styles = _this2.props.rtl ? _this2.getRTLMenuPosition() : _this2.getMenuPosition();
  24467. _this2.subMenu.style.removeProperty('top');
  24468. _this2.subMenu.style.removeProperty('bottom');
  24469. _this2.subMenu.style.removeProperty('left');
  24470. _this2.subMenu.style.removeProperty('right');
  24471. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_6__["hasOwnProp"])(styles, 'top')) _this2.subMenu.style.top = styles.top;
  24472. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_6__["hasOwnProp"])(styles, 'left')) _this2.subMenu.style.left = styles.left;
  24473. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_6__["hasOwnProp"])(styles, 'bottom')) _this2.subMenu.style.bottom = styles.bottom;
  24474. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_6__["hasOwnProp"])(styles, 'right')) _this2.subMenu.style.right = styles.right;
  24475. _this2.subMenu.classList.add(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuVisible);
  24476. _this2.registerHandlers();
  24477. _this2.setState({ selectedItem: null });
  24478. });
  24479. } else {
  24480. var cleanup = function cleanup() {
  24481. _this2.subMenu.removeEventListener('transitionend', cleanup);
  24482. _this2.subMenu.style.removeProperty('bottom');
  24483. _this2.subMenu.style.removeProperty('right');
  24484. _this2.subMenu.style.top = 0;
  24485. _this2.subMenu.style.left = '100%';
  24486. _this2.unregisterHandlers();
  24487. };
  24488. this.subMenu.addEventListener('transitionend', cleanup);
  24489. this.subMenu.classList.remove(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuVisible);
  24490. }
  24491. }
  24492. }, {
  24493. key: 'componentWillUnmount',
  24494. value: function componentWillUnmount() {
  24495. if (this.listenId) {
  24496. _globalEventListener__WEBPACK_IMPORTED_MODULE_7__["default"].unregister(this.listenId);
  24497. }
  24498. if (this.opentimer) clearTimeout(this.opentimer);
  24499. if (this.closetimer) clearTimeout(this.closetimer);
  24500. this.unregisterHandlers(true);
  24501. }
  24502. }, {
  24503. key: 'render',
  24504. value: function render() {
  24505. var _cx;
  24506. var _props = this.props,
  24507. children = _props.children,
  24508. attributes = _props.attributes,
  24509. disabled = _props.disabled,
  24510. title = _props.title,
  24511. selected = _props.selected;
  24512. var visible = this.state.visible;
  24513. var menuProps = {
  24514. ref: this.menuRef,
  24515. onMouseEnter: this.handleMouseEnter,
  24516. onMouseLeave: this.handleMouseLeave,
  24517. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuItem, _helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].subMenu, attributes.listClassName),
  24518. style: {
  24519. position: 'relative'
  24520. }
  24521. };
  24522. var menuItemProps = {
  24523. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuItem, attributes.className, (_cx = {}, _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuItemDisabled, attributes.disabledClassName), disabled), _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuItemActive, attributes.visibleClassName), visible), _defineProperty(_cx, classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menuItemSelected, attributes.selectedClassName), selected), _cx)),
  24524. onMouseMove: this.props.onMouseMove,
  24525. onMouseOut: this.props.onMouseOut,
  24526. onClick: this.handleClick
  24527. };
  24528. var subMenuProps = {
  24529. ref: this.subMenuRef,
  24530. style: {
  24531. position: 'absolute',
  24532. transition: 'opacity 1ms', // trigger transitionend event
  24533. top: 0,
  24534. left: '100%'
  24535. },
  24536. className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_helpers__WEBPACK_IMPORTED_MODULE_6__["cssClasses"].menu, this.props.className)
  24537. };
  24538. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  24539. 'nav',
  24540. _extends({}, menuProps, { role: 'menuitem', tabIndex: '-1', 'aria-haspopup': 'true' }),
  24541. react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  24542. 'div',
  24543. _extends({}, attributes, menuItemProps),
  24544. title
  24545. ),
  24546. react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
  24547. 'nav',
  24548. _extends({}, subMenuProps, { role: 'menu', tabIndex: '-1' }),
  24549. this.renderChildren(children)
  24550. )
  24551. );
  24552. }
  24553. }]);
  24554. return SubMenu;
  24555. }(_AbstractMenu__WEBPACK_IMPORTED_MODULE_5__["default"]);
  24556. SubMenu.propTypes = {
  24557. children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  24558. attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  24559. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  24560. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  24561. disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24562. hoverDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  24563. rtl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24564. selected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24565. onMouseMove: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24566. onMouseOut: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24567. forceOpen: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  24568. forceClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  24569. parentKeyNavigationHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  24570. };
  24571. SubMenu.defaultProps = {
  24572. disabled: false,
  24573. hoverDelay: 500,
  24574. attributes: {},
  24575. className: '',
  24576. rtl: false,
  24577. selected: false,
  24578. onMouseMove: function onMouseMove() {
  24579. return null;
  24580. },
  24581. onMouseOut: function onMouseOut() {
  24582. return null;
  24583. },
  24584. forceOpen: false,
  24585. forceClose: function forceClose() {
  24586. return null;
  24587. },
  24588. parentKeyNavigationHandler: function parentKeyNavigationHandler() {
  24589. return null;
  24590. }
  24591. };
  24592. /* harmony default export */ __webpack_exports__["default"] = (SubMenu);
  24593. /***/ }),
  24594. /***/ "../../node_modules/react-contextmenu/es6/actions.js":
  24595. /*!*************************************************************************!*\
  24596. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/actions.js ***!
  24597. \*************************************************************************/
  24598. /*! exports provided: MENU_SHOW, MENU_HIDE, dispatchGlobalEvent, showMenu, hideMenu */
  24599. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24600. "use strict";
  24601. __webpack_require__.r(__webpack_exports__);
  24602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MENU_SHOW", function() { return MENU_SHOW; });
  24603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MENU_HIDE", function() { return MENU_HIDE; });
  24604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatchGlobalEvent", function() { return dispatchGlobalEvent; });
  24605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showMenu", function() { return showMenu; });
  24606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hideMenu", function() { return hideMenu; });
  24607. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  24608. /* harmony import */ var object_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(object_assign__WEBPACK_IMPORTED_MODULE_0__);
  24609. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  24610. var MENU_SHOW = 'REACT_CONTEXTMENU_SHOW';
  24611. var MENU_HIDE = 'REACT_CONTEXTMENU_HIDE';
  24612. function dispatchGlobalEvent(eventName, opts) {
  24613. var target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window;
  24614. // Compatibale with IE
  24615. // @see http://stackoverflow.com/questions/26596123/internet-explorer-9-10-11-event-constructor-doesnt-work
  24616. var event = void 0;
  24617. if (typeof window.CustomEvent === 'function') {
  24618. event = new window.CustomEvent(eventName, { detail: opts });
  24619. } else {
  24620. event = document.createEvent('CustomEvent');
  24621. event.initCustomEvent(eventName, false, true, opts);
  24622. }
  24623. if (target) {
  24624. target.dispatchEvent(event);
  24625. object_assign__WEBPACK_IMPORTED_MODULE_0___default()(_helpers__WEBPACK_IMPORTED_MODULE_1__["store"], opts);
  24626. }
  24627. }
  24628. function showMenu() {
  24629. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  24630. var target = arguments[1];
  24631. dispatchGlobalEvent(MENU_SHOW, object_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, opts, { type: MENU_SHOW }), target);
  24632. }
  24633. function hideMenu() {
  24634. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  24635. var target = arguments[1];
  24636. dispatchGlobalEvent(MENU_HIDE, object_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, opts, { type: MENU_HIDE }), target);
  24637. }
  24638. /***/ }),
  24639. /***/ "../../node_modules/react-contextmenu/es6/connectMenu.js":
  24640. /*!*****************************************************************************!*\
  24641. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/connectMenu.js ***!
  24642. \*****************************************************************************/
  24643. /*! exports provided: default */
  24644. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24645. "use strict";
  24646. __webpack_require__.r(__webpack_exports__);
  24647. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24648. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  24649. /* harmony import */ var _ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextMenuTrigger */ "../../node_modules/react-contextmenu/es6/ContextMenuTrigger.js");
  24650. /* harmony import */ var _globalEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalEventListener */ "../../node_modules/react-contextmenu/es6/globalEventListener.js");
  24651. 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; };
  24652. 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; }; }();
  24653. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24654. 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; }
  24655. 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; }
  24656. 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); } }
  24657. // collect ContextMenuTrigger's expected props to NOT pass them on as part of the context
  24658. var ignoredTriggerProps = [].concat(_toConsumableArray(Object.keys(_ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__["default"].propTypes)), ['children']);
  24659. // expect the id of the menu to be responsible for as outer parameter
  24660. /* harmony default export */ __webpack_exports__["default"] = (function (menuId) {
  24661. // expect menu component to connect as inner parameter
  24662. // <Child/> is presumably a wrapper of <ContextMenu/>
  24663. return function connect(Child) {
  24664. // return wrapper for <Child/> that forwards the ContextMenuTrigger's additional props
  24665. return function (_Component) {
  24666. _inherits(ConnectMenu, _Component);
  24667. function ConnectMenu(props) {
  24668. _classCallCheck(this, ConnectMenu);
  24669. var _this = _possibleConstructorReturn(this, (ConnectMenu.__proto__ || Object.getPrototypeOf(ConnectMenu)).call(this, props));
  24670. _this.handleShow = function (e) {
  24671. if (e.detail.id !== menuId) return;
  24672. // the onShow event's detail.data object holds all ContextMenuTrigger props
  24673. var data = e.detail.data;
  24674. var filteredData = {};
  24675. for (var key in data) {
  24676. // exclude props the ContextMenuTrigger is expecting itself
  24677. if (!ignoredTriggerProps.includes(key)) {
  24678. filteredData[key] = data[key];
  24679. }
  24680. }
  24681. _this.setState({ trigger: filteredData });
  24682. };
  24683. _this.handleHide = function () {
  24684. _this.setState({ trigger: null });
  24685. };
  24686. _this.state = { trigger: null };
  24687. return _this;
  24688. }
  24689. _createClass(ConnectMenu, [{
  24690. key: 'componentDidMount',
  24691. value: function componentDidMount() {
  24692. this.listenId = _globalEventListener__WEBPACK_IMPORTED_MODULE_2__["default"].register(this.handleShow, this.handleHide);
  24693. }
  24694. }, {
  24695. key: 'componentWillUnmount',
  24696. value: function componentWillUnmount() {
  24697. if (this.listenId) {
  24698. _globalEventListener__WEBPACK_IMPORTED_MODULE_2__["default"].unregister(this.listenId);
  24699. }
  24700. }
  24701. }, {
  24702. key: 'render',
  24703. value: function render() {
  24704. return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Child, _extends({}, this.props, { id: menuId, trigger: this.state.trigger }));
  24705. }
  24706. }]);
  24707. return ConnectMenu;
  24708. }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  24709. };
  24710. });
  24711. /***/ }),
  24712. /***/ "../../node_modules/react-contextmenu/es6/globalEventListener.js":
  24713. /*!*************************************************************************************!*\
  24714. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/globalEventListener.js ***!
  24715. \*************************************************************************************/
  24716. /*! exports provided: default */
  24717. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24718. "use strict";
  24719. __webpack_require__.r(__webpack_exports__);
  24720. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  24721. /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../node_modules/react-contextmenu/es6/helpers.js");
  24722. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24723. var GlobalEventListener = function GlobalEventListener() {
  24724. var _this = this;
  24725. _classCallCheck(this, GlobalEventListener);
  24726. this.handleShowEvent = function (event) {
  24727. for (var id in _this.callbacks) {
  24728. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["hasOwnProp"])(_this.callbacks, id)) _this.callbacks[id].show(event);
  24729. }
  24730. };
  24731. this.handleHideEvent = function (event) {
  24732. for (var id in _this.callbacks) {
  24733. if (Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["hasOwnProp"])(_this.callbacks, id)) _this.callbacks[id].hide(event);
  24734. }
  24735. };
  24736. this.register = function (showCallback, hideCallback) {
  24737. var id = Object(_helpers__WEBPACK_IMPORTED_MODULE_1__["uniqueId"])();
  24738. _this.callbacks[id] = {
  24739. show: showCallback,
  24740. hide: hideCallback
  24741. };
  24742. return id;
  24743. };
  24744. this.unregister = function (id) {
  24745. if (id && _this.callbacks[id]) {
  24746. delete _this.callbacks[id];
  24747. }
  24748. };
  24749. this.callbacks = {};
  24750. if (_helpers__WEBPACK_IMPORTED_MODULE_1__["canUseDOM"]) {
  24751. window.addEventListener(_actions__WEBPACK_IMPORTED_MODULE_0__["MENU_SHOW"], this.handleShowEvent);
  24752. window.addEventListener(_actions__WEBPACK_IMPORTED_MODULE_0__["MENU_HIDE"], this.handleHideEvent);
  24753. }
  24754. };
  24755. /* harmony default export */ __webpack_exports__["default"] = (new GlobalEventListener());
  24756. /***/ }),
  24757. /***/ "../../node_modules/react-contextmenu/es6/helpers.js":
  24758. /*!*************************************************************************!*\
  24759. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/helpers.js ***!
  24760. \*************************************************************************/
  24761. /*! exports provided: callIfExists, hasOwnProp, uniqueId, cssClasses, store, canUseDOM */
  24762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24763. "use strict";
  24764. __webpack_require__.r(__webpack_exports__);
  24765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "callIfExists", function() { return callIfExists; });
  24766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwnProp", function() { return hasOwnProp; });
  24767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uniqueId", function() { return uniqueId; });
  24768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cssClasses", function() { return cssClasses; });
  24769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "store", function() { return store; });
  24770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function() { return canUseDOM; });
  24771. function callIfExists(func) {
  24772. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  24773. args[_key - 1] = arguments[_key];
  24774. }
  24775. return typeof func === 'function' && func.apply(undefined, args);
  24776. }
  24777. function hasOwnProp(obj, prop) {
  24778. return Object.prototype.hasOwnProperty.call(obj, prop);
  24779. }
  24780. function uniqueId() {
  24781. return Math.random().toString(36).substring(7);
  24782. }
  24783. var cssClasses = {
  24784. menu: 'react-contextmenu',
  24785. menuVisible: 'react-contextmenu--visible',
  24786. menuWrapper: 'react-contextmenu-wrapper',
  24787. menuItem: 'react-contextmenu-item',
  24788. menuItemActive: 'react-contextmenu-item--active',
  24789. menuItemDisabled: 'react-contextmenu-item--disabled',
  24790. menuItemDivider: 'react-contextmenu-item--divider',
  24791. menuItemSelected: 'react-contextmenu-item--selected',
  24792. subMenu: 'react-contextmenu-submenu'
  24793. };
  24794. var store = {};
  24795. var canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
  24796. /***/ }),
  24797. /***/ "../../node_modules/react-contextmenu/es6/index.js":
  24798. /*!***********************************************************************!*\
  24799. !*** D:/Repos/Babylon.js/node_modules/react-contextmenu/es6/index.js ***!
  24800. \***********************************************************************/
  24801. /*! exports provided: ContextMenu, ContextMenuTrigger, MenuItem, SubMenu, connectMenu, hideMenu, showMenu */
  24802. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24803. "use strict";
  24804. __webpack_require__.r(__webpack_exports__);
  24805. /* harmony import */ var _ContextMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContextMenu */ "../../node_modules/react-contextmenu/es6/ContextMenu.js");
  24806. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextMenu", function() { return _ContextMenu__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  24807. /* harmony import */ var _ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextMenuTrigger */ "../../node_modules/react-contextmenu/es6/ContextMenuTrigger.js");
  24808. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContextMenuTrigger", function() { return _ContextMenuTrigger__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  24809. /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "../../node_modules/react-contextmenu/es6/MenuItem.js");
  24810. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  24811. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SubMenu */ "../../node_modules/react-contextmenu/es6/SubMenu.js");
  24812. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return _SubMenu__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  24813. /* harmony import */ var _connectMenu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./connectMenu */ "../../node_modules/react-contextmenu/es6/connectMenu.js");
  24814. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connectMenu", function() { return _connectMenu__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  24815. /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./actions */ "../../node_modules/react-contextmenu/es6/actions.js");
  24816. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hideMenu", function() { return _actions__WEBPACK_IMPORTED_MODULE_5__["hideMenu"]; });
  24817. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "showMenu", function() { return _actions__WEBPACK_IMPORTED_MODULE_5__["showMenu"]; });
  24818. /***/ }),
  24819. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  24820. /*!*******************************************************************************!*\
  24821. !*** D:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  24822. \*******************************************************************************/
  24823. /*! no static exports found */
  24824. /***/ (function(module, exports, __webpack_require__) {
  24825. "use strict";
  24826. /** @license React v16.13.1
  24827. * react-dom.development.js
  24828. *
  24829. * Copyright (c) Facebook, Inc. and its affiliates.
  24830. *
  24831. * This source code is licensed under the MIT license found in the
  24832. * LICENSE file in the root directory of this source tree.
  24833. */
  24834. if (true) {
  24835. (function() {
  24836. 'use strict';
  24837. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24838. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  24839. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  24840. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  24841. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  24842. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
  24843. // Current owner and dispatcher used to share the same ref,
  24844. // but PR #14548 split them out to better support the react-debug-tools package.
  24845. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  24846. ReactSharedInternals.ReactCurrentDispatcher = {
  24847. current: null
  24848. };
  24849. }
  24850. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  24851. ReactSharedInternals.ReactCurrentBatchConfig = {
  24852. suspense: null
  24853. };
  24854. }
  24855. // by calls to these methods by a Babel plugin.
  24856. //
  24857. // In PROD (or in packages without access to React internals),
  24858. // they are left as they are instead.
  24859. function warn(format) {
  24860. {
  24861. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  24862. args[_key - 1] = arguments[_key];
  24863. }
  24864. printWarning('warn', format, args);
  24865. }
  24866. }
  24867. function error(format) {
  24868. {
  24869. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  24870. args[_key2 - 1] = arguments[_key2];
  24871. }
  24872. printWarning('error', format, args);
  24873. }
  24874. }
  24875. function printWarning(level, format, args) {
  24876. // When changing this logic, you might want to also
  24877. // update consoleWithStackDev.www.js as well.
  24878. {
  24879. var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
  24880. if (!hasExistingStack) {
  24881. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  24882. var stack = ReactDebugCurrentFrame.getStackAddendum();
  24883. if (stack !== '') {
  24884. format += '%s';
  24885. args = args.concat([stack]);
  24886. }
  24887. }
  24888. var argsWithFormat = args.map(function (item) {
  24889. return '' + item;
  24890. }); // Careful: RN currently depends on this prefix
  24891. argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  24892. // breaks IE9: https://github.com/facebook/react/issues/13610
  24893. // eslint-disable-next-line react-internal/no-production-logging
  24894. Function.prototype.apply.call(console[level], console, argsWithFormat);
  24895. try {
  24896. // --- Welcome to debugging React ---
  24897. // This error was thrown as a convenience so that you can use this stack
  24898. // to find the callsite that caused this warning to fire.
  24899. var argIndex = 0;
  24900. var message = 'Warning: ' + format.replace(/%s/g, function () {
  24901. return args[argIndex++];
  24902. });
  24903. throw new Error(message);
  24904. } catch (x) {}
  24905. }
  24906. }
  24907. if (!React) {
  24908. {
  24909. throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
  24910. }
  24911. }
  24912. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  24913. var funcArgs = Array.prototype.slice.call(arguments, 3);
  24914. try {
  24915. func.apply(context, funcArgs);
  24916. } catch (error) {
  24917. this.onError(error);
  24918. }
  24919. };
  24920. {
  24921. // In DEV mode, we swap out invokeGuardedCallback for a special version
  24922. // that plays more nicely with the browser's DevTools. The idea is to preserve
  24923. // "Pause on exceptions" behavior. Because React wraps all user-provided
  24924. // functions in invokeGuardedCallback, and the production version of
  24925. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  24926. // like caught exceptions, and the DevTools won't pause unless the developer
  24927. // takes the extra step of enabling pause on caught exceptions. This is
  24928. // unintuitive, though, because even though React has caught the error, from
  24929. // the developer's perspective, the error is uncaught.
  24930. //
  24931. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  24932. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  24933. // DOM node, and call the user-provided callback from inside an event handler
  24934. // for that fake event. If the callback throws, the error is "captured" using
  24935. // a global event handler. But because the error happens in a different
  24936. // event loop context, it does not interrupt the normal program flow.
  24937. // Effectively, this gives us try-catch behavior without actually using
  24938. // try-catch. Neat!
  24939. // Check that the browser supports the APIs we need to implement our special
  24940. // DEV version of invokeGuardedCallback
  24941. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  24942. var fakeNode = document.createElement('react');
  24943. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  24944. // If document doesn't exist we know for sure we will crash in this method
  24945. // when we call document.createEvent(). However this can cause confusing
  24946. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  24947. // So we preemptively throw with a better message instead.
  24948. if (!(typeof document !== 'undefined')) {
  24949. {
  24950. throw 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." );
  24951. }
  24952. }
  24953. var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We
  24954. // set this to true at the beginning, then set it to false right after
  24955. // calling the function. If the function errors, `didError` will never be
  24956. // set to false. This strategy works even if the browser is flaky and
  24957. // fails to call our global error handler, because it doesn't rely on
  24958. // the error event at all.
  24959. var didError = true; // Keeps track of the value of window.event so that we can reset it
  24960. // during the callback to let user code access window.event in the
  24961. // browsers that support it.
  24962. var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
  24963. // dispatching: https://github.com/facebook/react/issues/13688
  24964. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously
  24965. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  24966. // call the user-provided callback.
  24967. var funcArgs = Array.prototype.slice.call(arguments, 3);
  24968. function callCallback() {
  24969. // We immediately remove the callback from event listeners so that
  24970. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  24971. // nested call would trigger the fake event handlers of any call higher
  24972. // in the stack.
  24973. fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
  24974. // window.event assignment in both IE <= 10 as they throw an error
  24975. // "Member not found" in strict mode, and in Firefox which does not
  24976. // support window.event.
  24977. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  24978. window.event = windowEvent;
  24979. }
  24980. func.apply(context, funcArgs);
  24981. didError = false;
  24982. } // Create a global error event handler. We use this to capture the value
  24983. // that was thrown. It's possible that this error handler will fire more
  24984. // than once; for example, if non-React code also calls `dispatchEvent`
  24985. // and a handler for that event throws. We should be resilient to most of
  24986. // those cases. Even if our error event handler fires more than once, the
  24987. // last error event is always used. If the callback actually does error,
  24988. // we know that the last error event is the correct one, because it's not
  24989. // possible for anything else to have happened in between our callback
  24990. // erroring and the code that follows the `dispatchEvent` call below. If
  24991. // the callback doesn't error, but the error event was fired, we know to
  24992. // ignore it because `didError` will be false, as described above.
  24993. var error; // Use this to track whether the error event is ever called.
  24994. var didSetError = false;
  24995. var isCrossOriginError = false;
  24996. function handleWindowError(event) {
  24997. error = event.error;
  24998. didSetError = true;
  24999. if (error === null && event.colno === 0 && event.lineno === 0) {
  25000. isCrossOriginError = true;
  25001. }
  25002. if (event.defaultPrevented) {
  25003. // Some other error handler has prevented default.
  25004. // Browsers silence the error report if this happens.
  25005. // We'll remember this to later decide whether to log it or not.
  25006. if (error != null && typeof error === 'object') {
  25007. try {
  25008. error._suppressLogging = true;
  25009. } catch (inner) {// Ignore.
  25010. }
  25011. }
  25012. }
  25013. } // Create a fake event type.
  25014. var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers
  25015. window.addEventListener('error', handleWindowError);
  25016. fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
  25017. // errors, it will trigger our global error handler.
  25018. evt.initEvent(evtType, false, false);
  25019. fakeNode.dispatchEvent(evt);
  25020. if (windowEventDescriptor) {
  25021. Object.defineProperty(window, 'event', windowEventDescriptor);
  25022. }
  25023. if (didError) {
  25024. if (!didSetError) {
  25025. // The callback errored, but the error event never fired.
  25026. 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.');
  25027. } else if (isCrossOriginError) {
  25028. 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.');
  25029. }
  25030. this.onError(error);
  25031. } // Remove our event listeners
  25032. window.removeEventListener('error', handleWindowError);
  25033. };
  25034. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  25035. }
  25036. }
  25037. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  25038. var hasError = false;
  25039. var caughtError = null; // Used by event system to capture/rethrow the first error.
  25040. var hasRethrowError = false;
  25041. var rethrowError = null;
  25042. var reporter = {
  25043. onError: function (error) {
  25044. hasError = true;
  25045. caughtError = error;
  25046. }
  25047. };
  25048. /**
  25049. * Call a function while guarding against errors that happens within it.
  25050. * Returns an error if it throws, otherwise null.
  25051. *
  25052. * In production, this is implemented using a try-catch. The reason we don't
  25053. * use a try-catch directly is so that we can swap out a different
  25054. * implementation in DEV mode.
  25055. *
  25056. * @param {String} name of the guard to use for logging or debugging
  25057. * @param {Function} func The function to invoke
  25058. * @param {*} context The context to use when calling the function
  25059. * @param {...*} args Arguments for function
  25060. */
  25061. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  25062. hasError = false;
  25063. caughtError = null;
  25064. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  25065. }
  25066. /**
  25067. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  25068. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  25069. * TODO: See if caughtError and rethrowError can be unified.
  25070. *
  25071. * @param {String} name of the guard to use for logging or debugging
  25072. * @param {Function} func The function to invoke
  25073. * @param {*} context The context to use when calling the function
  25074. * @param {...*} args Arguments for function
  25075. */
  25076. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  25077. invokeGuardedCallback.apply(this, arguments);
  25078. if (hasError) {
  25079. var error = clearCaughtError();
  25080. if (!hasRethrowError) {
  25081. hasRethrowError = true;
  25082. rethrowError = error;
  25083. }
  25084. }
  25085. }
  25086. /**
  25087. * During execution of guarded functions we will capture the first error which
  25088. * we will rethrow to be handled by the top level error handler.
  25089. */
  25090. function rethrowCaughtError() {
  25091. if (hasRethrowError) {
  25092. var error = rethrowError;
  25093. hasRethrowError = false;
  25094. rethrowError = null;
  25095. throw error;
  25096. }
  25097. }
  25098. function hasCaughtError() {
  25099. return hasError;
  25100. }
  25101. function clearCaughtError() {
  25102. if (hasError) {
  25103. var error = caughtError;
  25104. hasError = false;
  25105. caughtError = null;
  25106. return error;
  25107. } else {
  25108. {
  25109. {
  25110. throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
  25111. }
  25112. }
  25113. }
  25114. }
  25115. var getFiberCurrentPropsFromNode = null;
  25116. var getInstanceFromNode = null;
  25117. var getNodeFromInstance = null;
  25118. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  25119. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  25120. getInstanceFromNode = getInstanceFromNodeImpl;
  25121. getNodeFromInstance = getNodeFromInstanceImpl;
  25122. {
  25123. if (!getNodeFromInstance || !getInstanceFromNode) {
  25124. error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
  25125. }
  25126. }
  25127. }
  25128. var validateEventDispatches;
  25129. {
  25130. validateEventDispatches = function (event) {
  25131. var dispatchListeners = event._dispatchListeners;
  25132. var dispatchInstances = event._dispatchInstances;
  25133. var listenersIsArr = Array.isArray(dispatchListeners);
  25134. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  25135. var instancesIsArr = Array.isArray(dispatchInstances);
  25136. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  25137. if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) {
  25138. error('EventPluginUtils: Invalid `event`.');
  25139. }
  25140. };
  25141. }
  25142. /**
  25143. * Dispatch the event to the listener.
  25144. * @param {SyntheticEvent} event SyntheticEvent to handle
  25145. * @param {function} listener Application-level callback
  25146. * @param {*} inst Internal component instance
  25147. */
  25148. function executeDispatch(event, listener, inst) {
  25149. var type = event.type || 'unknown-event';
  25150. event.currentTarget = getNodeFromInstance(inst);
  25151. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  25152. event.currentTarget = null;
  25153. }
  25154. /**
  25155. * Standard/simple iteration through an event's collected dispatches.
  25156. */
  25157. function executeDispatchesInOrder(event) {
  25158. var dispatchListeners = event._dispatchListeners;
  25159. var dispatchInstances = event._dispatchInstances;
  25160. {
  25161. validateEventDispatches(event);
  25162. }
  25163. if (Array.isArray(dispatchListeners)) {
  25164. for (var i = 0; i < dispatchListeners.length; i++) {
  25165. if (event.isPropagationStopped()) {
  25166. break;
  25167. } // Listeners and Instances are two parallel arrays that are always in sync.
  25168. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  25169. }
  25170. } else if (dispatchListeners) {
  25171. executeDispatch(event, dispatchListeners, dispatchInstances);
  25172. }
  25173. event._dispatchListeners = null;
  25174. event._dispatchInstances = null;
  25175. }
  25176. var FunctionComponent = 0;
  25177. var ClassComponent = 1;
  25178. var IndeterminateComponent = 2; // Before we know whether it is function or class
  25179. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  25180. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  25181. var HostComponent = 5;
  25182. var HostText = 6;
  25183. var Fragment = 7;
  25184. var Mode = 8;
  25185. var ContextConsumer = 9;
  25186. var ContextProvider = 10;
  25187. var ForwardRef = 11;
  25188. var Profiler = 12;
  25189. var SuspenseComponent = 13;
  25190. var MemoComponent = 14;
  25191. var SimpleMemoComponent = 15;
  25192. var LazyComponent = 16;
  25193. var IncompleteClassComponent = 17;
  25194. var DehydratedFragment = 18;
  25195. var SuspenseListComponent = 19;
  25196. var FundamentalComponent = 20;
  25197. var ScopeComponent = 21;
  25198. var Block = 22;
  25199. /**
  25200. * Injectable ordering of event plugins.
  25201. */
  25202. var eventPluginOrder = null;
  25203. /**
  25204. * Injectable mapping from names to event plugin modules.
  25205. */
  25206. var namesToPlugins = {};
  25207. /**
  25208. * Recomputes the plugin list using the injected plugins and plugin ordering.
  25209. *
  25210. * @private
  25211. */
  25212. function recomputePluginOrdering() {
  25213. if (!eventPluginOrder) {
  25214. // Wait until an `eventPluginOrder` is injected.
  25215. return;
  25216. }
  25217. for (var pluginName in namesToPlugins) {
  25218. var pluginModule = namesToPlugins[pluginName];
  25219. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  25220. if (!(pluginIndex > -1)) {
  25221. {
  25222. throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." );
  25223. }
  25224. }
  25225. if (plugins[pluginIndex]) {
  25226. continue;
  25227. }
  25228. if (!pluginModule.extractEvents) {
  25229. {
  25230. throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." );
  25231. }
  25232. }
  25233. plugins[pluginIndex] = pluginModule;
  25234. var publishedEvents = pluginModule.eventTypes;
  25235. for (var eventName in publishedEvents) {
  25236. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  25237. {
  25238. throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." );
  25239. }
  25240. }
  25241. }
  25242. }
  25243. }
  25244. /**
  25245. * Publishes an event so that it can be dispatched by the supplied plugin.
  25246. *
  25247. * @param {object} dispatchConfig Dispatch configuration for the event.
  25248. * @param {object} PluginModule Plugin publishing the event.
  25249. * @return {boolean} True if the event was successfully published.
  25250. * @private
  25251. */
  25252. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  25253. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  25254. {
  25255. throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." );
  25256. }
  25257. }
  25258. eventNameDispatchConfigs[eventName] = dispatchConfig;
  25259. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  25260. if (phasedRegistrationNames) {
  25261. for (var phaseName in phasedRegistrationNames) {
  25262. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  25263. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  25264. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  25265. }
  25266. }
  25267. return true;
  25268. } else if (dispatchConfig.registrationName) {
  25269. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  25270. return true;
  25271. }
  25272. return false;
  25273. }
  25274. /**
  25275. * Publishes a registration name that is used to identify dispatched events.
  25276. *
  25277. * @param {string} registrationName Registration name to add.
  25278. * @param {object} PluginModule Plugin publishing the event.
  25279. * @private
  25280. */
  25281. function publishRegistrationName(registrationName, pluginModule, eventName) {
  25282. if (!!registrationNameModules[registrationName]) {
  25283. {
  25284. throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." );
  25285. }
  25286. }
  25287. registrationNameModules[registrationName] = pluginModule;
  25288. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  25289. {
  25290. var lowerCasedName = registrationName.toLowerCase();
  25291. possibleRegistrationNames[lowerCasedName] = registrationName;
  25292. if (registrationName === 'onDoubleClick') {
  25293. possibleRegistrationNames.ondblclick = registrationName;
  25294. }
  25295. }
  25296. }
  25297. /**
  25298. * Registers plugins so that they can extract and dispatch events.
  25299. */
  25300. /**
  25301. * Ordered list of injected plugins.
  25302. */
  25303. var plugins = [];
  25304. /**
  25305. * Mapping from event name to dispatch config
  25306. */
  25307. var eventNameDispatchConfigs = {};
  25308. /**
  25309. * Mapping from registration name to plugin module
  25310. */
  25311. var registrationNameModules = {};
  25312. /**
  25313. * Mapping from registration name to event name
  25314. */
  25315. var registrationNameDependencies = {};
  25316. /**
  25317. * Mapping from lowercase registration names to the properly cased version,
  25318. * used to warn in the case of missing event handlers. Available
  25319. * only in true.
  25320. * @type {Object}
  25321. */
  25322. var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true
  25323. /**
  25324. * Injects an ordering of plugins (by plugin name). This allows the ordering
  25325. * to be decoupled from injection of the actual plugins so that ordering is
  25326. * always deterministic regardless of packaging, on-the-fly injection, etc.
  25327. *
  25328. * @param {array} InjectedEventPluginOrder
  25329. * @internal
  25330. */
  25331. function injectEventPluginOrder(injectedEventPluginOrder) {
  25332. if (!!eventPluginOrder) {
  25333. {
  25334. throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." );
  25335. }
  25336. } // Clone the ordering so it cannot be dynamically mutated.
  25337. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  25338. recomputePluginOrdering();
  25339. }
  25340. /**
  25341. * Injects plugins to be used by plugin event system. The plugin names must be
  25342. * in the ordering injected by `injectEventPluginOrder`.
  25343. *
  25344. * Plugins can be injected as part of page initialization or on-the-fly.
  25345. *
  25346. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  25347. * @internal
  25348. */
  25349. function injectEventPluginsByName(injectedNamesToPlugins) {
  25350. var isOrderingDirty = false;
  25351. for (var pluginName in injectedNamesToPlugins) {
  25352. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  25353. continue;
  25354. }
  25355. var pluginModule = injectedNamesToPlugins[pluginName];
  25356. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  25357. if (!!namesToPlugins[pluginName]) {
  25358. {
  25359. throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." );
  25360. }
  25361. }
  25362. namesToPlugins[pluginName] = pluginModule;
  25363. isOrderingDirty = true;
  25364. }
  25365. }
  25366. if (isOrderingDirty) {
  25367. recomputePluginOrdering();
  25368. }
  25369. }
  25370. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  25371. var PLUGIN_EVENT_SYSTEM = 1;
  25372. var IS_REPLAYED = 1 << 5;
  25373. var IS_FIRST_ANCESTOR = 1 << 6;
  25374. var restoreImpl = null;
  25375. var restoreTarget = null;
  25376. var restoreQueue = null;
  25377. function restoreStateOfTarget(target) {
  25378. // We perform this translation at the end of the event loop so that we
  25379. // always receive the correct fiber here
  25380. var internalInstance = getInstanceFromNode(target);
  25381. if (!internalInstance) {
  25382. // Unmounted
  25383. return;
  25384. }
  25385. if (!(typeof restoreImpl === 'function')) {
  25386. {
  25387. throw 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." );
  25388. }
  25389. }
  25390. var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.
  25391. if (stateNode) {
  25392. var _props = getFiberCurrentPropsFromNode(stateNode);
  25393. restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
  25394. }
  25395. }
  25396. function setRestoreImplementation(impl) {
  25397. restoreImpl = impl;
  25398. }
  25399. function enqueueStateRestore(target) {
  25400. if (restoreTarget) {
  25401. if (restoreQueue) {
  25402. restoreQueue.push(target);
  25403. } else {
  25404. restoreQueue = [target];
  25405. }
  25406. } else {
  25407. restoreTarget = target;
  25408. }
  25409. }
  25410. function needsStateRestore() {
  25411. return restoreTarget !== null || restoreQueue !== null;
  25412. }
  25413. function restoreStateIfNeeded() {
  25414. if (!restoreTarget) {
  25415. return;
  25416. }
  25417. var target = restoreTarget;
  25418. var queuedTargets = restoreQueue;
  25419. restoreTarget = null;
  25420. restoreQueue = null;
  25421. restoreStateOfTarget(target);
  25422. if (queuedTargets) {
  25423. for (var i = 0; i < queuedTargets.length; i++) {
  25424. restoreStateOfTarget(queuedTargets[i]);
  25425. }
  25426. }
  25427. }
  25428. var enableProfilerTimer = true; // Trace which interactions trigger each commit.
  25429. var enableDeprecatedFlareAPI = false; // Experimental Host Component support.
  25430. var enableFundamentalAPI = false; // Experimental Scope support.
  25431. var warnAboutStringRefs = false;
  25432. // the renderer. Such as when we're dispatching events or if third party
  25433. // libraries need to call batchedUpdates. Eventually, this API will go away when
  25434. // everything is batched by default. We'll then have a similar API to opt-out of
  25435. // scheduled work and instead do synchronous work.
  25436. // Defaults
  25437. var batchedUpdatesImpl = function (fn, bookkeeping) {
  25438. return fn(bookkeeping);
  25439. };
  25440. var discreteUpdatesImpl = function (fn, a, b, c, d) {
  25441. return fn(a, b, c, d);
  25442. };
  25443. var flushDiscreteUpdatesImpl = function () {};
  25444. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  25445. var isInsideEventHandler = false;
  25446. var isBatchingEventUpdates = false;
  25447. function finishEventHandler() {
  25448. // Here we wait until all updates have propagated, which is important
  25449. // when using controlled components within layers:
  25450. // https://github.com/facebook/react/issues/1698
  25451. // Then we restore state of any controlled component.
  25452. var controlledComponentsHavePendingUpdates = needsStateRestore();
  25453. if (controlledComponentsHavePendingUpdates) {
  25454. // If a controlled event was fired, we may need to restore the state of
  25455. // the DOM node back to the controlled value. This is necessary when React
  25456. // bails out of the update without touching the DOM.
  25457. flushDiscreteUpdatesImpl();
  25458. restoreStateIfNeeded();
  25459. }
  25460. }
  25461. function batchedUpdates(fn, bookkeeping) {
  25462. if (isInsideEventHandler) {
  25463. // If we are currently inside another batch, we need to wait until it
  25464. // fully completes before restoring state.
  25465. return fn(bookkeeping);
  25466. }
  25467. isInsideEventHandler = true;
  25468. try {
  25469. return batchedUpdatesImpl(fn, bookkeeping);
  25470. } finally {
  25471. isInsideEventHandler = false;
  25472. finishEventHandler();
  25473. }
  25474. }
  25475. function batchedEventUpdates(fn, a, b) {
  25476. if (isBatchingEventUpdates) {
  25477. // If we are currently inside another batch, we need to wait until it
  25478. // fully completes before restoring state.
  25479. return fn(a, b);
  25480. }
  25481. isBatchingEventUpdates = true;
  25482. try {
  25483. return batchedEventUpdatesImpl(fn, a, b);
  25484. } finally {
  25485. isBatchingEventUpdates = false;
  25486. finishEventHandler();
  25487. }
  25488. } // This is for the React Flare event system
  25489. function discreteUpdates(fn, a, b, c, d) {
  25490. var prevIsInsideEventHandler = isInsideEventHandler;
  25491. isInsideEventHandler = true;
  25492. try {
  25493. return discreteUpdatesImpl(fn, a, b, c, d);
  25494. } finally {
  25495. isInsideEventHandler = prevIsInsideEventHandler;
  25496. if (!isInsideEventHandler) {
  25497. finishEventHandler();
  25498. }
  25499. }
  25500. }
  25501. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  25502. // event.timeStamp isn't overly reliable due to inconsistencies in
  25503. // how different browsers have historically provided the time stamp.
  25504. // Some browsers provide high-resolution time stamps for all events,
  25505. // some provide low-resolution time stamps for all events. FF < 52
  25506. // even mixes both time stamps together. Some browsers even report
  25507. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  25508. // Given we are only comparing two time stamps with equality (!==),
  25509. // we are safe from the resolution differences. If the time stamp is 0
  25510. // we bail-out of preventing the flush, which can affect semantics,
  25511. // such as if an earlier flush removes or adds event listeners that
  25512. // are fired in the subsequent flush. However, this is the same
  25513. // behaviour as we had before this change, so the risks are low.
  25514. if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) {
  25515. flushDiscreteUpdatesImpl();
  25516. }
  25517. }
  25518. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  25519. batchedUpdatesImpl = _batchedUpdatesImpl;
  25520. discreteUpdatesImpl = _discreteUpdatesImpl;
  25521. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  25522. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  25523. }
  25524. var DiscreteEvent = 0;
  25525. var UserBlockingEvent = 1;
  25526. var ContinuousEvent = 2;
  25527. // A reserved attribute.
  25528. // It is handled by React separately and shouldn't be written to the DOM.
  25529. var RESERVED = 0; // A simple string attribute.
  25530. // Attributes that aren't in the whitelist are presumed to have this type.
  25531. var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
  25532. // "enumerated" attributes with "true" and "false" as possible values.
  25533. // When true, it should be set to a "true" string.
  25534. // When false, it should be set to a "false" string.
  25535. var BOOLEANISH_STRING = 2; // A real boolean attribute.
  25536. // When true, it should be present (set either to an empty string or its name).
  25537. // When false, it should be omitted.
  25538. var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
  25539. // When true, it should be present (set either to an empty string or its name).
  25540. // When false, it should be omitted.
  25541. // For any other value, should be present with that value.
  25542. var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
  25543. // When falsy, it should be removed.
  25544. var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
  25545. // When falsy, it should be removed.
  25546. var POSITIVE_NUMERIC = 6;
  25547. /* eslint-disable max-len */
  25548. 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";
  25549. /* eslint-enable max-len */
  25550. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
  25551. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  25552. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  25553. var hasOwnProperty = Object.prototype.hasOwnProperty;
  25554. var illegalAttributeNameCache = {};
  25555. var validatedAttributeNameCache = {};
  25556. function isAttributeNameSafe(attributeName) {
  25557. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  25558. return true;
  25559. }
  25560. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  25561. return false;
  25562. }
  25563. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  25564. validatedAttributeNameCache[attributeName] = true;
  25565. return true;
  25566. }
  25567. illegalAttributeNameCache[attributeName] = true;
  25568. {
  25569. error('Invalid attribute name: `%s`', attributeName);
  25570. }
  25571. return false;
  25572. }
  25573. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  25574. if (propertyInfo !== null) {
  25575. return propertyInfo.type === RESERVED;
  25576. }
  25577. if (isCustomComponentTag) {
  25578. return false;
  25579. }
  25580. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  25581. return true;
  25582. }
  25583. return false;
  25584. }
  25585. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  25586. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  25587. return false;
  25588. }
  25589. switch (typeof value) {
  25590. case 'function': // $FlowIssue symbol is perfectly valid here
  25591. case 'symbol':
  25592. // eslint-disable-line
  25593. return true;
  25594. case 'boolean':
  25595. {
  25596. if (isCustomComponentTag) {
  25597. return false;
  25598. }
  25599. if (propertyInfo !== null) {
  25600. return !propertyInfo.acceptsBooleans;
  25601. } else {
  25602. var prefix = name.toLowerCase().slice(0, 5);
  25603. return prefix !== 'data-' && prefix !== 'aria-';
  25604. }
  25605. }
  25606. default:
  25607. return false;
  25608. }
  25609. }
  25610. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  25611. if (value === null || typeof value === 'undefined') {
  25612. return true;
  25613. }
  25614. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  25615. return true;
  25616. }
  25617. if (isCustomComponentTag) {
  25618. return false;
  25619. }
  25620. if (propertyInfo !== null) {
  25621. switch (propertyInfo.type) {
  25622. case BOOLEAN:
  25623. return !value;
  25624. case OVERLOADED_BOOLEAN:
  25625. return value === false;
  25626. case NUMERIC:
  25627. return isNaN(value);
  25628. case POSITIVE_NUMERIC:
  25629. return isNaN(value) || value < 1;
  25630. }
  25631. }
  25632. return false;
  25633. }
  25634. function getPropertyInfo(name) {
  25635. return properties.hasOwnProperty(name) ? properties[name] : null;
  25636. }
  25637. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  25638. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  25639. this.attributeName = attributeName;
  25640. this.attributeNamespace = attributeNamespace;
  25641. this.mustUseProperty = mustUseProperty;
  25642. this.propertyName = name;
  25643. this.type = type;
  25644. this.sanitizeURL = sanitizeURL;
  25645. } // When adding attributes to this list, be sure to also add them to
  25646. // the `possibleStandardNames` module to ensure casing and incorrect
  25647. // name warnings.
  25648. var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.
  25649. var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
  25650. // elements (not just inputs). Now that ReactDOMInput assigns to the
  25651. // defaultValue property -- do we need this?
  25652. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
  25653. reservedProps.forEach(function (name) {
  25654. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  25655. name, // attributeName
  25656. null, // attributeNamespace
  25657. false);
  25658. }); // A few React string attributes have a different name.
  25659. // This is a mapping from React prop names to the attribute names.
  25660. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  25661. var name = _ref[0],
  25662. attributeName = _ref[1];
  25663. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  25664. attributeName, // attributeName
  25665. null, // attributeNamespace
  25666. false);
  25667. }); // These are "enumerated" HTML attributes that accept "true" and "false".
  25668. // In React, we let users pass `true` and `false` even though technically
  25669. // these aren't boolean attributes (they are coerced to strings).
  25670. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  25671. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  25672. name.toLowerCase(), // attributeName
  25673. null, // attributeNamespace
  25674. false);
  25675. }); // These are "enumerated" SVG attributes that accept "true" and "false".
  25676. // In React, we let users pass `true` and `false` even though technically
  25677. // these aren't boolean attributes (they are coerced to strings).
  25678. // Since these are SVG attributes, their attribute names are case-sensitive.
  25679. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  25680. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  25681. name, // attributeName
  25682. null, // attributeNamespace
  25683. false);
  25684. }); // These are HTML boolean attributes.
  25685. ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
  25686. // on the client side because the browsers are inconsistent. Instead we call focus().
  25687. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
  25688. 'itemScope'].forEach(function (name) {
  25689. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  25690. name.toLowerCase(), // attributeName
  25691. null, // attributeNamespace
  25692. false);
  25693. }); // These are the few React props that we set as DOM properties
  25694. // rather than attributes. These are all booleans.
  25695. ['checked', // Note: `option.selected` is not updated if `select.multiple` is
  25696. // disabled with `removeAttribute`. We have special logic for handling this.
  25697. 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
  25698. // you'll need to set attributeName to name.toLowerCase()
  25699. // instead in the assignment below.
  25700. ].forEach(function (name) {
  25701. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  25702. name, // attributeName
  25703. null, // attributeNamespace
  25704. false);
  25705. }); // These are HTML attributes that are "overloaded booleans": they behave like
  25706. // booleans, but can also accept a string value.
  25707. ['capture', 'download' // NOTE: if you add a camelCased prop to this list,
  25708. // you'll need to set attributeName to name.toLowerCase()
  25709. // instead in the assignment below.
  25710. ].forEach(function (name) {
  25711. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  25712. name, // attributeName
  25713. null, // attributeNamespace
  25714. false);
  25715. }); // These are HTML attributes that must be positive numbers.
  25716. ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
  25717. // you'll need to set attributeName to name.toLowerCase()
  25718. // instead in the assignment below.
  25719. ].forEach(function (name) {
  25720. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  25721. name, // attributeName
  25722. null, // attributeNamespace
  25723. false);
  25724. }); // These are HTML attributes that must be numbers.
  25725. ['rowSpan', 'start'].forEach(function (name) {
  25726. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  25727. name.toLowerCase(), // attributeName
  25728. null, // attributeNamespace
  25729. false);
  25730. });
  25731. var CAMELIZE = /[\-\:]([a-z])/g;
  25732. var capitalize = function (token) {
  25733. return token[1].toUpperCase();
  25734. }; // This is a list of all SVG attributes that need special casing, namespacing,
  25735. // or boolean value assignment. Regular attributes that just accept strings
  25736. // and have the same names are omitted, just like in the HTML whitelist.
  25737. // Some of these attributes can be hard to find. This list was created by
  25738. // scraping the MDN documentation.
  25739. ['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' // NOTE: if you add a camelCased prop to this list,
  25740. // you'll need to set attributeName to name.toLowerCase()
  25741. // instead in the assignment below.
  25742. ].forEach(function (attributeName) {
  25743. var name = attributeName.replace(CAMELIZE, capitalize);
  25744. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  25745. attributeName, null, // attributeNamespace
  25746. false);
  25747. }); // String SVG attributes with the xlink namespace.
  25748. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
  25749. // you'll need to set attributeName to name.toLowerCase()
  25750. // instead in the assignment below.
  25751. ].forEach(function (attributeName) {
  25752. var name = attributeName.replace(CAMELIZE, capitalize);
  25753. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  25754. attributeName, 'http://www.w3.org/1999/xlink', false);
  25755. }); // String SVG attributes with the xml namespace.
  25756. ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
  25757. // you'll need to set attributeName to name.toLowerCase()
  25758. // instead in the assignment below.
  25759. ].forEach(function (attributeName) {
  25760. var name = attributeName.replace(CAMELIZE, capitalize);
  25761. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  25762. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  25763. }); // These attribute exists both in HTML and SVG.
  25764. // The attribute name is case-sensitive in SVG so we can't just use
  25765. // the React name like we do for attributes that exist only in HTML.
  25766. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  25767. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  25768. attributeName.toLowerCase(), // attributeName
  25769. null, // attributeNamespace
  25770. false);
  25771. }); // These attributes accept URLs. These must not allow javascript: URLS.
  25772. // These will also need to accept Trusted Types object in the future.
  25773. var xlinkHref = 'xlinkHref';
  25774. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  25775. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  25776. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  25777. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  25778. attributeName.toLowerCase(), // attributeName
  25779. null, // attributeNamespace
  25780. true);
  25781. });
  25782. var ReactDebugCurrentFrame = null;
  25783. {
  25784. ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  25785. } // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  25786. // and any newline or tab are filtered out as if they're not part of the URL.
  25787. // https://url.spec.whatwg.org/#url-parsing
  25788. // Tab or newline are defined as \r\n\t:
  25789. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  25790. // A C0 control is a code point in the range \u0000 NULL to \u001F
  25791. // INFORMATION SEPARATOR ONE, inclusive:
  25792. // https://infra.spec.whatwg.org/#c0-control-or-space
  25793. /* eslint-disable max-len */
  25794. 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;
  25795. var didWarn = false;
  25796. function sanitizeURL(url) {
  25797. {
  25798. if (!didWarn && isJavaScriptProtocol.test(url)) {
  25799. didWarn = true;
  25800. error('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));
  25801. }
  25802. }
  25803. }
  25804. /**
  25805. * Get the value for a property on a node. Only used in DEV for SSR validation.
  25806. * The "expected" argument is used as a hint of what the expected value is.
  25807. * Some properties have multiple equivalent values.
  25808. */
  25809. function getValueForProperty(node, name, expected, propertyInfo) {
  25810. {
  25811. if (propertyInfo.mustUseProperty) {
  25812. var propertyName = propertyInfo.propertyName;
  25813. return node[propertyName];
  25814. } else {
  25815. if ( propertyInfo.sanitizeURL) {
  25816. // If we haven't fully disabled javascript: URLs, and if
  25817. // the hydration is successful of a javascript: URL, we
  25818. // still want to warn on the client.
  25819. sanitizeURL('' + expected);
  25820. }
  25821. var attributeName = propertyInfo.attributeName;
  25822. var stringValue = null;
  25823. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  25824. if (node.hasAttribute(attributeName)) {
  25825. var value = node.getAttribute(attributeName);
  25826. if (value === '') {
  25827. return true;
  25828. }
  25829. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  25830. return value;
  25831. }
  25832. if (value === '' + expected) {
  25833. return expected;
  25834. }
  25835. return value;
  25836. }
  25837. } else if (node.hasAttribute(attributeName)) {
  25838. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  25839. // We had an attribute but shouldn't have had one, so read it
  25840. // for the error message.
  25841. return node.getAttribute(attributeName);
  25842. }
  25843. if (propertyInfo.type === BOOLEAN) {
  25844. // If this was a boolean, it doesn't matter what the value is
  25845. // the fact that we have it is the same as the expected.
  25846. return expected;
  25847. } // Even if this property uses a namespace we use getAttribute
  25848. // because we assume its namespaced name is the same as our config.
  25849. // To use getAttributeNS we need the local name which we don't have
  25850. // in our config atm.
  25851. stringValue = node.getAttribute(attributeName);
  25852. }
  25853. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  25854. return stringValue === null ? expected : stringValue;
  25855. } else if (stringValue === '' + expected) {
  25856. return expected;
  25857. } else {
  25858. return stringValue;
  25859. }
  25860. }
  25861. }
  25862. }
  25863. /**
  25864. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  25865. * The third argument is used as a hint of what the expected value is. Some
  25866. * attributes have multiple equivalent values.
  25867. */
  25868. function getValueForAttribute(node, name, expected) {
  25869. {
  25870. if (!isAttributeNameSafe(name)) {
  25871. return;
  25872. }
  25873. if (!node.hasAttribute(name)) {
  25874. return expected === undefined ? undefined : null;
  25875. }
  25876. var value = node.getAttribute(name);
  25877. if (value === '' + expected) {
  25878. return expected;
  25879. }
  25880. return value;
  25881. }
  25882. }
  25883. /**
  25884. * Sets the value for a property on a node.
  25885. *
  25886. * @param {DOMElement} node
  25887. * @param {string} name
  25888. * @param {*} value
  25889. */
  25890. function setValueForProperty(node, name, value, isCustomComponentTag) {
  25891. var propertyInfo = getPropertyInfo(name);
  25892. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  25893. return;
  25894. }
  25895. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  25896. value = null;
  25897. } // If the prop isn't in the special list, treat it as a simple attribute.
  25898. if (isCustomComponentTag || propertyInfo === null) {
  25899. if (isAttributeNameSafe(name)) {
  25900. var _attributeName = name;
  25901. if (value === null) {
  25902. node.removeAttribute(_attributeName);
  25903. } else {
  25904. node.setAttribute(_attributeName, '' + value);
  25905. }
  25906. }
  25907. return;
  25908. }
  25909. var mustUseProperty = propertyInfo.mustUseProperty;
  25910. if (mustUseProperty) {
  25911. var propertyName = propertyInfo.propertyName;
  25912. if (value === null) {
  25913. var type = propertyInfo.type;
  25914. node[propertyName] = type === BOOLEAN ? false : '';
  25915. } else {
  25916. // Contrary to `setAttribute`, object properties are properly
  25917. // `toString`ed by IE8/9.
  25918. node[propertyName] = value;
  25919. }
  25920. return;
  25921. } // The rest are treated as attributes with special cases.
  25922. var attributeName = propertyInfo.attributeName,
  25923. attributeNamespace = propertyInfo.attributeNamespace;
  25924. if (value === null) {
  25925. node.removeAttribute(attributeName);
  25926. } else {
  25927. var _type = propertyInfo.type;
  25928. var attributeValue;
  25929. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  25930. // If attribute type is boolean, we know for sure it won't be an execution sink
  25931. // and we won't require Trusted Type here.
  25932. attributeValue = '';
  25933. } else {
  25934. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  25935. // ('' + value) makes it output the correct toString()-value.
  25936. {
  25937. attributeValue = '' + value;
  25938. }
  25939. if (propertyInfo.sanitizeURL) {
  25940. sanitizeURL(attributeValue.toString());
  25941. }
  25942. }
  25943. if (attributeNamespace) {
  25944. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  25945. } else {
  25946. node.setAttribute(attributeName, attributeValue);
  25947. }
  25948. }
  25949. }
  25950. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  25951. function describeComponentFrame (name, source, ownerName) {
  25952. var sourceInfo = '';
  25953. if (source) {
  25954. var path = source.fileName;
  25955. var fileName = path.replace(BEFORE_SLASH_RE, '');
  25956. {
  25957. // In DEV, include code for a common special case:
  25958. // prefer "folder/index.js" instead of just "index.js".
  25959. if (/^index\./.test(fileName)) {
  25960. var match = path.match(BEFORE_SLASH_RE);
  25961. if (match) {
  25962. var pathBeforeSlash = match[1];
  25963. if (pathBeforeSlash) {
  25964. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  25965. fileName = folderName + '/' + fileName;
  25966. }
  25967. }
  25968. }
  25969. }
  25970. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  25971. } else if (ownerName) {
  25972. sourceInfo = ' (created by ' + ownerName + ')';
  25973. }
  25974. return '\n in ' + (name || 'Unknown') + sourceInfo;
  25975. }
  25976. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  25977. // nor polyfill, then a plain number is used for performance.
  25978. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  25979. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  25980. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  25981. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  25982. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  25983. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  25984. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  25985. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  25986. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  25987. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  25988. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  25989. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  25990. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  25991. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  25992. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  25993. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  25994. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  25995. function getIteratorFn(maybeIterable) {
  25996. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  25997. return null;
  25998. }
  25999. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  26000. if (typeof maybeIterator === 'function') {
  26001. return maybeIterator;
  26002. }
  26003. return null;
  26004. }
  26005. var Uninitialized = -1;
  26006. var Pending = 0;
  26007. var Resolved = 1;
  26008. var Rejected = 2;
  26009. function refineResolvedLazyComponent(lazyComponent) {
  26010. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  26011. }
  26012. function initializeLazyComponentType(lazyComponent) {
  26013. if (lazyComponent._status === Uninitialized) {
  26014. lazyComponent._status = Pending;
  26015. var ctor = lazyComponent._ctor;
  26016. var thenable = ctor();
  26017. lazyComponent._result = thenable;
  26018. thenable.then(function (moduleObject) {
  26019. if (lazyComponent._status === Pending) {
  26020. var defaultExport = moduleObject.default;
  26021. {
  26022. if (defaultExport === undefined) {
  26023. error('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);
  26024. }
  26025. }
  26026. lazyComponent._status = Resolved;
  26027. lazyComponent._result = defaultExport;
  26028. }
  26029. }, function (error) {
  26030. if (lazyComponent._status === Pending) {
  26031. lazyComponent._status = Rejected;
  26032. lazyComponent._result = error;
  26033. }
  26034. });
  26035. }
  26036. }
  26037. function getWrappedName(outerType, innerType, wrapperName) {
  26038. var functionName = innerType.displayName || innerType.name || '';
  26039. return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
  26040. }
  26041. function getComponentName(type) {
  26042. if (type == null) {
  26043. // Host root, text node or just invalid type.
  26044. return null;
  26045. }
  26046. {
  26047. if (typeof type.tag === 'number') {
  26048. error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  26049. }
  26050. }
  26051. if (typeof type === 'function') {
  26052. return type.displayName || type.name || null;
  26053. }
  26054. if (typeof type === 'string') {
  26055. return type;
  26056. }
  26057. switch (type) {
  26058. case REACT_FRAGMENT_TYPE:
  26059. return 'Fragment';
  26060. case REACT_PORTAL_TYPE:
  26061. return 'Portal';
  26062. case REACT_PROFILER_TYPE:
  26063. return "Profiler";
  26064. case REACT_STRICT_MODE_TYPE:
  26065. return 'StrictMode';
  26066. case REACT_SUSPENSE_TYPE:
  26067. return 'Suspense';
  26068. case REACT_SUSPENSE_LIST_TYPE:
  26069. return 'SuspenseList';
  26070. }
  26071. if (typeof type === 'object') {
  26072. switch (type.$$typeof) {
  26073. case REACT_CONTEXT_TYPE:
  26074. return 'Context.Consumer';
  26075. case REACT_PROVIDER_TYPE:
  26076. return 'Context.Provider';
  26077. case REACT_FORWARD_REF_TYPE:
  26078. return getWrappedName(type, type.render, 'ForwardRef');
  26079. case REACT_MEMO_TYPE:
  26080. return getComponentName(type.type);
  26081. case REACT_BLOCK_TYPE:
  26082. return getComponentName(type.render);
  26083. case REACT_LAZY_TYPE:
  26084. {
  26085. var thenable = type;
  26086. var resolvedThenable = refineResolvedLazyComponent(thenable);
  26087. if (resolvedThenable) {
  26088. return getComponentName(resolvedThenable);
  26089. }
  26090. break;
  26091. }
  26092. }
  26093. }
  26094. return null;
  26095. }
  26096. var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  26097. function describeFiber(fiber) {
  26098. switch (fiber.tag) {
  26099. case HostRoot:
  26100. case HostPortal:
  26101. case HostText:
  26102. case Fragment:
  26103. case ContextProvider:
  26104. case ContextConsumer:
  26105. return '';
  26106. default:
  26107. var owner = fiber._debugOwner;
  26108. var source = fiber._debugSource;
  26109. var name = getComponentName(fiber.type);
  26110. var ownerName = null;
  26111. if (owner) {
  26112. ownerName = getComponentName(owner.type);
  26113. }
  26114. return describeComponentFrame(name, source, ownerName);
  26115. }
  26116. }
  26117. function getStackByFiberInDevAndProd(workInProgress) {
  26118. var info = '';
  26119. var node = workInProgress;
  26120. do {
  26121. info += describeFiber(node);
  26122. node = node.return;
  26123. } while (node);
  26124. return info;
  26125. }
  26126. var current = null;
  26127. var isRendering = false;
  26128. function getCurrentFiberOwnerNameInDevOrNull() {
  26129. {
  26130. if (current === null) {
  26131. return null;
  26132. }
  26133. var owner = current._debugOwner;
  26134. if (owner !== null && typeof owner !== 'undefined') {
  26135. return getComponentName(owner.type);
  26136. }
  26137. }
  26138. return null;
  26139. }
  26140. function getCurrentFiberStackInDev() {
  26141. {
  26142. if (current === null) {
  26143. return '';
  26144. } // Safe because if current fiber exists, we are reconciling,
  26145. // and it is guaranteed to be the work-in-progress version.
  26146. return getStackByFiberInDevAndProd(current);
  26147. }
  26148. }
  26149. function resetCurrentFiber() {
  26150. {
  26151. ReactDebugCurrentFrame$1.getCurrentStack = null;
  26152. current = null;
  26153. isRendering = false;
  26154. }
  26155. }
  26156. function setCurrentFiber(fiber) {
  26157. {
  26158. ReactDebugCurrentFrame$1.getCurrentStack = getCurrentFiberStackInDev;
  26159. current = fiber;
  26160. isRendering = false;
  26161. }
  26162. }
  26163. function setIsRendering(rendering) {
  26164. {
  26165. isRendering = rendering;
  26166. }
  26167. }
  26168. // Flow does not allow string concatenation of most non-string types. To work
  26169. // around this limitation, we use an opaque type that can only be obtained by
  26170. // passing the value through getToStringValue first.
  26171. function toString(value) {
  26172. return '' + value;
  26173. }
  26174. function getToStringValue(value) {
  26175. switch (typeof value) {
  26176. case 'boolean':
  26177. case 'number':
  26178. case 'object':
  26179. case 'string':
  26180. case 'undefined':
  26181. return value;
  26182. default:
  26183. // function, symbol are assigned as empty strings
  26184. return '';
  26185. }
  26186. }
  26187. var ReactDebugCurrentFrame$2 = null;
  26188. var ReactControlledValuePropTypes = {
  26189. checkPropTypes: null
  26190. };
  26191. {
  26192. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  26193. var hasReadOnlyValue = {
  26194. button: true,
  26195. checkbox: true,
  26196. image: true,
  26197. hidden: true,
  26198. radio: true,
  26199. reset: true,
  26200. submit: true
  26201. };
  26202. var propTypes = {
  26203. value: function (props, propName, componentName) {
  26204. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) {
  26205. return null;
  26206. }
  26207. 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`.');
  26208. },
  26209. checked: function (props, propName, componentName) {
  26210. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) {
  26211. return null;
  26212. }
  26213. 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`.');
  26214. }
  26215. };
  26216. /**
  26217. * Provide a linked `value` attribute for controlled forms. You should not use
  26218. * this outside of the ReactDOM controlled form components.
  26219. */
  26220. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  26221. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  26222. };
  26223. }
  26224. function isCheckable(elem) {
  26225. var type = elem.type;
  26226. var nodeName = elem.nodeName;
  26227. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  26228. }
  26229. function getTracker(node) {
  26230. return node._valueTracker;
  26231. }
  26232. function detachTracker(node) {
  26233. node._valueTracker = null;
  26234. }
  26235. function getValueFromNode(node) {
  26236. var value = '';
  26237. if (!node) {
  26238. return value;
  26239. }
  26240. if (isCheckable(node)) {
  26241. value = node.checked ? 'true' : 'false';
  26242. } else {
  26243. value = node.value;
  26244. }
  26245. return value;
  26246. }
  26247. function trackValueOnNode(node) {
  26248. var valueField = isCheckable(node) ? 'checked' : 'value';
  26249. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  26250. var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
  26251. // and don't track value will cause over reporting of changes,
  26252. // but it's better then a hard failure
  26253. // (needed for certain tests that spyOn input values and Safari)
  26254. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  26255. return;
  26256. }
  26257. var get = descriptor.get,
  26258. set = descriptor.set;
  26259. Object.defineProperty(node, valueField, {
  26260. configurable: true,
  26261. get: function () {
  26262. return get.call(this);
  26263. },
  26264. set: function (value) {
  26265. currentValue = '' + value;
  26266. set.call(this, value);
  26267. }
  26268. }); // We could've passed this the first time
  26269. // but it triggers a bug in IE11 and Edge 14/15.
  26270. // Calling defineProperty() again should be equivalent.
  26271. // https://github.com/facebook/react/issues/11768
  26272. Object.defineProperty(node, valueField, {
  26273. enumerable: descriptor.enumerable
  26274. });
  26275. var tracker = {
  26276. getValue: function () {
  26277. return currentValue;
  26278. },
  26279. setValue: function (value) {
  26280. currentValue = '' + value;
  26281. },
  26282. stopTracking: function () {
  26283. detachTracker(node);
  26284. delete node[valueField];
  26285. }
  26286. };
  26287. return tracker;
  26288. }
  26289. function track(node) {
  26290. if (getTracker(node)) {
  26291. return;
  26292. } // TODO: Once it's just Fiber we can move this to node._wrapperState
  26293. node._valueTracker = trackValueOnNode(node);
  26294. }
  26295. function updateValueIfChanged(node) {
  26296. if (!node) {
  26297. return false;
  26298. }
  26299. var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
  26300. // that trying again will succeed
  26301. if (!tracker) {
  26302. return true;
  26303. }
  26304. var lastValue = tracker.getValue();
  26305. var nextValue = getValueFromNode(node);
  26306. if (nextValue !== lastValue) {
  26307. tracker.setValue(nextValue);
  26308. return true;
  26309. }
  26310. return false;
  26311. }
  26312. var didWarnValueDefaultValue = false;
  26313. var didWarnCheckedDefaultChecked = false;
  26314. var didWarnControlledToUncontrolled = false;
  26315. var didWarnUncontrolledToControlled = false;
  26316. function isControlled(props) {
  26317. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  26318. return usesChecked ? props.checked != null : props.value != null;
  26319. }
  26320. /**
  26321. * Implements an <input> host component that allows setting these optional
  26322. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  26323. *
  26324. * If `checked` or `value` are not supplied (or null/undefined), user actions
  26325. * that affect the checked state or value will trigger updates to the element.
  26326. *
  26327. * If they are supplied (and not null/undefined), the rendered element will not
  26328. * trigger updates to the element. Instead, the props must change in order for
  26329. * the rendered element to be updated.
  26330. *
  26331. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  26332. * with an empty value (or `defaultValue`).
  26333. *
  26334. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  26335. */
  26336. function getHostProps(element, props) {
  26337. var node = element;
  26338. var checked = props.checked;
  26339. var hostProps = _assign({}, props, {
  26340. defaultChecked: undefined,
  26341. defaultValue: undefined,
  26342. value: undefined,
  26343. checked: checked != null ? checked : node._wrapperState.initialChecked
  26344. });
  26345. return hostProps;
  26346. }
  26347. function initWrapperState(element, props) {
  26348. {
  26349. ReactControlledValuePropTypes.checkPropTypes('input', props);
  26350. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  26351. error('%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);
  26352. didWarnCheckedDefaultChecked = true;
  26353. }
  26354. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  26355. error('%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);
  26356. didWarnValueDefaultValue = true;
  26357. }
  26358. }
  26359. var node = element;
  26360. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  26361. node._wrapperState = {
  26362. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  26363. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  26364. controlled: isControlled(props)
  26365. };
  26366. }
  26367. function updateChecked(element, props) {
  26368. var node = element;
  26369. var checked = props.checked;
  26370. if (checked != null) {
  26371. setValueForProperty(node, 'checked', checked, false);
  26372. }
  26373. }
  26374. function updateWrapper(element, props) {
  26375. var node = element;
  26376. {
  26377. var controlled = isControlled(props);
  26378. if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
  26379. error('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);
  26380. didWarnUncontrolledToControlled = true;
  26381. }
  26382. if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
  26383. error('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);
  26384. didWarnControlledToUncontrolled = true;
  26385. }
  26386. }
  26387. updateChecked(element, props);
  26388. var value = getToStringValue(props.value);
  26389. var type = props.type;
  26390. if (value != null) {
  26391. if (type === 'number') {
  26392. if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
  26393. // eslint-disable-next-line
  26394. node.value != value) {
  26395. node.value = toString(value);
  26396. }
  26397. } else if (node.value !== toString(value)) {
  26398. node.value = toString(value);
  26399. }
  26400. } else if (type === 'submit' || type === 'reset') {
  26401. // Submit/reset inputs need the attribute removed completely to avoid
  26402. // blank-text buttons.
  26403. node.removeAttribute('value');
  26404. return;
  26405. }
  26406. {
  26407. // When syncing the value attribute, the value comes from a cascade of
  26408. // properties:
  26409. // 1. The value React property
  26410. // 2. The defaultValue React property
  26411. // 3. Otherwise there should be no change
  26412. if (props.hasOwnProperty('value')) {
  26413. setDefaultValue(node, props.type, value);
  26414. } else if (props.hasOwnProperty('defaultValue')) {
  26415. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  26416. }
  26417. }
  26418. {
  26419. // When syncing the checked attribute, it only changes when it needs
  26420. // to be removed, such as transitioning from a checkbox into a text input
  26421. if (props.checked == null && props.defaultChecked != null) {
  26422. node.defaultChecked = !!props.defaultChecked;
  26423. }
  26424. }
  26425. }
  26426. function postMountWrapper(element, props, isHydrating) {
  26427. var node = element; // Do not assign value if it is already set. This prevents user text input
  26428. // from being lost during SSR hydration.
  26429. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  26430. var type = props.type;
  26431. var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
  26432. // default value provided by the browser. See: #12872
  26433. if (isButton && (props.value === undefined || props.value === null)) {
  26434. return;
  26435. }
  26436. var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
  26437. // from being lost during SSR hydration.
  26438. if (!isHydrating) {
  26439. {
  26440. // When syncing the value attribute, the value property should use
  26441. // the wrapperState._initialValue property. This uses:
  26442. //
  26443. // 1. The value React property when present
  26444. // 2. The defaultValue React property when present
  26445. // 3. An empty string
  26446. if (initialValue !== node.value) {
  26447. node.value = initialValue;
  26448. }
  26449. }
  26450. }
  26451. {
  26452. // Otherwise, the value attribute is synchronized to the property,
  26453. // so we assign defaultValue to the same thing as the value property
  26454. // assignment step above.
  26455. node.defaultValue = initialValue;
  26456. }
  26457. } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  26458. // this is needed to work around a chrome bug where setting defaultChecked
  26459. // will sometimes influence the value of checked (even after detachment).
  26460. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  26461. // We need to temporarily unset name to avoid disrupting radio button groups.
  26462. var name = node.name;
  26463. if (name !== '') {
  26464. node.name = '';
  26465. }
  26466. {
  26467. // When syncing the checked attribute, both the checked property and
  26468. // attribute are assigned at the same time using defaultChecked. This uses:
  26469. //
  26470. // 1. The checked React property when present
  26471. // 2. The defaultChecked React property when present
  26472. // 3. Otherwise, false
  26473. node.defaultChecked = !node.defaultChecked;
  26474. node.defaultChecked = !!node._wrapperState.initialChecked;
  26475. }
  26476. if (name !== '') {
  26477. node.name = name;
  26478. }
  26479. }
  26480. function restoreControlledState(element, props) {
  26481. var node = element;
  26482. updateWrapper(node, props);
  26483. updateNamedCousins(node, props);
  26484. }
  26485. function updateNamedCousins(rootNode, props) {
  26486. var name = props.name;
  26487. if (props.type === 'radio' && name != null) {
  26488. var queryRoot = rootNode;
  26489. while (queryRoot.parentNode) {
  26490. queryRoot = queryRoot.parentNode;
  26491. } // If `rootNode.form` was non-null, then we could try `form.elements`,
  26492. // but that sometimes behaves strangely in IE8. We could also try using
  26493. // `form.getElementsByName`, but that will only return direct children
  26494. // and won't include inputs that use the HTML5 `form=` attribute. Since
  26495. // the input might not even be in a form. It might not even be in the
  26496. // document. Let's just use the local `querySelectorAll` to ensure we don't
  26497. // miss anything.
  26498. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  26499. for (var i = 0; i < group.length; i++) {
  26500. var otherNode = group[i];
  26501. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  26502. continue;
  26503. } // This will throw if radio buttons rendered by different copies of React
  26504. // and the same name are rendered into the same form (same as #1939).
  26505. // That's probably okay; we don't support it just as we don't support
  26506. // mixing React radio buttons with non-React ones.
  26507. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  26508. if (!otherProps) {
  26509. {
  26510. throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
  26511. }
  26512. } // We need update the tracked value on the named cousin since the value
  26513. // was changed but the input saw no event or value set
  26514. updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
  26515. // was previously checked to update will cause it to be come re-checked
  26516. // as appropriate.
  26517. updateWrapper(otherNode, otherProps);
  26518. }
  26519. }
  26520. } // In Chrome, assigning defaultValue to certain input types triggers input validation.
  26521. // For number inputs, the display value loses trailing decimal points. For email inputs,
  26522. // Chrome raises "The specified value <x> is not a valid email address".
  26523. //
  26524. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  26525. // when the user is inputting text
  26526. //
  26527. // https://github.com/facebook/react/issues/7253
  26528. function setDefaultValue(node, type, value) {
  26529. if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  26530. type !== 'number' || node.ownerDocument.activeElement !== node) {
  26531. if (value == null) {
  26532. node.defaultValue = toString(node._wrapperState.initialValue);
  26533. } else if (node.defaultValue !== toString(value)) {
  26534. node.defaultValue = toString(value);
  26535. }
  26536. }
  26537. }
  26538. var didWarnSelectedSetOnOption = false;
  26539. var didWarnInvalidChild = false;
  26540. function flattenChildren(children) {
  26541. var content = ''; // Flatten children. We'll warn if they are invalid
  26542. // during validateProps() which runs for hydration too.
  26543. // Note that this would throw on non-element objects.
  26544. // Elements are stringified (which is normally irrelevant
  26545. // but matters for <fbt>).
  26546. React.Children.forEach(children, function (child) {
  26547. if (child == null) {
  26548. return;
  26549. }
  26550. content += child; // Note: we don't warn about invalid children here.
  26551. // Instead, this is done separately below so that
  26552. // it happens during the hydration codepath too.
  26553. });
  26554. return content;
  26555. }
  26556. /**
  26557. * Implements an <option> host component that warns when `selected` is set.
  26558. */
  26559. function validateProps(element, props) {
  26560. {
  26561. // This mirrors the codepath above, but runs for hydration too.
  26562. // Warn about invalid children here so that client and hydration are consistent.
  26563. // TODO: this seems like it could cause a DEV-only throw for hydration
  26564. // if children contains a non-element object. We should try to avoid that.
  26565. if (typeof props.children === 'object' && props.children !== null) {
  26566. React.Children.forEach(props.children, function (child) {
  26567. if (child == null) {
  26568. return;
  26569. }
  26570. if (typeof child === 'string' || typeof child === 'number') {
  26571. return;
  26572. }
  26573. if (typeof child.type !== 'string') {
  26574. return;
  26575. }
  26576. if (!didWarnInvalidChild) {
  26577. didWarnInvalidChild = true;
  26578. error('Only strings and numbers are supported as <option> children.');
  26579. }
  26580. });
  26581. } // TODO: Remove support for `selected` in <option>.
  26582. if (props.selected != null && !didWarnSelectedSetOnOption) {
  26583. error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  26584. didWarnSelectedSetOnOption = true;
  26585. }
  26586. }
  26587. }
  26588. function postMountWrapper$1(element, props) {
  26589. // value="" should make a value attribute (#6219)
  26590. if (props.value != null) {
  26591. element.setAttribute('value', toString(getToStringValue(props.value)));
  26592. }
  26593. }
  26594. function getHostProps$1(element, props) {
  26595. var hostProps = _assign({
  26596. children: undefined
  26597. }, props);
  26598. var content = flattenChildren(props.children);
  26599. if (content) {
  26600. hostProps.children = content;
  26601. }
  26602. return hostProps;
  26603. }
  26604. var didWarnValueDefaultValue$1;
  26605. {
  26606. didWarnValueDefaultValue$1 = false;
  26607. }
  26608. function getDeclarationErrorAddendum() {
  26609. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  26610. if (ownerName) {
  26611. return '\n\nCheck the render method of `' + ownerName + '`.';
  26612. }
  26613. return '';
  26614. }
  26615. var valuePropNames = ['value', 'defaultValue'];
  26616. /**
  26617. * Validation function for `value` and `defaultValue`.
  26618. */
  26619. function checkSelectPropTypes(props) {
  26620. {
  26621. ReactControlledValuePropTypes.checkPropTypes('select', props);
  26622. for (var i = 0; i < valuePropNames.length; i++) {
  26623. var propName = valuePropNames[i];
  26624. if (props[propName] == null) {
  26625. continue;
  26626. }
  26627. var isArray = Array.isArray(props[propName]);
  26628. if (props.multiple && !isArray) {
  26629. error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  26630. } else if (!props.multiple && isArray) {
  26631. error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  26632. }
  26633. }
  26634. }
  26635. }
  26636. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  26637. var options = node.options;
  26638. if (multiple) {
  26639. var selectedValues = propValue;
  26640. var selectedValue = {};
  26641. for (var i = 0; i < selectedValues.length; i++) {
  26642. // Prefix to avoid chaos with special keys.
  26643. selectedValue['$' + selectedValues[i]] = true;
  26644. }
  26645. for (var _i = 0; _i < options.length; _i++) {
  26646. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  26647. if (options[_i].selected !== selected) {
  26648. options[_i].selected = selected;
  26649. }
  26650. if (selected && setDefaultSelected) {
  26651. options[_i].defaultSelected = true;
  26652. }
  26653. }
  26654. } else {
  26655. // Do not set `select.value` as exact behavior isn't consistent across all
  26656. // browsers for all cases.
  26657. var _selectedValue = toString(getToStringValue(propValue));
  26658. var defaultSelected = null;
  26659. for (var _i2 = 0; _i2 < options.length; _i2++) {
  26660. if (options[_i2].value === _selectedValue) {
  26661. options[_i2].selected = true;
  26662. if (setDefaultSelected) {
  26663. options[_i2].defaultSelected = true;
  26664. }
  26665. return;
  26666. }
  26667. if (defaultSelected === null && !options[_i2].disabled) {
  26668. defaultSelected = options[_i2];
  26669. }
  26670. }
  26671. if (defaultSelected !== null) {
  26672. defaultSelected.selected = true;
  26673. }
  26674. }
  26675. }
  26676. /**
  26677. * Implements a <select> host component that allows optionally setting the
  26678. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  26679. * stringable. If `multiple` is true, the prop must be an array of stringables.
  26680. *
  26681. * If `value` is not supplied (or null/undefined), user actions that change the
  26682. * selected option will trigger updates to the rendered options.
  26683. *
  26684. * If it is supplied (and not null/undefined), the rendered options will not
  26685. * update in response to user actions. Instead, the `value` prop must change in
  26686. * order for the rendered options to update.
  26687. *
  26688. * If `defaultValue` is provided, any options with the supplied values will be
  26689. * selected.
  26690. */
  26691. function getHostProps$2(element, props) {
  26692. return _assign({}, props, {
  26693. value: undefined
  26694. });
  26695. }
  26696. function initWrapperState$1(element, props) {
  26697. var node = element;
  26698. {
  26699. checkSelectPropTypes(props);
  26700. }
  26701. node._wrapperState = {
  26702. wasMultiple: !!props.multiple
  26703. };
  26704. {
  26705. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  26706. error('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');
  26707. didWarnValueDefaultValue$1 = true;
  26708. }
  26709. }
  26710. }
  26711. function postMountWrapper$2(element, props) {
  26712. var node = element;
  26713. node.multiple = !!props.multiple;
  26714. var value = props.value;
  26715. if (value != null) {
  26716. updateOptions(node, !!props.multiple, value, false);
  26717. } else if (props.defaultValue != null) {
  26718. updateOptions(node, !!props.multiple, props.defaultValue, true);
  26719. }
  26720. }
  26721. function postUpdateWrapper(element, props) {
  26722. var node = element;
  26723. var wasMultiple = node._wrapperState.wasMultiple;
  26724. node._wrapperState.wasMultiple = !!props.multiple;
  26725. var value = props.value;
  26726. if (value != null) {
  26727. updateOptions(node, !!props.multiple, value, false);
  26728. } else if (wasMultiple !== !!props.multiple) {
  26729. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  26730. if (props.defaultValue != null) {
  26731. updateOptions(node, !!props.multiple, props.defaultValue, true);
  26732. } else {
  26733. // Revert the select back to its default unselected state.
  26734. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  26735. }
  26736. }
  26737. }
  26738. function restoreControlledState$1(element, props) {
  26739. var node = element;
  26740. var value = props.value;
  26741. if (value != null) {
  26742. updateOptions(node, !!props.multiple, value, false);
  26743. }
  26744. }
  26745. var didWarnValDefaultVal = false;
  26746. /**
  26747. * Implements a <textarea> host component that allows setting `value`, and
  26748. * `defaultValue`. This differs from the traditional DOM API because value is
  26749. * usually set as PCDATA children.
  26750. *
  26751. * If `value` is not supplied (or null/undefined), user actions that affect the
  26752. * value will trigger updates to the element.
  26753. *
  26754. * If `value` is supplied (and not null/undefined), the rendered element will
  26755. * not trigger updates to the element. Instead, the `value` prop must change in
  26756. * order for the rendered element to be updated.
  26757. *
  26758. * The rendered element will be initialized with an empty value, the prop
  26759. * `defaultValue` if specified, or the children content (deprecated).
  26760. */
  26761. function getHostProps$3(element, props) {
  26762. var node = element;
  26763. if (!(props.dangerouslySetInnerHTML == null)) {
  26764. {
  26765. throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
  26766. }
  26767. } // Always set children to the same thing. In IE9, the selection range will
  26768. // get reset if `textContent` is mutated. We could add a check in setTextContent
  26769. // to only set the value if/when the value differs from the node value (which would
  26770. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  26771. // solution. The value can be a boolean or object so that's why it's forced
  26772. // to be a string.
  26773. var hostProps = _assign({}, props, {
  26774. value: undefined,
  26775. defaultValue: undefined,
  26776. children: toString(node._wrapperState.initialValue)
  26777. });
  26778. return hostProps;
  26779. }
  26780. function initWrapperState$2(element, props) {
  26781. var node = element;
  26782. {
  26783. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  26784. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  26785. error('%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');
  26786. didWarnValDefaultVal = true;
  26787. }
  26788. }
  26789. var initialValue = props.value; // Only bother fetching default value if we're going to use it
  26790. if (initialValue == null) {
  26791. var children = props.children,
  26792. defaultValue = props.defaultValue;
  26793. if (children != null) {
  26794. {
  26795. error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  26796. }
  26797. {
  26798. if (!(defaultValue == null)) {
  26799. {
  26800. throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
  26801. }
  26802. }
  26803. if (Array.isArray(children)) {
  26804. if (!(children.length <= 1)) {
  26805. {
  26806. throw Error( "<textarea> can only have at most one child." );
  26807. }
  26808. }
  26809. children = children[0];
  26810. }
  26811. defaultValue = children;
  26812. }
  26813. }
  26814. if (defaultValue == null) {
  26815. defaultValue = '';
  26816. }
  26817. initialValue = defaultValue;
  26818. }
  26819. node._wrapperState = {
  26820. initialValue: getToStringValue(initialValue)
  26821. };
  26822. }
  26823. function updateWrapper$1(element, props) {
  26824. var node = element;
  26825. var value = getToStringValue(props.value);
  26826. var defaultValue = getToStringValue(props.defaultValue);
  26827. if (value != null) {
  26828. // Cast `value` to a string to ensure the value is set correctly. While
  26829. // browsers typically do this as necessary, jsdom doesn't.
  26830. var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed
  26831. if (newValue !== node.value) {
  26832. node.value = newValue;
  26833. }
  26834. if (props.defaultValue == null && node.defaultValue !== newValue) {
  26835. node.defaultValue = newValue;
  26836. }
  26837. }
  26838. if (defaultValue != null) {
  26839. node.defaultValue = toString(defaultValue);
  26840. }
  26841. }
  26842. function postMountWrapper$3(element, props) {
  26843. var node = element; // This is in postMount because we need access to the DOM node, which is not
  26844. // available until after the component has mounted.
  26845. var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
  26846. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  26847. // will populate textContent as well.
  26848. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  26849. if (textContent === node._wrapperState.initialValue) {
  26850. if (textContent !== '' && textContent !== null) {
  26851. node.value = textContent;
  26852. }
  26853. }
  26854. }
  26855. function restoreControlledState$2(element, props) {
  26856. // DOM component is still mounted; update
  26857. updateWrapper$1(element, props);
  26858. }
  26859. var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
  26860. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  26861. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  26862. var Namespaces = {
  26863. html: HTML_NAMESPACE,
  26864. mathml: MATH_NAMESPACE,
  26865. svg: SVG_NAMESPACE
  26866. }; // Assumes there is no parent namespace.
  26867. function getIntrinsicNamespace(type) {
  26868. switch (type) {
  26869. case 'svg':
  26870. return SVG_NAMESPACE;
  26871. case 'math':
  26872. return MATH_NAMESPACE;
  26873. default:
  26874. return HTML_NAMESPACE;
  26875. }
  26876. }
  26877. function getChildNamespace(parentNamespace, type) {
  26878. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
  26879. // No (or default) parent namespace: potential entry point.
  26880. return getIntrinsicNamespace(type);
  26881. }
  26882. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  26883. // We're leaving SVG.
  26884. return HTML_NAMESPACE;
  26885. } // By default, pass namespace below.
  26886. return parentNamespace;
  26887. }
  26888. /* globals MSApp */
  26889. /**
  26890. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  26891. */
  26892. var createMicrosoftUnsafeLocalFunction = function (func) {
  26893. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  26894. return function (arg0, arg1, arg2, arg3) {
  26895. MSApp.execUnsafeLocalFunction(function () {
  26896. return func(arg0, arg1, arg2, arg3);
  26897. });
  26898. };
  26899. } else {
  26900. return func;
  26901. }
  26902. };
  26903. var reusableSVGContainer;
  26904. /**
  26905. * Set the innerHTML property of a node
  26906. *
  26907. * @param {DOMElement} node
  26908. * @param {string} html
  26909. * @internal
  26910. */
  26911. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  26912. if (node.namespaceURI === Namespaces.svg) {
  26913. if (!('innerHTML' in node)) {
  26914. // IE does not have innerHTML for SVG nodes, so instead we inject the
  26915. // new markup in a temp node and then move the child nodes across into
  26916. // the target node
  26917. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  26918. reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
  26919. var svgNode = reusableSVGContainer.firstChild;
  26920. while (node.firstChild) {
  26921. node.removeChild(node.firstChild);
  26922. }
  26923. while (svgNode.firstChild) {
  26924. node.appendChild(svgNode.firstChild);
  26925. }
  26926. return;
  26927. }
  26928. }
  26929. node.innerHTML = html;
  26930. });
  26931. /**
  26932. * HTML nodeType values that represent the type of the node
  26933. */
  26934. var ELEMENT_NODE = 1;
  26935. var TEXT_NODE = 3;
  26936. var COMMENT_NODE = 8;
  26937. var DOCUMENT_NODE = 9;
  26938. var DOCUMENT_FRAGMENT_NODE = 11;
  26939. /**
  26940. * Set the textContent property of a node. For text updates, it's faster
  26941. * to set the `nodeValue` of the Text node directly instead of using
  26942. * `.textContent` which will remove the existing node and create a new one.
  26943. *
  26944. * @param {DOMElement} node
  26945. * @param {string} text
  26946. * @internal
  26947. */
  26948. var setTextContent = function (node, text) {
  26949. if (text) {
  26950. var firstChild = node.firstChild;
  26951. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  26952. firstChild.nodeValue = text;
  26953. return;
  26954. }
  26955. }
  26956. node.textContent = text;
  26957. };
  26958. // Do not use the below two methods directly!
  26959. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  26960. // (It is the only module that is allowed to access these methods.)
  26961. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  26962. return topLevelType;
  26963. }
  26964. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  26965. return topLevelType;
  26966. }
  26967. /**
  26968. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  26969. *
  26970. * @param {string} styleProp
  26971. * @param {string} eventName
  26972. * @returns {object}
  26973. */
  26974. function makePrefixMap(styleProp, eventName) {
  26975. var prefixes = {};
  26976. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  26977. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  26978. prefixes['Moz' + styleProp] = 'moz' + eventName;
  26979. return prefixes;
  26980. }
  26981. /**
  26982. * A list of event names to a configurable list of vendor prefixes.
  26983. */
  26984. var vendorPrefixes = {
  26985. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  26986. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  26987. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  26988. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  26989. };
  26990. /**
  26991. * Event names that have already been detected and prefixed (if applicable).
  26992. */
  26993. var prefixedEventNames = {};
  26994. /**
  26995. * Element to check for prefixes on.
  26996. */
  26997. var style = {};
  26998. /**
  26999. * Bootstrap if a DOM exists.
  27000. */
  27001. if (canUseDOM) {
  27002. style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
  27003. // the un-prefixed "animation" and "transition" properties are defined on the
  27004. // style object but the events that fire will still be prefixed, so we need
  27005. // to check if the un-prefixed events are usable, and if not remove them from the map.
  27006. if (!('AnimationEvent' in window)) {
  27007. delete vendorPrefixes.animationend.animation;
  27008. delete vendorPrefixes.animationiteration.animation;
  27009. delete vendorPrefixes.animationstart.animation;
  27010. } // Same as above
  27011. if (!('TransitionEvent' in window)) {
  27012. delete vendorPrefixes.transitionend.transition;
  27013. }
  27014. }
  27015. /**
  27016. * Attempts to determine the correct vendor prefixed event name.
  27017. *
  27018. * @param {string} eventName
  27019. * @returns {string}
  27020. */
  27021. function getVendorPrefixedEventName(eventName) {
  27022. if (prefixedEventNames[eventName]) {
  27023. return prefixedEventNames[eventName];
  27024. } else if (!vendorPrefixes[eventName]) {
  27025. return eventName;
  27026. }
  27027. var prefixMap = vendorPrefixes[eventName];
  27028. for (var styleProp in prefixMap) {
  27029. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  27030. return prefixedEventNames[eventName] = prefixMap[styleProp];
  27031. }
  27032. }
  27033. return eventName;
  27034. }
  27035. /**
  27036. * To identify top level events in ReactDOM, we use constants defined by this
  27037. * module. This is the only module that uses the unsafe* methods to express
  27038. * that the constants actually correspond to the browser event names. This lets
  27039. * us save some bundle size by avoiding a top level type -> event name map.
  27040. * The rest of ReactDOM code should import top level types from this file.
  27041. */
  27042. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  27043. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  27044. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  27045. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  27046. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  27047. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  27048. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  27049. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  27050. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  27051. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  27052. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  27053. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  27054. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  27055. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  27056. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  27057. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  27058. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  27059. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  27060. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  27061. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  27062. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  27063. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  27064. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  27065. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  27066. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  27067. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  27068. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  27069. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  27070. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  27071. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  27072. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  27073. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  27074. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  27075. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  27076. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  27077. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  27078. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  27079. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  27080. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  27081. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  27082. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  27083. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  27084. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  27085. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  27086. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  27087. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  27088. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  27089. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  27090. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  27091. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  27092. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  27093. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  27094. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  27095. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  27096. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  27097. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  27098. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  27099. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  27100. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  27101. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  27102. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  27103. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  27104. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  27105. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  27106. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  27107. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  27108. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  27109. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  27110. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  27111. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  27112. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  27113. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  27114. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  27115. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  27116. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  27117. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  27118. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  27119. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  27120. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  27121. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements.
  27122. // Note that events in this list will *not* be listened to at the top level
  27123. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  27124. 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];
  27125. function getRawEventName(topLevelType) {
  27126. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  27127. }
  27128. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // prettier-ignore
  27129. var elementListenerMap = new PossiblyWeakMap();
  27130. function getListenerMapForElement(element) {
  27131. var listenerMap = elementListenerMap.get(element);
  27132. if (listenerMap === undefined) {
  27133. listenerMap = new Map();
  27134. elementListenerMap.set(element, listenerMap);
  27135. }
  27136. return listenerMap;
  27137. }
  27138. /**
  27139. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  27140. * instance (key) and the internal representation (value). This allows public
  27141. * methods to accept the user facing instance as an argument and map them back
  27142. * to internal methods.
  27143. *
  27144. * Note that this module is currently shared and assumed to be stateless.
  27145. * If this becomes an actual Map, that will break.
  27146. */
  27147. function get(key) {
  27148. return key._reactInternalFiber;
  27149. }
  27150. function has(key) {
  27151. return key._reactInternalFiber !== undefined;
  27152. }
  27153. function set(key, value) {
  27154. key._reactInternalFiber = value;
  27155. }
  27156. // Don't change these two values. They're used by React Dev Tools.
  27157. var NoEffect =
  27158. /* */
  27159. 0;
  27160. var PerformedWork =
  27161. /* */
  27162. 1; // You can change the rest (and add more).
  27163. var Placement =
  27164. /* */
  27165. 2;
  27166. var Update =
  27167. /* */
  27168. 4;
  27169. var PlacementAndUpdate =
  27170. /* */
  27171. 6;
  27172. var Deletion =
  27173. /* */
  27174. 8;
  27175. var ContentReset =
  27176. /* */
  27177. 16;
  27178. var Callback =
  27179. /* */
  27180. 32;
  27181. var DidCapture =
  27182. /* */
  27183. 64;
  27184. var Ref =
  27185. /* */
  27186. 128;
  27187. var Snapshot =
  27188. /* */
  27189. 256;
  27190. var Passive =
  27191. /* */
  27192. 512;
  27193. var Hydrating =
  27194. /* */
  27195. 1024;
  27196. var HydratingAndUpdate =
  27197. /* */
  27198. 1028; // Passive & Update & Callback & Ref & Snapshot
  27199. var LifecycleEffectMask =
  27200. /* */
  27201. 932; // Union of all host effects
  27202. var HostEffectMask =
  27203. /* */
  27204. 2047;
  27205. var Incomplete =
  27206. /* */
  27207. 2048;
  27208. var ShouldCapture =
  27209. /* */
  27210. 4096;
  27211. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  27212. function getNearestMountedFiber(fiber) {
  27213. var node = fiber;
  27214. var nearestMounted = fiber;
  27215. if (!fiber.alternate) {
  27216. // If there is no alternate, this might be a new tree that isn't inserted
  27217. // yet. If it is, then it will have a pending insertion effect on it.
  27218. var nextNode = node;
  27219. do {
  27220. node = nextNode;
  27221. if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) {
  27222. // This is an insertion or in-progress hydration. The nearest possible
  27223. // mounted fiber is the parent but we need to continue to figure out
  27224. // if that one is still mounted.
  27225. nearestMounted = node.return;
  27226. }
  27227. nextNode = node.return;
  27228. } while (nextNode);
  27229. } else {
  27230. while (node.return) {
  27231. node = node.return;
  27232. }
  27233. }
  27234. if (node.tag === HostRoot) {
  27235. // TODO: Check if this was a nested HostRoot when used with
  27236. // renderContainerIntoSubtree.
  27237. return nearestMounted;
  27238. } // If we didn't hit the root, that means that we're in an disconnected tree
  27239. // that has been unmounted.
  27240. return null;
  27241. }
  27242. function getSuspenseInstanceFromFiber(fiber) {
  27243. if (fiber.tag === SuspenseComponent) {
  27244. var suspenseState = fiber.memoizedState;
  27245. if (suspenseState === null) {
  27246. var current = fiber.alternate;
  27247. if (current !== null) {
  27248. suspenseState = current.memoizedState;
  27249. }
  27250. }
  27251. if (suspenseState !== null) {
  27252. return suspenseState.dehydrated;
  27253. }
  27254. }
  27255. return null;
  27256. }
  27257. function getContainerFromFiber(fiber) {
  27258. return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
  27259. }
  27260. function isFiberMounted(fiber) {
  27261. return getNearestMountedFiber(fiber) === fiber;
  27262. }
  27263. function isMounted(component) {
  27264. {
  27265. var owner = ReactCurrentOwner.current;
  27266. if (owner !== null && owner.tag === ClassComponent) {
  27267. var ownerFiber = owner;
  27268. var instance = ownerFiber.stateNode;
  27269. if (!instance._warnedAboutRefsInRender) {
  27270. error('%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');
  27271. }
  27272. instance._warnedAboutRefsInRender = true;
  27273. }
  27274. }
  27275. var fiber = get(component);
  27276. if (!fiber) {
  27277. return false;
  27278. }
  27279. return getNearestMountedFiber(fiber) === fiber;
  27280. }
  27281. function assertIsMounted(fiber) {
  27282. if (!(getNearestMountedFiber(fiber) === fiber)) {
  27283. {
  27284. throw Error( "Unable to find node on an unmounted component." );
  27285. }
  27286. }
  27287. }
  27288. function findCurrentFiberUsingSlowPath(fiber) {
  27289. var alternate = fiber.alternate;
  27290. if (!alternate) {
  27291. // If there is no alternate, then we only need to check if it is mounted.
  27292. var nearestMounted = getNearestMountedFiber(fiber);
  27293. if (!(nearestMounted !== null)) {
  27294. {
  27295. throw Error( "Unable to find node on an unmounted component." );
  27296. }
  27297. }
  27298. if (nearestMounted !== fiber) {
  27299. return null;
  27300. }
  27301. return fiber;
  27302. } // If we have two possible branches, we'll walk backwards up to the root
  27303. // to see what path the root points to. On the way we may hit one of the
  27304. // special cases and we'll deal with them.
  27305. var a = fiber;
  27306. var b = alternate;
  27307. while (true) {
  27308. var parentA = a.return;
  27309. if (parentA === null) {
  27310. // We're at the root.
  27311. break;
  27312. }
  27313. var parentB = parentA.alternate;
  27314. if (parentB === null) {
  27315. // There is no alternate. This is an unusual case. Currently, it only
  27316. // happens when a Suspense component is hidden. An extra fragment fiber
  27317. // is inserted in between the Suspense fiber and its children. Skip
  27318. // over this extra fragment fiber and proceed to the next parent.
  27319. var nextParent = parentA.return;
  27320. if (nextParent !== null) {
  27321. a = b = nextParent;
  27322. continue;
  27323. } // If there's no parent, we're at the root.
  27324. break;
  27325. } // If both copies of the parent fiber point to the same child, we can
  27326. // assume that the child is current. This happens when we bailout on low
  27327. // priority: the bailed out fiber's child reuses the current child.
  27328. if (parentA.child === parentB.child) {
  27329. var child = parentA.child;
  27330. while (child) {
  27331. if (child === a) {
  27332. // We've determined that A is the current branch.
  27333. assertIsMounted(parentA);
  27334. return fiber;
  27335. }
  27336. if (child === b) {
  27337. // We've determined that B is the current branch.
  27338. assertIsMounted(parentA);
  27339. return alternate;
  27340. }
  27341. child = child.sibling;
  27342. } // We should never have an alternate for any mounting node. So the only
  27343. // way this could possibly happen is if this was unmounted, if at all.
  27344. {
  27345. {
  27346. throw Error( "Unable to find node on an unmounted component." );
  27347. }
  27348. }
  27349. }
  27350. if (a.return !== b.return) {
  27351. // The return pointer of A and the return pointer of B point to different
  27352. // fibers. We assume that return pointers never criss-cross, so A must
  27353. // belong to the child set of A.return, and B must belong to the child
  27354. // set of B.return.
  27355. a = parentA;
  27356. b = parentB;
  27357. } else {
  27358. // The return pointers point to the same fiber. We'll have to use the
  27359. // default, slow path: scan the child sets of each parent alternate to see
  27360. // which child belongs to which set.
  27361. //
  27362. // Search parent A's child set
  27363. var didFindChild = false;
  27364. var _child = parentA.child;
  27365. while (_child) {
  27366. if (_child === a) {
  27367. didFindChild = true;
  27368. a = parentA;
  27369. b = parentB;
  27370. break;
  27371. }
  27372. if (_child === b) {
  27373. didFindChild = true;
  27374. b = parentA;
  27375. a = parentB;
  27376. break;
  27377. }
  27378. _child = _child.sibling;
  27379. }
  27380. if (!didFindChild) {
  27381. // Search parent B's child set
  27382. _child = parentB.child;
  27383. while (_child) {
  27384. if (_child === a) {
  27385. didFindChild = true;
  27386. a = parentB;
  27387. b = parentA;
  27388. break;
  27389. }
  27390. if (_child === b) {
  27391. didFindChild = true;
  27392. b = parentB;
  27393. a = parentA;
  27394. break;
  27395. }
  27396. _child = _child.sibling;
  27397. }
  27398. if (!didFindChild) {
  27399. {
  27400. throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
  27401. }
  27402. }
  27403. }
  27404. }
  27405. if (!(a.alternate === b)) {
  27406. {
  27407. throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
  27408. }
  27409. }
  27410. } // If the root is not a host container, we're in a disconnected tree. I.e.
  27411. // unmounted.
  27412. if (!(a.tag === HostRoot)) {
  27413. {
  27414. throw Error( "Unable to find node on an unmounted component." );
  27415. }
  27416. }
  27417. if (a.stateNode.current === a) {
  27418. // We've determined that A is the current branch.
  27419. return fiber;
  27420. } // Otherwise B has to be current branch.
  27421. return alternate;
  27422. }
  27423. function findCurrentHostFiber(parent) {
  27424. var currentParent = findCurrentFiberUsingSlowPath(parent);
  27425. if (!currentParent) {
  27426. return null;
  27427. } // Next we'll drill down this component to find the first HostComponent/Text.
  27428. var node = currentParent;
  27429. while (true) {
  27430. if (node.tag === HostComponent || node.tag === HostText) {
  27431. return node;
  27432. } else if (node.child) {
  27433. node.child.return = node;
  27434. node = node.child;
  27435. continue;
  27436. }
  27437. if (node === currentParent) {
  27438. return null;
  27439. }
  27440. while (!node.sibling) {
  27441. if (!node.return || node.return === currentParent) {
  27442. return null;
  27443. }
  27444. node = node.return;
  27445. }
  27446. node.sibling.return = node.return;
  27447. node = node.sibling;
  27448. } // Flow needs the return null here, but ESLint complains about it.
  27449. // eslint-disable-next-line no-unreachable
  27450. return null;
  27451. }
  27452. function findCurrentHostFiberWithNoPortals(parent) {
  27453. var currentParent = findCurrentFiberUsingSlowPath(parent);
  27454. if (!currentParent) {
  27455. return null;
  27456. } // Next we'll drill down this component to find the first HostComponent/Text.
  27457. var node = currentParent;
  27458. while (true) {
  27459. if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
  27460. return node;
  27461. } else if (node.child && node.tag !== HostPortal) {
  27462. node.child.return = node;
  27463. node = node.child;
  27464. continue;
  27465. }
  27466. if (node === currentParent) {
  27467. return null;
  27468. }
  27469. while (!node.sibling) {
  27470. if (!node.return || node.return === currentParent) {
  27471. return null;
  27472. }
  27473. node = node.return;
  27474. }
  27475. node.sibling.return = node.return;
  27476. node = node.sibling;
  27477. } // Flow needs the return null here, but ESLint complains about it.
  27478. // eslint-disable-next-line no-unreachable
  27479. return null;
  27480. }
  27481. /**
  27482. * Accumulates items that must not be null or undefined into the first one. This
  27483. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  27484. * API cleanness. Since `current` can be null before being passed in and not
  27485. * null after this function, make sure to assign it back to `current`:
  27486. *
  27487. * `a = accumulateInto(a, b);`
  27488. *
  27489. * This API should be sparingly used. Try `accumulate` for something cleaner.
  27490. *
  27491. * @return {*|array<*>} An accumulation of items.
  27492. */
  27493. function accumulateInto(current, next) {
  27494. if (!(next != null)) {
  27495. {
  27496. throw Error( "accumulateInto(...): Accumulated items must not be null or undefined." );
  27497. }
  27498. }
  27499. if (current == null) {
  27500. return next;
  27501. } // Both are not empty. Warning: Never call x.concat(y) when you are not
  27502. // certain that x is an Array (x could be a string with concat method).
  27503. if (Array.isArray(current)) {
  27504. if (Array.isArray(next)) {
  27505. current.push.apply(current, next);
  27506. return current;
  27507. }
  27508. current.push(next);
  27509. return current;
  27510. }
  27511. if (Array.isArray(next)) {
  27512. // A bit too dangerous to mutate `next`.
  27513. return [current].concat(next);
  27514. }
  27515. return [current, next];
  27516. }
  27517. /**
  27518. * @param {array} arr an "accumulation" of items which is either an Array or
  27519. * a single item. Useful when paired with the `accumulate` module. This is a
  27520. * simple utility that allows us to reason about a collection of items, but
  27521. * handling the case when there is exactly one item (and we do not need to
  27522. * allocate an array).
  27523. * @param {function} cb Callback invoked with each element or a collection.
  27524. * @param {?} [scope] Scope used as `this` in a callback.
  27525. */
  27526. function forEachAccumulated(arr, cb, scope) {
  27527. if (Array.isArray(arr)) {
  27528. arr.forEach(cb, scope);
  27529. } else if (arr) {
  27530. cb.call(scope, arr);
  27531. }
  27532. }
  27533. /**
  27534. * Internal queue of events that have accumulated their dispatches and are
  27535. * waiting to have their dispatches executed.
  27536. */
  27537. var eventQueue = null;
  27538. /**
  27539. * Dispatches an event and releases it back into the pool, unless persistent.
  27540. *
  27541. * @param {?object} event Synthetic event to be dispatched.
  27542. * @private
  27543. */
  27544. var executeDispatchesAndRelease = function (event) {
  27545. if (event) {
  27546. executeDispatchesInOrder(event);
  27547. if (!event.isPersistent()) {
  27548. event.constructor.release(event);
  27549. }
  27550. }
  27551. };
  27552. var executeDispatchesAndReleaseTopLevel = function (e) {
  27553. return executeDispatchesAndRelease(e);
  27554. };
  27555. function runEventsInBatch(events) {
  27556. if (events !== null) {
  27557. eventQueue = accumulateInto(eventQueue, events);
  27558. } // Set `eventQueue` to null before processing it so that we can tell if more
  27559. // events get enqueued while processing.
  27560. var processingEventQueue = eventQueue;
  27561. eventQueue = null;
  27562. if (!processingEventQueue) {
  27563. return;
  27564. }
  27565. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  27566. if (!!eventQueue) {
  27567. {
  27568. throw Error( "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented." );
  27569. }
  27570. } // This would be a good time to rethrow if any of the event handlers threw.
  27571. rethrowCaughtError();
  27572. }
  27573. /**
  27574. * Gets the target node from a native browser event by accounting for
  27575. * inconsistencies in browser DOM APIs.
  27576. *
  27577. * @param {object} nativeEvent Native browser event.
  27578. * @return {DOMEventTarget} Target node.
  27579. */
  27580. function getEventTarget(nativeEvent) {
  27581. // Fallback to nativeEvent.srcElement for IE9
  27582. // https://github.com/facebook/react/issues/12506
  27583. var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963
  27584. if (target.correspondingUseElement) {
  27585. target = target.correspondingUseElement;
  27586. } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  27587. // @see http://www.quirksmode.org/js/events_properties.html
  27588. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  27589. }
  27590. /**
  27591. * Checks if an event is supported in the current execution environment.
  27592. *
  27593. * NOTE: This will not work correctly for non-generic events such as `change`,
  27594. * `reset`, `load`, `error`, and `select`.
  27595. *
  27596. * Borrows from Modernizr.
  27597. *
  27598. * @param {string} eventNameSuffix Event name, e.g. "click".
  27599. * @return {boolean} True if the event is supported.
  27600. * @internal
  27601. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  27602. */
  27603. function isEventSupported(eventNameSuffix) {
  27604. if (!canUseDOM) {
  27605. return false;
  27606. }
  27607. var eventName = 'on' + eventNameSuffix;
  27608. var isSupported = eventName in document;
  27609. if (!isSupported) {
  27610. var element = document.createElement('div');
  27611. element.setAttribute(eventName, 'return;');
  27612. isSupported = typeof element[eventName] === 'function';
  27613. }
  27614. return isSupported;
  27615. }
  27616. /**
  27617. * Summary of `DOMEventPluginSystem` event handling:
  27618. *
  27619. * - Top-level delegation is used to trap most native browser events. This
  27620. * may only occur in the main thread and is the responsibility of
  27621. * ReactDOMEventListener, which is injected and can therefore support
  27622. * pluggable event sources. This is the only work that occurs in the main
  27623. * thread.
  27624. *
  27625. * - We normalize and de-duplicate events to account for browser quirks. This
  27626. * may be done in the worker thread.
  27627. *
  27628. * - Forward these native events (with the associated top-level type used to
  27629. * trap it) to `EventPluginRegistry`, which in turn will ask plugins if they want
  27630. * to extract any synthetic events.
  27631. *
  27632. * - The `EventPluginRegistry` will then process each event by annotating them with
  27633. * "dispatches", a sequence of listeners and IDs that care about that event.
  27634. *
  27635. * - The `EventPluginRegistry` then dispatches the events.
  27636. *
  27637. * Overview of React and the event system:
  27638. *
  27639. * +------------+ .
  27640. * | DOM | .
  27641. * +------------+ .
  27642. * | .
  27643. * v .
  27644. * +------------+ .
  27645. * | ReactEvent | .
  27646. * | Listener | .
  27647. * +------------+ . +-----------+
  27648. * | . +--------+|SimpleEvent|
  27649. * | . | |Plugin |
  27650. * +-----|------+ . v +-----------+
  27651. * | | | . +--------------+ +------------+
  27652. * | +-----------.--->|PluginRegistry| | Event |
  27653. * | | . | | +-----------+ | Propagators|
  27654. * | ReactEvent | . | | |TapEvent | |------------|
  27655. * | Emitter | . | |<---+|Plugin | |other plugin|
  27656. * | | . | | +-----------+ | utilities |
  27657. * | +-----------.--->| | +------------+
  27658. * | | | . +--------------+
  27659. * +-----|------+ . ^ +-----------+
  27660. * | . | |Enter/Leave|
  27661. * + . +-------+|Plugin |
  27662. * +-------------+ . +-----------+
  27663. * | application | .
  27664. * |-------------| .
  27665. * | | .
  27666. * | | .
  27667. * +-------------+ .
  27668. * .
  27669. * React Core . General Purpose Event Plugin System
  27670. */
  27671. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  27672. var callbackBookkeepingPool = [];
  27673. function releaseTopLevelCallbackBookKeeping(instance) {
  27674. instance.topLevelType = null;
  27675. instance.nativeEvent = null;
  27676. instance.targetInst = null;
  27677. instance.ancestors.length = 0;
  27678. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  27679. callbackBookkeepingPool.push(instance);
  27680. }
  27681. } // Used to store ancestor hierarchy in top level callback
  27682. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags) {
  27683. if (callbackBookkeepingPool.length) {
  27684. var instance = callbackBookkeepingPool.pop();
  27685. instance.topLevelType = topLevelType;
  27686. instance.eventSystemFlags = eventSystemFlags;
  27687. instance.nativeEvent = nativeEvent;
  27688. instance.targetInst = targetInst;
  27689. return instance;
  27690. }
  27691. return {
  27692. topLevelType: topLevelType,
  27693. eventSystemFlags: eventSystemFlags,
  27694. nativeEvent: nativeEvent,
  27695. targetInst: targetInst,
  27696. ancestors: []
  27697. };
  27698. }
  27699. /**
  27700. * Find the deepest React component completely containing the root of the
  27701. * passed-in instance (for use when entire React trees are nested within each
  27702. * other). If React trees are not nested, returns null.
  27703. */
  27704. function findRootContainerNode(inst) {
  27705. if (inst.tag === HostRoot) {
  27706. return inst.stateNode.containerInfo;
  27707. } // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  27708. // traversal, but caching is difficult to do correctly without using a
  27709. // mutation observer to listen for all DOM changes.
  27710. while (inst.return) {
  27711. inst = inst.return;
  27712. }
  27713. if (inst.tag !== HostRoot) {
  27714. // This can happen if we're in a detached tree.
  27715. return null;
  27716. }
  27717. return inst.stateNode.containerInfo;
  27718. }
  27719. /**
  27720. * Allows registered plugins an opportunity to extract events from top-level
  27721. * native browser events.
  27722. *
  27723. * @return {*} An accumulation of synthetic events.
  27724. * @internal
  27725. */
  27726. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  27727. var events = null;
  27728. for (var i = 0; i < plugins.length; i++) {
  27729. // Not every plugin in the ordering may be loaded at runtime.
  27730. var possiblePlugin = plugins[i];
  27731. if (possiblePlugin) {
  27732. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  27733. if (extractedEvents) {
  27734. events = accumulateInto(events, extractedEvents);
  27735. }
  27736. }
  27737. }
  27738. return events;
  27739. }
  27740. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  27741. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  27742. runEventsInBatch(events);
  27743. }
  27744. function handleTopLevel(bookKeeping) {
  27745. var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components.
  27746. // It's important that we build the array of ancestors before calling any
  27747. // event handlers, because event handlers can modify the DOM, leading to
  27748. // inconsistencies with ReactMount's node cache. See #1105.
  27749. var ancestor = targetInst;
  27750. do {
  27751. if (!ancestor) {
  27752. var ancestors = bookKeeping.ancestors;
  27753. ancestors.push(ancestor);
  27754. break;
  27755. }
  27756. var root = findRootContainerNode(ancestor);
  27757. if (!root) {
  27758. break;
  27759. }
  27760. var tag = ancestor.tag;
  27761. if (tag === HostComponent || tag === HostText) {
  27762. bookKeeping.ancestors.push(ancestor);
  27763. }
  27764. ancestor = getClosestInstanceFromNode(root);
  27765. } while (ancestor);
  27766. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  27767. targetInst = bookKeeping.ancestors[i];
  27768. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  27769. var topLevelType = bookKeeping.topLevelType;
  27770. var nativeEvent = bookKeeping.nativeEvent;
  27771. var eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags
  27772. if (i === 0) {
  27773. eventSystemFlags |= IS_FIRST_ANCESTOR;
  27774. }
  27775. runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags);
  27776. }
  27777. }
  27778. function dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  27779. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags);
  27780. try {
  27781. // Event queue being processed in the same cycle allows
  27782. // `preventDefault`.
  27783. batchedEventUpdates(handleTopLevel, bookKeeping);
  27784. } finally {
  27785. releaseTopLevelCallbackBookKeeping(bookKeeping);
  27786. }
  27787. }
  27788. /**
  27789. * We listen for bubbled touch events on the document object.
  27790. *
  27791. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  27792. * mounting `onmousemove` events at some node that was not the document
  27793. * element. The symptoms were that if your mouse is not moving over something
  27794. * contained within that mount point (for example on the background) the
  27795. * top-level listeners for `onmousemove` won't be called. However, if you
  27796. * register the `mousemove` on the document object, then it will of course
  27797. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  27798. * top-level listeners to the document object only, at least for these
  27799. * movement types of events and possibly all events.
  27800. *
  27801. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  27802. *
  27803. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  27804. * they bubble to document.
  27805. *
  27806. * @param {string} registrationName Name of listener (e.g. `onClick`).
  27807. * @param {object} mountAt Container where to mount the listener
  27808. */
  27809. function legacyListenToEvent(registrationName, mountAt) {
  27810. var listenerMap = getListenerMapForElement(mountAt);
  27811. var dependencies = registrationNameDependencies[registrationName];
  27812. for (var i = 0; i < dependencies.length; i++) {
  27813. var dependency = dependencies[i];
  27814. legacyListenToTopLevelEvent(dependency, mountAt, listenerMap);
  27815. }
  27816. }
  27817. function legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap) {
  27818. if (!listenerMap.has(topLevelType)) {
  27819. switch (topLevelType) {
  27820. case TOP_SCROLL:
  27821. trapCapturedEvent(TOP_SCROLL, mountAt);
  27822. break;
  27823. case TOP_FOCUS:
  27824. case TOP_BLUR:
  27825. trapCapturedEvent(TOP_FOCUS, mountAt);
  27826. trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function,
  27827. // but this ensures we mark both as attached rather than just one.
  27828. listenerMap.set(TOP_BLUR, null);
  27829. listenerMap.set(TOP_FOCUS, null);
  27830. break;
  27831. case TOP_CANCEL:
  27832. case TOP_CLOSE:
  27833. if (isEventSupported(getRawEventName(topLevelType))) {
  27834. trapCapturedEvent(topLevelType, mountAt);
  27835. }
  27836. break;
  27837. case TOP_INVALID:
  27838. case TOP_SUBMIT:
  27839. case TOP_RESET:
  27840. // We listen to them on the target DOM elements.
  27841. // Some of them bubble so we don't want them to fire twice.
  27842. break;
  27843. default:
  27844. // By default, listen on the top level to all non-media events.
  27845. // Media events don't bubble so adding the listener wouldn't do anything.
  27846. var isMediaEvent = mediaEventTypes.indexOf(topLevelType) !== -1;
  27847. if (!isMediaEvent) {
  27848. trapBubbledEvent(topLevelType, mountAt);
  27849. }
  27850. break;
  27851. }
  27852. listenerMap.set(topLevelType, null);
  27853. }
  27854. }
  27855. function isListeningToAllDependencies(registrationName, mountAt) {
  27856. var listenerMap = getListenerMapForElement(mountAt);
  27857. var dependencies = registrationNameDependencies[registrationName];
  27858. for (var i = 0; i < dependencies.length; i++) {
  27859. var dependency = dependencies[i];
  27860. if (!listenerMap.has(dependency)) {
  27861. return false;
  27862. }
  27863. }
  27864. return true;
  27865. }
  27866. var attemptUserBlockingHydration;
  27867. function setAttemptUserBlockingHydration(fn) {
  27868. attemptUserBlockingHydration = fn;
  27869. }
  27870. var attemptContinuousHydration;
  27871. function setAttemptContinuousHydration(fn) {
  27872. attemptContinuousHydration = fn;
  27873. }
  27874. var attemptHydrationAtCurrentPriority;
  27875. function setAttemptHydrationAtCurrentPriority(fn) {
  27876. attemptHydrationAtCurrentPriority = fn;
  27877. } // TODO: Upgrade this definition once we're on a newer version of Flow that
  27878. var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.
  27879. var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
  27880. // if the last target was dehydrated.
  27881. var queuedFocus = null;
  27882. var queuedDrag = null;
  27883. var queuedMouse = null; // For pointer events there can be one latest event per pointerId.
  27884. var queuedPointers = new Map();
  27885. var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.
  27886. var queuedExplicitHydrationTargets = [];
  27887. function hasQueuedDiscreteEvents() {
  27888. return queuedDiscreteEvents.length > 0;
  27889. }
  27890. var discreteReplayableEvents = [TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT];
  27891. var continuousReplayableEvents = [TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE];
  27892. function isReplayableDiscreteEvent(eventType) {
  27893. return discreteReplayableEvents.indexOf(eventType) > -1;
  27894. }
  27895. function trapReplayableEventForDocument(topLevelType, document, listenerMap) {
  27896. legacyListenToTopLevelEvent(topLevelType, document, listenerMap);
  27897. }
  27898. function eagerlyTrapReplayableEvents(container, document) {
  27899. var listenerMapForDoc = getListenerMapForElement(document); // Discrete
  27900. discreteReplayableEvents.forEach(function (topLevelType) {
  27901. trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  27902. }); // Continuous
  27903. continuousReplayableEvents.forEach(function (topLevelType) {
  27904. trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  27905. });
  27906. }
  27907. function createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  27908. return {
  27909. blockedOn: blockedOn,
  27910. topLevelType: topLevelType,
  27911. eventSystemFlags: eventSystemFlags | IS_REPLAYED,
  27912. nativeEvent: nativeEvent,
  27913. container: container
  27914. };
  27915. }
  27916. function queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  27917. var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  27918. queuedDiscreteEvents.push(queuedEvent);
  27919. } // Resets the replaying for this type of continuous event to no event.
  27920. function clearIfContinuousEvent(topLevelType, nativeEvent) {
  27921. switch (topLevelType) {
  27922. case TOP_FOCUS:
  27923. case TOP_BLUR:
  27924. queuedFocus = null;
  27925. break;
  27926. case TOP_DRAG_ENTER:
  27927. case TOP_DRAG_LEAVE:
  27928. queuedDrag = null;
  27929. break;
  27930. case TOP_MOUSE_OVER:
  27931. case TOP_MOUSE_OUT:
  27932. queuedMouse = null;
  27933. break;
  27934. case TOP_POINTER_OVER:
  27935. case TOP_POINTER_OUT:
  27936. {
  27937. var pointerId = nativeEvent.pointerId;
  27938. queuedPointers.delete(pointerId);
  27939. break;
  27940. }
  27941. case TOP_GOT_POINTER_CAPTURE:
  27942. case TOP_LOST_POINTER_CAPTURE:
  27943. {
  27944. var _pointerId = nativeEvent.pointerId;
  27945. queuedPointerCaptures.delete(_pointerId);
  27946. break;
  27947. }
  27948. }
  27949. }
  27950. function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  27951. if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
  27952. var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  27953. if (blockedOn !== null) {
  27954. var _fiber2 = getInstanceFromNode$1(blockedOn);
  27955. if (_fiber2 !== null) {
  27956. // Attempt to increase the priority of this target.
  27957. attemptContinuousHydration(_fiber2);
  27958. }
  27959. }
  27960. return queuedEvent;
  27961. } // If we have already queued this exact event, then it's because
  27962. // the different event systems have different DOM event listeners.
  27963. // We can accumulate the flags and store a single event to be
  27964. // replayed.
  27965. existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
  27966. return existingQueuedEvent;
  27967. }
  27968. function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  27969. // These set relatedTarget to null because the replayed event will be treated as if we
  27970. // moved from outside the window (no target) onto the target once it hydrates.
  27971. // Instead of mutating we could clone the event.
  27972. switch (topLevelType) {
  27973. case TOP_FOCUS:
  27974. {
  27975. var focusEvent = nativeEvent;
  27976. queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent);
  27977. return true;
  27978. }
  27979. case TOP_DRAG_ENTER:
  27980. {
  27981. var dragEvent = nativeEvent;
  27982. queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent);
  27983. return true;
  27984. }
  27985. case TOP_MOUSE_OVER:
  27986. {
  27987. var mouseEvent = nativeEvent;
  27988. queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent);
  27989. return true;
  27990. }
  27991. case TOP_POINTER_OVER:
  27992. {
  27993. var pointerEvent = nativeEvent;
  27994. var pointerId = pointerEvent.pointerId;
  27995. queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent));
  27996. return true;
  27997. }
  27998. case TOP_GOT_POINTER_CAPTURE:
  27999. {
  28000. var _pointerEvent = nativeEvent;
  28001. var _pointerId2 = _pointerEvent.pointerId;
  28002. queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent));
  28003. return true;
  28004. }
  28005. }
  28006. return false;
  28007. } // Check if this target is unblocked. Returns true if it's unblocked.
  28008. function attemptExplicitHydrationTarget(queuedTarget) {
  28009. // TODO: This function shares a lot of logic with attemptToDispatchEvent.
  28010. // Try to unify them. It's a bit tricky since it would require two return
  28011. // values.
  28012. var targetInst = getClosestInstanceFromNode(queuedTarget.target);
  28013. if (targetInst !== null) {
  28014. var nearestMounted = getNearestMountedFiber(targetInst);
  28015. if (nearestMounted !== null) {
  28016. var tag = nearestMounted.tag;
  28017. if (tag === SuspenseComponent) {
  28018. var instance = getSuspenseInstanceFromFiber(nearestMounted);
  28019. if (instance !== null) {
  28020. // We're blocked on hydrating this boundary.
  28021. // Increase its priority.
  28022. queuedTarget.blockedOn = instance;
  28023. Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
  28024. attemptHydrationAtCurrentPriority(nearestMounted);
  28025. });
  28026. return;
  28027. }
  28028. } else if (tag === HostRoot) {
  28029. var root = nearestMounted.stateNode;
  28030. if (root.hydrate) {
  28031. queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
  28032. // a root other than sync.
  28033. return;
  28034. }
  28035. }
  28036. }
  28037. }
  28038. queuedTarget.blockedOn = null;
  28039. }
  28040. function attemptReplayContinuousQueuedEvent(queuedEvent) {
  28041. if (queuedEvent.blockedOn !== null) {
  28042. return false;
  28043. }
  28044. var nextBlockedOn = attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent);
  28045. if (nextBlockedOn !== null) {
  28046. // We're still blocked. Try again later.
  28047. var _fiber3 = getInstanceFromNode$1(nextBlockedOn);
  28048. if (_fiber3 !== null) {
  28049. attemptContinuousHydration(_fiber3);
  28050. }
  28051. queuedEvent.blockedOn = nextBlockedOn;
  28052. return false;
  28053. }
  28054. return true;
  28055. }
  28056. function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
  28057. if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
  28058. map.delete(key);
  28059. }
  28060. }
  28061. function replayUnblockedEvents() {
  28062. hasScheduledReplayAttempt = false; // First replay discrete events.
  28063. while (queuedDiscreteEvents.length > 0) {
  28064. var nextDiscreteEvent = queuedDiscreteEvents[0];
  28065. if (nextDiscreteEvent.blockedOn !== null) {
  28066. // We're still blocked.
  28067. // Increase the priority of this boundary to unblock
  28068. // the next discrete event.
  28069. var _fiber4 = getInstanceFromNode$1(nextDiscreteEvent.blockedOn);
  28070. if (_fiber4 !== null) {
  28071. attemptUserBlockingHydration(_fiber4);
  28072. }
  28073. break;
  28074. }
  28075. var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent);
  28076. if (nextBlockedOn !== null) {
  28077. // We're still blocked. Try again later.
  28078. nextDiscreteEvent.blockedOn = nextBlockedOn;
  28079. } else {
  28080. // We've successfully replayed the first event. Let's try the next one.
  28081. queuedDiscreteEvents.shift();
  28082. }
  28083. } // Next replay any continuous events.
  28084. if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
  28085. queuedFocus = null;
  28086. }
  28087. if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
  28088. queuedDrag = null;
  28089. }
  28090. if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
  28091. queuedMouse = null;
  28092. }
  28093. queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
  28094. queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
  28095. }
  28096. function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
  28097. if (queuedEvent.blockedOn === unblocked) {
  28098. queuedEvent.blockedOn = null;
  28099. if (!hasScheduledReplayAttempt) {
  28100. hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
  28101. // now unblocked. This first might not actually be unblocked yet.
  28102. // We could check it early to avoid scheduling an unnecessary callback.
  28103. Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
  28104. }
  28105. }
  28106. }
  28107. function retryIfBlockedOn(unblocked) {
  28108. // Mark anything that was blocked on this as no longer blocked
  28109. // and eligible for a replay.
  28110. if (queuedDiscreteEvents.length > 0) {
  28111. scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
  28112. // worth it because we expect very few discrete events to queue up and once
  28113. // we are actually fully unblocked it will be fast to replay them.
  28114. for (var i = 1; i < queuedDiscreteEvents.length; i++) {
  28115. var queuedEvent = queuedDiscreteEvents[i];
  28116. if (queuedEvent.blockedOn === unblocked) {
  28117. queuedEvent.blockedOn = null;
  28118. }
  28119. }
  28120. }
  28121. if (queuedFocus !== null) {
  28122. scheduleCallbackIfUnblocked(queuedFocus, unblocked);
  28123. }
  28124. if (queuedDrag !== null) {
  28125. scheduleCallbackIfUnblocked(queuedDrag, unblocked);
  28126. }
  28127. if (queuedMouse !== null) {
  28128. scheduleCallbackIfUnblocked(queuedMouse, unblocked);
  28129. }
  28130. var unblock = function (queuedEvent) {
  28131. return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
  28132. };
  28133. queuedPointers.forEach(unblock);
  28134. queuedPointerCaptures.forEach(unblock);
  28135. for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
  28136. var queuedTarget = queuedExplicitHydrationTargets[_i];
  28137. if (queuedTarget.blockedOn === unblocked) {
  28138. queuedTarget.blockedOn = null;
  28139. }
  28140. }
  28141. while (queuedExplicitHydrationTargets.length > 0) {
  28142. var nextExplicitTarget = queuedExplicitHydrationTargets[0];
  28143. if (nextExplicitTarget.blockedOn !== null) {
  28144. // We're still blocked.
  28145. break;
  28146. } else {
  28147. attemptExplicitHydrationTarget(nextExplicitTarget);
  28148. if (nextExplicitTarget.blockedOn === null) {
  28149. // We're unblocked.
  28150. queuedExplicitHydrationTargets.shift();
  28151. }
  28152. }
  28153. }
  28154. }
  28155. function addEventBubbleListener(element, eventType, listener) {
  28156. element.addEventListener(eventType, listener, false);
  28157. }
  28158. function addEventCaptureListener(element, eventType, listener) {
  28159. element.addEventListener(eventType, listener, true);
  28160. }
  28161. // do it in two places, which duplicates logic
  28162. // and increases the bundle size, we do it all
  28163. // here once. If we remove or refactor the
  28164. // SimpleEventPlugin, we should also remove or
  28165. // update the below line.
  28166. var simpleEventPluginEventTypes = {};
  28167. var topLevelEventsToDispatchConfig = new Map();
  28168. var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
  28169. // the code required to apply the same logic for event prioritization and that of the
  28170. // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
  28171. // duplication (for which there would be quite a bit). For the events that are not needed
  28172. // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
  28173. // array of top level events.
  28174. // Lastly, we ignore prettier so we can keep the formatting sane.
  28175. // prettier-ignore
  28176. var discreteEventPairsForSimpleEventPlugin = [TOP_BLUR, 'blur', TOP_CANCEL, 'cancel', TOP_CLICK, 'click', TOP_CLOSE, 'close', TOP_CONTEXT_MENU, 'contextMenu', TOP_COPY, 'copy', TOP_CUT, 'cut', TOP_AUX_CLICK, 'auxClick', TOP_DOUBLE_CLICK, 'doubleClick', TOP_DRAG_END, 'dragEnd', TOP_DRAG_START, 'dragStart', TOP_DROP, 'drop', TOP_FOCUS, 'focus', TOP_INPUT, 'input', TOP_INVALID, 'invalid', TOP_KEY_DOWN, 'keyDown', TOP_KEY_PRESS, 'keyPress', TOP_KEY_UP, 'keyUp', TOP_MOUSE_DOWN, 'mouseDown', TOP_MOUSE_UP, 'mouseUp', TOP_PASTE, 'paste', TOP_PAUSE, 'pause', TOP_PLAY, 'play', TOP_POINTER_CANCEL, 'pointerCancel', TOP_POINTER_DOWN, 'pointerDown', TOP_POINTER_UP, 'pointerUp', TOP_RATE_CHANGE, 'rateChange', TOP_RESET, 'reset', TOP_SEEKED, 'seeked', TOP_SUBMIT, 'submit', TOP_TOUCH_CANCEL, 'touchCancel', TOP_TOUCH_END, 'touchEnd', TOP_TOUCH_START, 'touchStart', TOP_VOLUME_CHANGE, 'volumeChange'];
  28177. var otherDiscreteEvents = [TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore
  28178. var userBlockingPairsForSimpleEventPlugin = [TOP_DRAG, 'drag', TOP_DRAG_ENTER, 'dragEnter', TOP_DRAG_EXIT, 'dragExit', TOP_DRAG_LEAVE, 'dragLeave', TOP_DRAG_OVER, 'dragOver', TOP_MOUSE_MOVE, 'mouseMove', TOP_MOUSE_OUT, 'mouseOut', TOP_MOUSE_OVER, 'mouseOver', TOP_POINTER_MOVE, 'pointerMove', TOP_POINTER_OUT, 'pointerOut', TOP_POINTER_OVER, 'pointerOver', TOP_SCROLL, 'scroll', TOP_TOGGLE, 'toggle', TOP_TOUCH_MOVE, 'touchMove', TOP_WHEEL, 'wheel']; // prettier-ignore
  28179. var continuousPairsForSimpleEventPlugin = [TOP_ABORT, 'abort', TOP_ANIMATION_END, 'animationEnd', TOP_ANIMATION_ITERATION, 'animationIteration', TOP_ANIMATION_START, 'animationStart', TOP_CAN_PLAY, 'canPlay', TOP_CAN_PLAY_THROUGH, 'canPlayThrough', TOP_DURATION_CHANGE, 'durationChange', TOP_EMPTIED, 'emptied', TOP_ENCRYPTED, 'encrypted', TOP_ENDED, 'ended', TOP_ERROR, 'error', TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', TOP_LOAD, 'load', TOP_LOADED_DATA, 'loadedData', TOP_LOADED_METADATA, 'loadedMetadata', TOP_LOAD_START, 'loadStart', TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', TOP_PLAYING, 'playing', TOP_PROGRESS, 'progress', TOP_SEEKING, 'seeking', TOP_STALLED, 'stalled', TOP_SUSPEND, 'suspend', TOP_TIME_UPDATE, 'timeUpdate', TOP_TRANSITION_END, 'transitionEnd', TOP_WAITING, 'waiting'];
  28180. /**
  28181. * Turns
  28182. * ['abort', ...]
  28183. * into
  28184. * eventTypes = {
  28185. * 'abort': {
  28186. * phasedRegistrationNames: {
  28187. * bubbled: 'onAbort',
  28188. * captured: 'onAbortCapture',
  28189. * },
  28190. * dependencies: [TOP_ABORT],
  28191. * },
  28192. * ...
  28193. * };
  28194. * topLevelEventsToDispatchConfig = new Map([
  28195. * [TOP_ABORT, { sameConfig }],
  28196. * ]);
  28197. */
  28198. function processSimpleEventPluginPairsByPriority(eventTypes, priority) {
  28199. // As the event types are in pairs of two, we need to iterate
  28200. // through in twos. The events are in pairs of two to save code
  28201. // and improve init perf of processing this array, as it will
  28202. // result in far fewer object allocations and property accesses
  28203. // if we only use three arrays to process all the categories of
  28204. // instead of tuples.
  28205. for (var i = 0; i < eventTypes.length; i += 2) {
  28206. var topEvent = eventTypes[i];
  28207. var event = eventTypes[i + 1];
  28208. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  28209. var onEvent = 'on' + capitalizedEvent;
  28210. var config = {
  28211. phasedRegistrationNames: {
  28212. bubbled: onEvent,
  28213. captured: onEvent + 'Capture'
  28214. },
  28215. dependencies: [topEvent],
  28216. eventPriority: priority
  28217. };
  28218. eventPriorities.set(topEvent, priority);
  28219. topLevelEventsToDispatchConfig.set(topEvent, config);
  28220. simpleEventPluginEventTypes[event] = config;
  28221. }
  28222. }
  28223. function processTopEventPairsByPriority(eventTypes, priority) {
  28224. for (var i = 0; i < eventTypes.length; i++) {
  28225. eventPriorities.set(eventTypes[i], priority);
  28226. }
  28227. } // SimpleEventPlugin
  28228. processSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
  28229. processSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
  28230. processSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin
  28231. processTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent);
  28232. function getEventPriorityForPluginSystem(topLevelType) {
  28233. var priority = eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might
  28234. // want to warn if we can't detect the priority
  28235. // for the event.
  28236. return priority === undefined ? ContinuousEvent : priority;
  28237. }
  28238. // Intentionally not named imports because Rollup would use dynamic dispatch for
  28239. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
  28240. runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?
  28241. var _enabled = true;
  28242. function setEnabled(enabled) {
  28243. _enabled = !!enabled;
  28244. }
  28245. function isEnabled() {
  28246. return _enabled;
  28247. }
  28248. function trapBubbledEvent(topLevelType, element) {
  28249. trapEventForPluginEventSystem(element, topLevelType, false);
  28250. }
  28251. function trapCapturedEvent(topLevelType, element) {
  28252. trapEventForPluginEventSystem(element, topLevelType, true);
  28253. }
  28254. function trapEventForPluginEventSystem(container, topLevelType, capture) {
  28255. var listener;
  28256. switch (getEventPriorityForPluginSystem(topLevelType)) {
  28257. case DiscreteEvent:
  28258. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  28259. break;
  28260. case UserBlockingEvent:
  28261. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  28262. break;
  28263. case ContinuousEvent:
  28264. default:
  28265. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  28266. break;
  28267. }
  28268. var rawEventName = getRawEventName(topLevelType);
  28269. if (capture) {
  28270. addEventCaptureListener(container, rawEventName, listener);
  28271. } else {
  28272. addEventBubbleListener(container, rawEventName, listener);
  28273. }
  28274. }
  28275. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  28276. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  28277. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent);
  28278. }
  28279. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent) {
  28280. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent));
  28281. }
  28282. function dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  28283. if (!_enabled) {
  28284. return;
  28285. }
  28286. if (hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(topLevelType)) {
  28287. // If we already have a queue of discrete events, and this is another discrete
  28288. // event, then we can't dispatch it regardless of its target, since they
  28289. // need to dispatch in order.
  28290. queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
  28291. topLevelType, eventSystemFlags, container, nativeEvent);
  28292. return;
  28293. }
  28294. var blockedOn = attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent);
  28295. if (blockedOn === null) {
  28296. // We successfully dispatched this event.
  28297. clearIfContinuousEvent(topLevelType, nativeEvent);
  28298. return;
  28299. }
  28300. if (isReplayableDiscreteEvent(topLevelType)) {
  28301. // This this to be replayed later once the target is available.
  28302. queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  28303. return;
  28304. }
  28305. if (queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)) {
  28306. return;
  28307. } // We need to clear only if we didn't queue because
  28308. // queueing is accummulative.
  28309. clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target,
  28310. // in case the event system needs to trace it.
  28311. {
  28312. dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null);
  28313. }
  28314. } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.
  28315. function attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  28316. // TODO: Warn if _enabled is false.
  28317. var nativeEventTarget = getEventTarget(nativeEvent);
  28318. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  28319. if (targetInst !== null) {
  28320. var nearestMounted = getNearestMountedFiber(targetInst);
  28321. if (nearestMounted === null) {
  28322. // This tree has been unmounted already. Dispatch without a target.
  28323. targetInst = null;
  28324. } else {
  28325. var tag = nearestMounted.tag;
  28326. if (tag === SuspenseComponent) {
  28327. var instance = getSuspenseInstanceFromFiber(nearestMounted);
  28328. if (instance !== null) {
  28329. // Queue the event to be replayed later. Abort dispatching since we
  28330. // don't want this event dispatched twice through the event system.
  28331. // TODO: If this is the first discrete event in the queue. Schedule an increased
  28332. // priority for this boundary.
  28333. return instance;
  28334. } // This shouldn't happen, something went wrong but to avoid blocking
  28335. // the whole system, dispatch the event without a target.
  28336. // TODO: Warn.
  28337. targetInst = null;
  28338. } else if (tag === HostRoot) {
  28339. var root = nearestMounted.stateNode;
  28340. if (root.hydrate) {
  28341. // If this happens during a replay something went wrong and it might block
  28342. // the whole system.
  28343. return getContainerFromFiber(nearestMounted);
  28344. }
  28345. targetInst = null;
  28346. } else if (nearestMounted !== targetInst) {
  28347. // If we get an event (ex: img onload) before committing that
  28348. // component's mount, ignore it for now (that is, treat it as if it was an
  28349. // event on a non-React tree). We might also consider queueing events and
  28350. // dispatching them after the mount.
  28351. targetInst = null;
  28352. }
  28353. }
  28354. }
  28355. {
  28356. dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  28357. } // We're not blocked on anything.
  28358. return null;
  28359. }
  28360. // List derived from Gecko source code:
  28361. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  28362. var shorthandToLonghand = {
  28363. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  28364. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  28365. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  28366. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  28367. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  28368. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  28369. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  28370. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  28371. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  28372. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  28373. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  28374. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  28375. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  28376. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  28377. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  28378. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  28379. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  28380. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  28381. columns: ['columnCount', 'columnWidth'],
  28382. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  28383. flexFlow: ['flexDirection', 'flexWrap'],
  28384. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  28385. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  28386. gap: ['columnGap', 'rowGap'],
  28387. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  28388. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  28389. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  28390. gridColumnGap: ['columnGap'],
  28391. gridGap: ['columnGap', 'rowGap'],
  28392. gridRow: ['gridRowEnd', 'gridRowStart'],
  28393. gridRowGap: ['rowGap'],
  28394. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  28395. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  28396. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  28397. marker: ['markerEnd', 'markerMid', 'markerStart'],
  28398. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  28399. maskPosition: ['maskPositionX', 'maskPositionY'],
  28400. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  28401. overflow: ['overflowX', 'overflowY'],
  28402. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  28403. placeContent: ['alignContent', 'justifyContent'],
  28404. placeItems: ['alignItems', 'justifyItems'],
  28405. placeSelf: ['alignSelf', 'justifySelf'],
  28406. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  28407. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  28408. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  28409. wordWrap: ['overflowWrap']
  28410. };
  28411. /**
  28412. * CSS properties which accept numbers but are not in units of "px".
  28413. */
  28414. var isUnitlessNumber = {
  28415. animationIterationCount: true,
  28416. borderImageOutset: true,
  28417. borderImageSlice: true,
  28418. borderImageWidth: true,
  28419. boxFlex: true,
  28420. boxFlexGroup: true,
  28421. boxOrdinalGroup: true,
  28422. columnCount: true,
  28423. columns: true,
  28424. flex: true,
  28425. flexGrow: true,
  28426. flexPositive: true,
  28427. flexShrink: true,
  28428. flexNegative: true,
  28429. flexOrder: true,
  28430. gridArea: true,
  28431. gridRow: true,
  28432. gridRowEnd: true,
  28433. gridRowSpan: true,
  28434. gridRowStart: true,
  28435. gridColumn: true,
  28436. gridColumnEnd: true,
  28437. gridColumnSpan: true,
  28438. gridColumnStart: true,
  28439. fontWeight: true,
  28440. lineClamp: true,
  28441. lineHeight: true,
  28442. opacity: true,
  28443. order: true,
  28444. orphans: true,
  28445. tabSize: true,
  28446. widows: true,
  28447. zIndex: true,
  28448. zoom: true,
  28449. // SVG-related properties
  28450. fillOpacity: true,
  28451. floodOpacity: true,
  28452. stopOpacity: true,
  28453. strokeDasharray: true,
  28454. strokeDashoffset: true,
  28455. strokeMiterlimit: true,
  28456. strokeOpacity: true,
  28457. strokeWidth: true
  28458. };
  28459. /**
  28460. * @param {string} prefix vendor-specific prefix, eg: Webkit
  28461. * @param {string} key style name, eg: transitionDuration
  28462. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  28463. * WebkitTransitionDuration
  28464. */
  28465. function prefixKey(prefix, key) {
  28466. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  28467. }
  28468. /**
  28469. * Support style names that may come passed in prefixed by adding permutations
  28470. * of vendor prefixes.
  28471. */
  28472. var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  28473. // infinite loop, because it iterates over the newly added props too.
  28474. Object.keys(isUnitlessNumber).forEach(function (prop) {
  28475. prefixes.forEach(function (prefix) {
  28476. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  28477. });
  28478. });
  28479. /**
  28480. * Convert a value into the proper css writable value. The style name `name`
  28481. * should be logical (no hyphens), as specified
  28482. * in `CSSProperty.isUnitlessNumber`.
  28483. *
  28484. * @param {string} name CSS property name such as `topMargin`.
  28485. * @param {*} value CSS property value such as `10px`.
  28486. * @return {string} Normalized style value with dimensions applied.
  28487. */
  28488. function dangerousStyleValue(name, value, isCustomProperty) {
  28489. // Note that we've removed escapeTextForBrowser() calls here since the
  28490. // whole string will be escaped when the attribute is injected into
  28491. // the markup. If you provide unsafe user data here they can inject
  28492. // arbitrary CSS which may be problematic (I couldn't repro this):
  28493. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  28494. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  28495. // This is not an XSS hole but instead a potential CSS injection issue
  28496. // which has lead to a greater discussion about how we're going to
  28497. // trust URLs moving forward. See #2115901
  28498. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  28499. if (isEmpty) {
  28500. return '';
  28501. }
  28502. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  28503. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  28504. }
  28505. return ('' + value).trim();
  28506. }
  28507. var uppercasePattern = /([A-Z])/g;
  28508. var msPattern = /^ms-/;
  28509. /**
  28510. * Hyphenates a camelcased CSS property name, for example:
  28511. *
  28512. * > hyphenateStyleName('backgroundColor')
  28513. * < "background-color"
  28514. * > hyphenateStyleName('MozTransition')
  28515. * < "-moz-transition"
  28516. * > hyphenateStyleName('msTransition')
  28517. * < "-ms-transition"
  28518. *
  28519. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  28520. * is converted to `-ms-`.
  28521. */
  28522. function hyphenateStyleName(name) {
  28523. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  28524. }
  28525. var warnValidStyle = function () {};
  28526. {
  28527. // 'msTransform' is correct, but the other prefixes should be capitalized
  28528. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  28529. var msPattern$1 = /^-ms-/;
  28530. var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon
  28531. var badStyleValueWithSemicolonPattern = /;\s*$/;
  28532. var warnedStyleNames = {};
  28533. var warnedStyleValues = {};
  28534. var warnedForNaNValue = false;
  28535. var warnedForInfinityValue = false;
  28536. var camelize = function (string) {
  28537. return string.replace(hyphenPattern, function (_, character) {
  28538. return character.toUpperCase();
  28539. });
  28540. };
  28541. var warnHyphenatedStyleName = function (name) {
  28542. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  28543. return;
  28544. }
  28545. warnedStyleNames[name] = true;
  28546. error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
  28547. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  28548. // is converted to lowercase `ms`.
  28549. camelize(name.replace(msPattern$1, 'ms-')));
  28550. };
  28551. var warnBadVendoredStyleName = function (name) {
  28552. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  28553. return;
  28554. }
  28555. warnedStyleNames[name] = true;
  28556. error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  28557. };
  28558. var warnStyleValueWithSemicolon = function (name, value) {
  28559. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  28560. return;
  28561. }
  28562. warnedStyleValues[value] = true;
  28563. error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  28564. };
  28565. var warnStyleValueIsNaN = function (name, value) {
  28566. if (warnedForNaNValue) {
  28567. return;
  28568. }
  28569. warnedForNaNValue = true;
  28570. error('`NaN` is an invalid value for the `%s` css style property.', name);
  28571. };
  28572. var warnStyleValueIsInfinity = function (name, value) {
  28573. if (warnedForInfinityValue) {
  28574. return;
  28575. }
  28576. warnedForInfinityValue = true;
  28577. error('`Infinity` is an invalid value for the `%s` css style property.', name);
  28578. };
  28579. warnValidStyle = function (name, value) {
  28580. if (name.indexOf('-') > -1) {
  28581. warnHyphenatedStyleName(name);
  28582. } else if (badVendoredStyleNamePattern.test(name)) {
  28583. warnBadVendoredStyleName(name);
  28584. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  28585. warnStyleValueWithSemicolon(name, value);
  28586. }
  28587. if (typeof value === 'number') {
  28588. if (isNaN(value)) {
  28589. warnStyleValueIsNaN(name, value);
  28590. } else if (!isFinite(value)) {
  28591. warnStyleValueIsInfinity(name, value);
  28592. }
  28593. }
  28594. };
  28595. }
  28596. var warnValidStyle$1 = warnValidStyle;
  28597. /**
  28598. * Operations for dealing with CSS properties.
  28599. */
  28600. /**
  28601. * This creates a string that is expected to be equivalent to the style
  28602. * attribute generated by server-side rendering. It by-passes warnings and
  28603. * security checks so it's not safe to use this value for anything other than
  28604. * comparison. It is only used in DEV for SSR validation.
  28605. */
  28606. function createDangerousStringForStyles(styles) {
  28607. {
  28608. var serialized = '';
  28609. var delimiter = '';
  28610. for (var styleName in styles) {
  28611. if (!styles.hasOwnProperty(styleName)) {
  28612. continue;
  28613. }
  28614. var styleValue = styles[styleName];
  28615. if (styleValue != null) {
  28616. var isCustomProperty = styleName.indexOf('--') === 0;
  28617. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  28618. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  28619. delimiter = ';';
  28620. }
  28621. }
  28622. return serialized || null;
  28623. }
  28624. }
  28625. /**
  28626. * Sets the value for multiple styles on a node. If a value is specified as
  28627. * '' (empty string), the corresponding style property will be unset.
  28628. *
  28629. * @param {DOMElement} node
  28630. * @param {object} styles
  28631. */
  28632. function setValueForStyles(node, styles) {
  28633. var style = node.style;
  28634. for (var styleName in styles) {
  28635. if (!styles.hasOwnProperty(styleName)) {
  28636. continue;
  28637. }
  28638. var isCustomProperty = styleName.indexOf('--') === 0;
  28639. {
  28640. if (!isCustomProperty) {
  28641. warnValidStyle$1(styleName, styles[styleName]);
  28642. }
  28643. }
  28644. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  28645. if (styleName === 'float') {
  28646. styleName = 'cssFloat';
  28647. }
  28648. if (isCustomProperty) {
  28649. style.setProperty(styleName, styleValue);
  28650. } else {
  28651. style[styleName] = styleValue;
  28652. }
  28653. }
  28654. }
  28655. function isValueEmpty(value) {
  28656. return value == null || typeof value === 'boolean' || value === '';
  28657. }
  28658. /**
  28659. * Given {color: 'red', overflow: 'hidden'} returns {
  28660. * color: 'color',
  28661. * overflowX: 'overflow',
  28662. * overflowY: 'overflow',
  28663. * }. This can be read as "the overflowY property was set by the overflow
  28664. * shorthand". That is, the values are the property that each was derived from.
  28665. */
  28666. function expandShorthandMap(styles) {
  28667. var expanded = {};
  28668. for (var key in styles) {
  28669. var longhands = shorthandToLonghand[key] || [key];
  28670. for (var i = 0; i < longhands.length; i++) {
  28671. expanded[longhands[i]] = key;
  28672. }
  28673. }
  28674. return expanded;
  28675. }
  28676. /**
  28677. * When mixing shorthand and longhand property names, we warn during updates if
  28678. * we expect an incorrect result to occur. In particular, we warn for:
  28679. *
  28680. * Updating a shorthand property (longhand gets overwritten):
  28681. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  28682. * becomes .style.font = 'baz'
  28683. * Removing a shorthand property (longhand gets lost too):
  28684. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  28685. * becomes .style.font = ''
  28686. * Removing a longhand property (should revert to shorthand; doesn't):
  28687. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  28688. * becomes .style.fontVariant = ''
  28689. */
  28690. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  28691. {
  28692. if (!nextStyles) {
  28693. return;
  28694. }
  28695. var expandedUpdates = expandShorthandMap(styleUpdates);
  28696. var expandedStyles = expandShorthandMap(nextStyles);
  28697. var warnedAbout = {};
  28698. for (var key in expandedUpdates) {
  28699. var originalKey = expandedUpdates[key];
  28700. var correctOriginalKey = expandedStyles[key];
  28701. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  28702. var warningKey = originalKey + ',' + correctOriginalKey;
  28703. if (warnedAbout[warningKey]) {
  28704. continue;
  28705. }
  28706. warnedAbout[warningKey] = true;
  28707. error('%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);
  28708. }
  28709. }
  28710. }
  28711. }
  28712. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  28713. // those special-case tags.
  28714. var omittedCloseTags = {
  28715. area: true,
  28716. base: true,
  28717. br: true,
  28718. col: true,
  28719. embed: true,
  28720. hr: true,
  28721. img: true,
  28722. input: true,
  28723. keygen: true,
  28724. link: true,
  28725. meta: true,
  28726. param: true,
  28727. source: true,
  28728. track: true,
  28729. wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.
  28730. };
  28731. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  28732. var voidElementTags = _assign({
  28733. menuitem: true
  28734. }, omittedCloseTags);
  28735. var HTML = '__html';
  28736. var ReactDebugCurrentFrame$3 = null;
  28737. {
  28738. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  28739. }
  28740. function assertValidProps(tag, props) {
  28741. if (!props) {
  28742. return;
  28743. } // Note the use of `==` which checks for null or undefined.
  28744. if (voidElementTags[tag]) {
  28745. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  28746. {
  28747. throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
  28748. }
  28749. }
  28750. }
  28751. if (props.dangerouslySetInnerHTML != null) {
  28752. if (!(props.children == null)) {
  28753. {
  28754. throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
  28755. }
  28756. }
  28757. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
  28758. {
  28759. throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information." );
  28760. }
  28761. }
  28762. }
  28763. {
  28764. if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
  28765. error('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.');
  28766. }
  28767. }
  28768. if (!(props.style == null || typeof props.style === 'object')) {
  28769. {
  28770. throw 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() ) );
  28771. }
  28772. }
  28773. }
  28774. function isCustomComponent(tagName, props) {
  28775. if (tagName.indexOf('-') === -1) {
  28776. return typeof props.is === 'string';
  28777. }
  28778. switch (tagName) {
  28779. // These are reserved SVG and MathML elements.
  28780. // We don't mind this whitelist too much because we expect it to never grow.
  28781. // The alternative is to track the namespace in a few places which is convoluted.
  28782. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  28783. case 'annotation-xml':
  28784. case 'color-profile':
  28785. case 'font-face':
  28786. case 'font-face-src':
  28787. case 'font-face-uri':
  28788. case 'font-face-format':
  28789. case 'font-face-name':
  28790. case 'missing-glyph':
  28791. return false;
  28792. default:
  28793. return true;
  28794. }
  28795. }
  28796. // When adding attributes to the HTML or SVG whitelist, be sure to
  28797. // also add them to this module to ensure casing and incorrect name
  28798. // warnings.
  28799. var possibleStandardNames = {
  28800. // HTML
  28801. accept: 'accept',
  28802. acceptcharset: 'acceptCharset',
  28803. 'accept-charset': 'acceptCharset',
  28804. accesskey: 'accessKey',
  28805. action: 'action',
  28806. allowfullscreen: 'allowFullScreen',
  28807. alt: 'alt',
  28808. as: 'as',
  28809. async: 'async',
  28810. autocapitalize: 'autoCapitalize',
  28811. autocomplete: 'autoComplete',
  28812. autocorrect: 'autoCorrect',
  28813. autofocus: 'autoFocus',
  28814. autoplay: 'autoPlay',
  28815. autosave: 'autoSave',
  28816. capture: 'capture',
  28817. cellpadding: 'cellPadding',
  28818. cellspacing: 'cellSpacing',
  28819. challenge: 'challenge',
  28820. charset: 'charSet',
  28821. checked: 'checked',
  28822. children: 'children',
  28823. cite: 'cite',
  28824. class: 'className',
  28825. classid: 'classID',
  28826. classname: 'className',
  28827. cols: 'cols',
  28828. colspan: 'colSpan',
  28829. content: 'content',
  28830. contenteditable: 'contentEditable',
  28831. contextmenu: 'contextMenu',
  28832. controls: 'controls',
  28833. controlslist: 'controlsList',
  28834. coords: 'coords',
  28835. crossorigin: 'crossOrigin',
  28836. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  28837. data: 'data',
  28838. datetime: 'dateTime',
  28839. default: 'default',
  28840. defaultchecked: 'defaultChecked',
  28841. defaultvalue: 'defaultValue',
  28842. defer: 'defer',
  28843. dir: 'dir',
  28844. disabled: 'disabled',
  28845. disablepictureinpicture: 'disablePictureInPicture',
  28846. download: 'download',
  28847. draggable: 'draggable',
  28848. enctype: 'encType',
  28849. for: 'htmlFor',
  28850. form: 'form',
  28851. formmethod: 'formMethod',
  28852. formaction: 'formAction',
  28853. formenctype: 'formEncType',
  28854. formnovalidate: 'formNoValidate',
  28855. formtarget: 'formTarget',
  28856. frameborder: 'frameBorder',
  28857. headers: 'headers',
  28858. height: 'height',
  28859. hidden: 'hidden',
  28860. high: 'high',
  28861. href: 'href',
  28862. hreflang: 'hrefLang',
  28863. htmlfor: 'htmlFor',
  28864. httpequiv: 'httpEquiv',
  28865. 'http-equiv': 'httpEquiv',
  28866. icon: 'icon',
  28867. id: 'id',
  28868. innerhtml: 'innerHTML',
  28869. inputmode: 'inputMode',
  28870. integrity: 'integrity',
  28871. is: 'is',
  28872. itemid: 'itemID',
  28873. itemprop: 'itemProp',
  28874. itemref: 'itemRef',
  28875. itemscope: 'itemScope',
  28876. itemtype: 'itemType',
  28877. keyparams: 'keyParams',
  28878. keytype: 'keyType',
  28879. kind: 'kind',
  28880. label: 'label',
  28881. lang: 'lang',
  28882. list: 'list',
  28883. loop: 'loop',
  28884. low: 'low',
  28885. manifest: 'manifest',
  28886. marginwidth: 'marginWidth',
  28887. marginheight: 'marginHeight',
  28888. max: 'max',
  28889. maxlength: 'maxLength',
  28890. media: 'media',
  28891. mediagroup: 'mediaGroup',
  28892. method: 'method',
  28893. min: 'min',
  28894. minlength: 'minLength',
  28895. multiple: 'multiple',
  28896. muted: 'muted',
  28897. name: 'name',
  28898. nomodule: 'noModule',
  28899. nonce: 'nonce',
  28900. novalidate: 'noValidate',
  28901. open: 'open',
  28902. optimum: 'optimum',
  28903. pattern: 'pattern',
  28904. placeholder: 'placeholder',
  28905. playsinline: 'playsInline',
  28906. poster: 'poster',
  28907. preload: 'preload',
  28908. profile: 'profile',
  28909. radiogroup: 'radioGroup',
  28910. readonly: 'readOnly',
  28911. referrerpolicy: 'referrerPolicy',
  28912. rel: 'rel',
  28913. required: 'required',
  28914. reversed: 'reversed',
  28915. role: 'role',
  28916. rows: 'rows',
  28917. rowspan: 'rowSpan',
  28918. sandbox: 'sandbox',
  28919. scope: 'scope',
  28920. scoped: 'scoped',
  28921. scrolling: 'scrolling',
  28922. seamless: 'seamless',
  28923. selected: 'selected',
  28924. shape: 'shape',
  28925. size: 'size',
  28926. sizes: 'sizes',
  28927. span: 'span',
  28928. spellcheck: 'spellCheck',
  28929. src: 'src',
  28930. srcdoc: 'srcDoc',
  28931. srclang: 'srcLang',
  28932. srcset: 'srcSet',
  28933. start: 'start',
  28934. step: 'step',
  28935. style: 'style',
  28936. summary: 'summary',
  28937. tabindex: 'tabIndex',
  28938. target: 'target',
  28939. title: 'title',
  28940. type: 'type',
  28941. usemap: 'useMap',
  28942. value: 'value',
  28943. width: 'width',
  28944. wmode: 'wmode',
  28945. wrap: 'wrap',
  28946. // SVG
  28947. about: 'about',
  28948. accentheight: 'accentHeight',
  28949. 'accent-height': 'accentHeight',
  28950. accumulate: 'accumulate',
  28951. additive: 'additive',
  28952. alignmentbaseline: 'alignmentBaseline',
  28953. 'alignment-baseline': 'alignmentBaseline',
  28954. allowreorder: 'allowReorder',
  28955. alphabetic: 'alphabetic',
  28956. amplitude: 'amplitude',
  28957. arabicform: 'arabicForm',
  28958. 'arabic-form': 'arabicForm',
  28959. ascent: 'ascent',
  28960. attributename: 'attributeName',
  28961. attributetype: 'attributeType',
  28962. autoreverse: 'autoReverse',
  28963. azimuth: 'azimuth',
  28964. basefrequency: 'baseFrequency',
  28965. baselineshift: 'baselineShift',
  28966. 'baseline-shift': 'baselineShift',
  28967. baseprofile: 'baseProfile',
  28968. bbox: 'bbox',
  28969. begin: 'begin',
  28970. bias: 'bias',
  28971. by: 'by',
  28972. calcmode: 'calcMode',
  28973. capheight: 'capHeight',
  28974. 'cap-height': 'capHeight',
  28975. clip: 'clip',
  28976. clippath: 'clipPath',
  28977. 'clip-path': 'clipPath',
  28978. clippathunits: 'clipPathUnits',
  28979. cliprule: 'clipRule',
  28980. 'clip-rule': 'clipRule',
  28981. color: 'color',
  28982. colorinterpolation: 'colorInterpolation',
  28983. 'color-interpolation': 'colorInterpolation',
  28984. colorinterpolationfilters: 'colorInterpolationFilters',
  28985. 'color-interpolation-filters': 'colorInterpolationFilters',
  28986. colorprofile: 'colorProfile',
  28987. 'color-profile': 'colorProfile',
  28988. colorrendering: 'colorRendering',
  28989. 'color-rendering': 'colorRendering',
  28990. contentscripttype: 'contentScriptType',
  28991. contentstyletype: 'contentStyleType',
  28992. cursor: 'cursor',
  28993. cx: 'cx',
  28994. cy: 'cy',
  28995. d: 'd',
  28996. datatype: 'datatype',
  28997. decelerate: 'decelerate',
  28998. descent: 'descent',
  28999. diffuseconstant: 'diffuseConstant',
  29000. direction: 'direction',
  29001. display: 'display',
  29002. divisor: 'divisor',
  29003. dominantbaseline: 'dominantBaseline',
  29004. 'dominant-baseline': 'dominantBaseline',
  29005. dur: 'dur',
  29006. dx: 'dx',
  29007. dy: 'dy',
  29008. edgemode: 'edgeMode',
  29009. elevation: 'elevation',
  29010. enablebackground: 'enableBackground',
  29011. 'enable-background': 'enableBackground',
  29012. end: 'end',
  29013. exponent: 'exponent',
  29014. externalresourcesrequired: 'externalResourcesRequired',
  29015. fill: 'fill',
  29016. fillopacity: 'fillOpacity',
  29017. 'fill-opacity': 'fillOpacity',
  29018. fillrule: 'fillRule',
  29019. 'fill-rule': 'fillRule',
  29020. filter: 'filter',
  29021. filterres: 'filterRes',
  29022. filterunits: 'filterUnits',
  29023. floodopacity: 'floodOpacity',
  29024. 'flood-opacity': 'floodOpacity',
  29025. floodcolor: 'floodColor',
  29026. 'flood-color': 'floodColor',
  29027. focusable: 'focusable',
  29028. fontfamily: 'fontFamily',
  29029. 'font-family': 'fontFamily',
  29030. fontsize: 'fontSize',
  29031. 'font-size': 'fontSize',
  29032. fontsizeadjust: 'fontSizeAdjust',
  29033. 'font-size-adjust': 'fontSizeAdjust',
  29034. fontstretch: 'fontStretch',
  29035. 'font-stretch': 'fontStretch',
  29036. fontstyle: 'fontStyle',
  29037. 'font-style': 'fontStyle',
  29038. fontvariant: 'fontVariant',
  29039. 'font-variant': 'fontVariant',
  29040. fontweight: 'fontWeight',
  29041. 'font-weight': 'fontWeight',
  29042. format: 'format',
  29043. from: 'from',
  29044. fx: 'fx',
  29045. fy: 'fy',
  29046. g1: 'g1',
  29047. g2: 'g2',
  29048. glyphname: 'glyphName',
  29049. 'glyph-name': 'glyphName',
  29050. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  29051. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  29052. glyphorientationvertical: 'glyphOrientationVertical',
  29053. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  29054. glyphref: 'glyphRef',
  29055. gradienttransform: 'gradientTransform',
  29056. gradientunits: 'gradientUnits',
  29057. hanging: 'hanging',
  29058. horizadvx: 'horizAdvX',
  29059. 'horiz-adv-x': 'horizAdvX',
  29060. horizoriginx: 'horizOriginX',
  29061. 'horiz-origin-x': 'horizOriginX',
  29062. ideographic: 'ideographic',
  29063. imagerendering: 'imageRendering',
  29064. 'image-rendering': 'imageRendering',
  29065. in2: 'in2',
  29066. in: 'in',
  29067. inlist: 'inlist',
  29068. intercept: 'intercept',
  29069. k1: 'k1',
  29070. k2: 'k2',
  29071. k3: 'k3',
  29072. k4: 'k4',
  29073. k: 'k',
  29074. kernelmatrix: 'kernelMatrix',
  29075. kernelunitlength: 'kernelUnitLength',
  29076. kerning: 'kerning',
  29077. keypoints: 'keyPoints',
  29078. keysplines: 'keySplines',
  29079. keytimes: 'keyTimes',
  29080. lengthadjust: 'lengthAdjust',
  29081. letterspacing: 'letterSpacing',
  29082. 'letter-spacing': 'letterSpacing',
  29083. lightingcolor: 'lightingColor',
  29084. 'lighting-color': 'lightingColor',
  29085. limitingconeangle: 'limitingConeAngle',
  29086. local: 'local',
  29087. markerend: 'markerEnd',
  29088. 'marker-end': 'markerEnd',
  29089. markerheight: 'markerHeight',
  29090. markermid: 'markerMid',
  29091. 'marker-mid': 'markerMid',
  29092. markerstart: 'markerStart',
  29093. 'marker-start': 'markerStart',
  29094. markerunits: 'markerUnits',
  29095. markerwidth: 'markerWidth',
  29096. mask: 'mask',
  29097. maskcontentunits: 'maskContentUnits',
  29098. maskunits: 'maskUnits',
  29099. mathematical: 'mathematical',
  29100. mode: 'mode',
  29101. numoctaves: 'numOctaves',
  29102. offset: 'offset',
  29103. opacity: 'opacity',
  29104. operator: 'operator',
  29105. order: 'order',
  29106. orient: 'orient',
  29107. orientation: 'orientation',
  29108. origin: 'origin',
  29109. overflow: 'overflow',
  29110. overlineposition: 'overlinePosition',
  29111. 'overline-position': 'overlinePosition',
  29112. overlinethickness: 'overlineThickness',
  29113. 'overline-thickness': 'overlineThickness',
  29114. paintorder: 'paintOrder',
  29115. 'paint-order': 'paintOrder',
  29116. panose1: 'panose1',
  29117. 'panose-1': 'panose1',
  29118. pathlength: 'pathLength',
  29119. patterncontentunits: 'patternContentUnits',
  29120. patterntransform: 'patternTransform',
  29121. patternunits: 'patternUnits',
  29122. pointerevents: 'pointerEvents',
  29123. 'pointer-events': 'pointerEvents',
  29124. points: 'points',
  29125. pointsatx: 'pointsAtX',
  29126. pointsaty: 'pointsAtY',
  29127. pointsatz: 'pointsAtZ',
  29128. prefix: 'prefix',
  29129. preservealpha: 'preserveAlpha',
  29130. preserveaspectratio: 'preserveAspectRatio',
  29131. primitiveunits: 'primitiveUnits',
  29132. property: 'property',
  29133. r: 'r',
  29134. radius: 'radius',
  29135. refx: 'refX',
  29136. refy: 'refY',
  29137. renderingintent: 'renderingIntent',
  29138. 'rendering-intent': 'renderingIntent',
  29139. repeatcount: 'repeatCount',
  29140. repeatdur: 'repeatDur',
  29141. requiredextensions: 'requiredExtensions',
  29142. requiredfeatures: 'requiredFeatures',
  29143. resource: 'resource',
  29144. restart: 'restart',
  29145. result: 'result',
  29146. results: 'results',
  29147. rotate: 'rotate',
  29148. rx: 'rx',
  29149. ry: 'ry',
  29150. scale: 'scale',
  29151. security: 'security',
  29152. seed: 'seed',
  29153. shaperendering: 'shapeRendering',
  29154. 'shape-rendering': 'shapeRendering',
  29155. slope: 'slope',
  29156. spacing: 'spacing',
  29157. specularconstant: 'specularConstant',
  29158. specularexponent: 'specularExponent',
  29159. speed: 'speed',
  29160. spreadmethod: 'spreadMethod',
  29161. startoffset: 'startOffset',
  29162. stddeviation: 'stdDeviation',
  29163. stemh: 'stemh',
  29164. stemv: 'stemv',
  29165. stitchtiles: 'stitchTiles',
  29166. stopcolor: 'stopColor',
  29167. 'stop-color': 'stopColor',
  29168. stopopacity: 'stopOpacity',
  29169. 'stop-opacity': 'stopOpacity',
  29170. strikethroughposition: 'strikethroughPosition',
  29171. 'strikethrough-position': 'strikethroughPosition',
  29172. strikethroughthickness: 'strikethroughThickness',
  29173. 'strikethrough-thickness': 'strikethroughThickness',
  29174. string: 'string',
  29175. stroke: 'stroke',
  29176. strokedasharray: 'strokeDasharray',
  29177. 'stroke-dasharray': 'strokeDasharray',
  29178. strokedashoffset: 'strokeDashoffset',
  29179. 'stroke-dashoffset': 'strokeDashoffset',
  29180. strokelinecap: 'strokeLinecap',
  29181. 'stroke-linecap': 'strokeLinecap',
  29182. strokelinejoin: 'strokeLinejoin',
  29183. 'stroke-linejoin': 'strokeLinejoin',
  29184. strokemiterlimit: 'strokeMiterlimit',
  29185. 'stroke-miterlimit': 'strokeMiterlimit',
  29186. strokewidth: 'strokeWidth',
  29187. 'stroke-width': 'strokeWidth',
  29188. strokeopacity: 'strokeOpacity',
  29189. 'stroke-opacity': 'strokeOpacity',
  29190. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  29191. suppresshydrationwarning: 'suppressHydrationWarning',
  29192. surfacescale: 'surfaceScale',
  29193. systemlanguage: 'systemLanguage',
  29194. tablevalues: 'tableValues',
  29195. targetx: 'targetX',
  29196. targety: 'targetY',
  29197. textanchor: 'textAnchor',
  29198. 'text-anchor': 'textAnchor',
  29199. textdecoration: 'textDecoration',
  29200. 'text-decoration': 'textDecoration',
  29201. textlength: 'textLength',
  29202. textrendering: 'textRendering',
  29203. 'text-rendering': 'textRendering',
  29204. to: 'to',
  29205. transform: 'transform',
  29206. typeof: 'typeof',
  29207. u1: 'u1',
  29208. u2: 'u2',
  29209. underlineposition: 'underlinePosition',
  29210. 'underline-position': 'underlinePosition',
  29211. underlinethickness: 'underlineThickness',
  29212. 'underline-thickness': 'underlineThickness',
  29213. unicode: 'unicode',
  29214. unicodebidi: 'unicodeBidi',
  29215. 'unicode-bidi': 'unicodeBidi',
  29216. unicoderange: 'unicodeRange',
  29217. 'unicode-range': 'unicodeRange',
  29218. unitsperem: 'unitsPerEm',
  29219. 'units-per-em': 'unitsPerEm',
  29220. unselectable: 'unselectable',
  29221. valphabetic: 'vAlphabetic',
  29222. 'v-alphabetic': 'vAlphabetic',
  29223. values: 'values',
  29224. vectoreffect: 'vectorEffect',
  29225. 'vector-effect': 'vectorEffect',
  29226. version: 'version',
  29227. vertadvy: 'vertAdvY',
  29228. 'vert-adv-y': 'vertAdvY',
  29229. vertoriginx: 'vertOriginX',
  29230. 'vert-origin-x': 'vertOriginX',
  29231. vertoriginy: 'vertOriginY',
  29232. 'vert-origin-y': 'vertOriginY',
  29233. vhanging: 'vHanging',
  29234. 'v-hanging': 'vHanging',
  29235. videographic: 'vIdeographic',
  29236. 'v-ideographic': 'vIdeographic',
  29237. viewbox: 'viewBox',
  29238. viewtarget: 'viewTarget',
  29239. visibility: 'visibility',
  29240. vmathematical: 'vMathematical',
  29241. 'v-mathematical': 'vMathematical',
  29242. vocab: 'vocab',
  29243. widths: 'widths',
  29244. wordspacing: 'wordSpacing',
  29245. 'word-spacing': 'wordSpacing',
  29246. writingmode: 'writingMode',
  29247. 'writing-mode': 'writingMode',
  29248. x1: 'x1',
  29249. x2: 'x2',
  29250. x: 'x',
  29251. xchannelselector: 'xChannelSelector',
  29252. xheight: 'xHeight',
  29253. 'x-height': 'xHeight',
  29254. xlinkactuate: 'xlinkActuate',
  29255. 'xlink:actuate': 'xlinkActuate',
  29256. xlinkarcrole: 'xlinkArcrole',
  29257. 'xlink:arcrole': 'xlinkArcrole',
  29258. xlinkhref: 'xlinkHref',
  29259. 'xlink:href': 'xlinkHref',
  29260. xlinkrole: 'xlinkRole',
  29261. 'xlink:role': 'xlinkRole',
  29262. xlinkshow: 'xlinkShow',
  29263. 'xlink:show': 'xlinkShow',
  29264. xlinktitle: 'xlinkTitle',
  29265. 'xlink:title': 'xlinkTitle',
  29266. xlinktype: 'xlinkType',
  29267. 'xlink:type': 'xlinkType',
  29268. xmlbase: 'xmlBase',
  29269. 'xml:base': 'xmlBase',
  29270. xmllang: 'xmlLang',
  29271. 'xml:lang': 'xmlLang',
  29272. xmlns: 'xmlns',
  29273. 'xml:space': 'xmlSpace',
  29274. xmlnsxlink: 'xmlnsXlink',
  29275. 'xmlns:xlink': 'xmlnsXlink',
  29276. xmlspace: 'xmlSpace',
  29277. y1: 'y1',
  29278. y2: 'y2',
  29279. y: 'y',
  29280. ychannelselector: 'yChannelSelector',
  29281. z: 'z',
  29282. zoomandpan: 'zoomAndPan'
  29283. };
  29284. var ariaProperties = {
  29285. 'aria-current': 0,
  29286. // state
  29287. 'aria-details': 0,
  29288. 'aria-disabled': 0,
  29289. // state
  29290. 'aria-hidden': 0,
  29291. // state
  29292. 'aria-invalid': 0,
  29293. // state
  29294. 'aria-keyshortcuts': 0,
  29295. 'aria-label': 0,
  29296. 'aria-roledescription': 0,
  29297. // Widget Attributes
  29298. 'aria-autocomplete': 0,
  29299. 'aria-checked': 0,
  29300. 'aria-expanded': 0,
  29301. 'aria-haspopup': 0,
  29302. 'aria-level': 0,
  29303. 'aria-modal': 0,
  29304. 'aria-multiline': 0,
  29305. 'aria-multiselectable': 0,
  29306. 'aria-orientation': 0,
  29307. 'aria-placeholder': 0,
  29308. 'aria-pressed': 0,
  29309. 'aria-readonly': 0,
  29310. 'aria-required': 0,
  29311. 'aria-selected': 0,
  29312. 'aria-sort': 0,
  29313. 'aria-valuemax': 0,
  29314. 'aria-valuemin': 0,
  29315. 'aria-valuenow': 0,
  29316. 'aria-valuetext': 0,
  29317. // Live Region Attributes
  29318. 'aria-atomic': 0,
  29319. 'aria-busy': 0,
  29320. 'aria-live': 0,
  29321. 'aria-relevant': 0,
  29322. // Drag-and-Drop Attributes
  29323. 'aria-dropeffect': 0,
  29324. 'aria-grabbed': 0,
  29325. // Relationship Attributes
  29326. 'aria-activedescendant': 0,
  29327. 'aria-colcount': 0,
  29328. 'aria-colindex': 0,
  29329. 'aria-colspan': 0,
  29330. 'aria-controls': 0,
  29331. 'aria-describedby': 0,
  29332. 'aria-errormessage': 0,
  29333. 'aria-flowto': 0,
  29334. 'aria-labelledby': 0,
  29335. 'aria-owns': 0,
  29336. 'aria-posinset': 0,
  29337. 'aria-rowcount': 0,
  29338. 'aria-rowindex': 0,
  29339. 'aria-rowspan': 0,
  29340. 'aria-setsize': 0
  29341. };
  29342. var warnedProperties = {};
  29343. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  29344. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  29345. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  29346. function validateProperty(tagName, name) {
  29347. {
  29348. if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
  29349. return true;
  29350. }
  29351. if (rARIACamel.test(name)) {
  29352. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  29353. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
  29354. // DOM properties, then it is an invalid aria-* attribute.
  29355. if (correctName == null) {
  29356. error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  29357. warnedProperties[name] = true;
  29358. return true;
  29359. } // aria-* attributes should be lowercase; suggest the lowercase version.
  29360. if (name !== correctName) {
  29361. error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  29362. warnedProperties[name] = true;
  29363. return true;
  29364. }
  29365. }
  29366. if (rARIA.test(name)) {
  29367. var lowerCasedName = name.toLowerCase();
  29368. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
  29369. // DOM properties, then it is an invalid aria-* attribute.
  29370. if (standardName == null) {
  29371. warnedProperties[name] = true;
  29372. return false;
  29373. } // aria-* attributes should be lowercase; suggest the lowercase version.
  29374. if (name !== standardName) {
  29375. error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  29376. warnedProperties[name] = true;
  29377. return true;
  29378. }
  29379. }
  29380. }
  29381. return true;
  29382. }
  29383. function warnInvalidARIAProps(type, props) {
  29384. {
  29385. var invalidProps = [];
  29386. for (var key in props) {
  29387. var isValid = validateProperty(type, key);
  29388. if (!isValid) {
  29389. invalidProps.push(key);
  29390. }
  29391. }
  29392. var unknownPropString = invalidProps.map(function (prop) {
  29393. return '`' + prop + '`';
  29394. }).join(', ');
  29395. if (invalidProps.length === 1) {
  29396. error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  29397. } else if (invalidProps.length > 1) {
  29398. error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  29399. }
  29400. }
  29401. }
  29402. function validateProperties(type, props) {
  29403. if (isCustomComponent(type, props)) {
  29404. return;
  29405. }
  29406. warnInvalidARIAProps(type, props);
  29407. }
  29408. var didWarnValueNull = false;
  29409. function validateProperties$1(type, props) {
  29410. {
  29411. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  29412. return;
  29413. }
  29414. if (props != null && props.value === null && !didWarnValueNull) {
  29415. didWarnValueNull = true;
  29416. if (type === 'select' && props.multiple) {
  29417. error('`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);
  29418. } else {
  29419. error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  29420. }
  29421. }
  29422. }
  29423. }
  29424. var validateProperty$1 = function () {};
  29425. {
  29426. var warnedProperties$1 = {};
  29427. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  29428. var EVENT_NAME_REGEX = /^on./;
  29429. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  29430. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  29431. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  29432. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  29433. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  29434. return true;
  29435. }
  29436. var lowerCasedName = name.toLowerCase();
  29437. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  29438. error('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.');
  29439. warnedProperties$1[name] = true;
  29440. return true;
  29441. } // We can't rely on the event system being injected on the server.
  29442. if (canUseEventSystem) {
  29443. if (registrationNameModules.hasOwnProperty(name)) {
  29444. return true;
  29445. }
  29446. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  29447. if (registrationName != null) {
  29448. error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  29449. warnedProperties$1[name] = true;
  29450. return true;
  29451. }
  29452. if (EVENT_NAME_REGEX.test(name)) {
  29453. error('Unknown event handler property `%s`. It will be ignored.', name);
  29454. warnedProperties$1[name] = true;
  29455. return true;
  29456. }
  29457. } else if (EVENT_NAME_REGEX.test(name)) {
  29458. // If no event plugins have been injected, we are in a server environment.
  29459. // So we can't tell if the event name is correct for sure, but we can filter
  29460. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  29461. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  29462. error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  29463. }
  29464. warnedProperties$1[name] = true;
  29465. return true;
  29466. } // Let the ARIA attribute hook validate ARIA attributes
  29467. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  29468. return true;
  29469. }
  29470. if (lowerCasedName === 'innerhtml') {
  29471. error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  29472. warnedProperties$1[name] = true;
  29473. return true;
  29474. }
  29475. if (lowerCasedName === 'aria') {
  29476. error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  29477. warnedProperties$1[name] = true;
  29478. return true;
  29479. }
  29480. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  29481. error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  29482. warnedProperties$1[name] = true;
  29483. return true;
  29484. }
  29485. if (typeof value === 'number' && isNaN(value)) {
  29486. error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  29487. warnedProperties$1[name] = true;
  29488. return true;
  29489. }
  29490. var propertyInfo = getPropertyInfo(name);
  29491. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.
  29492. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  29493. var standardName = possibleStandardNames[lowerCasedName];
  29494. if (standardName !== name) {
  29495. error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  29496. warnedProperties$1[name] = true;
  29497. return true;
  29498. }
  29499. } else if (!isReserved && name !== lowerCasedName) {
  29500. // Unknown attributes should have lowercase casing since that's how they
  29501. // will be cased anyway with server rendering.
  29502. error('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);
  29503. warnedProperties$1[name] = true;
  29504. return true;
  29505. }
  29506. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  29507. if (value) {
  29508. error('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);
  29509. } else {
  29510. error('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);
  29511. }
  29512. warnedProperties$1[name] = true;
  29513. return true;
  29514. } // Now that we've validated casing, do not validate
  29515. // data types for reserved props
  29516. if (isReserved) {
  29517. return true;
  29518. } // Warn when a known attribute is a bad type
  29519. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  29520. warnedProperties$1[name] = true;
  29521. return false;
  29522. } // Warn when passing the strings 'false' or 'true' into a boolean prop
  29523. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  29524. error('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);
  29525. warnedProperties$1[name] = true;
  29526. return true;
  29527. }
  29528. return true;
  29529. };
  29530. }
  29531. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  29532. {
  29533. var unknownProps = [];
  29534. for (var key in props) {
  29535. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  29536. if (!isValid) {
  29537. unknownProps.push(key);
  29538. }
  29539. }
  29540. var unknownPropString = unknownProps.map(function (prop) {
  29541. return '`' + prop + '`';
  29542. }).join(', ');
  29543. if (unknownProps.length === 1) {
  29544. error('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);
  29545. } else if (unknownProps.length > 1) {
  29546. error('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);
  29547. }
  29548. }
  29549. };
  29550. function validateProperties$2(type, props, canUseEventSystem) {
  29551. if (isCustomComponent(type, props)) {
  29552. return;
  29553. }
  29554. warnUnknownProperties(type, props, canUseEventSystem);
  29555. }
  29556. var didWarnInvalidHydration = false;
  29557. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  29558. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  29559. var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  29560. var AUTOFOCUS = 'autoFocus';
  29561. var CHILDREN = 'children';
  29562. var STYLE = 'style';
  29563. var HTML$1 = '__html';
  29564. var HTML_NAMESPACE$1 = Namespaces.html;
  29565. var warnedUnknownTags;
  29566. var suppressHydrationWarning;
  29567. var validatePropertiesInDevelopment;
  29568. var warnForTextDifference;
  29569. var warnForPropDifference;
  29570. var warnForExtraAttributes;
  29571. var warnForInvalidEventListener;
  29572. var canDiffStyleForHydrationWarning;
  29573. var normalizeMarkupForTextOrAttribute;
  29574. var normalizeHTML;
  29575. {
  29576. warnedUnknownTags = {
  29577. // Chrome is the only major browser not shipping <time>. But as of July
  29578. // 2017 it intends to ship it due to widespread usage. We intentionally
  29579. // *don't* warn for <time> even if it's unrecognized by Chrome because
  29580. // it soon will be, and many apps have been using it anyway.
  29581. time: true,
  29582. // There are working polyfills for <dialog>. Let people use it.
  29583. dialog: true,
  29584. // Electron ships a custom <webview> tag to display external web content in
  29585. // an isolated frame and process.
  29586. // This tag is not present in non Electron environments such as JSDom which
  29587. // is often used for testing purposes.
  29588. // @see https://electronjs.org/docs/api/webview-tag
  29589. webview: true
  29590. };
  29591. validatePropertiesInDevelopment = function (type, props) {
  29592. validateProperties(type, props);
  29593. validateProperties$1(type, props);
  29594. validateProperties$2(type, props,
  29595. /* canUseEventSystem */
  29596. true);
  29597. }; // IE 11 parses & normalizes the style attribute as opposed to other
  29598. // browsers. It adds spaces and sorts the properties in some
  29599. // non-alphabetical order. Handling that would require sorting CSS
  29600. // properties in the client & server versions or applying
  29601. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  29602. // normalized. Since it only affects IE, we're skipping style warnings
  29603. // in that browser completely in favor of doing all that work.
  29604. // See https://github.com/facebook/react/issues/11807
  29605. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
  29606. // It also can turn \u0000 into \uFFFD inside attributes.
  29607. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  29608. // If we have a mismatch, it might be caused by that.
  29609. // We will still patch up in this case but not fire the warning.
  29610. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  29611. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  29612. normalizeMarkupForTextOrAttribute = function (markup) {
  29613. var markupString = typeof markup === 'string' ? markup : '' + markup;
  29614. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  29615. };
  29616. warnForTextDifference = function (serverText, clientText) {
  29617. if (didWarnInvalidHydration) {
  29618. return;
  29619. }
  29620. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  29621. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  29622. if (normalizedServerText === normalizedClientText) {
  29623. return;
  29624. }
  29625. didWarnInvalidHydration = true;
  29626. error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  29627. };
  29628. warnForPropDifference = function (propName, serverValue, clientValue) {
  29629. if (didWarnInvalidHydration) {
  29630. return;
  29631. }
  29632. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  29633. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  29634. if (normalizedServerValue === normalizedClientValue) {
  29635. return;
  29636. }
  29637. didWarnInvalidHydration = true;
  29638. error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  29639. };
  29640. warnForExtraAttributes = function (attributeNames) {
  29641. if (didWarnInvalidHydration) {
  29642. return;
  29643. }
  29644. didWarnInvalidHydration = true;
  29645. var names = [];
  29646. attributeNames.forEach(function (name) {
  29647. names.push(name);
  29648. });
  29649. error('Extra attributes from the server: %s', names);
  29650. };
  29651. warnForInvalidEventListener = function (registrationName, listener) {
  29652. if (listener === false) {
  29653. error('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);
  29654. } else {
  29655. error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  29656. }
  29657. }; // Parse the HTML and read it back to normalize the HTML string so that it
  29658. // can be used for comparison.
  29659. normalizeHTML = function (parent, html) {
  29660. // We could have created a separate document here to avoid
  29661. // re-initializing custom elements if they exist. But this breaks
  29662. // how <noscript> is being handled. So we use the same document.
  29663. // See the discussion in https://github.com/facebook/react/pull/11157.
  29664. var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  29665. testElement.innerHTML = html;
  29666. return testElement.innerHTML;
  29667. };
  29668. }
  29669. function ensureListeningTo(rootContainerElement, registrationName) {
  29670. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  29671. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  29672. legacyListenToEvent(registrationName, doc);
  29673. }
  29674. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  29675. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  29676. }
  29677. function noop() {}
  29678. function trapClickOnNonInteractiveElement(node) {
  29679. // Mobile Safari does not fire properly bubble click events on
  29680. // non-interactive elements, which means delegated click listeners do not
  29681. // fire. The workaround for this bug involves attaching an empty click
  29682. // listener on the target node.
  29683. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  29684. // Just set it using the onclick property so that we don't have to manage any
  29685. // bookkeeping for it. Not sure if we need to clear it when the listener is
  29686. // removed.
  29687. // TODO: Only do this for the relevant Safaris maybe?
  29688. node.onclick = noop;
  29689. }
  29690. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  29691. for (var propKey in nextProps) {
  29692. if (!nextProps.hasOwnProperty(propKey)) {
  29693. continue;
  29694. }
  29695. var nextProp = nextProps[propKey];
  29696. if (propKey === STYLE) {
  29697. {
  29698. if (nextProp) {
  29699. // Freeze the next style object so that we can assume it won't be
  29700. // mutated. We have already warned for this in the past.
  29701. Object.freeze(nextProp);
  29702. }
  29703. } // Relies on `updateStylesByID` not mutating `styleUpdates`.
  29704. setValueForStyles(domElement, nextProp);
  29705. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  29706. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  29707. if (nextHtml != null) {
  29708. setInnerHTML(domElement, nextHtml);
  29709. }
  29710. } else if (propKey === CHILDREN) {
  29711. if (typeof nextProp === 'string') {
  29712. // Avoid setting initial textContent when the text is empty. In IE11 setting
  29713. // textContent on a <textarea> will cause the placeholder to not
  29714. // show within the <textarea> until it has been focused and blurred again.
  29715. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  29716. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  29717. if (canSetTextContent) {
  29718. setTextContent(domElement, nextProp);
  29719. }
  29720. } else if (typeof nextProp === 'number') {
  29721. setTextContent(domElement, '' + nextProp);
  29722. }
  29723. } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  29724. if (nextProp != null) {
  29725. if ( typeof nextProp !== 'function') {
  29726. warnForInvalidEventListener(propKey, nextProp);
  29727. }
  29728. ensureListeningTo(rootContainerElement, propKey);
  29729. }
  29730. } else if (nextProp != null) {
  29731. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  29732. }
  29733. }
  29734. }
  29735. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  29736. // TODO: Handle wasCustomComponentTag
  29737. for (var i = 0; i < updatePayload.length; i += 2) {
  29738. var propKey = updatePayload[i];
  29739. var propValue = updatePayload[i + 1];
  29740. if (propKey === STYLE) {
  29741. setValueForStyles(domElement, propValue);
  29742. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  29743. setInnerHTML(domElement, propValue);
  29744. } else if (propKey === CHILDREN) {
  29745. setTextContent(domElement, propValue);
  29746. } else {
  29747. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  29748. }
  29749. }
  29750. }
  29751. function createElement(type, props, rootContainerElement, parentNamespace) {
  29752. var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
  29753. // tags get no namespace.
  29754. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  29755. var domElement;
  29756. var namespaceURI = parentNamespace;
  29757. if (namespaceURI === HTML_NAMESPACE$1) {
  29758. namespaceURI = getIntrinsicNamespace(type);
  29759. }
  29760. if (namespaceURI === HTML_NAMESPACE$1) {
  29761. {
  29762. isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
  29763. // allow <SVG> or <mATH>.
  29764. if (!isCustomComponentTag && type !== type.toLowerCase()) {
  29765. error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
  29766. }
  29767. }
  29768. if (type === 'script') {
  29769. // Create the script via .innerHTML so its "parser-inserted" flag is
  29770. // set to true and it does not execute
  29771. var div = ownerDocument.createElement('div');
  29772. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  29773. // This is guaranteed to yield a script element.
  29774. var firstChild = div.firstChild;
  29775. domElement = div.removeChild(firstChild);
  29776. } else if (typeof props.is === 'string') {
  29777. // $FlowIssue `createElement` should be updated for Web Components
  29778. domElement = ownerDocument.createElement(type, {
  29779. is: props.is
  29780. });
  29781. } else {
  29782. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  29783. // See discussion in https://github.com/facebook/react/pull/6896
  29784. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  29785. domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  29786. // attributes on `select`s needs to be added before `option`s are inserted.
  29787. // This prevents:
  29788. // - a bug where the `select` does not scroll to the correct option because singular
  29789. // `select` elements automatically pick the first item #13222
  29790. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  29791. // See https://github.com/facebook/react/issues/13222
  29792. // and https://github.com/facebook/react/issues/14239
  29793. if (type === 'select') {
  29794. var node = domElement;
  29795. if (props.multiple) {
  29796. node.multiple = true;
  29797. } else if (props.size) {
  29798. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  29799. // it is possible that no option is selected.
  29800. //
  29801. // This is only necessary when a select in "single selection mode".
  29802. node.size = props.size;
  29803. }
  29804. }
  29805. }
  29806. } else {
  29807. domElement = ownerDocument.createElementNS(namespaceURI, type);
  29808. }
  29809. {
  29810. if (namespaceURI === HTML_NAMESPACE$1) {
  29811. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  29812. warnedUnknownTags[type] = true;
  29813. error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  29814. }
  29815. }
  29816. }
  29817. return domElement;
  29818. }
  29819. function createTextNode(text, rootContainerElement) {
  29820. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  29821. }
  29822. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  29823. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  29824. {
  29825. validatePropertiesInDevelopment(tag, rawProps);
  29826. } // TODO: Make sure that we check isMounted before firing any of these events.
  29827. var props;
  29828. switch (tag) {
  29829. case 'iframe':
  29830. case 'object':
  29831. case 'embed':
  29832. trapBubbledEvent(TOP_LOAD, domElement);
  29833. props = rawProps;
  29834. break;
  29835. case 'video':
  29836. case 'audio':
  29837. // Create listener for each media event
  29838. for (var i = 0; i < mediaEventTypes.length; i++) {
  29839. trapBubbledEvent(mediaEventTypes[i], domElement);
  29840. }
  29841. props = rawProps;
  29842. break;
  29843. case 'source':
  29844. trapBubbledEvent(TOP_ERROR, domElement);
  29845. props = rawProps;
  29846. break;
  29847. case 'img':
  29848. case 'image':
  29849. case 'link':
  29850. trapBubbledEvent(TOP_ERROR, domElement);
  29851. trapBubbledEvent(TOP_LOAD, domElement);
  29852. props = rawProps;
  29853. break;
  29854. case 'form':
  29855. trapBubbledEvent(TOP_RESET, domElement);
  29856. trapBubbledEvent(TOP_SUBMIT, domElement);
  29857. props = rawProps;
  29858. break;
  29859. case 'details':
  29860. trapBubbledEvent(TOP_TOGGLE, domElement);
  29861. props = rawProps;
  29862. break;
  29863. case 'input':
  29864. initWrapperState(domElement, rawProps);
  29865. props = getHostProps(domElement, rawProps);
  29866. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  29867. // to onChange. Even if there is no listener.
  29868. ensureListeningTo(rootContainerElement, 'onChange');
  29869. break;
  29870. case 'option':
  29871. validateProps(domElement, rawProps);
  29872. props = getHostProps$1(domElement, rawProps);
  29873. break;
  29874. case 'select':
  29875. initWrapperState$1(domElement, rawProps);
  29876. props = getHostProps$2(domElement, rawProps);
  29877. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  29878. // to onChange. Even if there is no listener.
  29879. ensureListeningTo(rootContainerElement, 'onChange');
  29880. break;
  29881. case 'textarea':
  29882. initWrapperState$2(domElement, rawProps);
  29883. props = getHostProps$3(domElement, rawProps);
  29884. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  29885. // to onChange. Even if there is no listener.
  29886. ensureListeningTo(rootContainerElement, 'onChange');
  29887. break;
  29888. default:
  29889. props = rawProps;
  29890. }
  29891. assertValidProps(tag, props);
  29892. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  29893. switch (tag) {
  29894. case 'input':
  29895. // TODO: Make sure we check if this is still unmounted or do any clean
  29896. // up necessary since we never stop tracking anymore.
  29897. track(domElement);
  29898. postMountWrapper(domElement, rawProps, false);
  29899. break;
  29900. case 'textarea':
  29901. // TODO: Make sure we check if this is still unmounted or do any clean
  29902. // up necessary since we never stop tracking anymore.
  29903. track(domElement);
  29904. postMountWrapper$3(domElement);
  29905. break;
  29906. case 'option':
  29907. postMountWrapper$1(domElement, rawProps);
  29908. break;
  29909. case 'select':
  29910. postMountWrapper$2(domElement, rawProps);
  29911. break;
  29912. default:
  29913. if (typeof props.onClick === 'function') {
  29914. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  29915. trapClickOnNonInteractiveElement(domElement);
  29916. }
  29917. break;
  29918. }
  29919. } // Calculate the diff between the two objects.
  29920. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  29921. {
  29922. validatePropertiesInDevelopment(tag, nextRawProps);
  29923. }
  29924. var updatePayload = null;
  29925. var lastProps;
  29926. var nextProps;
  29927. switch (tag) {
  29928. case 'input':
  29929. lastProps = getHostProps(domElement, lastRawProps);
  29930. nextProps = getHostProps(domElement, nextRawProps);
  29931. updatePayload = [];
  29932. break;
  29933. case 'option':
  29934. lastProps = getHostProps$1(domElement, lastRawProps);
  29935. nextProps = getHostProps$1(domElement, nextRawProps);
  29936. updatePayload = [];
  29937. break;
  29938. case 'select':
  29939. lastProps = getHostProps$2(domElement, lastRawProps);
  29940. nextProps = getHostProps$2(domElement, nextRawProps);
  29941. updatePayload = [];
  29942. break;
  29943. case 'textarea':
  29944. lastProps = getHostProps$3(domElement, lastRawProps);
  29945. nextProps = getHostProps$3(domElement, nextRawProps);
  29946. updatePayload = [];
  29947. break;
  29948. default:
  29949. lastProps = lastRawProps;
  29950. nextProps = nextRawProps;
  29951. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  29952. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  29953. trapClickOnNonInteractiveElement(domElement);
  29954. }
  29955. break;
  29956. }
  29957. assertValidProps(tag, nextProps);
  29958. var propKey;
  29959. var styleName;
  29960. var styleUpdates = null;
  29961. for (propKey in lastProps) {
  29962. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  29963. continue;
  29964. }
  29965. if (propKey === STYLE) {
  29966. var lastStyle = lastProps[propKey];
  29967. for (styleName in lastStyle) {
  29968. if (lastStyle.hasOwnProperty(styleName)) {
  29969. if (!styleUpdates) {
  29970. styleUpdates = {};
  29971. }
  29972. styleUpdates[styleName] = '';
  29973. }
  29974. }
  29975. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  29976. // This is a special case. If any listener updates we need to ensure
  29977. // that the "current" fiber pointer gets updated so we need a commit
  29978. // to update this element.
  29979. if (!updatePayload) {
  29980. updatePayload = [];
  29981. }
  29982. } else {
  29983. // For all other deleted properties we add it to the queue. We use
  29984. // the whitelist in the commit phase instead.
  29985. (updatePayload = updatePayload || []).push(propKey, null);
  29986. }
  29987. }
  29988. for (propKey in nextProps) {
  29989. var nextProp = nextProps[propKey];
  29990. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  29991. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  29992. continue;
  29993. }
  29994. if (propKey === STYLE) {
  29995. {
  29996. if (nextProp) {
  29997. // Freeze the next style object so that we can assume it won't be
  29998. // mutated. We have already warned for this in the past.
  29999. Object.freeze(nextProp);
  30000. }
  30001. }
  30002. if (lastProp) {
  30003. // Unset styles on `lastProp` but not on `nextProp`.
  30004. for (styleName in lastProp) {
  30005. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  30006. if (!styleUpdates) {
  30007. styleUpdates = {};
  30008. }
  30009. styleUpdates[styleName] = '';
  30010. }
  30011. } // Update styles that changed since `lastProp`.
  30012. for (styleName in nextProp) {
  30013. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  30014. if (!styleUpdates) {
  30015. styleUpdates = {};
  30016. }
  30017. styleUpdates[styleName] = nextProp[styleName];
  30018. }
  30019. }
  30020. } else {
  30021. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  30022. if (!styleUpdates) {
  30023. if (!updatePayload) {
  30024. updatePayload = [];
  30025. }
  30026. updatePayload.push(propKey, styleUpdates);
  30027. }
  30028. styleUpdates = nextProp;
  30029. }
  30030. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  30031. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  30032. var lastHtml = lastProp ? lastProp[HTML$1] : undefined;
  30033. if (nextHtml != null) {
  30034. if (lastHtml !== nextHtml) {
  30035. (updatePayload = updatePayload || []).push(propKey, nextHtml);
  30036. }
  30037. }
  30038. } else if (propKey === CHILDREN) {
  30039. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  30040. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  30041. }
  30042. } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  30043. if (nextProp != null) {
  30044. // We eagerly listen to this even though we haven't committed yet.
  30045. if ( typeof nextProp !== 'function') {
  30046. warnForInvalidEventListener(propKey, nextProp);
  30047. }
  30048. ensureListeningTo(rootContainerElement, propKey);
  30049. }
  30050. if (!updatePayload && lastProp !== nextProp) {
  30051. // This is a special case. If any listener updates we need to ensure
  30052. // that the "current" props pointer gets updated so we need a commit
  30053. // to update this element.
  30054. updatePayload = [];
  30055. }
  30056. } else {
  30057. // For any other property we always add it to the queue and then we
  30058. // filter it out using the whitelist during the commit.
  30059. (updatePayload = updatePayload || []).push(propKey, nextProp);
  30060. }
  30061. }
  30062. if (styleUpdates) {
  30063. {
  30064. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
  30065. }
  30066. (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
  30067. }
  30068. return updatePayload;
  30069. } // Apply the diff.
  30070. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  30071. // Update checked *before* name.
  30072. // In the middle of an update, it is possible to have multiple checked.
  30073. // When a checked radio tries to change name, browser makes another radio's checked false.
  30074. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  30075. updateChecked(domElement, nextRawProps);
  30076. }
  30077. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  30078. var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
  30079. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
  30080. // changed.
  30081. switch (tag) {
  30082. case 'input':
  30083. // Update the wrapper around inputs *after* updating props. This has to
  30084. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  30085. // raise warnings and prevent the new value from being assigned.
  30086. updateWrapper(domElement, nextRawProps);
  30087. break;
  30088. case 'textarea':
  30089. updateWrapper$1(domElement, nextRawProps);
  30090. break;
  30091. case 'select':
  30092. // <select> value update needs to occur after <option> children
  30093. // reconciliation
  30094. postUpdateWrapper(domElement, nextRawProps);
  30095. break;
  30096. }
  30097. }
  30098. function getPossibleStandardName(propName) {
  30099. {
  30100. var lowerCasedName = propName.toLowerCase();
  30101. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  30102. return null;
  30103. }
  30104. return possibleStandardNames[lowerCasedName] || null;
  30105. }
  30106. }
  30107. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  30108. var isCustomComponentTag;
  30109. var extraAttributeNames;
  30110. {
  30111. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
  30112. isCustomComponentTag = isCustomComponent(tag, rawProps);
  30113. validatePropertiesInDevelopment(tag, rawProps);
  30114. } // TODO: Make sure that we check isMounted before firing any of these events.
  30115. switch (tag) {
  30116. case 'iframe':
  30117. case 'object':
  30118. case 'embed':
  30119. trapBubbledEvent(TOP_LOAD, domElement);
  30120. break;
  30121. case 'video':
  30122. case 'audio':
  30123. // Create listener for each media event
  30124. for (var i = 0; i < mediaEventTypes.length; i++) {
  30125. trapBubbledEvent(mediaEventTypes[i], domElement);
  30126. }
  30127. break;
  30128. case 'source':
  30129. trapBubbledEvent(TOP_ERROR, domElement);
  30130. break;
  30131. case 'img':
  30132. case 'image':
  30133. case 'link':
  30134. trapBubbledEvent(TOP_ERROR, domElement);
  30135. trapBubbledEvent(TOP_LOAD, domElement);
  30136. break;
  30137. case 'form':
  30138. trapBubbledEvent(TOP_RESET, domElement);
  30139. trapBubbledEvent(TOP_SUBMIT, domElement);
  30140. break;
  30141. case 'details':
  30142. trapBubbledEvent(TOP_TOGGLE, domElement);
  30143. break;
  30144. case 'input':
  30145. initWrapperState(domElement, rawProps);
  30146. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  30147. // to onChange. Even if there is no listener.
  30148. ensureListeningTo(rootContainerElement, 'onChange');
  30149. break;
  30150. case 'option':
  30151. validateProps(domElement, rawProps);
  30152. break;
  30153. case 'select':
  30154. initWrapperState$1(domElement, rawProps);
  30155. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  30156. // to onChange. Even if there is no listener.
  30157. ensureListeningTo(rootContainerElement, 'onChange');
  30158. break;
  30159. case 'textarea':
  30160. initWrapperState$2(domElement, rawProps);
  30161. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  30162. // to onChange. Even if there is no listener.
  30163. ensureListeningTo(rootContainerElement, 'onChange');
  30164. break;
  30165. }
  30166. assertValidProps(tag, rawProps);
  30167. {
  30168. extraAttributeNames = new Set();
  30169. var attributes = domElement.attributes;
  30170. for (var _i = 0; _i < attributes.length; _i++) {
  30171. var name = attributes[_i].name.toLowerCase();
  30172. switch (name) {
  30173. // Built-in SSR attribute is whitelisted
  30174. case 'data-reactroot':
  30175. break;
  30176. // Controlled attributes are not validated
  30177. // TODO: Only ignore them on controlled tags.
  30178. case 'value':
  30179. break;
  30180. case 'checked':
  30181. break;
  30182. case 'selected':
  30183. break;
  30184. default:
  30185. // Intentionally use the original name.
  30186. // See discussion in https://github.com/facebook/react/pull/10676.
  30187. extraAttributeNames.add(attributes[_i].name);
  30188. }
  30189. }
  30190. }
  30191. var updatePayload = null;
  30192. for (var propKey in rawProps) {
  30193. if (!rawProps.hasOwnProperty(propKey)) {
  30194. continue;
  30195. }
  30196. var nextProp = rawProps[propKey];
  30197. if (propKey === CHILDREN) {
  30198. // For text content children we compare against textContent. This
  30199. // might match additional HTML that is hidden when we read it using
  30200. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  30201. // satisfies our requirement. Our requirement is not to produce perfect
  30202. // HTML and attributes. Ideally we should preserve structure but it's
  30203. // ok not to if the visible content is still enough to indicate what
  30204. // even listeners these nodes might be wired up to.
  30205. // TODO: Warn if there is more than a single textNode as a child.
  30206. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  30207. if (typeof nextProp === 'string') {
  30208. if (domElement.textContent !== nextProp) {
  30209. if ( !suppressHydrationWarning) {
  30210. warnForTextDifference(domElement.textContent, nextProp);
  30211. }
  30212. updatePayload = [CHILDREN, nextProp];
  30213. }
  30214. } else if (typeof nextProp === 'number') {
  30215. if (domElement.textContent !== '' + nextProp) {
  30216. if ( !suppressHydrationWarning) {
  30217. warnForTextDifference(domElement.textContent, nextProp);
  30218. }
  30219. updatePayload = [CHILDREN, '' + nextProp];
  30220. }
  30221. }
  30222. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  30223. if (nextProp != null) {
  30224. if ( typeof nextProp !== 'function') {
  30225. warnForInvalidEventListener(propKey, nextProp);
  30226. }
  30227. ensureListeningTo(rootContainerElement, propKey);
  30228. }
  30229. } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
  30230. typeof isCustomComponentTag === 'boolean') {
  30231. // Validate that the properties correspond to their expected values.
  30232. var serverValue = void 0;
  30233. var propertyInfo = getPropertyInfo(propKey);
  30234. if (suppressHydrationWarning) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
  30235. // TODO: Only ignore them on controlled tags.
  30236. propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  30237. var serverHTML = domElement.innerHTML;
  30238. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  30239. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  30240. if (expectedHTML !== serverHTML) {
  30241. warnForPropDifference(propKey, serverHTML, expectedHTML);
  30242. }
  30243. } else if (propKey === STYLE) {
  30244. // $FlowFixMe - Should be inferred as not undefined.
  30245. extraAttributeNames.delete(propKey);
  30246. if (canDiffStyleForHydrationWarning) {
  30247. var expectedStyle = createDangerousStringForStyles(nextProp);
  30248. serverValue = domElement.getAttribute('style');
  30249. if (expectedStyle !== serverValue) {
  30250. warnForPropDifference(propKey, serverValue, expectedStyle);
  30251. }
  30252. }
  30253. } else if (isCustomComponentTag) {
  30254. // $FlowFixMe - Should be inferred as not undefined.
  30255. extraAttributeNames.delete(propKey.toLowerCase());
  30256. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  30257. if (nextProp !== serverValue) {
  30258. warnForPropDifference(propKey, serverValue, nextProp);
  30259. }
  30260. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  30261. var isMismatchDueToBadCasing = false;
  30262. if (propertyInfo !== null) {
  30263. // $FlowFixMe - Should be inferred as not undefined.
  30264. extraAttributeNames.delete(propertyInfo.attributeName);
  30265. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  30266. } else {
  30267. var ownNamespace = parentNamespace;
  30268. if (ownNamespace === HTML_NAMESPACE$1) {
  30269. ownNamespace = getIntrinsicNamespace(tag);
  30270. }
  30271. if (ownNamespace === HTML_NAMESPACE$1) {
  30272. // $FlowFixMe - Should be inferred as not undefined.
  30273. extraAttributeNames.delete(propKey.toLowerCase());
  30274. } else {
  30275. var standardName = getPossibleStandardName(propKey);
  30276. if (standardName !== null && standardName !== propKey) {
  30277. // If an SVG prop is supplied with bad casing, it will
  30278. // be successfully parsed from HTML, but will produce a mismatch
  30279. // (and would be incorrectly rendered on the client).
  30280. // However, we already warn about bad casing elsewhere.
  30281. // So we'll skip the misleading extra mismatch warning in this case.
  30282. isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.
  30283. extraAttributeNames.delete(standardName);
  30284. } // $FlowFixMe - Should be inferred as not undefined.
  30285. extraAttributeNames.delete(propKey);
  30286. }
  30287. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  30288. }
  30289. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  30290. warnForPropDifference(propKey, serverValue, nextProp);
  30291. }
  30292. }
  30293. }
  30294. }
  30295. {
  30296. // $FlowFixMe - Should be inferred as not undefined.
  30297. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  30298. // $FlowFixMe - Should be inferred as not undefined.
  30299. warnForExtraAttributes(extraAttributeNames);
  30300. }
  30301. }
  30302. switch (tag) {
  30303. case 'input':
  30304. // TODO: Make sure we check if this is still unmounted or do any clean
  30305. // up necessary since we never stop tracking anymore.
  30306. track(domElement);
  30307. postMountWrapper(domElement, rawProps, true);
  30308. break;
  30309. case 'textarea':
  30310. // TODO: Make sure we check if this is still unmounted or do any clean
  30311. // up necessary since we never stop tracking anymore.
  30312. track(domElement);
  30313. postMountWrapper$3(domElement);
  30314. break;
  30315. case 'select':
  30316. case 'option':
  30317. // For input and textarea we current always set the value property at
  30318. // post mount to force it to diverge from attributes. However, for
  30319. // option and select we don't quite do the same thing and select
  30320. // is not resilient to the DOM state changing so we don't do that here.
  30321. // TODO: Consider not doing this for input and textarea.
  30322. break;
  30323. default:
  30324. if (typeof rawProps.onClick === 'function') {
  30325. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  30326. trapClickOnNonInteractiveElement(domElement);
  30327. }
  30328. break;
  30329. }
  30330. return updatePayload;
  30331. }
  30332. function diffHydratedText(textNode, text) {
  30333. var isDifferent = textNode.nodeValue !== text;
  30334. return isDifferent;
  30335. }
  30336. function warnForUnmatchedText(textNode, text) {
  30337. {
  30338. warnForTextDifference(textNode.nodeValue, text);
  30339. }
  30340. }
  30341. function warnForDeletedHydratableElement(parentNode, child) {
  30342. {
  30343. if (didWarnInvalidHydration) {
  30344. return;
  30345. }
  30346. didWarnInvalidHydration = true;
  30347. error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  30348. }
  30349. }
  30350. function warnForDeletedHydratableText(parentNode, child) {
  30351. {
  30352. if (didWarnInvalidHydration) {
  30353. return;
  30354. }
  30355. didWarnInvalidHydration = true;
  30356. error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  30357. }
  30358. }
  30359. function warnForInsertedHydratedElement(parentNode, tag, props) {
  30360. {
  30361. if (didWarnInvalidHydration) {
  30362. return;
  30363. }
  30364. didWarnInvalidHydration = true;
  30365. error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  30366. }
  30367. }
  30368. function warnForInsertedHydratedText(parentNode, text) {
  30369. {
  30370. if (text === '') {
  30371. // We expect to insert empty text nodes since they're not represented in
  30372. // the HTML.
  30373. // TODO: Remove this special case if we can just avoid inserting empty
  30374. // text nodes.
  30375. return;
  30376. }
  30377. if (didWarnInvalidHydration) {
  30378. return;
  30379. }
  30380. didWarnInvalidHydration = true;
  30381. error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  30382. }
  30383. }
  30384. function restoreControlledState$3(domElement, tag, props) {
  30385. switch (tag) {
  30386. case 'input':
  30387. restoreControlledState(domElement, props);
  30388. return;
  30389. case 'textarea':
  30390. restoreControlledState$2(domElement, props);
  30391. return;
  30392. case 'select':
  30393. restoreControlledState$1(domElement, props);
  30394. return;
  30395. }
  30396. }
  30397. function getActiveElement(doc) {
  30398. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  30399. if (typeof doc === 'undefined') {
  30400. return null;
  30401. }
  30402. try {
  30403. return doc.activeElement || doc.body;
  30404. } catch (e) {
  30405. return doc.body;
  30406. }
  30407. }
  30408. /**
  30409. * Given any node return the first leaf node without children.
  30410. *
  30411. * @param {DOMElement|DOMTextNode} node
  30412. * @return {DOMElement|DOMTextNode}
  30413. */
  30414. function getLeafNode(node) {
  30415. while (node && node.firstChild) {
  30416. node = node.firstChild;
  30417. }
  30418. return node;
  30419. }
  30420. /**
  30421. * Get the next sibling within a container. This will walk up the
  30422. * DOM if a node's siblings have been exhausted.
  30423. *
  30424. * @param {DOMElement|DOMTextNode} node
  30425. * @return {?DOMElement|DOMTextNode}
  30426. */
  30427. function getSiblingNode(node) {
  30428. while (node) {
  30429. if (node.nextSibling) {
  30430. return node.nextSibling;
  30431. }
  30432. node = node.parentNode;
  30433. }
  30434. }
  30435. /**
  30436. * Get object describing the nodes which contain characters at offset.
  30437. *
  30438. * @param {DOMElement|DOMTextNode} root
  30439. * @param {number} offset
  30440. * @return {?object}
  30441. */
  30442. function getNodeForCharacterOffset(root, offset) {
  30443. var node = getLeafNode(root);
  30444. var nodeStart = 0;
  30445. var nodeEnd = 0;
  30446. while (node) {
  30447. if (node.nodeType === TEXT_NODE) {
  30448. nodeEnd = nodeStart + node.textContent.length;
  30449. if (nodeStart <= offset && nodeEnd >= offset) {
  30450. return {
  30451. node: node,
  30452. offset: offset - nodeStart
  30453. };
  30454. }
  30455. nodeStart = nodeEnd;
  30456. }
  30457. node = getLeafNode(getSiblingNode(node));
  30458. }
  30459. }
  30460. /**
  30461. * @param {DOMElement} outerNode
  30462. * @return {?object}
  30463. */
  30464. function getOffsets(outerNode) {
  30465. var ownerDocument = outerNode.ownerDocument;
  30466. var win = ownerDocument && ownerDocument.defaultView || window;
  30467. var selection = win.getSelection && win.getSelection();
  30468. if (!selection || selection.rangeCount === 0) {
  30469. return null;
  30470. }
  30471. var anchorNode = selection.anchorNode,
  30472. anchorOffset = selection.anchorOffset,
  30473. focusNode = selection.focusNode,
  30474. focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  30475. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  30476. // expose properties, triggering a "Permission denied error" if any of its
  30477. // properties are accessed. The only seemingly possible way to avoid erroring
  30478. // is to access a property that typically works for non-anonymous divs and
  30479. // catch any error that may otherwise arise. See
  30480. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  30481. try {
  30482. /* eslint-disable no-unused-expressions */
  30483. anchorNode.nodeType;
  30484. focusNode.nodeType;
  30485. /* eslint-enable no-unused-expressions */
  30486. } catch (e) {
  30487. return null;
  30488. }
  30489. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  30490. }
  30491. /**
  30492. * Returns {start, end} where `start` is the character/codepoint index of
  30493. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  30494. * `end` is the index of (focusNode, focusOffset).
  30495. *
  30496. * Returns null if you pass in garbage input but we should probably just crash.
  30497. *
  30498. * Exported only for testing.
  30499. */
  30500. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  30501. var length = 0;
  30502. var start = -1;
  30503. var end = -1;
  30504. var indexWithinAnchor = 0;
  30505. var indexWithinFocus = 0;
  30506. var node = outerNode;
  30507. var parentNode = null;
  30508. outer: while (true) {
  30509. var next = null;
  30510. while (true) {
  30511. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  30512. start = length + anchorOffset;
  30513. }
  30514. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  30515. end = length + focusOffset;
  30516. }
  30517. if (node.nodeType === TEXT_NODE) {
  30518. length += node.nodeValue.length;
  30519. }
  30520. if ((next = node.firstChild) === null) {
  30521. break;
  30522. } // Moving from `node` to its first child `next`.
  30523. parentNode = node;
  30524. node = next;
  30525. }
  30526. while (true) {
  30527. if (node === outerNode) {
  30528. // If `outerNode` has children, this is always the second time visiting
  30529. // it. If it has no children, this is still the first loop, and the only
  30530. // valid selection is anchorNode and focusNode both equal to this node
  30531. // and both offsets 0, in which case we will have handled above.
  30532. break outer;
  30533. }
  30534. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  30535. start = length;
  30536. }
  30537. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  30538. end = length;
  30539. }
  30540. if ((next = node.nextSibling) !== null) {
  30541. break;
  30542. }
  30543. node = parentNode;
  30544. parentNode = node.parentNode;
  30545. } // Moving from `node` to its next sibling `next`.
  30546. node = next;
  30547. }
  30548. if (start === -1 || end === -1) {
  30549. // This should never happen. (Would happen if the anchor/focus nodes aren't
  30550. // actually inside the passed-in node.)
  30551. return null;
  30552. }
  30553. return {
  30554. start: start,
  30555. end: end
  30556. };
  30557. }
  30558. /**
  30559. * In modern non-IE browsers, we can support both forward and backward
  30560. * selections.
  30561. *
  30562. * Note: IE10+ supports the Selection object, but it does not support
  30563. * the `extend` method, which means that even in modern IE, it's not possible
  30564. * to programmatically create a backward selection. Thus, for all IE
  30565. * versions, we use the old IE API to create our selections.
  30566. *
  30567. * @param {DOMElement|DOMTextNode} node
  30568. * @param {object} offsets
  30569. */
  30570. function setOffsets(node, offsets) {
  30571. var doc = node.ownerDocument || document;
  30572. var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
  30573. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  30574. // fails when pasting 100+ items)
  30575. if (!win.getSelection) {
  30576. return;
  30577. }
  30578. var selection = win.getSelection();
  30579. var length = node.textContent.length;
  30580. var start = Math.min(offsets.start, length);
  30581. var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
  30582. // Flip backward selections, so we can set with a single range.
  30583. if (!selection.extend && start > end) {
  30584. var temp = end;
  30585. end = start;
  30586. start = temp;
  30587. }
  30588. var startMarker = getNodeForCharacterOffset(node, start);
  30589. var endMarker = getNodeForCharacterOffset(node, end);
  30590. if (startMarker && endMarker) {
  30591. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  30592. return;
  30593. }
  30594. var range = doc.createRange();
  30595. range.setStart(startMarker.node, startMarker.offset);
  30596. selection.removeAllRanges();
  30597. if (start > end) {
  30598. selection.addRange(range);
  30599. selection.extend(endMarker.node, endMarker.offset);
  30600. } else {
  30601. range.setEnd(endMarker.node, endMarker.offset);
  30602. selection.addRange(range);
  30603. }
  30604. }
  30605. }
  30606. function isTextNode(node) {
  30607. return node && node.nodeType === TEXT_NODE;
  30608. }
  30609. function containsNode(outerNode, innerNode) {
  30610. if (!outerNode || !innerNode) {
  30611. return false;
  30612. } else if (outerNode === innerNode) {
  30613. return true;
  30614. } else if (isTextNode(outerNode)) {
  30615. return false;
  30616. } else if (isTextNode(innerNode)) {
  30617. return containsNode(outerNode, innerNode.parentNode);
  30618. } else if ('contains' in outerNode) {
  30619. return outerNode.contains(innerNode);
  30620. } else if (outerNode.compareDocumentPosition) {
  30621. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  30622. } else {
  30623. return false;
  30624. }
  30625. }
  30626. function isInDocument(node) {
  30627. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  30628. }
  30629. function isSameOriginFrame(iframe) {
  30630. try {
  30631. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  30632. // to throw, e.g. if it has a cross-origin src attribute.
  30633. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  30634. // iframe.contentDocument.defaultView;
  30635. // A safety way is to access one of the cross origin properties: Window or Location
  30636. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  30637. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  30638. return typeof iframe.contentWindow.location.href === 'string';
  30639. } catch (err) {
  30640. return false;
  30641. }
  30642. }
  30643. function getActiveElementDeep() {
  30644. var win = window;
  30645. var element = getActiveElement();
  30646. while (element instanceof win.HTMLIFrameElement) {
  30647. if (isSameOriginFrame(element)) {
  30648. win = element.contentWindow;
  30649. } else {
  30650. return element;
  30651. }
  30652. element = getActiveElement(win.document);
  30653. }
  30654. return element;
  30655. }
  30656. /**
  30657. * @ReactInputSelection: React input selection module. Based on Selection.js,
  30658. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  30659. * assume buttons have range selections allowed).
  30660. * Input selection module for React.
  30661. */
  30662. /**
  30663. * @hasSelectionCapabilities: we get the element types that support selection
  30664. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  30665. * and `selectionEnd` rows.
  30666. */
  30667. function hasSelectionCapabilities(elem) {
  30668. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  30669. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  30670. }
  30671. function getSelectionInformation() {
  30672. var focusedElem = getActiveElementDeep();
  30673. return {
  30674. // Used by Flare
  30675. activeElementDetached: null,
  30676. focusedElem: focusedElem,
  30677. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
  30678. };
  30679. }
  30680. /**
  30681. * @restoreSelection: If any selection information was potentially lost,
  30682. * restore it. This is useful when performing operations that could remove dom
  30683. * nodes and place them back in, resulting in focus being lost.
  30684. */
  30685. function restoreSelection(priorSelectionInformation) {
  30686. var curFocusedElem = getActiveElementDeep();
  30687. var priorFocusedElem = priorSelectionInformation.focusedElem;
  30688. var priorSelectionRange = priorSelectionInformation.selectionRange;
  30689. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  30690. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  30691. setSelection(priorFocusedElem, priorSelectionRange);
  30692. } // Focusing a node can change the scroll position, which is undesirable
  30693. var ancestors = [];
  30694. var ancestor = priorFocusedElem;
  30695. while (ancestor = ancestor.parentNode) {
  30696. if (ancestor.nodeType === ELEMENT_NODE) {
  30697. ancestors.push({
  30698. element: ancestor,
  30699. left: ancestor.scrollLeft,
  30700. top: ancestor.scrollTop
  30701. });
  30702. }
  30703. }
  30704. if (typeof priorFocusedElem.focus === 'function') {
  30705. priorFocusedElem.focus();
  30706. }
  30707. for (var i = 0; i < ancestors.length; i++) {
  30708. var info = ancestors[i];
  30709. info.element.scrollLeft = info.left;
  30710. info.element.scrollTop = info.top;
  30711. }
  30712. }
  30713. }
  30714. /**
  30715. * @getSelection: Gets the selection bounds of a focused textarea, input or
  30716. * contentEditable node.
  30717. * -@input: Look up selection bounds of this input
  30718. * -@return {start: selectionStart, end: selectionEnd}
  30719. */
  30720. function getSelection(input) {
  30721. var selection;
  30722. if ('selectionStart' in input) {
  30723. // Modern browser with input or textarea.
  30724. selection = {
  30725. start: input.selectionStart,
  30726. end: input.selectionEnd
  30727. };
  30728. } else {
  30729. // Content editable or old IE textarea.
  30730. selection = getOffsets(input);
  30731. }
  30732. return selection || {
  30733. start: 0,
  30734. end: 0
  30735. };
  30736. }
  30737. /**
  30738. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  30739. * the input.
  30740. * -@input Set selection bounds of this input or textarea
  30741. * -@offsets Object of same form that is returned from get*
  30742. */
  30743. function setSelection(input, offsets) {
  30744. var start = offsets.start,
  30745. end = offsets.end;
  30746. if (end === undefined) {
  30747. end = start;
  30748. }
  30749. if ('selectionStart' in input) {
  30750. input.selectionStart = start;
  30751. input.selectionEnd = Math.min(end, input.value.length);
  30752. } else {
  30753. setOffsets(input, offsets);
  30754. }
  30755. }
  30756. var validateDOMNesting = function () {};
  30757. var updatedAncestorInfo = function () {};
  30758. {
  30759. // This validation code was written based on the HTML5 parsing spec:
  30760. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  30761. //
  30762. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  30763. // not clear what practical benefit doing so provides); instead, we warn only
  30764. // for cases where the parser will give a parse tree differing from what React
  30765. // intended. For example, <b><div></div></b> is invalid but we don't warn
  30766. // because it still parses correctly; we do warn for other cases like nested
  30767. // <p> tags where the beginning of the second element implicitly closes the
  30768. // first, causing a confusing mess.
  30769. // https://html.spec.whatwg.org/multipage/syntax.html#special
  30770. 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']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  30771. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  30772. // TODO: Distinguish by namespace here -- for <title>, including it here
  30773. // errs on the side of fewer warnings
  30774. 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  30775. var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  30776. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  30777. var emptyAncestorInfo = {
  30778. current: null,
  30779. formTag: null,
  30780. aTagInScope: null,
  30781. buttonTagInScope: null,
  30782. nobrTagInScope: null,
  30783. pTagInButtonScope: null,
  30784. listItemTagAutoclosing: null,
  30785. dlItemTagAutoclosing: null
  30786. };
  30787. updatedAncestorInfo = function (oldInfo, tag) {
  30788. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  30789. var info = {
  30790. tag: tag
  30791. };
  30792. if (inScopeTags.indexOf(tag) !== -1) {
  30793. ancestorInfo.aTagInScope = null;
  30794. ancestorInfo.buttonTagInScope = null;
  30795. ancestorInfo.nobrTagInScope = null;
  30796. }
  30797. if (buttonScopeTags.indexOf(tag) !== -1) {
  30798. ancestorInfo.pTagInButtonScope = null;
  30799. } // See rules for 'li', 'dd', 'dt' start tags in
  30800. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  30801. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  30802. ancestorInfo.listItemTagAutoclosing = null;
  30803. ancestorInfo.dlItemTagAutoclosing = null;
  30804. }
  30805. ancestorInfo.current = info;
  30806. if (tag === 'form') {
  30807. ancestorInfo.formTag = info;
  30808. }
  30809. if (tag === 'a') {
  30810. ancestorInfo.aTagInScope = info;
  30811. }
  30812. if (tag === 'button') {
  30813. ancestorInfo.buttonTagInScope = info;
  30814. }
  30815. if (tag === 'nobr') {
  30816. ancestorInfo.nobrTagInScope = info;
  30817. }
  30818. if (tag === 'p') {
  30819. ancestorInfo.pTagInButtonScope = info;
  30820. }
  30821. if (tag === 'li') {
  30822. ancestorInfo.listItemTagAutoclosing = info;
  30823. }
  30824. if (tag === 'dd' || tag === 'dt') {
  30825. ancestorInfo.dlItemTagAutoclosing = info;
  30826. }
  30827. return ancestorInfo;
  30828. };
  30829. /**
  30830. * Returns whether
  30831. */
  30832. var isTagValidWithParent = function (tag, parentTag) {
  30833. // First, let's check if we're in an unusual parsing mode...
  30834. switch (parentTag) {
  30835. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  30836. case 'select':
  30837. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  30838. case 'optgroup':
  30839. return tag === 'option' || tag === '#text';
  30840. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  30841. // but
  30842. case 'option':
  30843. return tag === '#text';
  30844. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  30845. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  30846. // No special behavior since these rules fall back to "in body" mode for
  30847. // all except special table nodes which cause bad parsing behavior anyway.
  30848. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  30849. case 'tr':
  30850. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  30851. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  30852. case 'tbody':
  30853. case 'thead':
  30854. case 'tfoot':
  30855. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  30856. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  30857. case 'colgroup':
  30858. return tag === 'col' || tag === 'template';
  30859. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  30860. case 'table':
  30861. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  30862. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  30863. case 'head':
  30864. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  30865. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  30866. case 'html':
  30867. return tag === 'head' || tag === 'body' || tag === 'frameset';
  30868. case 'frameset':
  30869. return tag === 'frame';
  30870. case '#document':
  30871. return tag === 'html';
  30872. } // Probably in the "in body" parsing mode, so we outlaw only tag combos
  30873. // where the parsing rules cause implicit opens or closes to be added.
  30874. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  30875. switch (tag) {
  30876. case 'h1':
  30877. case 'h2':
  30878. case 'h3':
  30879. case 'h4':
  30880. case 'h5':
  30881. case 'h6':
  30882. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  30883. case 'rp':
  30884. case 'rt':
  30885. return impliedEndTags.indexOf(parentTag) === -1;
  30886. case 'body':
  30887. case 'caption':
  30888. case 'col':
  30889. case 'colgroup':
  30890. case 'frameset':
  30891. case 'frame':
  30892. case 'head':
  30893. case 'html':
  30894. case 'tbody':
  30895. case 'td':
  30896. case 'tfoot':
  30897. case 'th':
  30898. case 'thead':
  30899. case 'tr':
  30900. // These tags are only valid with a few parents that have special child
  30901. // parsing rules -- if we're down here, then none of those matched and
  30902. // so we allow it only if we don't know what the parent is, as all other
  30903. // cases are invalid.
  30904. return parentTag == null;
  30905. }
  30906. return true;
  30907. };
  30908. /**
  30909. * Returns whether
  30910. */
  30911. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  30912. switch (tag) {
  30913. case 'address':
  30914. case 'article':
  30915. case 'aside':
  30916. case 'blockquote':
  30917. case 'center':
  30918. case 'details':
  30919. case 'dialog':
  30920. case 'dir':
  30921. case 'div':
  30922. case 'dl':
  30923. case 'fieldset':
  30924. case 'figcaption':
  30925. case 'figure':
  30926. case 'footer':
  30927. case 'header':
  30928. case 'hgroup':
  30929. case 'main':
  30930. case 'menu':
  30931. case 'nav':
  30932. case 'ol':
  30933. case 'p':
  30934. case 'section':
  30935. case 'summary':
  30936. case 'ul':
  30937. case 'pre':
  30938. case 'listing':
  30939. case 'table':
  30940. case 'hr':
  30941. case 'xmp':
  30942. case 'h1':
  30943. case 'h2':
  30944. case 'h3':
  30945. case 'h4':
  30946. case 'h5':
  30947. case 'h6':
  30948. return ancestorInfo.pTagInButtonScope;
  30949. case 'form':
  30950. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  30951. case 'li':
  30952. return ancestorInfo.listItemTagAutoclosing;
  30953. case 'dd':
  30954. case 'dt':
  30955. return ancestorInfo.dlItemTagAutoclosing;
  30956. case 'button':
  30957. return ancestorInfo.buttonTagInScope;
  30958. case 'a':
  30959. // Spec says something about storing a list of markers, but it sounds
  30960. // equivalent to this check.
  30961. return ancestorInfo.aTagInScope;
  30962. case 'nobr':
  30963. return ancestorInfo.nobrTagInScope;
  30964. }
  30965. return null;
  30966. };
  30967. var didWarn$1 = {};
  30968. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  30969. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  30970. var parentInfo = ancestorInfo.current;
  30971. var parentTag = parentInfo && parentInfo.tag;
  30972. if (childText != null) {
  30973. if (childTag != null) {
  30974. error('validateDOMNesting: when childText is passed, childTag should be null');
  30975. }
  30976. childTag = '#text';
  30977. }
  30978. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  30979. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  30980. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  30981. if (!invalidParentOrAncestor) {
  30982. return;
  30983. }
  30984. var ancestorTag = invalidParentOrAncestor.tag;
  30985. var addendum = getCurrentFiberStackInDev();
  30986. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  30987. if (didWarn$1[warnKey]) {
  30988. return;
  30989. }
  30990. didWarn$1[warnKey] = true;
  30991. var tagDisplayName = childTag;
  30992. var whitespaceInfo = '';
  30993. if (childTag === '#text') {
  30994. if (/\S/.test(childText)) {
  30995. tagDisplayName = 'Text nodes';
  30996. } else {
  30997. tagDisplayName = 'Whitespace text nodes';
  30998. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  30999. }
  31000. } else {
  31001. tagDisplayName = '<' + childTag + '>';
  31002. }
  31003. if (invalidParent) {
  31004. var info = '';
  31005. if (ancestorTag === 'table' && childTag === 'tr') {
  31006. info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
  31007. }
  31008. error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
  31009. } else {
  31010. error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
  31011. }
  31012. };
  31013. }
  31014. var SUPPRESS_HYDRATION_WARNING$1;
  31015. {
  31016. SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  31017. }
  31018. var SUSPENSE_START_DATA = '$';
  31019. var SUSPENSE_END_DATA = '/$';
  31020. var SUSPENSE_PENDING_START_DATA = '$?';
  31021. var SUSPENSE_FALLBACK_START_DATA = '$!';
  31022. var STYLE$1 = 'style';
  31023. var eventsEnabled = null;
  31024. var selectionInformation = null;
  31025. function shouldAutoFocusHostComponent(type, props) {
  31026. switch (type) {
  31027. case 'button':
  31028. case 'input':
  31029. case 'select':
  31030. case 'textarea':
  31031. return !!props.autoFocus;
  31032. }
  31033. return false;
  31034. }
  31035. function getRootHostContext(rootContainerInstance) {
  31036. var type;
  31037. var namespace;
  31038. var nodeType = rootContainerInstance.nodeType;
  31039. switch (nodeType) {
  31040. case DOCUMENT_NODE:
  31041. case DOCUMENT_FRAGMENT_NODE:
  31042. {
  31043. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  31044. var root = rootContainerInstance.documentElement;
  31045. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  31046. break;
  31047. }
  31048. default:
  31049. {
  31050. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  31051. var ownNamespace = container.namespaceURI || null;
  31052. type = container.tagName;
  31053. namespace = getChildNamespace(ownNamespace, type);
  31054. break;
  31055. }
  31056. }
  31057. {
  31058. var validatedTag = type.toLowerCase();
  31059. var ancestorInfo = updatedAncestorInfo(null, validatedTag);
  31060. return {
  31061. namespace: namespace,
  31062. ancestorInfo: ancestorInfo
  31063. };
  31064. }
  31065. }
  31066. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  31067. {
  31068. var parentHostContextDev = parentHostContext;
  31069. var namespace = getChildNamespace(parentHostContextDev.namespace, type);
  31070. var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  31071. return {
  31072. namespace: namespace,
  31073. ancestorInfo: ancestorInfo
  31074. };
  31075. }
  31076. }
  31077. function getPublicInstance(instance) {
  31078. return instance;
  31079. }
  31080. function prepareForCommit(containerInfo) {
  31081. eventsEnabled = isEnabled();
  31082. selectionInformation = getSelectionInformation();
  31083. setEnabled(false);
  31084. }
  31085. function resetAfterCommit(containerInfo) {
  31086. restoreSelection(selectionInformation);
  31087. setEnabled(eventsEnabled);
  31088. eventsEnabled = null;
  31089. selectionInformation = null;
  31090. }
  31091. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  31092. var parentNamespace;
  31093. {
  31094. // TODO: take namespace into account when validating.
  31095. var hostContextDev = hostContext;
  31096. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  31097. if (typeof props.children === 'string' || typeof props.children === 'number') {
  31098. var string = '' + props.children;
  31099. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  31100. validateDOMNesting(null, string, ownAncestorInfo);
  31101. }
  31102. parentNamespace = hostContextDev.namespace;
  31103. }
  31104. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  31105. precacheFiberNode(internalInstanceHandle, domElement);
  31106. updateFiberProps(domElement, props);
  31107. return domElement;
  31108. }
  31109. function appendInitialChild(parentInstance, child) {
  31110. parentInstance.appendChild(child);
  31111. }
  31112. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  31113. setInitialProperties(domElement, type, props, rootContainerInstance);
  31114. return shouldAutoFocusHostComponent(type, props);
  31115. }
  31116. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  31117. {
  31118. var hostContextDev = hostContext;
  31119. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  31120. var string = '' + newProps.children;
  31121. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  31122. validateDOMNesting(null, string, ownAncestorInfo);
  31123. }
  31124. }
  31125. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  31126. }
  31127. function shouldSetTextContent(type, props) {
  31128. 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;
  31129. }
  31130. function shouldDeprioritizeSubtree(type, props) {
  31131. return !!props.hidden;
  31132. }
  31133. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  31134. {
  31135. var hostContextDev = hostContext;
  31136. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  31137. }
  31138. var textNode = createTextNode(text, rootContainerInstance);
  31139. precacheFiberNode(internalInstanceHandle, textNode);
  31140. return textNode;
  31141. }
  31142. // if a component just imports ReactDOM (e.g. for findDOMNode).
  31143. // Some environments might not have setTimeout or clearTimeout.
  31144. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  31145. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  31146. var noTimeout = -1; // -------------------
  31147. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  31148. // Despite the naming that might imply otherwise, this method only
  31149. // fires if there is an `Update` effect scheduled during mounting.
  31150. // This happens if `finalizeInitialChildren` returns `true` (which it
  31151. // does to implement the `autoFocus` attribute on the client). But
  31152. // there are also other cases when this might happen (such as patching
  31153. // up text content during hydration mismatch). So we'll check this again.
  31154. if (shouldAutoFocusHostComponent(type, newProps)) {
  31155. domElement.focus();
  31156. }
  31157. }
  31158. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  31159. // Update the props handle so that we know which props are the ones with
  31160. // with current event handlers.
  31161. updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.
  31162. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  31163. }
  31164. function resetTextContent(domElement) {
  31165. setTextContent(domElement, '');
  31166. }
  31167. function commitTextUpdate(textInstance, oldText, newText) {
  31168. textInstance.nodeValue = newText;
  31169. }
  31170. function appendChild(parentInstance, child) {
  31171. parentInstance.appendChild(child);
  31172. }
  31173. function appendChildToContainer(container, child) {
  31174. var parentNode;
  31175. if (container.nodeType === COMMENT_NODE) {
  31176. parentNode = container.parentNode;
  31177. parentNode.insertBefore(child, container);
  31178. } else {
  31179. parentNode = container;
  31180. parentNode.appendChild(child);
  31181. } // This container might be used for a portal.
  31182. // If something inside a portal is clicked, that click should bubble
  31183. // through the React tree. However, on Mobile Safari the click would
  31184. // never bubble through the *DOM* tree unless an ancestor with onclick
  31185. // event exists. So we wouldn't see it and dispatch it.
  31186. // This is why we ensure that non React root containers have inline onclick
  31187. // defined.
  31188. // https://github.com/facebook/react/issues/11918
  31189. var reactRootContainer = container._reactRootContainer;
  31190. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  31191. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  31192. trapClickOnNonInteractiveElement(parentNode);
  31193. }
  31194. }
  31195. function insertBefore(parentInstance, child, beforeChild) {
  31196. parentInstance.insertBefore(child, beforeChild);
  31197. }
  31198. function insertInContainerBefore(container, child, beforeChild) {
  31199. if (container.nodeType === COMMENT_NODE) {
  31200. container.parentNode.insertBefore(child, beforeChild);
  31201. } else {
  31202. container.insertBefore(child, beforeChild);
  31203. }
  31204. }
  31205. function removeChild(parentInstance, child) {
  31206. parentInstance.removeChild(child);
  31207. }
  31208. function removeChildFromContainer(container, child) {
  31209. if (container.nodeType === COMMENT_NODE) {
  31210. container.parentNode.removeChild(child);
  31211. } else {
  31212. container.removeChild(child);
  31213. }
  31214. }
  31215. function hideInstance(instance) {
  31216. // pass host context to this method?
  31217. instance = instance;
  31218. var style = instance.style;
  31219. if (typeof style.setProperty === 'function') {
  31220. style.setProperty('display', 'none', 'important');
  31221. } else {
  31222. style.display = 'none';
  31223. }
  31224. }
  31225. function hideTextInstance(textInstance) {
  31226. textInstance.nodeValue = '';
  31227. }
  31228. function unhideInstance(instance, props) {
  31229. instance = instance;
  31230. var styleProp = props[STYLE$1];
  31231. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  31232. instance.style.display = dangerousStyleValue('display', display);
  31233. }
  31234. function unhideTextInstance(textInstance, text) {
  31235. textInstance.nodeValue = text;
  31236. } // -------------------
  31237. function canHydrateInstance(instance, type, props) {
  31238. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  31239. return null;
  31240. } // This has now been refined to an element node.
  31241. return instance;
  31242. }
  31243. function canHydrateTextInstance(instance, text) {
  31244. if (text === '' || instance.nodeType !== TEXT_NODE) {
  31245. // Empty strings are not parsed by HTML so there won't be a correct match here.
  31246. return null;
  31247. } // This has now been refined to a text node.
  31248. return instance;
  31249. }
  31250. function isSuspenseInstancePending(instance) {
  31251. return instance.data === SUSPENSE_PENDING_START_DATA;
  31252. }
  31253. function isSuspenseInstanceFallback(instance) {
  31254. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  31255. }
  31256. function getNextHydratable(node) {
  31257. // Skip non-hydratable nodes.
  31258. for (; node != null; node = node.nextSibling) {
  31259. var nodeType = node.nodeType;
  31260. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  31261. break;
  31262. }
  31263. }
  31264. return node;
  31265. }
  31266. function getNextHydratableSibling(instance) {
  31267. return getNextHydratable(instance.nextSibling);
  31268. }
  31269. function getFirstHydratableChild(parentInstance) {
  31270. return getNextHydratable(parentInstance.firstChild);
  31271. }
  31272. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  31273. precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
  31274. // get attached.
  31275. updateFiberProps(instance, props);
  31276. var parentNamespace;
  31277. {
  31278. var hostContextDev = hostContext;
  31279. parentNamespace = hostContextDev.namespace;
  31280. }
  31281. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  31282. }
  31283. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  31284. precacheFiberNode(internalInstanceHandle, textInstance);
  31285. return diffHydratedText(textInstance, text);
  31286. }
  31287. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  31288. var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
  31289. // There might be nested nodes so we need to keep track of how
  31290. // deep we are and only break out when we're back on top.
  31291. var depth = 0;
  31292. while (node) {
  31293. if (node.nodeType === COMMENT_NODE) {
  31294. var data = node.data;
  31295. if (data === SUSPENSE_END_DATA) {
  31296. if (depth === 0) {
  31297. return getNextHydratableSibling(node);
  31298. } else {
  31299. depth--;
  31300. }
  31301. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
  31302. depth++;
  31303. }
  31304. }
  31305. node = node.nextSibling;
  31306. } // TODO: Warn, we didn't find the end comment boundary.
  31307. return null;
  31308. } // Returns the SuspenseInstance if this node is a direct child of a
  31309. // SuspenseInstance. I.e. if its previous sibling is a Comment with
  31310. // SUSPENSE_x_START_DATA. Otherwise, null.
  31311. function getParentSuspenseInstance(targetInstance) {
  31312. var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
  31313. // There might be nested nodes so we need to keep track of how
  31314. // deep we are and only break out when we're back on top.
  31315. var depth = 0;
  31316. while (node) {
  31317. if (node.nodeType === COMMENT_NODE) {
  31318. var data = node.data;
  31319. if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
  31320. if (depth === 0) {
  31321. return node;
  31322. } else {
  31323. depth--;
  31324. }
  31325. } else if (data === SUSPENSE_END_DATA) {
  31326. depth++;
  31327. }
  31328. }
  31329. node = node.previousSibling;
  31330. }
  31331. return null;
  31332. }
  31333. function commitHydratedContainer(container) {
  31334. // Retry if any event replaying was blocked on this.
  31335. retryIfBlockedOn(container);
  31336. }
  31337. function commitHydratedSuspenseInstance(suspenseInstance) {
  31338. // Retry if any event replaying was blocked on this.
  31339. retryIfBlockedOn(suspenseInstance);
  31340. }
  31341. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  31342. {
  31343. warnForUnmatchedText(textInstance, text);
  31344. }
  31345. }
  31346. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  31347. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  31348. warnForUnmatchedText(textInstance, text);
  31349. }
  31350. }
  31351. function didNotHydrateContainerInstance(parentContainer, instance) {
  31352. {
  31353. if (instance.nodeType === ELEMENT_NODE) {
  31354. warnForDeletedHydratableElement(parentContainer, instance);
  31355. } else if (instance.nodeType === COMMENT_NODE) ; else {
  31356. warnForDeletedHydratableText(parentContainer, instance);
  31357. }
  31358. }
  31359. }
  31360. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  31361. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  31362. if (instance.nodeType === ELEMENT_NODE) {
  31363. warnForDeletedHydratableElement(parentInstance, instance);
  31364. } else if (instance.nodeType === COMMENT_NODE) ; else {
  31365. warnForDeletedHydratableText(parentInstance, instance);
  31366. }
  31367. }
  31368. }
  31369. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  31370. {
  31371. warnForInsertedHydratedElement(parentContainer, type);
  31372. }
  31373. }
  31374. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  31375. {
  31376. warnForInsertedHydratedText(parentContainer, text);
  31377. }
  31378. }
  31379. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  31380. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  31381. warnForInsertedHydratedElement(parentInstance, type);
  31382. }
  31383. }
  31384. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  31385. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  31386. warnForInsertedHydratedText(parentInstance, text);
  31387. }
  31388. }
  31389. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  31390. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
  31391. }
  31392. var randomKey = Math.random().toString(36).slice(2);
  31393. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  31394. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  31395. var internalContainerInstanceKey = '__reactContainere$' + randomKey;
  31396. function precacheFiberNode(hostInst, node) {
  31397. node[internalInstanceKey] = hostInst;
  31398. }
  31399. function markContainerAsRoot(hostRoot, node) {
  31400. node[internalContainerInstanceKey] = hostRoot;
  31401. }
  31402. function unmarkContainerAsRoot(node) {
  31403. node[internalContainerInstanceKey] = null;
  31404. }
  31405. function isContainerMarkedAsRoot(node) {
  31406. return !!node[internalContainerInstanceKey];
  31407. } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
  31408. // If the target node is part of a hydrated or not yet rendered subtree, then
  31409. // this may also return a SuspenseComponent or HostRoot to indicate that.
  31410. // Conceptually the HostRoot fiber is a child of the Container node. So if you
  31411. // pass the Container node as the targetNode, you will not actually get the
  31412. // HostRoot back. To get to the HostRoot, you need to pass a child of it.
  31413. // The same thing applies to Suspense boundaries.
  31414. function getClosestInstanceFromNode(targetNode) {
  31415. var targetInst = targetNode[internalInstanceKey];
  31416. if (targetInst) {
  31417. // Don't return HostRoot or SuspenseComponent here.
  31418. return targetInst;
  31419. } // If the direct event target isn't a React owned DOM node, we need to look
  31420. // to see if one of its parents is a React owned DOM node.
  31421. var parentNode = targetNode.parentNode;
  31422. while (parentNode) {
  31423. // We'll check if this is a container root that could include
  31424. // React nodes in the future. We need to check this first because
  31425. // if we're a child of a dehydrated container, we need to first
  31426. // find that inner container before moving on to finding the parent
  31427. // instance. Note that we don't check this field on the targetNode
  31428. // itself because the fibers are conceptually between the container
  31429. // node and the first child. It isn't surrounding the container node.
  31430. // If it's not a container, we check if it's an instance.
  31431. targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];
  31432. if (targetInst) {
  31433. // Since this wasn't the direct target of the event, we might have
  31434. // stepped past dehydrated DOM nodes to get here. However they could
  31435. // also have been non-React nodes. We need to answer which one.
  31436. // If we the instance doesn't have any children, then there can't be
  31437. // a nested suspense boundary within it. So we can use this as a fast
  31438. // bailout. Most of the time, when people add non-React children to
  31439. // the tree, it is using a ref to a child-less DOM node.
  31440. // Normally we'd only need to check one of the fibers because if it
  31441. // has ever gone from having children to deleting them or vice versa
  31442. // it would have deleted the dehydrated boundary nested inside already.
  31443. // However, since the HostRoot starts out with an alternate it might
  31444. // have one on the alternate so we need to check in case this was a
  31445. // root.
  31446. var alternate = targetInst.alternate;
  31447. if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
  31448. // Next we need to figure out if the node that skipped past is
  31449. // nested within a dehydrated boundary and if so, which one.
  31450. var suspenseInstance = getParentSuspenseInstance(targetNode);
  31451. while (suspenseInstance !== null) {
  31452. // We found a suspense instance. That means that we haven't
  31453. // hydrated it yet. Even though we leave the comments in the
  31454. // DOM after hydrating, and there are boundaries in the DOM
  31455. // that could already be hydrated, we wouldn't have found them
  31456. // through this pass since if the target is hydrated it would
  31457. // have had an internalInstanceKey on it.
  31458. // Let's get the fiber associated with the SuspenseComponent
  31459. // as the deepest instance.
  31460. var targetSuspenseInst = suspenseInstance[internalInstanceKey];
  31461. if (targetSuspenseInst) {
  31462. return targetSuspenseInst;
  31463. } // If we don't find a Fiber on the comment, it might be because
  31464. // we haven't gotten to hydrate it yet. There might still be a
  31465. // parent boundary that hasn't above this one so we need to find
  31466. // the outer most that is known.
  31467. suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
  31468. // host component also hasn't hydrated yet. We can return it
  31469. // below since it will bail out on the isMounted check later.
  31470. }
  31471. }
  31472. return targetInst;
  31473. }
  31474. targetNode = parentNode;
  31475. parentNode = targetNode.parentNode;
  31476. }
  31477. return null;
  31478. }
  31479. /**
  31480. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  31481. * instance, or null if the node was not rendered by this React.
  31482. */
  31483. function getInstanceFromNode$1(node) {
  31484. var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
  31485. if (inst) {
  31486. if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
  31487. return inst;
  31488. } else {
  31489. return null;
  31490. }
  31491. }
  31492. return null;
  31493. }
  31494. /**
  31495. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  31496. * DOM node.
  31497. */
  31498. function getNodeFromInstance$1(inst) {
  31499. if (inst.tag === HostComponent || inst.tag === HostText) {
  31500. // In Fiber this, is just the state node right now. We assume it will be
  31501. // a host component or host text.
  31502. return inst.stateNode;
  31503. } // Without this first invariant, passing a non-DOM-component triggers the next
  31504. // invariant for a missing parent, which is super confusing.
  31505. {
  31506. {
  31507. throw Error( "getNodeFromInstance: Invalid argument." );
  31508. }
  31509. }
  31510. }
  31511. function getFiberCurrentPropsFromNode$1(node) {
  31512. return node[internalEventHandlersKey] || null;
  31513. }
  31514. function updateFiberProps(node, props) {
  31515. node[internalEventHandlersKey] = props;
  31516. }
  31517. function getParent(inst) {
  31518. do {
  31519. inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
  31520. // That is depending on if we want nested subtrees (layers) to bubble
  31521. // events to their parent. We could also go through parentNode on the
  31522. // host node but that wouldn't work for React Native and doesn't let us
  31523. // do the portal feature.
  31524. } while (inst && inst.tag !== HostComponent);
  31525. if (inst) {
  31526. return inst;
  31527. }
  31528. return null;
  31529. }
  31530. /**
  31531. * Return the lowest common ancestor of A and B, or null if they are in
  31532. * different trees.
  31533. */
  31534. function getLowestCommonAncestor(instA, instB) {
  31535. var depthA = 0;
  31536. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  31537. depthA++;
  31538. }
  31539. var depthB = 0;
  31540. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  31541. depthB++;
  31542. } // If A is deeper, crawl up.
  31543. while (depthA - depthB > 0) {
  31544. instA = getParent(instA);
  31545. depthA--;
  31546. } // If B is deeper, crawl up.
  31547. while (depthB - depthA > 0) {
  31548. instB = getParent(instB);
  31549. depthB--;
  31550. } // Walk in lockstep until we find a match.
  31551. var depth = depthA;
  31552. while (depth--) {
  31553. if (instA === instB || instA === instB.alternate) {
  31554. return instA;
  31555. }
  31556. instA = getParent(instA);
  31557. instB = getParent(instB);
  31558. }
  31559. return null;
  31560. }
  31561. /**
  31562. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  31563. */
  31564. function traverseTwoPhase(inst, fn, arg) {
  31565. var path = [];
  31566. while (inst) {
  31567. path.push(inst);
  31568. inst = getParent(inst);
  31569. }
  31570. var i;
  31571. for (i = path.length; i-- > 0;) {
  31572. fn(path[i], 'captured', arg);
  31573. }
  31574. for (i = 0; i < path.length; i++) {
  31575. fn(path[i], 'bubbled', arg);
  31576. }
  31577. }
  31578. /**
  31579. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  31580. * should would receive a `mouseEnter` or `mouseLeave` event.
  31581. *
  31582. * Does not invoke the callback on the nearest common ancestor because nothing
  31583. * "entered" or "left" that element.
  31584. */
  31585. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  31586. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  31587. var pathFrom = [];
  31588. while (true) {
  31589. if (!from) {
  31590. break;
  31591. }
  31592. if (from === common) {
  31593. break;
  31594. }
  31595. var alternate = from.alternate;
  31596. if (alternate !== null && alternate === common) {
  31597. break;
  31598. }
  31599. pathFrom.push(from);
  31600. from = getParent(from);
  31601. }
  31602. var pathTo = [];
  31603. while (true) {
  31604. if (!to) {
  31605. break;
  31606. }
  31607. if (to === common) {
  31608. break;
  31609. }
  31610. var _alternate = to.alternate;
  31611. if (_alternate !== null && _alternate === common) {
  31612. break;
  31613. }
  31614. pathTo.push(to);
  31615. to = getParent(to);
  31616. }
  31617. for (var i = 0; i < pathFrom.length; i++) {
  31618. fn(pathFrom[i], 'bubbled', argFrom);
  31619. }
  31620. for (var _i = pathTo.length; _i-- > 0;) {
  31621. fn(pathTo[_i], 'captured', argTo);
  31622. }
  31623. }
  31624. function isInteractive(tag) {
  31625. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  31626. }
  31627. function shouldPreventMouseEvent(name, type, props) {
  31628. switch (name) {
  31629. case 'onClick':
  31630. case 'onClickCapture':
  31631. case 'onDoubleClick':
  31632. case 'onDoubleClickCapture':
  31633. case 'onMouseDown':
  31634. case 'onMouseDownCapture':
  31635. case 'onMouseMove':
  31636. case 'onMouseMoveCapture':
  31637. case 'onMouseUp':
  31638. case 'onMouseUpCapture':
  31639. case 'onMouseEnter':
  31640. return !!(props.disabled && isInteractive(type));
  31641. default:
  31642. return false;
  31643. }
  31644. }
  31645. /**
  31646. * @param {object} inst The instance, which is the source of events.
  31647. * @param {string} registrationName Name of listener (e.g. `onClick`).
  31648. * @return {?function} The stored callback.
  31649. */
  31650. function getListener(inst, registrationName) {
  31651. var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  31652. // live here; needs to be moved to a better place soon
  31653. var stateNode = inst.stateNode;
  31654. if (!stateNode) {
  31655. // Work in progress (ex: onload events in incremental mode).
  31656. return null;
  31657. }
  31658. var props = getFiberCurrentPropsFromNode(stateNode);
  31659. if (!props) {
  31660. // Work in progress.
  31661. return null;
  31662. }
  31663. listener = props[registrationName];
  31664. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  31665. return null;
  31666. }
  31667. if (!(!listener || typeof listener === 'function')) {
  31668. {
  31669. throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
  31670. }
  31671. }
  31672. return listener;
  31673. }
  31674. /**
  31675. * Some event types have a notion of different registration names for different
  31676. * "phases" of propagation. This finds listeners by a given phase.
  31677. */
  31678. function listenerAtPhase(inst, event, propagationPhase) {
  31679. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  31680. return getListener(inst, registrationName);
  31681. }
  31682. /**
  31683. * A small set of propagation patterns, each of which will accept a small amount
  31684. * of information, and generate a set of "dispatch ready event objects" - which
  31685. * are sets of events that have already been annotated with a set of dispatched
  31686. * listener functions/ids. The API is designed this way to discourage these
  31687. * propagation strategies from actually executing the dispatches, since we
  31688. * always want to collect the entire set of dispatches before executing even a
  31689. * single one.
  31690. */
  31691. /**
  31692. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  31693. * here, allows us to not have to bind or create functions for each event.
  31694. * Mutating the event's members allows us to not have to create a wrapping
  31695. * "dispatch" object that pairs the event with the listener.
  31696. */
  31697. function accumulateDirectionalDispatches(inst, phase, event) {
  31698. {
  31699. if (!inst) {
  31700. error('Dispatching inst must not be null');
  31701. }
  31702. }
  31703. var listener = listenerAtPhase(inst, event, phase);
  31704. if (listener) {
  31705. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  31706. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  31707. }
  31708. }
  31709. /**
  31710. * Collect dispatches (must be entirely collected before dispatching - see unit
  31711. * tests). Lazily allocate the array to conserve memory. We must loop through
  31712. * each event and perform the traversal for each one. We cannot perform a
  31713. * single traversal for the entire collection of events because each event may
  31714. * have a different target.
  31715. */
  31716. function accumulateTwoPhaseDispatchesSingle(event) {
  31717. if (event && event.dispatchConfig.phasedRegistrationNames) {
  31718. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  31719. }
  31720. }
  31721. /**
  31722. * Accumulates without regard to direction, does not look for phased
  31723. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  31724. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  31725. */
  31726. function accumulateDispatches(inst, ignoredDirection, event) {
  31727. if (inst && event && event.dispatchConfig.registrationName) {
  31728. var registrationName = event.dispatchConfig.registrationName;
  31729. var listener = getListener(inst, registrationName);
  31730. if (listener) {
  31731. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  31732. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  31733. }
  31734. }
  31735. }
  31736. /**
  31737. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  31738. * `dispatchMarker`.
  31739. * @param {SyntheticEvent} event
  31740. */
  31741. function accumulateDirectDispatchesSingle(event) {
  31742. if (event && event.dispatchConfig.registrationName) {
  31743. accumulateDispatches(event._targetInst, null, event);
  31744. }
  31745. }
  31746. function accumulateTwoPhaseDispatches(events) {
  31747. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  31748. }
  31749. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  31750. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  31751. }
  31752. function accumulateDirectDispatches(events) {
  31753. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  31754. }
  31755. /**
  31756. * These variables store information about text content of a target node,
  31757. * allowing comparison of content before and after a given event.
  31758. *
  31759. * Identify the node where selection currently begins, then observe
  31760. * both its text content and its current position in the DOM. Since the
  31761. * browser may natively replace the target node during composition, we can
  31762. * use its position to find its replacement.
  31763. *
  31764. *
  31765. */
  31766. var root = null;
  31767. var startText = null;
  31768. var fallbackText = null;
  31769. function initialize(nativeEventTarget) {
  31770. root = nativeEventTarget;
  31771. startText = getText();
  31772. return true;
  31773. }
  31774. function reset() {
  31775. root = null;
  31776. startText = null;
  31777. fallbackText = null;
  31778. }
  31779. function getData() {
  31780. if (fallbackText) {
  31781. return fallbackText;
  31782. }
  31783. var start;
  31784. var startValue = startText;
  31785. var startLength = startValue.length;
  31786. var end;
  31787. var endValue = getText();
  31788. var endLength = endValue.length;
  31789. for (start = 0; start < startLength; start++) {
  31790. if (startValue[start] !== endValue[start]) {
  31791. break;
  31792. }
  31793. }
  31794. var minEnd = startLength - start;
  31795. for (end = 1; end <= minEnd; end++) {
  31796. if (startValue[startLength - end] !== endValue[endLength - end]) {
  31797. break;
  31798. }
  31799. }
  31800. var sliceTail = end > 1 ? 1 - end : undefined;
  31801. fallbackText = endValue.slice(start, sliceTail);
  31802. return fallbackText;
  31803. }
  31804. function getText() {
  31805. if ('value' in root) {
  31806. return root.value;
  31807. }
  31808. return root.textContent;
  31809. }
  31810. var EVENT_POOL_SIZE = 10;
  31811. /**
  31812. * @interface Event
  31813. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  31814. */
  31815. var EventInterface = {
  31816. type: null,
  31817. target: null,
  31818. // currentTarget is set when dispatching; no use in copying it here
  31819. currentTarget: function () {
  31820. return null;
  31821. },
  31822. eventPhase: null,
  31823. bubbles: null,
  31824. cancelable: null,
  31825. timeStamp: function (event) {
  31826. return event.timeStamp || Date.now();
  31827. },
  31828. defaultPrevented: null,
  31829. isTrusted: null
  31830. };
  31831. function functionThatReturnsTrue() {
  31832. return true;
  31833. }
  31834. function functionThatReturnsFalse() {
  31835. return false;
  31836. }
  31837. /**
  31838. * Synthetic events are dispatched by event plugins, typically in response to a
  31839. * top-level event delegation handler.
  31840. *
  31841. * These systems should generally use pooling to reduce the frequency of garbage
  31842. * collection. The system should check `isPersistent` to determine whether the
  31843. * event should be released into the pool after being dispatched. Users that
  31844. * need a persisted event should invoke `persist`.
  31845. *
  31846. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  31847. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  31848. * DOM interface; custom application-specific events can also subclass this.
  31849. *
  31850. * @param {object} dispatchConfig Configuration used to dispatch this event.
  31851. * @param {*} targetInst Marker identifying the event target.
  31852. * @param {object} nativeEvent Native browser event.
  31853. * @param {DOMEventTarget} nativeEventTarget Target node.
  31854. */
  31855. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  31856. {
  31857. // these have a getter/setter for warnings
  31858. delete this.nativeEvent;
  31859. delete this.preventDefault;
  31860. delete this.stopPropagation;
  31861. delete this.isDefaultPrevented;
  31862. delete this.isPropagationStopped;
  31863. }
  31864. this.dispatchConfig = dispatchConfig;
  31865. this._targetInst = targetInst;
  31866. this.nativeEvent = nativeEvent;
  31867. var Interface = this.constructor.Interface;
  31868. for (var propName in Interface) {
  31869. if (!Interface.hasOwnProperty(propName)) {
  31870. continue;
  31871. }
  31872. {
  31873. delete this[propName]; // this has a getter/setter for warnings
  31874. }
  31875. var normalize = Interface[propName];
  31876. if (normalize) {
  31877. this[propName] = normalize(nativeEvent);
  31878. } else {
  31879. if (propName === 'target') {
  31880. this.target = nativeEventTarget;
  31881. } else {
  31882. this[propName] = nativeEvent[propName];
  31883. }
  31884. }
  31885. }
  31886. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  31887. if (defaultPrevented) {
  31888. this.isDefaultPrevented = functionThatReturnsTrue;
  31889. } else {
  31890. this.isDefaultPrevented = functionThatReturnsFalse;
  31891. }
  31892. this.isPropagationStopped = functionThatReturnsFalse;
  31893. return this;
  31894. }
  31895. _assign(SyntheticEvent.prototype, {
  31896. preventDefault: function () {
  31897. this.defaultPrevented = true;
  31898. var event = this.nativeEvent;
  31899. if (!event) {
  31900. return;
  31901. }
  31902. if (event.preventDefault) {
  31903. event.preventDefault();
  31904. } else if (typeof event.returnValue !== 'unknown') {
  31905. event.returnValue = false;
  31906. }
  31907. this.isDefaultPrevented = functionThatReturnsTrue;
  31908. },
  31909. stopPropagation: function () {
  31910. var event = this.nativeEvent;
  31911. if (!event) {
  31912. return;
  31913. }
  31914. if (event.stopPropagation) {
  31915. event.stopPropagation();
  31916. } else if (typeof event.cancelBubble !== 'unknown') {
  31917. // The ChangeEventPlugin registers a "propertychange" event for
  31918. // IE. This event does not support bubbling or cancelling, and
  31919. // any references to cancelBubble throw "Member not found". A
  31920. // typeof check of "unknown" circumvents this issue (and is also
  31921. // IE specific).
  31922. event.cancelBubble = true;
  31923. }
  31924. this.isPropagationStopped = functionThatReturnsTrue;
  31925. },
  31926. /**
  31927. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  31928. * them back into the pool. This allows a way to hold onto a reference that
  31929. * won't be added back into the pool.
  31930. */
  31931. persist: function () {
  31932. this.isPersistent = functionThatReturnsTrue;
  31933. },
  31934. /**
  31935. * Checks if this event should be released back into the pool.
  31936. *
  31937. * @return {boolean} True if this should not be released, false otherwise.
  31938. */
  31939. isPersistent: functionThatReturnsFalse,
  31940. /**
  31941. * `PooledClass` looks for `destructor` on each instance it releases.
  31942. */
  31943. destructor: function () {
  31944. var Interface = this.constructor.Interface;
  31945. for (var propName in Interface) {
  31946. {
  31947. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  31948. }
  31949. }
  31950. this.dispatchConfig = null;
  31951. this._targetInst = null;
  31952. this.nativeEvent = null;
  31953. this.isDefaultPrevented = functionThatReturnsFalse;
  31954. this.isPropagationStopped = functionThatReturnsFalse;
  31955. this._dispatchListeners = null;
  31956. this._dispatchInstances = null;
  31957. {
  31958. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  31959. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  31960. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  31961. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  31962. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  31963. }
  31964. }
  31965. });
  31966. SyntheticEvent.Interface = EventInterface;
  31967. /**
  31968. * Helper to reduce boilerplate when creating subclasses.
  31969. */
  31970. SyntheticEvent.extend = function (Interface) {
  31971. var Super = this;
  31972. var E = function () {};
  31973. E.prototype = Super.prototype;
  31974. var prototype = new E();
  31975. function Class() {
  31976. return Super.apply(this, arguments);
  31977. }
  31978. _assign(prototype, Class.prototype);
  31979. Class.prototype = prototype;
  31980. Class.prototype.constructor = Class;
  31981. Class.Interface = _assign({}, Super.Interface, Interface);
  31982. Class.extend = Super.extend;
  31983. addEventPoolingTo(Class);
  31984. return Class;
  31985. };
  31986. addEventPoolingTo(SyntheticEvent);
  31987. /**
  31988. * Helper to nullify syntheticEvent instance properties when destructing
  31989. *
  31990. * @param {String} propName
  31991. * @param {?object} getVal
  31992. * @return {object} defineProperty object
  31993. */
  31994. function getPooledWarningPropertyDefinition(propName, getVal) {
  31995. var isFunction = typeof getVal === 'function';
  31996. return {
  31997. configurable: true,
  31998. set: set,
  31999. get: get
  32000. };
  32001. function set(val) {
  32002. var action = isFunction ? 'setting the method' : 'setting the property';
  32003. warn(action, 'This is effectively a no-op');
  32004. return val;
  32005. }
  32006. function get() {
  32007. var action = isFunction ? 'accessing the method' : 'accessing the property';
  32008. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  32009. warn(action, result);
  32010. return getVal;
  32011. }
  32012. function warn(action, result) {
  32013. {
  32014. error("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);
  32015. }
  32016. }
  32017. }
  32018. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  32019. var EventConstructor = this;
  32020. if (EventConstructor.eventPool.length) {
  32021. var instance = EventConstructor.eventPool.pop();
  32022. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  32023. return instance;
  32024. }
  32025. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  32026. }
  32027. function releasePooledEvent(event) {
  32028. var EventConstructor = this;
  32029. if (!(event instanceof EventConstructor)) {
  32030. {
  32031. throw Error( "Trying to release an event instance into a pool of a different type." );
  32032. }
  32033. }
  32034. event.destructor();
  32035. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  32036. EventConstructor.eventPool.push(event);
  32037. }
  32038. }
  32039. function addEventPoolingTo(EventConstructor) {
  32040. EventConstructor.eventPool = [];
  32041. EventConstructor.getPooled = getPooledEvent;
  32042. EventConstructor.release = releasePooledEvent;
  32043. }
  32044. /**
  32045. * @interface Event
  32046. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  32047. */
  32048. var SyntheticCompositionEvent = SyntheticEvent.extend({
  32049. data: null
  32050. });
  32051. /**
  32052. * @interface Event
  32053. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  32054. * /#events-inputevents
  32055. */
  32056. var SyntheticInputEvent = SyntheticEvent.extend({
  32057. data: null
  32058. });
  32059. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  32060. var START_KEYCODE = 229;
  32061. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  32062. var documentMode = null;
  32063. if (canUseDOM && 'documentMode' in document) {
  32064. documentMode = document.documentMode;
  32065. } // Webkit offers a very useful `textInput` event that can be used to
  32066. // directly represent `beforeInput`. The IE `textinput` event is not as
  32067. // useful, so we don't use it.
  32068. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
  32069. // by the native compositionend event may be incorrect. Japanese ideographic
  32070. // spaces, for instance (\u3000) are not recorded correctly.
  32071. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  32072. var SPACEBAR_CODE = 32;
  32073. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names.
  32074. var eventTypes = {
  32075. beforeInput: {
  32076. phasedRegistrationNames: {
  32077. bubbled: 'onBeforeInput',
  32078. captured: 'onBeforeInputCapture'
  32079. },
  32080. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  32081. },
  32082. compositionEnd: {
  32083. phasedRegistrationNames: {
  32084. bubbled: 'onCompositionEnd',
  32085. captured: 'onCompositionEndCapture'
  32086. },
  32087. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  32088. },
  32089. compositionStart: {
  32090. phasedRegistrationNames: {
  32091. bubbled: 'onCompositionStart',
  32092. captured: 'onCompositionStartCapture'
  32093. },
  32094. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  32095. },
  32096. compositionUpdate: {
  32097. phasedRegistrationNames: {
  32098. bubbled: 'onCompositionUpdate',
  32099. captured: 'onCompositionUpdateCapture'
  32100. },
  32101. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  32102. }
  32103. }; // Track whether we've ever handled a keypress on the space key.
  32104. var hasSpaceKeypress = false;
  32105. /**
  32106. * Return whether a native keypress event is assumed to be a command.
  32107. * This is required because Firefox fires `keypress` events for key commands
  32108. * (cut, copy, select-all, etc.) even though no character is inserted.
  32109. */
  32110. function isKeypressCommand(nativeEvent) {
  32111. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  32112. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  32113. }
  32114. /**
  32115. * Translate native top level events into event types.
  32116. *
  32117. * @param {string} topLevelType
  32118. * @return {object}
  32119. */
  32120. function getCompositionEventType(topLevelType) {
  32121. switch (topLevelType) {
  32122. case TOP_COMPOSITION_START:
  32123. return eventTypes.compositionStart;
  32124. case TOP_COMPOSITION_END:
  32125. return eventTypes.compositionEnd;
  32126. case TOP_COMPOSITION_UPDATE:
  32127. return eventTypes.compositionUpdate;
  32128. }
  32129. }
  32130. /**
  32131. * Does our fallback best-guess model think this event signifies that
  32132. * composition has begun?
  32133. *
  32134. * @param {string} topLevelType
  32135. * @param {object} nativeEvent
  32136. * @return {boolean}
  32137. */
  32138. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  32139. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  32140. }
  32141. /**
  32142. * Does our fallback mode think that this event is the end of composition?
  32143. *
  32144. * @param {string} topLevelType
  32145. * @param {object} nativeEvent
  32146. * @return {boolean}
  32147. */
  32148. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  32149. switch (topLevelType) {
  32150. case TOP_KEY_UP:
  32151. // Command keys insert or clear IME input.
  32152. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  32153. case TOP_KEY_DOWN:
  32154. // Expect IME keyCode on each keydown. If we get any other
  32155. // code we must have exited earlier.
  32156. return nativeEvent.keyCode !== START_KEYCODE;
  32157. case TOP_KEY_PRESS:
  32158. case TOP_MOUSE_DOWN:
  32159. case TOP_BLUR:
  32160. // Events are not possible without cancelling IME.
  32161. return true;
  32162. default:
  32163. return false;
  32164. }
  32165. }
  32166. /**
  32167. * Google Input Tools provides composition data via a CustomEvent,
  32168. * with the `data` property populated in the `detail` object. If this
  32169. * is available on the event object, use it. If not, this is a plain
  32170. * composition event and we have nothing special to extract.
  32171. *
  32172. * @param {object} nativeEvent
  32173. * @return {?string}
  32174. */
  32175. function getDataFromCustomEvent(nativeEvent) {
  32176. var detail = nativeEvent.detail;
  32177. if (typeof detail === 'object' && 'data' in detail) {
  32178. return detail.data;
  32179. }
  32180. return null;
  32181. }
  32182. /**
  32183. * Check if a composition event was triggered by Korean IME.
  32184. * Our fallback mode does not work well with IE's Korean IME,
  32185. * so just use native composition events when Korean IME is used.
  32186. * Although CompositionEvent.locale property is deprecated,
  32187. * it is available in IE, where our fallback mode is enabled.
  32188. *
  32189. * @param {object} nativeEvent
  32190. * @return {boolean}
  32191. */
  32192. function isUsingKoreanIME(nativeEvent) {
  32193. return nativeEvent.locale === 'ko';
  32194. } // Track the current IME composition status, if any.
  32195. var isComposing = false;
  32196. /**
  32197. * @return {?object} A SyntheticCompositionEvent.
  32198. */
  32199. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  32200. var eventType;
  32201. var fallbackData;
  32202. if (canUseCompositionEvent) {
  32203. eventType = getCompositionEventType(topLevelType);
  32204. } else if (!isComposing) {
  32205. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  32206. eventType = eventTypes.compositionStart;
  32207. }
  32208. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  32209. eventType = eventTypes.compositionEnd;
  32210. }
  32211. if (!eventType) {
  32212. return null;
  32213. }
  32214. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  32215. // The current composition is stored statically and must not be
  32216. // overwritten while composition continues.
  32217. if (!isComposing && eventType === eventTypes.compositionStart) {
  32218. isComposing = initialize(nativeEventTarget);
  32219. } else if (eventType === eventTypes.compositionEnd) {
  32220. if (isComposing) {
  32221. fallbackData = getData();
  32222. }
  32223. }
  32224. }
  32225. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  32226. if (fallbackData) {
  32227. // Inject data generated from fallback path into the synthetic event.
  32228. // This matches the property of native CompositionEventInterface.
  32229. event.data = fallbackData;
  32230. } else {
  32231. var customData = getDataFromCustomEvent(nativeEvent);
  32232. if (customData !== null) {
  32233. event.data = customData;
  32234. }
  32235. }
  32236. accumulateTwoPhaseDispatches(event);
  32237. return event;
  32238. }
  32239. /**
  32240. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  32241. * @param {object} nativeEvent Native browser event.
  32242. * @return {?string} The string corresponding to this `beforeInput` event.
  32243. */
  32244. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  32245. switch (topLevelType) {
  32246. case TOP_COMPOSITION_END:
  32247. return getDataFromCustomEvent(nativeEvent);
  32248. case TOP_KEY_PRESS:
  32249. /**
  32250. * If native `textInput` events are available, our goal is to make
  32251. * use of them. However, there is a special case: the spacebar key.
  32252. * In Webkit, preventing default on a spacebar `textInput` event
  32253. * cancels character insertion, but it *also* causes the browser
  32254. * to fall back to its default spacebar behavior of scrolling the
  32255. * page.
  32256. *
  32257. * Tracking at:
  32258. * https://code.google.com/p/chromium/issues/detail?id=355103
  32259. *
  32260. * To avoid this issue, use the keypress event as if no `textInput`
  32261. * event is available.
  32262. */
  32263. var which = nativeEvent.which;
  32264. if (which !== SPACEBAR_CODE) {
  32265. return null;
  32266. }
  32267. hasSpaceKeypress = true;
  32268. return SPACEBAR_CHAR;
  32269. case TOP_TEXT_INPUT:
  32270. // Record the characters to be added to the DOM.
  32271. var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
  32272. // it at the keypress level and bail immediately. Android Chrome
  32273. // doesn't give us keycodes, so we need to ignore it.
  32274. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  32275. return null;
  32276. }
  32277. return chars;
  32278. default:
  32279. // For other native event types, do nothing.
  32280. return null;
  32281. }
  32282. }
  32283. /**
  32284. * For browsers that do not provide the `textInput` event, extract the
  32285. * appropriate string to use for SyntheticInputEvent.
  32286. *
  32287. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  32288. * @param {object} nativeEvent Native browser event.
  32289. * @return {?string} The fallback string for this `beforeInput` event.
  32290. */
  32291. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  32292. // If we are currently composing (IME) and using a fallback to do so,
  32293. // try to extract the composed characters from the fallback object.
  32294. // If composition event is available, we extract a string only at
  32295. // compositionevent, otherwise extract it at fallback events.
  32296. if (isComposing) {
  32297. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  32298. var chars = getData();
  32299. reset();
  32300. isComposing = false;
  32301. return chars;
  32302. }
  32303. return null;
  32304. }
  32305. switch (topLevelType) {
  32306. case TOP_PASTE:
  32307. // If a paste event occurs after a keypress, throw out the input
  32308. // chars. Paste events should not lead to BeforeInput events.
  32309. return null;
  32310. case TOP_KEY_PRESS:
  32311. /**
  32312. * As of v27, Firefox may fire keypress events even when no character
  32313. * will be inserted. A few possibilities:
  32314. *
  32315. * - `which` is `0`. Arrow keys, Esc key, etc.
  32316. *
  32317. * - `which` is the pressed key code, but no char is available.
  32318. * Ex: 'AltGr + d` in Polish. There is no modified character for
  32319. * this key combination and no character is inserted into the
  32320. * document, but FF fires the keypress for char code `100` anyway.
  32321. * No `input` event will occur.
  32322. *
  32323. * - `which` is the pressed key code, but a command combination is
  32324. * being used. Ex: `Cmd+C`. No character is inserted, and no
  32325. * `input` event will occur.
  32326. */
  32327. if (!isKeypressCommand(nativeEvent)) {
  32328. // IE fires the `keypress` event when a user types an emoji via
  32329. // Touch keyboard of Windows. In such a case, the `char` property
  32330. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  32331. // is 2, the property `which` does not represent an emoji correctly.
  32332. // In such a case, we directly return the `char` property instead of
  32333. // using `which`.
  32334. if (nativeEvent.char && nativeEvent.char.length > 1) {
  32335. return nativeEvent.char;
  32336. } else if (nativeEvent.which) {
  32337. return String.fromCharCode(nativeEvent.which);
  32338. }
  32339. }
  32340. return null;
  32341. case TOP_COMPOSITION_END:
  32342. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  32343. default:
  32344. return null;
  32345. }
  32346. }
  32347. /**
  32348. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  32349. * `textInput` or fallback behavior.
  32350. *
  32351. * @return {?object} A SyntheticInputEvent.
  32352. */
  32353. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  32354. var chars;
  32355. if (canUseTextInputEvent) {
  32356. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  32357. } else {
  32358. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  32359. } // If no characters are being inserted, no BeforeInput event should
  32360. // be fired.
  32361. if (!chars) {
  32362. return null;
  32363. }
  32364. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  32365. event.data = chars;
  32366. accumulateTwoPhaseDispatches(event);
  32367. return event;
  32368. }
  32369. /**
  32370. * Create an `onBeforeInput` event to match
  32371. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  32372. *
  32373. * This event plugin is based on the native `textInput` event
  32374. * available in Chrome, Safari, Opera, and IE. This event fires after
  32375. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  32376. *
  32377. * `beforeInput` is spec'd but not implemented in any browsers, and
  32378. * the `input` event does not provide any useful information about what has
  32379. * actually been added, contrary to the spec. Thus, `textInput` is the best
  32380. * available event to identify the characters that have actually been inserted
  32381. * into the target node.
  32382. *
  32383. * This plugin is also responsible for emitting `composition` events, thus
  32384. * allowing us to share composition fallback code for both `beforeInput` and
  32385. * `composition` event types.
  32386. */
  32387. var BeforeInputEventPlugin = {
  32388. eventTypes: eventTypes,
  32389. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  32390. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  32391. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  32392. if (composition === null) {
  32393. return beforeInput;
  32394. }
  32395. if (beforeInput === null) {
  32396. return composition;
  32397. }
  32398. return [composition, beforeInput];
  32399. }
  32400. };
  32401. /**
  32402. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  32403. */
  32404. var supportedInputTypes = {
  32405. color: true,
  32406. date: true,
  32407. datetime: true,
  32408. 'datetime-local': true,
  32409. email: true,
  32410. month: true,
  32411. number: true,
  32412. password: true,
  32413. range: true,
  32414. search: true,
  32415. tel: true,
  32416. text: true,
  32417. time: true,
  32418. url: true,
  32419. week: true
  32420. };
  32421. function isTextInputElement(elem) {
  32422. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  32423. if (nodeName === 'input') {
  32424. return !!supportedInputTypes[elem.type];
  32425. }
  32426. if (nodeName === 'textarea') {
  32427. return true;
  32428. }
  32429. return false;
  32430. }
  32431. var eventTypes$1 = {
  32432. change: {
  32433. phasedRegistrationNames: {
  32434. bubbled: 'onChange',
  32435. captured: 'onChangeCapture'
  32436. },
  32437. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  32438. }
  32439. };
  32440. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  32441. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  32442. event.type = 'change'; // Flag this event loop as needing state restore.
  32443. enqueueStateRestore(target);
  32444. accumulateTwoPhaseDispatches(event);
  32445. return event;
  32446. }
  32447. /**
  32448. * For IE shims
  32449. */
  32450. var activeElement = null;
  32451. var activeElementInst = null;
  32452. /**
  32453. * SECTION: handle `change` event
  32454. */
  32455. function shouldUseChangeEvent(elem) {
  32456. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  32457. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  32458. }
  32459. function manualDispatchChangeEvent(nativeEvent) {
  32460. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
  32461. // other events and have it go through ReactBrowserEventEmitter. Since it
  32462. // doesn't, we manually listen for the events and so we have to enqueue and
  32463. // process the abstract event manually.
  32464. //
  32465. // Batching is necessary here in order to ensure that all event handlers run
  32466. // before the next rerender (including event handlers attached to ancestor
  32467. // elements instead of directly on the input). Without this, controlled
  32468. // components don't work properly in conjunction with event bubbling because
  32469. // the component is rerendered and the value reverted before all the event
  32470. // handlers can run. See https://github.com/facebook/react/issues/708.
  32471. batchedUpdates(runEventInBatch, event);
  32472. }
  32473. function runEventInBatch(event) {
  32474. runEventsInBatch(event);
  32475. }
  32476. function getInstIfValueChanged(targetInst) {
  32477. var targetNode = getNodeFromInstance$1(targetInst);
  32478. if (updateValueIfChanged(targetNode)) {
  32479. return targetInst;
  32480. }
  32481. }
  32482. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  32483. if (topLevelType === TOP_CHANGE) {
  32484. return targetInst;
  32485. }
  32486. }
  32487. /**
  32488. * SECTION: handle `input` event
  32489. */
  32490. var isInputEventSupported = false;
  32491. if (canUseDOM) {
  32492. // IE9 claims to support the input event but fails to trigger it when
  32493. // deleting text, so we ignore its input events.
  32494. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  32495. }
  32496. /**
  32497. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  32498. * and override the value property so that we can distinguish user events from
  32499. * value changes in JS.
  32500. */
  32501. function startWatchingForValueChange(target, targetInst) {
  32502. activeElement = target;
  32503. activeElementInst = targetInst;
  32504. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  32505. }
  32506. /**
  32507. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  32508. * if any exists.
  32509. */
  32510. function stopWatchingForValueChange() {
  32511. if (!activeElement) {
  32512. return;
  32513. }
  32514. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  32515. activeElement = null;
  32516. activeElementInst = null;
  32517. }
  32518. /**
  32519. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  32520. * the value of the active element has changed.
  32521. */
  32522. function handlePropertyChange(nativeEvent) {
  32523. if (nativeEvent.propertyName !== 'value') {
  32524. return;
  32525. }
  32526. if (getInstIfValueChanged(activeElementInst)) {
  32527. manualDispatchChangeEvent(nativeEvent);
  32528. }
  32529. }
  32530. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  32531. if (topLevelType === TOP_FOCUS) {
  32532. // In IE9, propertychange fires for most input events but is buggy and
  32533. // doesn't fire when text is deleted, but conveniently, selectionchange
  32534. // appears to fire in all of the remaining cases so we catch those and
  32535. // forward the event if the value has changed
  32536. // In either case, we don't want to call the event handler if the value
  32537. // is changed from JS so we redefine a setter for `.value` that updates
  32538. // our activeElementValue variable, allowing us to ignore those changes
  32539. //
  32540. // stopWatching() should be a noop here but we call it just in case we
  32541. // missed a blur event somehow.
  32542. stopWatchingForValueChange();
  32543. startWatchingForValueChange(target, targetInst);
  32544. } else if (topLevelType === TOP_BLUR) {
  32545. stopWatchingForValueChange();
  32546. }
  32547. } // For IE8 and IE9.
  32548. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  32549. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  32550. // On the selectionchange event, the target is just document which isn't
  32551. // helpful for us so just check activeElement instead.
  32552. //
  32553. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  32554. // propertychange on the first input event after setting `value` from a
  32555. // script and fires only keydown, keypress, keyup. Catching keyup usually
  32556. // gets it and catching keydown lets us fire an event for the first
  32557. // keystroke if user does a key repeat (it'll be a little delayed: right
  32558. // before the second keystroke). Other input methods (e.g., paste) seem to
  32559. // fire selectionchange normally.
  32560. return getInstIfValueChanged(activeElementInst);
  32561. }
  32562. }
  32563. /**
  32564. * SECTION: handle `click` event
  32565. */
  32566. function shouldUseClickEvent(elem) {
  32567. // Use the `click` event to detect changes to checkbox and radio inputs.
  32568. // This approach works across all browsers, whereas `change` does not fire
  32569. // until `blur` in IE8.
  32570. var nodeName = elem.nodeName;
  32571. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  32572. }
  32573. function getTargetInstForClickEvent(topLevelType, targetInst) {
  32574. if (topLevelType === TOP_CLICK) {
  32575. return getInstIfValueChanged(targetInst);
  32576. }
  32577. }
  32578. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  32579. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  32580. return getInstIfValueChanged(targetInst);
  32581. }
  32582. }
  32583. function handleControlledInputBlur(node) {
  32584. var state = node._wrapperState;
  32585. if (!state || !state.controlled || node.type !== 'number') {
  32586. return;
  32587. }
  32588. {
  32589. // If controlled, assign the value attribute to the current value on blur
  32590. setDefaultValue(node, 'number', node.value);
  32591. }
  32592. }
  32593. /**
  32594. * This plugin creates an `onChange` event that normalizes change events
  32595. * across form elements. This event fires at a time when it's possible to
  32596. * change the element's value without seeing a flicker.
  32597. *
  32598. * Supported elements are:
  32599. * - input (see `isTextInputElement`)
  32600. * - textarea
  32601. * - select
  32602. */
  32603. var ChangeEventPlugin = {
  32604. eventTypes: eventTypes$1,
  32605. _isInputEventSupported: isInputEventSupported,
  32606. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  32607. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  32608. var getTargetInstFunc, handleEventFunc;
  32609. if (shouldUseChangeEvent(targetNode)) {
  32610. getTargetInstFunc = getTargetInstForChangeEvent;
  32611. } else if (isTextInputElement(targetNode)) {
  32612. if (isInputEventSupported) {
  32613. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  32614. } else {
  32615. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  32616. handleEventFunc = handleEventsForInputEventPolyfill;
  32617. }
  32618. } else if (shouldUseClickEvent(targetNode)) {
  32619. getTargetInstFunc = getTargetInstForClickEvent;
  32620. }
  32621. if (getTargetInstFunc) {
  32622. var inst = getTargetInstFunc(topLevelType, targetInst);
  32623. if (inst) {
  32624. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  32625. return event;
  32626. }
  32627. }
  32628. if (handleEventFunc) {
  32629. handleEventFunc(topLevelType, targetNode, targetInst);
  32630. } // When blurring, set the value attribute for number inputs
  32631. if (topLevelType === TOP_BLUR) {
  32632. handleControlledInputBlur(targetNode);
  32633. }
  32634. }
  32635. };
  32636. var SyntheticUIEvent = SyntheticEvent.extend({
  32637. view: null,
  32638. detail: null
  32639. });
  32640. /**
  32641. * Translation from modifier key to the associated property in the event.
  32642. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  32643. */
  32644. var modifierKeyToProp = {
  32645. Alt: 'altKey',
  32646. Control: 'ctrlKey',
  32647. Meta: 'metaKey',
  32648. Shift: 'shiftKey'
  32649. }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  32650. // getModifierState. If getModifierState is not supported, we map it to a set of
  32651. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  32652. function modifierStateGetter(keyArg) {
  32653. var syntheticEvent = this;
  32654. var nativeEvent = syntheticEvent.nativeEvent;
  32655. if (nativeEvent.getModifierState) {
  32656. return nativeEvent.getModifierState(keyArg);
  32657. }
  32658. var keyProp = modifierKeyToProp[keyArg];
  32659. return keyProp ? !!nativeEvent[keyProp] : false;
  32660. }
  32661. function getEventModifierState(nativeEvent) {
  32662. return modifierStateGetter;
  32663. }
  32664. var previousScreenX = 0;
  32665. var previousScreenY = 0; // Use flags to signal movementX/Y has already been set
  32666. var isMovementXSet = false;
  32667. var isMovementYSet = false;
  32668. /**
  32669. * @interface MouseEvent
  32670. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  32671. */
  32672. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  32673. screenX: null,
  32674. screenY: null,
  32675. clientX: null,
  32676. clientY: null,
  32677. pageX: null,
  32678. pageY: null,
  32679. ctrlKey: null,
  32680. shiftKey: null,
  32681. altKey: null,
  32682. metaKey: null,
  32683. getModifierState: getEventModifierState,
  32684. button: null,
  32685. buttons: null,
  32686. relatedTarget: function (event) {
  32687. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  32688. },
  32689. movementX: function (event) {
  32690. if ('movementX' in event) {
  32691. return event.movementX;
  32692. }
  32693. var screenX = previousScreenX;
  32694. previousScreenX = event.screenX;
  32695. if (!isMovementXSet) {
  32696. isMovementXSet = true;
  32697. return 0;
  32698. }
  32699. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  32700. },
  32701. movementY: function (event) {
  32702. if ('movementY' in event) {
  32703. return event.movementY;
  32704. }
  32705. var screenY = previousScreenY;
  32706. previousScreenY = event.screenY;
  32707. if (!isMovementYSet) {
  32708. isMovementYSet = true;
  32709. return 0;
  32710. }
  32711. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  32712. }
  32713. });
  32714. /**
  32715. * @interface PointerEvent
  32716. * @see http://www.w3.org/TR/pointerevents/
  32717. */
  32718. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  32719. pointerId: null,
  32720. width: null,
  32721. height: null,
  32722. pressure: null,
  32723. tangentialPressure: null,
  32724. tiltX: null,
  32725. tiltY: null,
  32726. twist: null,
  32727. pointerType: null,
  32728. isPrimary: null
  32729. });
  32730. var eventTypes$2 = {
  32731. mouseEnter: {
  32732. registrationName: 'onMouseEnter',
  32733. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  32734. },
  32735. mouseLeave: {
  32736. registrationName: 'onMouseLeave',
  32737. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  32738. },
  32739. pointerEnter: {
  32740. registrationName: 'onPointerEnter',
  32741. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  32742. },
  32743. pointerLeave: {
  32744. registrationName: 'onPointerLeave',
  32745. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  32746. }
  32747. };
  32748. var EnterLeaveEventPlugin = {
  32749. eventTypes: eventTypes$2,
  32750. /**
  32751. * For almost every interaction we care about, there will be both a top-level
  32752. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  32753. * we do not extract duplicate events. However, moving the mouse into the
  32754. * browser from outside will not fire a `mouseout` event. In this case, we use
  32755. * the `mouseover` top-level event.
  32756. */
  32757. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  32758. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  32759. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  32760. if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0 && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  32761. // If this is an over event with a target, then we've already dispatched
  32762. // the event in the out event of the other target. If this is replayed,
  32763. // then it's because we couldn't dispatch against this target previously
  32764. // so we have to do it now instead.
  32765. return null;
  32766. }
  32767. if (!isOutEvent && !isOverEvent) {
  32768. // Must not be a mouse or pointer in or out - ignoring.
  32769. return null;
  32770. }
  32771. var win;
  32772. if (nativeEventTarget.window === nativeEventTarget) {
  32773. // `nativeEventTarget` is probably a window object.
  32774. win = nativeEventTarget;
  32775. } else {
  32776. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  32777. var doc = nativeEventTarget.ownerDocument;
  32778. if (doc) {
  32779. win = doc.defaultView || doc.parentWindow;
  32780. } else {
  32781. win = window;
  32782. }
  32783. }
  32784. var from;
  32785. var to;
  32786. if (isOutEvent) {
  32787. from = targetInst;
  32788. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  32789. to = related ? getClosestInstanceFromNode(related) : null;
  32790. if (to !== null) {
  32791. var nearestMounted = getNearestMountedFiber(to);
  32792. if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
  32793. to = null;
  32794. }
  32795. }
  32796. } else {
  32797. // Moving to a node from outside the window.
  32798. from = null;
  32799. to = targetInst;
  32800. }
  32801. if (from === to) {
  32802. // Nothing pertains to our managed components.
  32803. return null;
  32804. }
  32805. var eventInterface, leaveEventType, enterEventType, eventTypePrefix;
  32806. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  32807. eventInterface = SyntheticMouseEvent;
  32808. leaveEventType = eventTypes$2.mouseLeave;
  32809. enterEventType = eventTypes$2.mouseEnter;
  32810. eventTypePrefix = 'mouse';
  32811. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  32812. eventInterface = SyntheticPointerEvent;
  32813. leaveEventType = eventTypes$2.pointerLeave;
  32814. enterEventType = eventTypes$2.pointerEnter;
  32815. eventTypePrefix = 'pointer';
  32816. }
  32817. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  32818. var toNode = to == null ? win : getNodeFromInstance$1(to);
  32819. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  32820. leave.type = eventTypePrefix + 'leave';
  32821. leave.target = fromNode;
  32822. leave.relatedTarget = toNode;
  32823. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  32824. enter.type = eventTypePrefix + 'enter';
  32825. enter.target = toNode;
  32826. enter.relatedTarget = fromNode;
  32827. accumulateEnterLeaveDispatches(leave, enter, from, to); // If we are not processing the first ancestor, then we
  32828. // should not process the same nativeEvent again, as we
  32829. // will have already processed it in the first ancestor.
  32830. if ((eventSystemFlags & IS_FIRST_ANCESTOR) === 0) {
  32831. return [leave];
  32832. }
  32833. return [leave, enter];
  32834. }
  32835. };
  32836. /**
  32837. * inlined Object.is polyfill to avoid requiring consumers ship their own
  32838. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  32839. */
  32840. function is(x, y) {
  32841. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  32842. ;
  32843. }
  32844. var objectIs = typeof Object.is === 'function' ? Object.is : is;
  32845. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  32846. /**
  32847. * Performs equality by iterating through keys on an object and returning false
  32848. * when any key has values which are not strictly equal between the arguments.
  32849. * Returns true when the values of all keys are strictly equal.
  32850. */
  32851. function shallowEqual(objA, objB) {
  32852. if (objectIs(objA, objB)) {
  32853. return true;
  32854. }
  32855. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  32856. return false;
  32857. }
  32858. var keysA = Object.keys(objA);
  32859. var keysB = Object.keys(objB);
  32860. if (keysA.length !== keysB.length) {
  32861. return false;
  32862. } // Test for A's keys different from B.
  32863. for (var i = 0; i < keysA.length; i++) {
  32864. if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
  32865. return false;
  32866. }
  32867. }
  32868. return true;
  32869. }
  32870. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  32871. var eventTypes$3 = {
  32872. select: {
  32873. phasedRegistrationNames: {
  32874. bubbled: 'onSelect',
  32875. captured: 'onSelectCapture'
  32876. },
  32877. 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]
  32878. }
  32879. };
  32880. var activeElement$1 = null;
  32881. var activeElementInst$1 = null;
  32882. var lastSelection = null;
  32883. var mouseDown = false;
  32884. /**
  32885. * Get an object which is a unique representation of the current selection.
  32886. *
  32887. * The return value will not be consistent across nodes or browsers, but
  32888. * two identical selections on the same node will return identical objects.
  32889. *
  32890. * @param {DOMElement} node
  32891. * @return {object}
  32892. */
  32893. function getSelection$1(node) {
  32894. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  32895. return {
  32896. start: node.selectionStart,
  32897. end: node.selectionEnd
  32898. };
  32899. } else {
  32900. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  32901. var selection = win.getSelection();
  32902. return {
  32903. anchorNode: selection.anchorNode,
  32904. anchorOffset: selection.anchorOffset,
  32905. focusNode: selection.focusNode,
  32906. focusOffset: selection.focusOffset
  32907. };
  32908. }
  32909. }
  32910. /**
  32911. * Get document associated with the event target.
  32912. *
  32913. * @param {object} nativeEventTarget
  32914. * @return {Document}
  32915. */
  32916. function getEventTargetDocument(eventTarget) {
  32917. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  32918. }
  32919. /**
  32920. * Poll selection to see whether it's changed.
  32921. *
  32922. * @param {object} nativeEvent
  32923. * @param {object} nativeEventTarget
  32924. * @return {?SyntheticEvent}
  32925. */
  32926. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  32927. // Ensure we have the right element, and that the user is not dragging a
  32928. // selection (this matches native `select` event behavior). In HTML5, select
  32929. // fires only on input and textarea thus if there's no focused element we
  32930. // won't dispatch.
  32931. var doc = getEventTargetDocument(nativeEventTarget);
  32932. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  32933. return null;
  32934. } // Only fire when selection has actually changed.
  32935. var currentSelection = getSelection$1(activeElement$1);
  32936. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  32937. lastSelection = currentSelection;
  32938. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  32939. syntheticEvent.type = 'select';
  32940. syntheticEvent.target = activeElement$1;
  32941. accumulateTwoPhaseDispatches(syntheticEvent);
  32942. return syntheticEvent;
  32943. }
  32944. return null;
  32945. }
  32946. /**
  32947. * This plugin creates an `onSelect` event that normalizes select events
  32948. * across form elements.
  32949. *
  32950. * Supported elements are:
  32951. * - input (see `isTextInputElement`)
  32952. * - textarea
  32953. * - contentEditable
  32954. *
  32955. * This differs from native browser implementations in the following ways:
  32956. * - Fires on contentEditable fields as well as inputs.
  32957. * - Fires for collapsed selection.
  32958. * - Fires after user input.
  32959. */
  32960. var SelectEventPlugin = {
  32961. eventTypes: eventTypes$3,
  32962. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, container) {
  32963. var containerOrDoc = container || getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do
  32964. // not extract events. See #3639.
  32965. if (!containerOrDoc || !isListeningToAllDependencies('onSelect', containerOrDoc)) {
  32966. return null;
  32967. }
  32968. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  32969. switch (topLevelType) {
  32970. // Track the input node that has focus.
  32971. case TOP_FOCUS:
  32972. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  32973. activeElement$1 = targetNode;
  32974. activeElementInst$1 = targetInst;
  32975. lastSelection = null;
  32976. }
  32977. break;
  32978. case TOP_BLUR:
  32979. activeElement$1 = null;
  32980. activeElementInst$1 = null;
  32981. lastSelection = null;
  32982. break;
  32983. // Don't fire the event while the user is dragging. This matches the
  32984. // semantics of the native select event.
  32985. case TOP_MOUSE_DOWN:
  32986. mouseDown = true;
  32987. break;
  32988. case TOP_CONTEXT_MENU:
  32989. case TOP_MOUSE_UP:
  32990. case TOP_DRAG_END:
  32991. mouseDown = false;
  32992. return constructSelectEvent(nativeEvent, nativeEventTarget);
  32993. // Chrome and IE fire non-standard event when selection is changed (and
  32994. // sometimes when it hasn't). IE's event fires out of order with respect
  32995. // to key and input events on deletion, so we discard it.
  32996. //
  32997. // Firefox doesn't support selectionchange, so check selection status
  32998. // after each key entry. The selection changes after keydown and before
  32999. // keyup, but we check on keydown as well in the case of holding down a
  33000. // key, when multiple keydown events are fired but only one keyup is.
  33001. // This is also our approach for IE handling, for the reason above.
  33002. case TOP_SELECTION_CHANGE:
  33003. if (skipSelectionChangeEvent) {
  33004. break;
  33005. }
  33006. // falls through
  33007. case TOP_KEY_DOWN:
  33008. case TOP_KEY_UP:
  33009. return constructSelectEvent(nativeEvent, nativeEventTarget);
  33010. }
  33011. return null;
  33012. }
  33013. };
  33014. /**
  33015. * @interface Event
  33016. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  33017. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  33018. */
  33019. var SyntheticAnimationEvent = SyntheticEvent.extend({
  33020. animationName: null,
  33021. elapsedTime: null,
  33022. pseudoElement: null
  33023. });
  33024. /**
  33025. * @interface Event
  33026. * @see http://www.w3.org/TR/clipboard-apis/
  33027. */
  33028. var SyntheticClipboardEvent = SyntheticEvent.extend({
  33029. clipboardData: function (event) {
  33030. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  33031. }
  33032. });
  33033. /**
  33034. * @interface FocusEvent
  33035. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  33036. */
  33037. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  33038. relatedTarget: null
  33039. });
  33040. /**
  33041. * `charCode` represents the actual "character code" and is safe to use with
  33042. * `String.fromCharCode`. As such, only keys that correspond to printable
  33043. * characters produce a valid `charCode`, the only exception to this is Enter.
  33044. * The Tab-key is considered non-printable and does not have a `charCode`,
  33045. * presumably because it does not produce a tab-character in browsers.
  33046. *
  33047. * @param {object} nativeEvent Native browser event.
  33048. * @return {number} Normalized `charCode` property.
  33049. */
  33050. function getEventCharCode(nativeEvent) {
  33051. var charCode;
  33052. var keyCode = nativeEvent.keyCode;
  33053. if ('charCode' in nativeEvent) {
  33054. charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  33055. if (charCode === 0 && keyCode === 13) {
  33056. charCode = 13;
  33057. }
  33058. } else {
  33059. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  33060. charCode = keyCode;
  33061. } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  33062. // report Enter as charCode 10 when ctrl is pressed.
  33063. if (charCode === 10) {
  33064. charCode = 13;
  33065. } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  33066. // Must not discard the (non-)printable Enter-key.
  33067. if (charCode >= 32 || charCode === 13) {
  33068. return charCode;
  33069. }
  33070. return 0;
  33071. }
  33072. /**
  33073. * Normalization of deprecated HTML5 `key` values
  33074. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  33075. */
  33076. var normalizeKey = {
  33077. Esc: 'Escape',
  33078. Spacebar: ' ',
  33079. Left: 'ArrowLeft',
  33080. Up: 'ArrowUp',
  33081. Right: 'ArrowRight',
  33082. Down: 'ArrowDown',
  33083. Del: 'Delete',
  33084. Win: 'OS',
  33085. Menu: 'ContextMenu',
  33086. Apps: 'ContextMenu',
  33087. Scroll: 'ScrollLock',
  33088. MozPrintableKey: 'Unidentified'
  33089. };
  33090. /**
  33091. * Translation from legacy `keyCode` to HTML5 `key`
  33092. * Only special keys supported, all others depend on keyboard layout or browser
  33093. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  33094. */
  33095. var translateToKey = {
  33096. '8': 'Backspace',
  33097. '9': 'Tab',
  33098. '12': 'Clear',
  33099. '13': 'Enter',
  33100. '16': 'Shift',
  33101. '17': 'Control',
  33102. '18': 'Alt',
  33103. '19': 'Pause',
  33104. '20': 'CapsLock',
  33105. '27': 'Escape',
  33106. '32': ' ',
  33107. '33': 'PageUp',
  33108. '34': 'PageDown',
  33109. '35': 'End',
  33110. '36': 'Home',
  33111. '37': 'ArrowLeft',
  33112. '38': 'ArrowUp',
  33113. '39': 'ArrowRight',
  33114. '40': 'ArrowDown',
  33115. '45': 'Insert',
  33116. '46': 'Delete',
  33117. '112': 'F1',
  33118. '113': 'F2',
  33119. '114': 'F3',
  33120. '115': 'F4',
  33121. '116': 'F5',
  33122. '117': 'F6',
  33123. '118': 'F7',
  33124. '119': 'F8',
  33125. '120': 'F9',
  33126. '121': 'F10',
  33127. '122': 'F11',
  33128. '123': 'F12',
  33129. '144': 'NumLock',
  33130. '145': 'ScrollLock',
  33131. '224': 'Meta'
  33132. };
  33133. /**
  33134. * @param {object} nativeEvent Native browser event.
  33135. * @return {string} Normalized `key` property.
  33136. */
  33137. function getEventKey(nativeEvent) {
  33138. if (nativeEvent.key) {
  33139. // Normalize inconsistent values reported by browsers due to
  33140. // implementations of a working draft specification.
  33141. // FireFox implements `key` but returns `MozPrintableKey` for all
  33142. // printable characters (normalized to `Unidentified`), ignore it.
  33143. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  33144. if (key !== 'Unidentified') {
  33145. return key;
  33146. }
  33147. } // Browser does not implement `key`, polyfill as much of it as we can.
  33148. if (nativeEvent.type === 'keypress') {
  33149. var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
  33150. // thus be captured by `keypress`, no other non-printable key should.
  33151. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  33152. }
  33153. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  33154. // While user keyboard layout determines the actual meaning of each
  33155. // `keyCode` value, almost all function keys have a universal value.
  33156. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  33157. }
  33158. return '';
  33159. }
  33160. /**
  33161. * @interface KeyboardEvent
  33162. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  33163. */
  33164. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  33165. key: getEventKey,
  33166. location: null,
  33167. ctrlKey: null,
  33168. shiftKey: null,
  33169. altKey: null,
  33170. metaKey: null,
  33171. repeat: null,
  33172. locale: null,
  33173. getModifierState: getEventModifierState,
  33174. // Legacy Interface
  33175. charCode: function (event) {
  33176. // `charCode` is the result of a KeyPress event and represents the value of
  33177. // the actual printable character.
  33178. // KeyPress is deprecated, but its replacement is not yet final and not
  33179. // implemented in any major browser. Only KeyPress has charCode.
  33180. if (event.type === 'keypress') {
  33181. return getEventCharCode(event);
  33182. }
  33183. return 0;
  33184. },
  33185. keyCode: function (event) {
  33186. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  33187. // physical keyboard key.
  33188. // The actual meaning of the value depends on the users' keyboard layout
  33189. // which cannot be detected. Assuming that it is a US keyboard layout
  33190. // provides a surprisingly accurate mapping for US and European users.
  33191. // Due to this, it is left to the user to implement at this time.
  33192. if (event.type === 'keydown' || event.type === 'keyup') {
  33193. return event.keyCode;
  33194. }
  33195. return 0;
  33196. },
  33197. which: function (event) {
  33198. // `which` is an alias for either `keyCode` or `charCode` depending on the
  33199. // type of the event.
  33200. if (event.type === 'keypress') {
  33201. return getEventCharCode(event);
  33202. }
  33203. if (event.type === 'keydown' || event.type === 'keyup') {
  33204. return event.keyCode;
  33205. }
  33206. return 0;
  33207. }
  33208. });
  33209. /**
  33210. * @interface DragEvent
  33211. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  33212. */
  33213. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  33214. dataTransfer: null
  33215. });
  33216. /**
  33217. * @interface TouchEvent
  33218. * @see http://www.w3.org/TR/touch-events/
  33219. */
  33220. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  33221. touches: null,
  33222. targetTouches: null,
  33223. changedTouches: null,
  33224. altKey: null,
  33225. metaKey: null,
  33226. ctrlKey: null,
  33227. shiftKey: null,
  33228. getModifierState: getEventModifierState
  33229. });
  33230. /**
  33231. * @interface Event
  33232. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  33233. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  33234. */
  33235. var SyntheticTransitionEvent = SyntheticEvent.extend({
  33236. propertyName: null,
  33237. elapsedTime: null,
  33238. pseudoElement: null
  33239. });
  33240. /**
  33241. * @interface WheelEvent
  33242. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  33243. */
  33244. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  33245. deltaX: function (event) {
  33246. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  33247. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  33248. },
  33249. deltaY: function (event) {
  33250. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  33251. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  33252. 'wheelDelta' in event ? -event.wheelDelta : 0;
  33253. },
  33254. deltaZ: null,
  33255. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  33256. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  33257. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  33258. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  33259. deltaMode: null
  33260. });
  33261. 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];
  33262. var SimpleEventPlugin = {
  33263. // simpleEventPluginEventTypes gets populated from
  33264. // the DOMEventProperties module.
  33265. eventTypes: simpleEventPluginEventTypes,
  33266. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  33267. var dispatchConfig = topLevelEventsToDispatchConfig.get(topLevelType);
  33268. if (!dispatchConfig) {
  33269. return null;
  33270. }
  33271. var EventConstructor;
  33272. switch (topLevelType) {
  33273. case TOP_KEY_PRESS:
  33274. // Firefox creates a keypress event for function keys too. This removes
  33275. // the unwanted keypress events. Enter is however both printable and
  33276. // non-printable. One would expect Tab to be as well (but it isn't).
  33277. if (getEventCharCode(nativeEvent) === 0) {
  33278. return null;
  33279. }
  33280. /* falls through */
  33281. case TOP_KEY_DOWN:
  33282. case TOP_KEY_UP:
  33283. EventConstructor = SyntheticKeyboardEvent;
  33284. break;
  33285. case TOP_BLUR:
  33286. case TOP_FOCUS:
  33287. EventConstructor = SyntheticFocusEvent;
  33288. break;
  33289. case TOP_CLICK:
  33290. // Firefox creates a click event on right mouse clicks. This removes the
  33291. // unwanted click events.
  33292. if (nativeEvent.button === 2) {
  33293. return null;
  33294. }
  33295. /* falls through */
  33296. case TOP_AUX_CLICK:
  33297. case TOP_DOUBLE_CLICK:
  33298. case TOP_MOUSE_DOWN:
  33299. case TOP_MOUSE_MOVE:
  33300. case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events
  33301. /* falls through */
  33302. case TOP_MOUSE_OUT:
  33303. case TOP_MOUSE_OVER:
  33304. case TOP_CONTEXT_MENU:
  33305. EventConstructor = SyntheticMouseEvent;
  33306. break;
  33307. case TOP_DRAG:
  33308. case TOP_DRAG_END:
  33309. case TOP_DRAG_ENTER:
  33310. case TOP_DRAG_EXIT:
  33311. case TOP_DRAG_LEAVE:
  33312. case TOP_DRAG_OVER:
  33313. case TOP_DRAG_START:
  33314. case TOP_DROP:
  33315. EventConstructor = SyntheticDragEvent;
  33316. break;
  33317. case TOP_TOUCH_CANCEL:
  33318. case TOP_TOUCH_END:
  33319. case TOP_TOUCH_MOVE:
  33320. case TOP_TOUCH_START:
  33321. EventConstructor = SyntheticTouchEvent;
  33322. break;
  33323. case TOP_ANIMATION_END:
  33324. case TOP_ANIMATION_ITERATION:
  33325. case TOP_ANIMATION_START:
  33326. EventConstructor = SyntheticAnimationEvent;
  33327. break;
  33328. case TOP_TRANSITION_END:
  33329. EventConstructor = SyntheticTransitionEvent;
  33330. break;
  33331. case TOP_SCROLL:
  33332. EventConstructor = SyntheticUIEvent;
  33333. break;
  33334. case TOP_WHEEL:
  33335. EventConstructor = SyntheticWheelEvent;
  33336. break;
  33337. case TOP_COPY:
  33338. case TOP_CUT:
  33339. case TOP_PASTE:
  33340. EventConstructor = SyntheticClipboardEvent;
  33341. break;
  33342. case TOP_GOT_POINTER_CAPTURE:
  33343. case TOP_LOST_POINTER_CAPTURE:
  33344. case TOP_POINTER_CANCEL:
  33345. case TOP_POINTER_DOWN:
  33346. case TOP_POINTER_MOVE:
  33347. case TOP_POINTER_OUT:
  33348. case TOP_POINTER_OVER:
  33349. case TOP_POINTER_UP:
  33350. EventConstructor = SyntheticPointerEvent;
  33351. break;
  33352. default:
  33353. {
  33354. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  33355. error('SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  33356. }
  33357. } // HTML Events
  33358. // @see http://www.w3.org/TR/html5/index.html#events-0
  33359. EventConstructor = SyntheticEvent;
  33360. break;
  33361. }
  33362. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  33363. accumulateTwoPhaseDispatches(event);
  33364. return event;
  33365. }
  33366. };
  33367. /**
  33368. * Specifies a deterministic ordering of `EventPlugin`s. A convenient way to
  33369. * reason about plugins, without having to package every one of them. This
  33370. * is better than having plugins be ordered in the same order that they
  33371. * are injected because that ordering would be influenced by the packaging order.
  33372. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  33373. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  33374. */
  33375. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  33376. /**
  33377. * Inject modules for resolving DOM hierarchy and plugin ordering.
  33378. */
  33379. injectEventPluginOrder(DOMEventPluginOrder);
  33380. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  33381. /**
  33382. * Some important event plugins included by default (without having to require
  33383. * them).
  33384. */
  33385. injectEventPluginsByName({
  33386. SimpleEventPlugin: SimpleEventPlugin,
  33387. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  33388. ChangeEventPlugin: ChangeEventPlugin,
  33389. SelectEventPlugin: SelectEventPlugin,
  33390. BeforeInputEventPlugin: BeforeInputEventPlugin
  33391. });
  33392. // Prefix measurements so that it's possible to filter them.
  33393. // Longer prefixes are hard to read in DevTools.
  33394. var reactEmoji = "\u269B";
  33395. var warningEmoji = "\u26D4";
  33396. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function'; // Keep track of current fiber so that we know the path to unwind on pause.
  33397. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  33398. var currentFiber = null; // If we're in the middle of user code, which fiber and method is it?
  33399. // Reusing `currentFiber` would be confusing for this because user code fiber
  33400. // can change during commit phase too, but we don't need to unwind it (since
  33401. // lifecycles in the commit phase don't resemble a tree).
  33402. var currentPhase = null;
  33403. var currentPhaseFiber = null; // Did lifecycle hook schedule an update? This is often a performance problem,
  33404. // so we will keep track of it, and include it in the report.
  33405. // Track commits caused by cascading updates.
  33406. var isCommitting = false;
  33407. var hasScheduledUpdateInCurrentCommit = false;
  33408. var hasScheduledUpdateInCurrentPhase = false;
  33409. var commitCountInCurrentWorkLoop = 0;
  33410. var effectCountInCurrentCommit = 0;
  33411. // to avoid stretch the commit phase with measurement overhead.
  33412. var labelsInCurrentCommit = new Set();
  33413. var formatMarkName = function (markName) {
  33414. return reactEmoji + " " + markName;
  33415. };
  33416. var formatLabel = function (label, warning) {
  33417. var prefix = warning ? warningEmoji + " " : reactEmoji + " ";
  33418. var suffix = warning ? " Warning: " + warning : '';
  33419. return "" + prefix + label + suffix;
  33420. };
  33421. var beginMark = function (markName) {
  33422. performance.mark(formatMarkName(markName));
  33423. };
  33424. var clearMark = function (markName) {
  33425. performance.clearMarks(formatMarkName(markName));
  33426. };
  33427. var endMark = function (label, markName, warning) {
  33428. var formattedMarkName = formatMarkName(markName);
  33429. var formattedLabel = formatLabel(label, warning);
  33430. try {
  33431. performance.measure(formattedLabel, formattedMarkName);
  33432. } catch (err) {} // If previous mark was missing for some reason, this will throw.
  33433. // This could only happen if React crashed in an unexpected place earlier.
  33434. // Don't pile on with more errors.
  33435. // Clear marks immediately to avoid growing buffer.
  33436. performance.clearMarks(formattedMarkName);
  33437. performance.clearMeasures(formattedLabel);
  33438. };
  33439. var getFiberMarkName = function (label, debugID) {
  33440. return label + " (#" + debugID + ")";
  33441. };
  33442. var getFiberLabel = function (componentName, isMounted, phase) {
  33443. if (phase === null) {
  33444. // These are composite component total time measurements.
  33445. return componentName + " [" + (isMounted ? 'update' : 'mount') + "]";
  33446. } else {
  33447. // Composite component methods.
  33448. return componentName + "." + phase;
  33449. }
  33450. };
  33451. var beginFiberMark = function (fiber, phase) {
  33452. var componentName = getComponentName(fiber.type) || 'Unknown';
  33453. var debugID = fiber._debugID;
  33454. var isMounted = fiber.alternate !== null;
  33455. var label = getFiberLabel(componentName, isMounted, phase);
  33456. if (isCommitting && labelsInCurrentCommit.has(label)) {
  33457. // During the commit phase, we don't show duplicate labels because
  33458. // there is a fixed overhead for every measurement, and we don't
  33459. // want to stretch the commit phase beyond necessary.
  33460. return false;
  33461. }
  33462. labelsInCurrentCommit.add(label);
  33463. var markName = getFiberMarkName(label, debugID);
  33464. beginMark(markName);
  33465. return true;
  33466. };
  33467. var clearFiberMark = function (fiber, phase) {
  33468. var componentName = getComponentName(fiber.type) || 'Unknown';
  33469. var debugID = fiber._debugID;
  33470. var isMounted = fiber.alternate !== null;
  33471. var label = getFiberLabel(componentName, isMounted, phase);
  33472. var markName = getFiberMarkName(label, debugID);
  33473. clearMark(markName);
  33474. };
  33475. var endFiberMark = function (fiber, phase, warning) {
  33476. var componentName = getComponentName(fiber.type) || 'Unknown';
  33477. var debugID = fiber._debugID;
  33478. var isMounted = fiber.alternate !== null;
  33479. var label = getFiberLabel(componentName, isMounted, phase);
  33480. var markName = getFiberMarkName(label, debugID);
  33481. endMark(label, markName, warning);
  33482. };
  33483. var shouldIgnoreFiber = function (fiber) {
  33484. // Host components should be skipped in the timeline.
  33485. // We could check typeof fiber.type, but does this work with RN?
  33486. switch (fiber.tag) {
  33487. case HostRoot:
  33488. case HostComponent:
  33489. case HostText:
  33490. case HostPortal:
  33491. case Fragment:
  33492. case ContextProvider:
  33493. case ContextConsumer:
  33494. case Mode:
  33495. return true;
  33496. default:
  33497. return false;
  33498. }
  33499. };
  33500. var clearPendingPhaseMeasurement = function () {
  33501. if (currentPhase !== null && currentPhaseFiber !== null) {
  33502. clearFiberMark(currentPhaseFiber, currentPhase);
  33503. }
  33504. currentPhaseFiber = null;
  33505. currentPhase = null;
  33506. hasScheduledUpdateInCurrentPhase = false;
  33507. };
  33508. var pauseTimers = function () {
  33509. // Stops all currently active measurements so that they can be resumed
  33510. // if we continue in a later deferred loop from the same unit of work.
  33511. var fiber = currentFiber;
  33512. while (fiber) {
  33513. if (fiber._debugIsCurrentlyTiming) {
  33514. endFiberMark(fiber, null, null);
  33515. }
  33516. fiber = fiber.return;
  33517. }
  33518. };
  33519. var resumeTimersRecursively = function (fiber) {
  33520. if (fiber.return !== null) {
  33521. resumeTimersRecursively(fiber.return);
  33522. }
  33523. if (fiber._debugIsCurrentlyTiming) {
  33524. beginFiberMark(fiber, null);
  33525. }
  33526. };
  33527. var resumeTimers = function () {
  33528. // Resumes all measurements that were active during the last deferred loop.
  33529. if (currentFiber !== null) {
  33530. resumeTimersRecursively(currentFiber);
  33531. }
  33532. };
  33533. function recordEffect() {
  33534. {
  33535. effectCountInCurrentCommit++;
  33536. }
  33537. }
  33538. function recordScheduleUpdate() {
  33539. {
  33540. if (isCommitting) {
  33541. hasScheduledUpdateInCurrentCommit = true;
  33542. }
  33543. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  33544. hasScheduledUpdateInCurrentPhase = true;
  33545. }
  33546. }
  33547. }
  33548. function startWorkTimer(fiber) {
  33549. {
  33550. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  33551. return;
  33552. } // If we pause, this is the fiber to unwind from.
  33553. currentFiber = fiber;
  33554. if (!beginFiberMark(fiber, null)) {
  33555. return;
  33556. }
  33557. fiber._debugIsCurrentlyTiming = true;
  33558. }
  33559. }
  33560. function cancelWorkTimer(fiber) {
  33561. {
  33562. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  33563. return;
  33564. } // Remember we shouldn't complete measurement for this fiber.
  33565. // Otherwise flamechart will be deep even for small updates.
  33566. fiber._debugIsCurrentlyTiming = false;
  33567. clearFiberMark(fiber, null);
  33568. }
  33569. }
  33570. function stopWorkTimer(fiber) {
  33571. {
  33572. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  33573. return;
  33574. } // If we pause, its parent is the fiber to unwind from.
  33575. currentFiber = fiber.return;
  33576. if (!fiber._debugIsCurrentlyTiming) {
  33577. return;
  33578. }
  33579. fiber._debugIsCurrentlyTiming = false;
  33580. endFiberMark(fiber, null, null);
  33581. }
  33582. }
  33583. function stopFailedWorkTimer(fiber) {
  33584. {
  33585. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  33586. return;
  33587. } // If we pause, its parent is the fiber to unwind from.
  33588. currentFiber = fiber.return;
  33589. if (!fiber._debugIsCurrentlyTiming) {
  33590. return;
  33591. }
  33592. fiber._debugIsCurrentlyTiming = false;
  33593. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  33594. endFiberMark(fiber, null, warning);
  33595. }
  33596. }
  33597. function startPhaseTimer(fiber, phase) {
  33598. {
  33599. if (!supportsUserTiming) {
  33600. return;
  33601. }
  33602. clearPendingPhaseMeasurement();
  33603. if (!beginFiberMark(fiber, phase)) {
  33604. return;
  33605. }
  33606. currentPhaseFiber = fiber;
  33607. currentPhase = phase;
  33608. }
  33609. }
  33610. function stopPhaseTimer() {
  33611. {
  33612. if (!supportsUserTiming) {
  33613. return;
  33614. }
  33615. if (currentPhase !== null && currentPhaseFiber !== null) {
  33616. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  33617. endFiberMark(currentPhaseFiber, currentPhase, warning);
  33618. }
  33619. currentPhase = null;
  33620. currentPhaseFiber = null;
  33621. }
  33622. }
  33623. function startWorkLoopTimer(nextUnitOfWork) {
  33624. {
  33625. currentFiber = nextUnitOfWork;
  33626. if (!supportsUserTiming) {
  33627. return;
  33628. }
  33629. commitCountInCurrentWorkLoop = 0; // This is top level call.
  33630. // Any other measurements are performed within.
  33631. beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.
  33632. resumeTimers();
  33633. }
  33634. }
  33635. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  33636. {
  33637. if (!supportsUserTiming) {
  33638. return;
  33639. }
  33640. var warning = null;
  33641. if (interruptedBy !== null) {
  33642. if (interruptedBy.tag === HostRoot) {
  33643. warning = 'A top-level update interrupted the previous render';
  33644. } else {
  33645. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  33646. warning = "An update to " + componentName + " interrupted the previous render";
  33647. }
  33648. } else if (commitCountInCurrentWorkLoop > 1) {
  33649. warning = 'There were cascading updates';
  33650. }
  33651. commitCountInCurrentWorkLoop = 0;
  33652. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop.
  33653. pauseTimers();
  33654. endMark(label, '(React Tree Reconciliation)', warning);
  33655. }
  33656. }
  33657. function startCommitTimer() {
  33658. {
  33659. if (!supportsUserTiming) {
  33660. return;
  33661. }
  33662. isCommitting = true;
  33663. hasScheduledUpdateInCurrentCommit = false;
  33664. labelsInCurrentCommit.clear();
  33665. beginMark('(Committing Changes)');
  33666. }
  33667. }
  33668. function stopCommitTimer() {
  33669. {
  33670. if (!supportsUserTiming) {
  33671. return;
  33672. }
  33673. var warning = null;
  33674. if (hasScheduledUpdateInCurrentCommit) {
  33675. warning = 'Lifecycle hook scheduled a cascading update';
  33676. } else if (commitCountInCurrentWorkLoop > 0) {
  33677. warning = 'Caused by a cascading update in earlier commit';
  33678. }
  33679. hasScheduledUpdateInCurrentCommit = false;
  33680. commitCountInCurrentWorkLoop++;
  33681. isCommitting = false;
  33682. labelsInCurrentCommit.clear();
  33683. endMark('(Committing Changes)', '(Committing Changes)', warning);
  33684. }
  33685. }
  33686. function startCommitSnapshotEffectsTimer() {
  33687. {
  33688. if (!supportsUserTiming) {
  33689. return;
  33690. }
  33691. effectCountInCurrentCommit = 0;
  33692. beginMark('(Committing Snapshot Effects)');
  33693. }
  33694. }
  33695. function stopCommitSnapshotEffectsTimer() {
  33696. {
  33697. if (!supportsUserTiming) {
  33698. return;
  33699. }
  33700. var count = effectCountInCurrentCommit;
  33701. effectCountInCurrentCommit = 0;
  33702. endMark("(Committing Snapshot Effects: " + count + " Total)", '(Committing Snapshot Effects)', null);
  33703. }
  33704. }
  33705. function startCommitHostEffectsTimer() {
  33706. {
  33707. if (!supportsUserTiming) {
  33708. return;
  33709. }
  33710. effectCountInCurrentCommit = 0;
  33711. beginMark('(Committing Host Effects)');
  33712. }
  33713. }
  33714. function stopCommitHostEffectsTimer() {
  33715. {
  33716. if (!supportsUserTiming) {
  33717. return;
  33718. }
  33719. var count = effectCountInCurrentCommit;
  33720. effectCountInCurrentCommit = 0;
  33721. endMark("(Committing Host Effects: " + count + " Total)", '(Committing Host Effects)', null);
  33722. }
  33723. }
  33724. function startCommitLifeCyclesTimer() {
  33725. {
  33726. if (!supportsUserTiming) {
  33727. return;
  33728. }
  33729. effectCountInCurrentCommit = 0;
  33730. beginMark('(Calling Lifecycle Methods)');
  33731. }
  33732. }
  33733. function stopCommitLifeCyclesTimer() {
  33734. {
  33735. if (!supportsUserTiming) {
  33736. return;
  33737. }
  33738. var count = effectCountInCurrentCommit;
  33739. effectCountInCurrentCommit = 0;
  33740. endMark("(Calling Lifecycle Methods: " + count + " Total)", '(Calling Lifecycle Methods)', null);
  33741. }
  33742. }
  33743. var valueStack = [];
  33744. var fiberStack;
  33745. {
  33746. fiberStack = [];
  33747. }
  33748. var index = -1;
  33749. function createCursor(defaultValue) {
  33750. return {
  33751. current: defaultValue
  33752. };
  33753. }
  33754. function pop(cursor, fiber) {
  33755. if (index < 0) {
  33756. {
  33757. error('Unexpected pop.');
  33758. }
  33759. return;
  33760. }
  33761. {
  33762. if (fiber !== fiberStack[index]) {
  33763. error('Unexpected Fiber popped.');
  33764. }
  33765. }
  33766. cursor.current = valueStack[index];
  33767. valueStack[index] = null;
  33768. {
  33769. fiberStack[index] = null;
  33770. }
  33771. index--;
  33772. }
  33773. function push(cursor, value, fiber) {
  33774. index++;
  33775. valueStack[index] = cursor.current;
  33776. {
  33777. fiberStack[index] = fiber;
  33778. }
  33779. cursor.current = value;
  33780. }
  33781. var warnedAboutMissingGetChildContext;
  33782. {
  33783. warnedAboutMissingGetChildContext = {};
  33784. }
  33785. var emptyContextObject = {};
  33786. {
  33787. Object.freeze(emptyContextObject);
  33788. } // A cursor to the current merged context object on the stack.
  33789. var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
  33790. var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
  33791. // We use this to get access to the parent context after we have already
  33792. // pushed the next context provider, and now need to merge their contexts.
  33793. var previousContext = emptyContextObject;
  33794. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  33795. {
  33796. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  33797. // If the fiber is a context provider itself, when we read its context
  33798. // we may have already pushed its own child context on the stack. A context
  33799. // provider should not "see" its own child context. Therefore we read the
  33800. // previous (parent) context instead for a context provider.
  33801. return previousContext;
  33802. }
  33803. return contextStackCursor.current;
  33804. }
  33805. }
  33806. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  33807. {
  33808. var instance = workInProgress.stateNode;
  33809. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  33810. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  33811. }
  33812. }
  33813. function getMaskedContext(workInProgress, unmaskedContext) {
  33814. {
  33815. var type = workInProgress.type;
  33816. var contextTypes = type.contextTypes;
  33817. if (!contextTypes) {
  33818. return emptyContextObject;
  33819. } // Avoid recreating masked context unless unmasked context has changed.
  33820. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  33821. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  33822. var instance = workInProgress.stateNode;
  33823. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  33824. return instance.__reactInternalMemoizedMaskedChildContext;
  33825. }
  33826. var context = {};
  33827. for (var key in contextTypes) {
  33828. context[key] = unmaskedContext[key];
  33829. }
  33830. {
  33831. var name = getComponentName(type) || 'Unknown';
  33832. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  33833. } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  33834. // Context is created before the class component is instantiated so check for instance.
  33835. if (instance) {
  33836. cacheContext(workInProgress, unmaskedContext, context);
  33837. }
  33838. return context;
  33839. }
  33840. }
  33841. function hasContextChanged() {
  33842. {
  33843. return didPerformWorkStackCursor.current;
  33844. }
  33845. }
  33846. function isContextProvider(type) {
  33847. {
  33848. var childContextTypes = type.childContextTypes;
  33849. return childContextTypes !== null && childContextTypes !== undefined;
  33850. }
  33851. }
  33852. function popContext(fiber) {
  33853. {
  33854. pop(didPerformWorkStackCursor, fiber);
  33855. pop(contextStackCursor, fiber);
  33856. }
  33857. }
  33858. function popTopLevelContextObject(fiber) {
  33859. {
  33860. pop(didPerformWorkStackCursor, fiber);
  33861. pop(contextStackCursor, fiber);
  33862. }
  33863. }
  33864. function pushTopLevelContextObject(fiber, context, didChange) {
  33865. {
  33866. if (!(contextStackCursor.current === emptyContextObject)) {
  33867. {
  33868. throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
  33869. }
  33870. }
  33871. push(contextStackCursor, context, fiber);
  33872. push(didPerformWorkStackCursor, didChange, fiber);
  33873. }
  33874. }
  33875. function processChildContext(fiber, type, parentContext) {
  33876. {
  33877. var instance = fiber.stateNode;
  33878. var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  33879. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  33880. if (typeof instance.getChildContext !== 'function') {
  33881. {
  33882. var componentName = getComponentName(type) || 'Unknown';
  33883. if (!warnedAboutMissingGetChildContext[componentName]) {
  33884. warnedAboutMissingGetChildContext[componentName] = true;
  33885. error('%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);
  33886. }
  33887. }
  33888. return parentContext;
  33889. }
  33890. var childContext;
  33891. startPhaseTimer(fiber, 'getChildContext');
  33892. childContext = instance.getChildContext();
  33893. stopPhaseTimer();
  33894. for (var contextKey in childContext) {
  33895. if (!(contextKey in childContextTypes)) {
  33896. {
  33897. throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
  33898. }
  33899. }
  33900. }
  33901. {
  33902. var name = getComponentName(type) || 'Unknown';
  33903. checkPropTypes(childContextTypes, childContext, 'child context', name, // In practice, there is one case in which we won't get a stack. It's when
  33904. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  33905. // context from the parent component instance. The stack will be missing
  33906. // because it's outside of the reconciliation, and so the pointer has not
  33907. // been set. This is rare and doesn't matter. We'll also remove that API.
  33908. getCurrentFiberStackInDev);
  33909. }
  33910. return _assign({}, parentContext, {}, childContext);
  33911. }
  33912. }
  33913. function pushContextProvider(workInProgress) {
  33914. {
  33915. var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
  33916. // If the instance does not exist yet, we will push null at first,
  33917. // and replace it on the stack later when invalidating the context.
  33918. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
  33919. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  33920. previousContext = contextStackCursor.current;
  33921. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  33922. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  33923. return true;
  33924. }
  33925. }
  33926. function invalidateContextProvider(workInProgress, type, didChange) {
  33927. {
  33928. var instance = workInProgress.stateNode;
  33929. if (!instance) {
  33930. {
  33931. throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
  33932. }
  33933. }
  33934. if (didChange) {
  33935. // Merge parent and own context.
  33936. // Skip this if we're not updating due to sCU.
  33937. // This avoids unnecessarily recomputing memoized values.
  33938. var mergedContext = processChildContext(workInProgress, type, previousContext);
  33939. instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
  33940. // It is important to unwind the context in the reverse order.
  33941. pop(didPerformWorkStackCursor, workInProgress);
  33942. pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.
  33943. push(contextStackCursor, mergedContext, workInProgress);
  33944. push(didPerformWorkStackCursor, didChange, workInProgress);
  33945. } else {
  33946. pop(didPerformWorkStackCursor, workInProgress);
  33947. push(didPerformWorkStackCursor, didChange, workInProgress);
  33948. }
  33949. }
  33950. }
  33951. function findCurrentUnmaskedContext(fiber) {
  33952. {
  33953. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  33954. // makes sense elsewhere
  33955. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  33956. {
  33957. throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
  33958. }
  33959. }
  33960. var node = fiber;
  33961. do {
  33962. switch (node.tag) {
  33963. case HostRoot:
  33964. return node.stateNode.context;
  33965. case ClassComponent:
  33966. {
  33967. var Component = node.type;
  33968. if (isContextProvider(Component)) {
  33969. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  33970. }
  33971. break;
  33972. }
  33973. }
  33974. node = node.return;
  33975. } while (node !== null);
  33976. {
  33977. {
  33978. throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
  33979. }
  33980. }
  33981. }
  33982. }
  33983. var LegacyRoot = 0;
  33984. var BlockingRoot = 1;
  33985. var ConcurrentRoot = 2;
  33986. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
  33987. Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
  33988. Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
  33989. Scheduler_shouldYield = Scheduler.unstable_shouldYield,
  33990. Scheduler_requestPaint = Scheduler.unstable_requestPaint,
  33991. Scheduler_now = Scheduler.unstable_now,
  33992. Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
  33993. Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
  33994. Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
  33995. Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
  33996. Scheduler_LowPriority = Scheduler.unstable_LowPriority,
  33997. Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  33998. {
  33999. // Provide explicit error message when production+profiling bundle of e.g.
  34000. // react-dom is used with production (non-profiling) bundle of
  34001. // scheduler/tracing
  34002. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  34003. {
  34004. throw 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" );
  34005. }
  34006. }
  34007. }
  34008. var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
  34009. // ascending numbers so we can compare them like numbers. They start at 90 to
  34010. // avoid clashing with Scheduler's priorities.
  34011. var ImmediatePriority = 99;
  34012. var UserBlockingPriority$1 = 98;
  34013. var NormalPriority = 97;
  34014. var LowPriority = 96;
  34015. var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.
  34016. var NoPriority = 90;
  34017. var shouldYield = Scheduler_shouldYield;
  34018. var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
  34019. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  34020. var syncQueue = null;
  34021. var immediateQueueCallbackNode = null;
  34022. var isFlushingSyncQueue = false;
  34023. var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  34024. // This will be the case for modern browsers that support `performance.now`. In
  34025. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  34026. // timestamp. In that case, subtract the module initialization time to simulate
  34027. // the behavior of performance.now and keep our times small enough to fit
  34028. // within 32 bits.
  34029. // TODO: Consider lifting this into Scheduler.
  34030. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  34031. return Scheduler_now() - initialTimeMs;
  34032. };
  34033. function getCurrentPriorityLevel() {
  34034. switch (Scheduler_getCurrentPriorityLevel()) {
  34035. case Scheduler_ImmediatePriority:
  34036. return ImmediatePriority;
  34037. case Scheduler_UserBlockingPriority:
  34038. return UserBlockingPriority$1;
  34039. case Scheduler_NormalPriority:
  34040. return NormalPriority;
  34041. case Scheduler_LowPriority:
  34042. return LowPriority;
  34043. case Scheduler_IdlePriority:
  34044. return IdlePriority;
  34045. default:
  34046. {
  34047. {
  34048. throw Error( "Unknown priority level." );
  34049. }
  34050. }
  34051. }
  34052. }
  34053. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  34054. switch (reactPriorityLevel) {
  34055. case ImmediatePriority:
  34056. return Scheduler_ImmediatePriority;
  34057. case UserBlockingPriority$1:
  34058. return Scheduler_UserBlockingPriority;
  34059. case NormalPriority:
  34060. return Scheduler_NormalPriority;
  34061. case LowPriority:
  34062. return Scheduler_LowPriority;
  34063. case IdlePriority:
  34064. return Scheduler_IdlePriority;
  34065. default:
  34066. {
  34067. {
  34068. throw Error( "Unknown priority level." );
  34069. }
  34070. }
  34071. }
  34072. }
  34073. function runWithPriority$1(reactPriorityLevel, fn) {
  34074. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  34075. return Scheduler_runWithPriority(priorityLevel, fn);
  34076. }
  34077. function scheduleCallback(reactPriorityLevel, callback, options) {
  34078. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  34079. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  34080. }
  34081. function scheduleSyncCallback(callback) {
  34082. // Push this callback into an internal queue. We'll flush these either in
  34083. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  34084. if (syncQueue === null) {
  34085. syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.
  34086. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  34087. } else {
  34088. // Push onto existing queue. Don't need to schedule a callback because
  34089. // we already scheduled one when we created the queue.
  34090. syncQueue.push(callback);
  34091. }
  34092. return fakeCallbackNode;
  34093. }
  34094. function cancelCallback(callbackNode) {
  34095. if (callbackNode !== fakeCallbackNode) {
  34096. Scheduler_cancelCallback(callbackNode);
  34097. }
  34098. }
  34099. function flushSyncCallbackQueue() {
  34100. if (immediateQueueCallbackNode !== null) {
  34101. var node = immediateQueueCallbackNode;
  34102. immediateQueueCallbackNode = null;
  34103. Scheduler_cancelCallback(node);
  34104. }
  34105. flushSyncCallbackQueueImpl();
  34106. }
  34107. function flushSyncCallbackQueueImpl() {
  34108. if (!isFlushingSyncQueue && syncQueue !== null) {
  34109. // Prevent re-entrancy.
  34110. isFlushingSyncQueue = true;
  34111. var i = 0;
  34112. try {
  34113. var _isSync = true;
  34114. var queue = syncQueue;
  34115. runWithPriority$1(ImmediatePriority, function () {
  34116. for (; i < queue.length; i++) {
  34117. var callback = queue[i];
  34118. do {
  34119. callback = callback(_isSync);
  34120. } while (callback !== null);
  34121. }
  34122. });
  34123. syncQueue = null;
  34124. } catch (error) {
  34125. // If something throws, leave the remaining callbacks on the queue.
  34126. if (syncQueue !== null) {
  34127. syncQueue = syncQueue.slice(i + 1);
  34128. } // Resume flushing in the next tick
  34129. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  34130. throw error;
  34131. } finally {
  34132. isFlushingSyncQueue = false;
  34133. }
  34134. }
  34135. }
  34136. var NoMode = 0;
  34137. var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
  34138. // tag instead
  34139. var BlockingMode = 2;
  34140. var ConcurrentMode = 4;
  34141. var ProfileMode = 8;
  34142. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  34143. // Math.pow(2, 30) - 1
  34144. // 0b111111111111111111111111111111
  34145. var MAX_SIGNED_31_BIT_INT = 1073741823;
  34146. var NoWork = 0; // TODO: Think of a better name for Never. The key difference with Idle is that
  34147. // Never work can be committed in an inconsistent state without tearing the UI.
  34148. // The main example is offscreen content, like a hidden subtree. So one possible
  34149. // name is Offscreen. However, it also includes dehydrated Suspense boundaries,
  34150. // which are inconsistent in the sense that they haven't finished yet, but
  34151. // aren't visibly inconsistent because the server rendered HTML matches what the
  34152. // hydrated tree would look like.
  34153. var Never = 1; // Idle is slightly higher priority than Never. It must completely finish in
  34154. // order to be consistent.
  34155. var Idle = 2; // Continuous Hydration is slightly higher than Idle and is used to increase
  34156. // priority of hover targets.
  34157. var ContinuousHydration = 3;
  34158. var Sync = MAX_SIGNED_31_BIT_INT;
  34159. var Batched = Sync - 1;
  34160. var UNIT_SIZE = 10;
  34161. var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms.
  34162. function msToExpirationTime(ms) {
  34163. // Always subtract from the offset so that we don't clash with the magic number for NoWork.
  34164. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  34165. }
  34166. function expirationTimeToMs(expirationTime) {
  34167. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  34168. }
  34169. function ceiling(num, precision) {
  34170. return ((num / precision | 0) + 1) * precision;
  34171. }
  34172. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  34173. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  34174. } // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  34175. // the names to reflect.
  34176. var LOW_PRIORITY_EXPIRATION = 5000;
  34177. var LOW_PRIORITY_BATCH_SIZE = 250;
  34178. function computeAsyncExpiration(currentTime) {
  34179. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  34180. }
  34181. function computeSuspenseExpiration(currentTime, timeoutMs) {
  34182. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  34183. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  34184. } // We intentionally set a higher expiration time for interactive updates in
  34185. // dev than in production.
  34186. //
  34187. // If the main thread is being blocked so long that you hit the expiration,
  34188. // it's a problem that could be solved with better scheduling.
  34189. //
  34190. // People will be more likely to notice this and fix it with the long
  34191. // expiration time in development.
  34192. //
  34193. // In production we opt for better UX at the risk of masking scheduling
  34194. // problems, by expiring fast.
  34195. var HIGH_PRIORITY_EXPIRATION = 500 ;
  34196. var HIGH_PRIORITY_BATCH_SIZE = 100;
  34197. function computeInteractiveExpiration(currentTime) {
  34198. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  34199. }
  34200. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  34201. if (expirationTime === Sync) {
  34202. return ImmediatePriority;
  34203. }
  34204. if (expirationTime === Never || expirationTime === Idle) {
  34205. return IdlePriority;
  34206. }
  34207. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  34208. if (msUntil <= 0) {
  34209. return ImmediatePriority;
  34210. }
  34211. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  34212. return UserBlockingPriority$1;
  34213. }
  34214. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  34215. return NormalPriority;
  34216. } // TODO: Handle LowPriority
  34217. // Assume anything lower has idle priority
  34218. return IdlePriority;
  34219. }
  34220. var ReactStrictModeWarnings = {
  34221. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  34222. flushPendingUnsafeLifecycleWarnings: function () {},
  34223. recordLegacyContextWarning: function (fiber, instance) {},
  34224. flushLegacyContextWarning: function () {},
  34225. discardPendingWarnings: function () {}
  34226. };
  34227. {
  34228. var findStrictRoot = function (fiber) {
  34229. var maybeStrictRoot = null;
  34230. var node = fiber;
  34231. while (node !== null) {
  34232. if (node.mode & StrictMode) {
  34233. maybeStrictRoot = node;
  34234. }
  34235. node = node.return;
  34236. }
  34237. return maybeStrictRoot;
  34238. };
  34239. var setToSortedString = function (set) {
  34240. var array = [];
  34241. set.forEach(function (value) {
  34242. array.push(value);
  34243. });
  34244. return array.sort().join(', ');
  34245. };
  34246. var pendingComponentWillMountWarnings = [];
  34247. var pendingUNSAFE_ComponentWillMountWarnings = [];
  34248. var pendingComponentWillReceivePropsWarnings = [];
  34249. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  34250. var pendingComponentWillUpdateWarnings = [];
  34251. var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.
  34252. var didWarnAboutUnsafeLifecycles = new Set();
  34253. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  34254. // Dedup strategy: Warn once per component.
  34255. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  34256. return;
  34257. }
  34258. if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
  34259. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  34260. pendingComponentWillMountWarnings.push(fiber);
  34261. }
  34262. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  34263. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  34264. }
  34265. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  34266. pendingComponentWillReceivePropsWarnings.push(fiber);
  34267. }
  34268. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  34269. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  34270. }
  34271. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  34272. pendingComponentWillUpdateWarnings.push(fiber);
  34273. }
  34274. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  34275. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  34276. }
  34277. };
  34278. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  34279. // We do an initial pass to gather component names
  34280. var componentWillMountUniqueNames = new Set();
  34281. if (pendingComponentWillMountWarnings.length > 0) {
  34282. pendingComponentWillMountWarnings.forEach(function (fiber) {
  34283. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  34284. didWarnAboutUnsafeLifecycles.add(fiber.type);
  34285. });
  34286. pendingComponentWillMountWarnings = [];
  34287. }
  34288. var UNSAFE_componentWillMountUniqueNames = new Set();
  34289. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  34290. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  34291. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  34292. didWarnAboutUnsafeLifecycles.add(fiber.type);
  34293. });
  34294. pendingUNSAFE_ComponentWillMountWarnings = [];
  34295. }
  34296. var componentWillReceivePropsUniqueNames = new Set();
  34297. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  34298. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  34299. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  34300. didWarnAboutUnsafeLifecycles.add(fiber.type);
  34301. });
  34302. pendingComponentWillReceivePropsWarnings = [];
  34303. }
  34304. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  34305. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  34306. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  34307. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  34308. didWarnAboutUnsafeLifecycles.add(fiber.type);
  34309. });
  34310. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  34311. }
  34312. var componentWillUpdateUniqueNames = new Set();
  34313. if (pendingComponentWillUpdateWarnings.length > 0) {
  34314. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  34315. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  34316. didWarnAboutUnsafeLifecycles.add(fiber.type);
  34317. });
  34318. pendingComponentWillUpdateWarnings = [];
  34319. }
  34320. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  34321. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  34322. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  34323. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  34324. didWarnAboutUnsafeLifecycles.add(fiber.type);
  34325. });
  34326. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  34327. } // Finally, we flush all the warnings
  34328. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  34329. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  34330. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  34331. error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  34332. }
  34333. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  34334. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  34335. error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  34336. }
  34337. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  34338. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  34339. error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
  34340. }
  34341. if (componentWillMountUniqueNames.size > 0) {
  34342. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  34343. warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  34344. }
  34345. if (componentWillReceivePropsUniqueNames.size > 0) {
  34346. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  34347. warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  34348. }
  34349. if (componentWillUpdateUniqueNames.size > 0) {
  34350. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  34351. warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  34352. }
  34353. };
  34354. var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.
  34355. var didWarnAboutLegacyContext = new Set();
  34356. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  34357. var strictRoot = findStrictRoot(fiber);
  34358. if (strictRoot === null) {
  34359. error('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.');
  34360. return;
  34361. } // Dedup strategy: Warn once per component.
  34362. if (didWarnAboutLegacyContext.has(fiber.type)) {
  34363. return;
  34364. }
  34365. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  34366. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  34367. if (warningsForRoot === undefined) {
  34368. warningsForRoot = [];
  34369. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  34370. }
  34371. warningsForRoot.push(fiber);
  34372. }
  34373. };
  34374. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  34375. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  34376. if (fiberArray.length === 0) {
  34377. return;
  34378. }
  34379. var firstFiber = fiberArray[0];
  34380. var uniqueNames = new Set();
  34381. fiberArray.forEach(function (fiber) {
  34382. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  34383. didWarnAboutLegacyContext.add(fiber.type);
  34384. });
  34385. var sortedNames = setToSortedString(uniqueNames);
  34386. var firstComponentStack = getStackByFiberInDevAndProd(firstFiber);
  34387. error('Legacy context API has been detected within a strict-mode tree.' + '\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: https://fb.me/react-legacy-context' + '%s', sortedNames, firstComponentStack);
  34388. });
  34389. };
  34390. ReactStrictModeWarnings.discardPendingWarnings = function () {
  34391. pendingComponentWillMountWarnings = [];
  34392. pendingUNSAFE_ComponentWillMountWarnings = [];
  34393. pendingComponentWillReceivePropsWarnings = [];
  34394. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  34395. pendingComponentWillUpdateWarnings = [];
  34396. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  34397. pendingLegacyContextWarning = new Map();
  34398. };
  34399. }
  34400. var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  34401. var failedBoundaries = null;
  34402. var setRefreshHandler = function (handler) {
  34403. {
  34404. resolveFamily = handler;
  34405. }
  34406. };
  34407. function resolveFunctionForHotReloading(type) {
  34408. {
  34409. if (resolveFamily === null) {
  34410. // Hot reloading is disabled.
  34411. return type;
  34412. }
  34413. var family = resolveFamily(type);
  34414. if (family === undefined) {
  34415. return type;
  34416. } // Use the latest known implementation.
  34417. return family.current;
  34418. }
  34419. }
  34420. function resolveClassForHotReloading(type) {
  34421. // No implementation differences.
  34422. return resolveFunctionForHotReloading(type);
  34423. }
  34424. function resolveForwardRefForHotReloading(type) {
  34425. {
  34426. if (resolveFamily === null) {
  34427. // Hot reloading is disabled.
  34428. return type;
  34429. }
  34430. var family = resolveFamily(type);
  34431. if (family === undefined) {
  34432. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  34433. if (type !== null && type !== undefined && typeof type.render === 'function') {
  34434. // ForwardRef is special because its resolved .type is an object,
  34435. // but it's possible that we only have its inner render function in the map.
  34436. // If that inner render function is different, we'll build a new forwardRef type.
  34437. var currentRender = resolveFunctionForHotReloading(type.render);
  34438. if (type.render !== currentRender) {
  34439. var syntheticType = {
  34440. $$typeof: REACT_FORWARD_REF_TYPE,
  34441. render: currentRender
  34442. };
  34443. if (type.displayName !== undefined) {
  34444. syntheticType.displayName = type.displayName;
  34445. }
  34446. return syntheticType;
  34447. }
  34448. }
  34449. return type;
  34450. } // Use the latest known implementation.
  34451. return family.current;
  34452. }
  34453. }
  34454. function isCompatibleFamilyForHotReloading(fiber, element) {
  34455. {
  34456. if (resolveFamily === null) {
  34457. // Hot reloading is disabled.
  34458. return false;
  34459. }
  34460. var prevType = fiber.elementType;
  34461. var nextType = element.type; // If we got here, we know types aren't === equal.
  34462. var needsCompareFamilies = false;
  34463. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  34464. switch (fiber.tag) {
  34465. case ClassComponent:
  34466. {
  34467. if (typeof nextType === 'function') {
  34468. needsCompareFamilies = true;
  34469. }
  34470. break;
  34471. }
  34472. case FunctionComponent:
  34473. {
  34474. if (typeof nextType === 'function') {
  34475. needsCompareFamilies = true;
  34476. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  34477. // We don't know the inner type yet.
  34478. // We're going to assume that the lazy inner type is stable,
  34479. // and so it is sufficient to avoid reconciling it away.
  34480. // We're not going to unwrap or actually use the new lazy type.
  34481. needsCompareFamilies = true;
  34482. }
  34483. break;
  34484. }
  34485. case ForwardRef:
  34486. {
  34487. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  34488. needsCompareFamilies = true;
  34489. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  34490. needsCompareFamilies = true;
  34491. }
  34492. break;
  34493. }
  34494. case MemoComponent:
  34495. case SimpleMemoComponent:
  34496. {
  34497. if ($$typeofNextType === REACT_MEMO_TYPE) {
  34498. // TODO: if it was but can no longer be simple,
  34499. // we shouldn't set this.
  34500. needsCompareFamilies = true;
  34501. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  34502. needsCompareFamilies = true;
  34503. }
  34504. break;
  34505. }
  34506. default:
  34507. return false;
  34508. } // Check if both types have a family and it's the same one.
  34509. if (needsCompareFamilies) {
  34510. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  34511. // This means both of them need to be registered to preserve state.
  34512. // If we unwrapped and compared the inner types for wrappers instead,
  34513. // then we would risk falsely saying two separate memo(Foo)
  34514. // calls are equivalent because they wrap the same Foo function.
  34515. var prevFamily = resolveFamily(prevType);
  34516. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  34517. return true;
  34518. }
  34519. }
  34520. return false;
  34521. }
  34522. }
  34523. function markFailedErrorBoundaryForHotReloading(fiber) {
  34524. {
  34525. if (resolveFamily === null) {
  34526. // Hot reloading is disabled.
  34527. return;
  34528. }
  34529. if (typeof WeakSet !== 'function') {
  34530. return;
  34531. }
  34532. if (failedBoundaries === null) {
  34533. failedBoundaries = new WeakSet();
  34534. }
  34535. failedBoundaries.add(fiber);
  34536. }
  34537. }
  34538. var scheduleRefresh = function (root, update) {
  34539. {
  34540. if (resolveFamily === null) {
  34541. // Hot reloading is disabled.
  34542. return;
  34543. }
  34544. var staleFamilies = update.staleFamilies,
  34545. updatedFamilies = update.updatedFamilies;
  34546. flushPassiveEffects();
  34547. flushSync(function () {
  34548. scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
  34549. });
  34550. }
  34551. };
  34552. var scheduleRoot = function (root, element) {
  34553. {
  34554. if (root.context !== emptyContextObject) {
  34555. // Super edge case: root has a legacy _renderSubtree context
  34556. // but we don't know the parentComponent so we can't pass it.
  34557. // Just ignore. We'll delete this with _renderSubtree code path later.
  34558. return;
  34559. }
  34560. flushPassiveEffects();
  34561. syncUpdates(function () {
  34562. updateContainer(element, root, null, null);
  34563. });
  34564. }
  34565. };
  34566. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  34567. {
  34568. var alternate = fiber.alternate,
  34569. child = fiber.child,
  34570. sibling = fiber.sibling,
  34571. tag = fiber.tag,
  34572. type = fiber.type;
  34573. var candidateType = null;
  34574. switch (tag) {
  34575. case FunctionComponent:
  34576. case SimpleMemoComponent:
  34577. case ClassComponent:
  34578. candidateType = type;
  34579. break;
  34580. case ForwardRef:
  34581. candidateType = type.render;
  34582. break;
  34583. }
  34584. if (resolveFamily === null) {
  34585. throw new Error('Expected resolveFamily to be set during hot reload.');
  34586. }
  34587. var needsRender = false;
  34588. var needsRemount = false;
  34589. if (candidateType !== null) {
  34590. var family = resolveFamily(candidateType);
  34591. if (family !== undefined) {
  34592. if (staleFamilies.has(family)) {
  34593. needsRemount = true;
  34594. } else if (updatedFamilies.has(family)) {
  34595. if (tag === ClassComponent) {
  34596. needsRemount = true;
  34597. } else {
  34598. needsRender = true;
  34599. }
  34600. }
  34601. }
  34602. }
  34603. if (failedBoundaries !== null) {
  34604. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  34605. needsRemount = true;
  34606. }
  34607. }
  34608. if (needsRemount) {
  34609. fiber._debugNeedsRemount = true;
  34610. }
  34611. if (needsRemount || needsRender) {
  34612. scheduleWork(fiber, Sync);
  34613. }
  34614. if (child !== null && !needsRemount) {
  34615. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  34616. }
  34617. if (sibling !== null) {
  34618. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  34619. }
  34620. }
  34621. }
  34622. var findHostInstancesForRefresh = function (root, families) {
  34623. {
  34624. var hostInstances = new Set();
  34625. var types = new Set(families.map(function (family) {
  34626. return family.current;
  34627. }));
  34628. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  34629. return hostInstances;
  34630. }
  34631. };
  34632. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  34633. {
  34634. var child = fiber.child,
  34635. sibling = fiber.sibling,
  34636. tag = fiber.tag,
  34637. type = fiber.type;
  34638. var candidateType = null;
  34639. switch (tag) {
  34640. case FunctionComponent:
  34641. case SimpleMemoComponent:
  34642. case ClassComponent:
  34643. candidateType = type;
  34644. break;
  34645. case ForwardRef:
  34646. candidateType = type.render;
  34647. break;
  34648. }
  34649. var didMatch = false;
  34650. if (candidateType !== null) {
  34651. if (types.has(candidateType)) {
  34652. didMatch = true;
  34653. }
  34654. }
  34655. if (didMatch) {
  34656. // We have a match. This only drills down to the closest host components.
  34657. // There's no need to search deeper because for the purpose of giving
  34658. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  34659. findHostInstancesForFiberShallowly(fiber, hostInstances);
  34660. } else {
  34661. // If there's no match, maybe there will be one further down in the child tree.
  34662. if (child !== null) {
  34663. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  34664. }
  34665. }
  34666. if (sibling !== null) {
  34667. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  34668. }
  34669. }
  34670. }
  34671. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  34672. {
  34673. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  34674. if (foundHostInstances) {
  34675. return;
  34676. } // If we didn't find any host children, fallback to closest host parent.
  34677. var node = fiber;
  34678. while (true) {
  34679. switch (node.tag) {
  34680. case HostComponent:
  34681. hostInstances.add(node.stateNode);
  34682. return;
  34683. case HostPortal:
  34684. hostInstances.add(node.stateNode.containerInfo);
  34685. return;
  34686. case HostRoot:
  34687. hostInstances.add(node.stateNode.containerInfo);
  34688. return;
  34689. }
  34690. if (node.return === null) {
  34691. throw new Error('Expected to reach root first.');
  34692. }
  34693. node = node.return;
  34694. }
  34695. }
  34696. }
  34697. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  34698. {
  34699. var node = fiber;
  34700. var foundHostInstances = false;
  34701. while (true) {
  34702. if (node.tag === HostComponent) {
  34703. // We got a match.
  34704. foundHostInstances = true;
  34705. hostInstances.add(node.stateNode); // There may still be more, so keep searching.
  34706. } else if (node.child !== null) {
  34707. node.child.return = node;
  34708. node = node.child;
  34709. continue;
  34710. }
  34711. if (node === fiber) {
  34712. return foundHostInstances;
  34713. }
  34714. while (node.sibling === null) {
  34715. if (node.return === null || node.return === fiber) {
  34716. return foundHostInstances;
  34717. }
  34718. node = node.return;
  34719. }
  34720. node.sibling.return = node.return;
  34721. node = node.sibling;
  34722. }
  34723. }
  34724. return false;
  34725. }
  34726. function resolveDefaultProps(Component, baseProps) {
  34727. if (Component && Component.defaultProps) {
  34728. // Resolve default props. Taken from ReactElement
  34729. var props = _assign({}, baseProps);
  34730. var defaultProps = Component.defaultProps;
  34731. for (var propName in defaultProps) {
  34732. if (props[propName] === undefined) {
  34733. props[propName] = defaultProps[propName];
  34734. }
  34735. }
  34736. return props;
  34737. }
  34738. return baseProps;
  34739. }
  34740. function readLazyComponentType(lazyComponent) {
  34741. initializeLazyComponentType(lazyComponent);
  34742. if (lazyComponent._status !== Resolved) {
  34743. throw lazyComponent._result;
  34744. }
  34745. return lazyComponent._result;
  34746. }
  34747. var valueCursor = createCursor(null);
  34748. var rendererSigil;
  34749. {
  34750. // Use this to detect multiple renderers using the same context
  34751. rendererSigil = {};
  34752. }
  34753. var currentlyRenderingFiber = null;
  34754. var lastContextDependency = null;
  34755. var lastContextWithAllBitsObserved = null;
  34756. var isDisallowedContextReadInDEV = false;
  34757. function resetContextDependencies() {
  34758. // This is called right before React yields execution, to ensure `readContext`
  34759. // cannot be called outside the render phase.
  34760. currentlyRenderingFiber = null;
  34761. lastContextDependency = null;
  34762. lastContextWithAllBitsObserved = null;
  34763. {
  34764. isDisallowedContextReadInDEV = false;
  34765. }
  34766. }
  34767. function enterDisallowedContextReadInDEV() {
  34768. {
  34769. isDisallowedContextReadInDEV = true;
  34770. }
  34771. }
  34772. function exitDisallowedContextReadInDEV() {
  34773. {
  34774. isDisallowedContextReadInDEV = false;
  34775. }
  34776. }
  34777. function pushProvider(providerFiber, nextValue) {
  34778. var context = providerFiber.type._context;
  34779. {
  34780. push(valueCursor, context._currentValue, providerFiber);
  34781. context._currentValue = nextValue;
  34782. {
  34783. if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
  34784. error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
  34785. }
  34786. context._currentRenderer = rendererSigil;
  34787. }
  34788. }
  34789. }
  34790. function popProvider(providerFiber) {
  34791. var currentValue = valueCursor.current;
  34792. pop(valueCursor, providerFiber);
  34793. var context = providerFiber.type._context;
  34794. {
  34795. context._currentValue = currentValue;
  34796. }
  34797. }
  34798. function calculateChangedBits(context, newValue, oldValue) {
  34799. if (objectIs(oldValue, newValue)) {
  34800. // No change
  34801. return 0;
  34802. } else {
  34803. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  34804. {
  34805. if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
  34806. error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
  34807. }
  34808. }
  34809. return changedBits | 0;
  34810. }
  34811. }
  34812. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  34813. // Update the child expiration time of all the ancestors, including
  34814. // the alternates.
  34815. var node = parent;
  34816. while (node !== null) {
  34817. var alternate = node.alternate;
  34818. if (node.childExpirationTime < renderExpirationTime) {
  34819. node.childExpirationTime = renderExpirationTime;
  34820. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  34821. alternate.childExpirationTime = renderExpirationTime;
  34822. }
  34823. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  34824. alternate.childExpirationTime = renderExpirationTime;
  34825. } else {
  34826. // Neither alternate was updated, which means the rest of the
  34827. // ancestor path already has sufficient priority.
  34828. break;
  34829. }
  34830. node = node.return;
  34831. }
  34832. }
  34833. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  34834. var fiber = workInProgress.child;
  34835. if (fiber !== null) {
  34836. // Set the return pointer of the child to the work-in-progress fiber.
  34837. fiber.return = workInProgress;
  34838. }
  34839. while (fiber !== null) {
  34840. var nextFiber = void 0; // Visit this fiber.
  34841. var list = fiber.dependencies;
  34842. if (list !== null) {
  34843. nextFiber = fiber.child;
  34844. var dependency = list.firstContext;
  34845. while (dependency !== null) {
  34846. // Check if the context matches.
  34847. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  34848. // Match! Schedule an update on this fiber.
  34849. if (fiber.tag === ClassComponent) {
  34850. // Schedule a force update on the work-in-progress.
  34851. var update = createUpdate(renderExpirationTime, null);
  34852. update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
  34853. // update to the current fiber, too, which means it will persist even if
  34854. // this render is thrown away. Since it's a race condition, not sure it's
  34855. // worth fixing.
  34856. enqueueUpdate(fiber, update);
  34857. }
  34858. if (fiber.expirationTime < renderExpirationTime) {
  34859. fiber.expirationTime = renderExpirationTime;
  34860. }
  34861. var alternate = fiber.alternate;
  34862. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  34863. alternate.expirationTime = renderExpirationTime;
  34864. }
  34865. scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too.
  34866. if (list.expirationTime < renderExpirationTime) {
  34867. list.expirationTime = renderExpirationTime;
  34868. } // Since we already found a match, we can stop traversing the
  34869. // dependency list.
  34870. break;
  34871. }
  34872. dependency = dependency.next;
  34873. }
  34874. } else if (fiber.tag === ContextProvider) {
  34875. // Don't scan deeper if this is a matching provider
  34876. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  34877. } else {
  34878. // Traverse down.
  34879. nextFiber = fiber.child;
  34880. }
  34881. if (nextFiber !== null) {
  34882. // Set the return pointer of the child to the work-in-progress fiber.
  34883. nextFiber.return = fiber;
  34884. } else {
  34885. // No child. Traverse to next sibling.
  34886. nextFiber = fiber;
  34887. while (nextFiber !== null) {
  34888. if (nextFiber === workInProgress) {
  34889. // We're back to the root of this subtree. Exit.
  34890. nextFiber = null;
  34891. break;
  34892. }
  34893. var sibling = nextFiber.sibling;
  34894. if (sibling !== null) {
  34895. // Set the return pointer of the sibling to the work-in-progress fiber.
  34896. sibling.return = nextFiber.return;
  34897. nextFiber = sibling;
  34898. break;
  34899. } // No more siblings. Traverse up.
  34900. nextFiber = nextFiber.return;
  34901. }
  34902. }
  34903. fiber = nextFiber;
  34904. }
  34905. }
  34906. function prepareToReadContext(workInProgress, renderExpirationTime) {
  34907. currentlyRenderingFiber = workInProgress;
  34908. lastContextDependency = null;
  34909. lastContextWithAllBitsObserved = null;
  34910. var dependencies = workInProgress.dependencies;
  34911. if (dependencies !== null) {
  34912. var firstContext = dependencies.firstContext;
  34913. if (firstContext !== null) {
  34914. if (dependencies.expirationTime >= renderExpirationTime) {
  34915. // Context list has a pending update. Mark that this fiber performed work.
  34916. markWorkInProgressReceivedUpdate();
  34917. } // Reset the work-in-progress list
  34918. dependencies.firstContext = null;
  34919. }
  34920. }
  34921. }
  34922. function readContext(context, observedBits) {
  34923. {
  34924. // This warning would fire if you read context inside a Hook like useMemo.
  34925. // Unlike the class check below, it's not enforced in production for perf.
  34926. if (isDisallowedContextReadInDEV) {
  34927. 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().');
  34928. }
  34929. }
  34930. if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
  34931. var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.
  34932. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  34933. // Observe all updates.
  34934. lastContextWithAllBitsObserved = context;
  34935. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  34936. } else {
  34937. resolvedObservedBits = observedBits;
  34938. }
  34939. var contextItem = {
  34940. context: context,
  34941. observedBits: resolvedObservedBits,
  34942. next: null
  34943. };
  34944. if (lastContextDependency === null) {
  34945. if (!(currentlyRenderingFiber !== null)) {
  34946. {
  34947. throw 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()." );
  34948. }
  34949. } // This is the first dependency for this component. Create a new list.
  34950. lastContextDependency = contextItem;
  34951. currentlyRenderingFiber.dependencies = {
  34952. expirationTime: NoWork,
  34953. firstContext: contextItem,
  34954. responders: null
  34955. };
  34956. } else {
  34957. // Append a new context item.
  34958. lastContextDependency = lastContextDependency.next = contextItem;
  34959. }
  34960. }
  34961. return context._currentValue ;
  34962. }
  34963. var UpdateState = 0;
  34964. var ReplaceState = 1;
  34965. var ForceUpdate = 2;
  34966. var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
  34967. // It should only be read right after calling `processUpdateQueue`, via
  34968. // `checkHasForceUpdateAfterProcessing`.
  34969. var hasForceUpdate = false;
  34970. var didWarnUpdateInsideUpdate;
  34971. var currentlyProcessingQueue;
  34972. {
  34973. didWarnUpdateInsideUpdate = false;
  34974. currentlyProcessingQueue = null;
  34975. }
  34976. function initializeUpdateQueue(fiber) {
  34977. var queue = {
  34978. baseState: fiber.memoizedState,
  34979. baseQueue: null,
  34980. shared: {
  34981. pending: null
  34982. },
  34983. effects: null
  34984. };
  34985. fiber.updateQueue = queue;
  34986. }
  34987. function cloneUpdateQueue(current, workInProgress) {
  34988. // Clone the update queue from current. Unless it's already a clone.
  34989. var queue = workInProgress.updateQueue;
  34990. var currentQueue = current.updateQueue;
  34991. if (queue === currentQueue) {
  34992. var clone = {
  34993. baseState: currentQueue.baseState,
  34994. baseQueue: currentQueue.baseQueue,
  34995. shared: currentQueue.shared,
  34996. effects: currentQueue.effects
  34997. };
  34998. workInProgress.updateQueue = clone;
  34999. }
  35000. }
  35001. function createUpdate(expirationTime, suspenseConfig) {
  35002. var update = {
  35003. expirationTime: expirationTime,
  35004. suspenseConfig: suspenseConfig,
  35005. tag: UpdateState,
  35006. payload: null,
  35007. callback: null,
  35008. next: null
  35009. };
  35010. update.next = update;
  35011. {
  35012. update.priority = getCurrentPriorityLevel();
  35013. }
  35014. return update;
  35015. }
  35016. function enqueueUpdate(fiber, update) {
  35017. var updateQueue = fiber.updateQueue;
  35018. if (updateQueue === null) {
  35019. // Only occurs if the fiber has been unmounted.
  35020. return;
  35021. }
  35022. var sharedQueue = updateQueue.shared;
  35023. var pending = sharedQueue.pending;
  35024. if (pending === null) {
  35025. // This is the first update. Create a circular list.
  35026. update.next = update;
  35027. } else {
  35028. update.next = pending.next;
  35029. pending.next = update;
  35030. }
  35031. sharedQueue.pending = update;
  35032. {
  35033. if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
  35034. error('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.');
  35035. didWarnUpdateInsideUpdate = true;
  35036. }
  35037. }
  35038. }
  35039. function enqueueCapturedUpdate(workInProgress, update) {
  35040. var current = workInProgress.alternate;
  35041. if (current !== null) {
  35042. // Ensure the work-in-progress queue is a clone
  35043. cloneUpdateQueue(current, workInProgress);
  35044. } // Captured updates go only on the work-in-progress queue.
  35045. var queue = workInProgress.updateQueue; // Append the update to the end of the list.
  35046. var last = queue.baseQueue;
  35047. if (last === null) {
  35048. queue.baseQueue = update.next = update;
  35049. update.next = update;
  35050. } else {
  35051. update.next = last.next;
  35052. last.next = update;
  35053. }
  35054. }
  35055. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  35056. switch (update.tag) {
  35057. case ReplaceState:
  35058. {
  35059. var payload = update.payload;
  35060. if (typeof payload === 'function') {
  35061. // Updater function
  35062. {
  35063. enterDisallowedContextReadInDEV();
  35064. if ( workInProgress.mode & StrictMode) {
  35065. payload.call(instance, prevState, nextProps);
  35066. }
  35067. }
  35068. var nextState = payload.call(instance, prevState, nextProps);
  35069. {
  35070. exitDisallowedContextReadInDEV();
  35071. }
  35072. return nextState;
  35073. } // State object
  35074. return payload;
  35075. }
  35076. case CaptureUpdate:
  35077. {
  35078. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  35079. }
  35080. // Intentional fallthrough
  35081. case UpdateState:
  35082. {
  35083. var _payload = update.payload;
  35084. var partialState;
  35085. if (typeof _payload === 'function') {
  35086. // Updater function
  35087. {
  35088. enterDisallowedContextReadInDEV();
  35089. if ( workInProgress.mode & StrictMode) {
  35090. _payload.call(instance, prevState, nextProps);
  35091. }
  35092. }
  35093. partialState = _payload.call(instance, prevState, nextProps);
  35094. {
  35095. exitDisallowedContextReadInDEV();
  35096. }
  35097. } else {
  35098. // Partial state object
  35099. partialState = _payload;
  35100. }
  35101. if (partialState === null || partialState === undefined) {
  35102. // Null and undefined are treated as no-ops.
  35103. return prevState;
  35104. } // Merge the partial state and the previous state.
  35105. return _assign({}, prevState, partialState);
  35106. }
  35107. case ForceUpdate:
  35108. {
  35109. hasForceUpdate = true;
  35110. return prevState;
  35111. }
  35112. }
  35113. return prevState;
  35114. }
  35115. function processUpdateQueue(workInProgress, props, instance, renderExpirationTime) {
  35116. // This is always non-null on a ClassComponent or HostRoot
  35117. var queue = workInProgress.updateQueue;
  35118. hasForceUpdate = false;
  35119. {
  35120. currentlyProcessingQueue = queue.shared;
  35121. } // The last rebase update that is NOT part of the base state.
  35122. var baseQueue = queue.baseQueue; // The last pending update that hasn't been processed yet.
  35123. var pendingQueue = queue.shared.pending;
  35124. if (pendingQueue !== null) {
  35125. // We have new updates that haven't been processed yet.
  35126. // We'll add them to the base queue.
  35127. if (baseQueue !== null) {
  35128. // Merge the pending queue and the base queue.
  35129. var baseFirst = baseQueue.next;
  35130. var pendingFirst = pendingQueue.next;
  35131. baseQueue.next = pendingFirst;
  35132. pendingQueue.next = baseFirst;
  35133. }
  35134. baseQueue = pendingQueue;
  35135. queue.shared.pending = null; // TODO: Pass `current` as argument
  35136. var current = workInProgress.alternate;
  35137. if (current !== null) {
  35138. var currentQueue = current.updateQueue;
  35139. if (currentQueue !== null) {
  35140. currentQueue.baseQueue = pendingQueue;
  35141. }
  35142. }
  35143. } // These values may change as we process the queue.
  35144. if (baseQueue !== null) {
  35145. var first = baseQueue.next; // Iterate through the list of updates to compute the result.
  35146. var newState = queue.baseState;
  35147. var newExpirationTime = NoWork;
  35148. var newBaseState = null;
  35149. var newBaseQueueFirst = null;
  35150. var newBaseQueueLast = null;
  35151. if (first !== null) {
  35152. var update = first;
  35153. do {
  35154. var updateExpirationTime = update.expirationTime;
  35155. if (updateExpirationTime < renderExpirationTime) {
  35156. // Priority is insufficient. Skip this update. If this is the first
  35157. // skipped update, the previous update/state is the new base
  35158. // update/state.
  35159. var clone = {
  35160. expirationTime: update.expirationTime,
  35161. suspenseConfig: update.suspenseConfig,
  35162. tag: update.tag,
  35163. payload: update.payload,
  35164. callback: update.callback,
  35165. next: null
  35166. };
  35167. if (newBaseQueueLast === null) {
  35168. newBaseQueueFirst = newBaseQueueLast = clone;
  35169. newBaseState = newState;
  35170. } else {
  35171. newBaseQueueLast = newBaseQueueLast.next = clone;
  35172. } // Update the remaining priority in the queue.
  35173. if (updateExpirationTime > newExpirationTime) {
  35174. newExpirationTime = updateExpirationTime;
  35175. }
  35176. } else {
  35177. // This update does have sufficient priority.
  35178. if (newBaseQueueLast !== null) {
  35179. var _clone = {
  35180. expirationTime: Sync,
  35181. // This update is going to be committed so we never want uncommit it.
  35182. suspenseConfig: update.suspenseConfig,
  35183. tag: update.tag,
  35184. payload: update.payload,
  35185. callback: update.callback,
  35186. next: null
  35187. };
  35188. newBaseQueueLast = newBaseQueueLast.next = _clone;
  35189. } // Mark the event time of this update as relevant to this render pass.
  35190. // TODO: This should ideally use the true event time of this update rather than
  35191. // its priority which is a derived and not reverseable value.
  35192. // TODO: We should skip this update if it was already committed but currently
  35193. // we have no way of detecting the difference between a committed and suspended
  35194. // update here.
  35195. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
  35196. newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
  35197. var callback = update.callback;
  35198. if (callback !== null) {
  35199. workInProgress.effectTag |= Callback;
  35200. var effects = queue.effects;
  35201. if (effects === null) {
  35202. queue.effects = [update];
  35203. } else {
  35204. effects.push(update);
  35205. }
  35206. }
  35207. }
  35208. update = update.next;
  35209. if (update === null || update === first) {
  35210. pendingQueue = queue.shared.pending;
  35211. if (pendingQueue === null) {
  35212. break;
  35213. } else {
  35214. // An update was scheduled from inside a reducer. Add the new
  35215. // pending updates to the end of the list and keep processing.
  35216. update = baseQueue.next = pendingQueue.next;
  35217. pendingQueue.next = first;
  35218. queue.baseQueue = baseQueue = pendingQueue;
  35219. queue.shared.pending = null;
  35220. }
  35221. }
  35222. } while (true);
  35223. }
  35224. if (newBaseQueueLast === null) {
  35225. newBaseState = newState;
  35226. } else {
  35227. newBaseQueueLast.next = newBaseQueueFirst;
  35228. }
  35229. queue.baseState = newBaseState;
  35230. queue.baseQueue = newBaseQueueLast; // Set the remaining expiration time to be whatever is remaining in the queue.
  35231. // This should be fine because the only two other things that contribute to
  35232. // expiration time are props and context. We're already in the middle of the
  35233. // begin phase by the time we start processing the queue, so we've already
  35234. // dealt with the props. Context in components that specify
  35235. // shouldComponentUpdate is tricky; but we'll have to account for
  35236. // that regardless.
  35237. markUnprocessedUpdateTime(newExpirationTime);
  35238. workInProgress.expirationTime = newExpirationTime;
  35239. workInProgress.memoizedState = newState;
  35240. }
  35241. {
  35242. currentlyProcessingQueue = null;
  35243. }
  35244. }
  35245. function callCallback(callback, context) {
  35246. if (!(typeof callback === 'function')) {
  35247. {
  35248. throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
  35249. }
  35250. }
  35251. callback.call(context);
  35252. }
  35253. function resetHasForceUpdateBeforeProcessing() {
  35254. hasForceUpdate = false;
  35255. }
  35256. function checkHasForceUpdateAfterProcessing() {
  35257. return hasForceUpdate;
  35258. }
  35259. function commitUpdateQueue(finishedWork, finishedQueue, instance) {
  35260. // Commit the effects
  35261. var effects = finishedQueue.effects;
  35262. finishedQueue.effects = null;
  35263. if (effects !== null) {
  35264. for (var i = 0; i < effects.length; i++) {
  35265. var effect = effects[i];
  35266. var callback = effect.callback;
  35267. if (callback !== null) {
  35268. effect.callback = null;
  35269. callCallback(callback, instance);
  35270. }
  35271. }
  35272. }
  35273. }
  35274. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  35275. function requestCurrentSuspenseConfig() {
  35276. return ReactCurrentBatchConfig.suspense;
  35277. }
  35278. var fakeInternalInstance = {};
  35279. var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
  35280. // We'll use it to determine whether we need to initialize legacy refs.
  35281. var emptyRefsObject = new React.Component().refs;
  35282. var didWarnAboutStateAssignmentForComponent;
  35283. var didWarnAboutUninitializedState;
  35284. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
  35285. var didWarnAboutLegacyLifecyclesAndDerivedState;
  35286. var didWarnAboutUndefinedDerivedState;
  35287. var warnOnUndefinedDerivedState;
  35288. var warnOnInvalidCallback;
  35289. var didWarnAboutDirectlyAssigningPropsToState;
  35290. var didWarnAboutContextTypeAndContextTypes;
  35291. var didWarnAboutInvalidateContextType;
  35292. {
  35293. didWarnAboutStateAssignmentForComponent = new Set();
  35294. didWarnAboutUninitializedState = new Set();
  35295. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  35296. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  35297. didWarnAboutDirectlyAssigningPropsToState = new Set();
  35298. didWarnAboutUndefinedDerivedState = new Set();
  35299. didWarnAboutContextTypeAndContextTypes = new Set();
  35300. didWarnAboutInvalidateContextType = new Set();
  35301. var didWarnOnInvalidCallback = new Set();
  35302. warnOnInvalidCallback = function (callback, callerName) {
  35303. if (callback === null || typeof callback === 'function') {
  35304. return;
  35305. }
  35306. var key = callerName + "_" + callback;
  35307. if (!didWarnOnInvalidCallback.has(key)) {
  35308. didWarnOnInvalidCallback.add(key);
  35309. error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  35310. }
  35311. };
  35312. warnOnUndefinedDerivedState = function (type, partialState) {
  35313. if (partialState === undefined) {
  35314. var componentName = getComponentName(type) || 'Component';
  35315. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  35316. didWarnAboutUndefinedDerivedState.add(componentName);
  35317. error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  35318. }
  35319. }
  35320. }; // This is so gross but it's at least non-critical and can be removed if
  35321. // it causes problems. This is meant to give a nicer error message for
  35322. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  35323. // ...)) which otherwise throws a "_processChildContext is not a function"
  35324. // exception.
  35325. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  35326. enumerable: false,
  35327. value: function () {
  35328. {
  35329. {
  35330. throw 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)." );
  35331. }
  35332. }
  35333. }
  35334. });
  35335. Object.freeze(fakeInternalInstance);
  35336. }
  35337. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  35338. var prevState = workInProgress.memoizedState;
  35339. {
  35340. if ( workInProgress.mode & StrictMode) {
  35341. // Invoke the function an extra time to help detect side-effects.
  35342. getDerivedStateFromProps(nextProps, prevState);
  35343. }
  35344. }
  35345. var partialState = getDerivedStateFromProps(nextProps, prevState);
  35346. {
  35347. warnOnUndefinedDerivedState(ctor, partialState);
  35348. } // Merge the partial state and the previous state.
  35349. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  35350. workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
  35351. // base state.
  35352. if (workInProgress.expirationTime === NoWork) {
  35353. // Queue is always non-null for classes
  35354. var updateQueue = workInProgress.updateQueue;
  35355. updateQueue.baseState = memoizedState;
  35356. }
  35357. }
  35358. var classComponentUpdater = {
  35359. isMounted: isMounted,
  35360. enqueueSetState: function (inst, payload, callback) {
  35361. var fiber = get(inst);
  35362. var currentTime = requestCurrentTimeForUpdate();
  35363. var suspenseConfig = requestCurrentSuspenseConfig();
  35364. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35365. var update = createUpdate(expirationTime, suspenseConfig);
  35366. update.payload = payload;
  35367. if (callback !== undefined && callback !== null) {
  35368. {
  35369. warnOnInvalidCallback(callback, 'setState');
  35370. }
  35371. update.callback = callback;
  35372. }
  35373. enqueueUpdate(fiber, update);
  35374. scheduleWork(fiber, expirationTime);
  35375. },
  35376. enqueueReplaceState: function (inst, payload, callback) {
  35377. var fiber = get(inst);
  35378. var currentTime = requestCurrentTimeForUpdate();
  35379. var suspenseConfig = requestCurrentSuspenseConfig();
  35380. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35381. var update = createUpdate(expirationTime, suspenseConfig);
  35382. update.tag = ReplaceState;
  35383. update.payload = payload;
  35384. if (callback !== undefined && callback !== null) {
  35385. {
  35386. warnOnInvalidCallback(callback, 'replaceState');
  35387. }
  35388. update.callback = callback;
  35389. }
  35390. enqueueUpdate(fiber, update);
  35391. scheduleWork(fiber, expirationTime);
  35392. },
  35393. enqueueForceUpdate: function (inst, callback) {
  35394. var fiber = get(inst);
  35395. var currentTime = requestCurrentTimeForUpdate();
  35396. var suspenseConfig = requestCurrentSuspenseConfig();
  35397. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35398. var update = createUpdate(expirationTime, suspenseConfig);
  35399. update.tag = ForceUpdate;
  35400. if (callback !== undefined && callback !== null) {
  35401. {
  35402. warnOnInvalidCallback(callback, 'forceUpdate');
  35403. }
  35404. update.callback = callback;
  35405. }
  35406. enqueueUpdate(fiber, update);
  35407. scheduleWork(fiber, expirationTime);
  35408. }
  35409. };
  35410. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  35411. var instance = workInProgress.stateNode;
  35412. if (typeof instance.shouldComponentUpdate === 'function') {
  35413. {
  35414. if ( workInProgress.mode & StrictMode) {
  35415. // Invoke the function an extra time to help detect side-effects.
  35416. instance.shouldComponentUpdate(newProps, newState, nextContext);
  35417. }
  35418. }
  35419. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  35420. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  35421. stopPhaseTimer();
  35422. {
  35423. if (shouldUpdate === undefined) {
  35424. error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
  35425. }
  35426. }
  35427. return shouldUpdate;
  35428. }
  35429. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  35430. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  35431. }
  35432. return true;
  35433. }
  35434. function checkClassInstance(workInProgress, ctor, newProps) {
  35435. var instance = workInProgress.stateNode;
  35436. {
  35437. var name = getComponentName(ctor) || 'Component';
  35438. var renderPresent = instance.render;
  35439. if (!renderPresent) {
  35440. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  35441. error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  35442. } else {
  35443. error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  35444. }
  35445. }
  35446. if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
  35447. error('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);
  35448. }
  35449. if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
  35450. error('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);
  35451. }
  35452. if (instance.propTypes) {
  35453. error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
  35454. }
  35455. if (instance.contextType) {
  35456. error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
  35457. }
  35458. {
  35459. if (instance.contextTypes) {
  35460. error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
  35461. }
  35462. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  35463. didWarnAboutContextTypeAndContextTypes.add(ctor);
  35464. error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  35465. }
  35466. }
  35467. if (typeof instance.componentShouldUpdate === 'function') {
  35468. error('%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);
  35469. }
  35470. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  35471. error('%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');
  35472. }
  35473. if (typeof instance.componentDidUnmount === 'function') {
  35474. error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
  35475. }
  35476. if (typeof instance.componentDidReceiveProps === 'function') {
  35477. error('%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);
  35478. }
  35479. if (typeof instance.componentWillRecieveProps === 'function') {
  35480. error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
  35481. }
  35482. if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
  35483. error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
  35484. }
  35485. var hasMutatedProps = instance.props !== newProps;
  35486. if (instance.props !== undefined && hasMutatedProps) {
  35487. error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
  35488. }
  35489. if (instance.defaultProps) {
  35490. error('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);
  35491. }
  35492. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  35493. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  35494. error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  35495. }
  35496. if (typeof instance.getDerivedStateFromProps === 'function') {
  35497. error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
  35498. }
  35499. if (typeof instance.getDerivedStateFromError === 'function') {
  35500. error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
  35501. }
  35502. if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
  35503. error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
  35504. }
  35505. var _state = instance.state;
  35506. if (_state && (typeof _state !== 'object' || isArray(_state))) {
  35507. error('%s.state: must be set to an object or null', name);
  35508. }
  35509. if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
  35510. error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
  35511. }
  35512. }
  35513. }
  35514. function adoptClassInstance(workInProgress, instance) {
  35515. instance.updater = classComponentUpdater;
  35516. workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
  35517. set(instance, workInProgress);
  35518. {
  35519. instance._reactInternalInstance = fakeInternalInstance;
  35520. }
  35521. }
  35522. function constructClassInstance(workInProgress, ctor, props) {
  35523. var isLegacyContextConsumer = false;
  35524. var unmaskedContext = emptyContextObject;
  35525. var context = emptyContextObject;
  35526. var contextType = ctor.contextType;
  35527. {
  35528. if ('contextType' in ctor) {
  35529. var isValid = // Allow null for conditional declaration
  35530. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  35531. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  35532. didWarnAboutInvalidateContextType.add(ctor);
  35533. var addendum = '';
  35534. if (contextType === undefined) {
  35535. 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.';
  35536. } else if (typeof contextType !== 'object') {
  35537. addendum = ' However, it is set to a ' + typeof contextType + '.';
  35538. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  35539. addendum = ' Did you accidentally pass the Context.Provider instead?';
  35540. } else if (contextType._context !== undefined) {
  35541. // <Context.Consumer>
  35542. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  35543. } else {
  35544. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  35545. }
  35546. error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  35547. }
  35548. }
  35549. }
  35550. if (typeof contextType === 'object' && contextType !== null) {
  35551. context = readContext(contextType);
  35552. } else {
  35553. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35554. var contextTypes = ctor.contextTypes;
  35555. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  35556. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  35557. } // Instantiate twice to help detect side-effects.
  35558. {
  35559. if ( workInProgress.mode & StrictMode) {
  35560. new ctor(props, context); // eslint-disable-line no-new
  35561. }
  35562. }
  35563. var instance = new ctor(props, context);
  35564. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  35565. adoptClassInstance(workInProgress, instance);
  35566. {
  35567. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  35568. var componentName = getComponentName(ctor) || 'Component';
  35569. if (!didWarnAboutUninitializedState.has(componentName)) {
  35570. didWarnAboutUninitializedState.add(componentName);
  35571. error('`%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);
  35572. }
  35573. } // If new component APIs are defined, "unsafe" lifecycles won't be called.
  35574. // Warn about these lifecycles if they are present.
  35575. // Don't warn about react-lifecycles-compat polyfilled methods though.
  35576. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  35577. var foundWillMountName = null;
  35578. var foundWillReceivePropsName = null;
  35579. var foundWillUpdateName = null;
  35580. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  35581. foundWillMountName = 'componentWillMount';
  35582. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  35583. foundWillMountName = 'UNSAFE_componentWillMount';
  35584. }
  35585. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  35586. foundWillReceivePropsName = 'componentWillReceiveProps';
  35587. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  35588. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  35589. }
  35590. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  35591. foundWillUpdateName = 'componentWillUpdate';
  35592. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  35593. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  35594. }
  35595. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  35596. var _componentName = getComponentName(ctor) || 'Component';
  35597. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  35598. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  35599. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  35600. error('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-unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
  35601. }
  35602. }
  35603. }
  35604. } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  35605. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  35606. if (isLegacyContextConsumer) {
  35607. cacheContext(workInProgress, unmaskedContext, context);
  35608. }
  35609. return instance;
  35610. }
  35611. function callComponentWillMount(workInProgress, instance) {
  35612. startPhaseTimer(workInProgress, 'componentWillMount');
  35613. var oldState = instance.state;
  35614. if (typeof instance.componentWillMount === 'function') {
  35615. instance.componentWillMount();
  35616. }
  35617. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  35618. instance.UNSAFE_componentWillMount();
  35619. }
  35620. stopPhaseTimer();
  35621. if (oldState !== instance.state) {
  35622. {
  35623. error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  35624. }
  35625. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  35626. }
  35627. }
  35628. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  35629. var oldState = instance.state;
  35630. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  35631. if (typeof instance.componentWillReceiveProps === 'function') {
  35632. instance.componentWillReceiveProps(newProps, nextContext);
  35633. }
  35634. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  35635. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  35636. }
  35637. stopPhaseTimer();
  35638. if (instance.state !== oldState) {
  35639. {
  35640. var componentName = getComponentName(workInProgress.type) || 'Component';
  35641. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  35642. didWarnAboutStateAssignmentForComponent.add(componentName);
  35643. error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  35644. }
  35645. }
  35646. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  35647. }
  35648. } // Invokes the mount life-cycles on a previously never rendered instance.
  35649. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  35650. {
  35651. checkClassInstance(workInProgress, ctor, newProps);
  35652. }
  35653. var instance = workInProgress.stateNode;
  35654. instance.props = newProps;
  35655. instance.state = workInProgress.memoizedState;
  35656. instance.refs = emptyRefsObject;
  35657. initializeUpdateQueue(workInProgress);
  35658. var contextType = ctor.contextType;
  35659. if (typeof contextType === 'object' && contextType !== null) {
  35660. instance.context = readContext(contextType);
  35661. } else {
  35662. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35663. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  35664. }
  35665. {
  35666. if (instance.state === newProps) {
  35667. var componentName = getComponentName(ctor) || 'Component';
  35668. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  35669. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  35670. error('%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);
  35671. }
  35672. }
  35673. if (workInProgress.mode & StrictMode) {
  35674. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  35675. }
  35676. {
  35677. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  35678. }
  35679. }
  35680. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  35681. instance.state = workInProgress.memoizedState;
  35682. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  35683. if (typeof getDerivedStateFromProps === 'function') {
  35684. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  35685. instance.state = workInProgress.memoizedState;
  35686. } // In order to support react-lifecycles-compat polyfilled components,
  35687. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35688. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  35689. callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
  35690. // process them now.
  35691. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  35692. instance.state = workInProgress.memoizedState;
  35693. }
  35694. if (typeof instance.componentDidMount === 'function') {
  35695. workInProgress.effectTag |= Update;
  35696. }
  35697. }
  35698. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  35699. var instance = workInProgress.stateNode;
  35700. var oldProps = workInProgress.memoizedProps;
  35701. instance.props = oldProps;
  35702. var oldContext = instance.context;
  35703. var contextType = ctor.contextType;
  35704. var nextContext = emptyContextObject;
  35705. if (typeof contextType === 'object' && contextType !== null) {
  35706. nextContext = readContext(contextType);
  35707. } else {
  35708. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35709. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  35710. }
  35711. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  35712. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  35713. // ever the previously attempted to render - not the "current". However,
  35714. // during componentDidUpdate we pass the "current" props.
  35715. // In order to support react-lifecycles-compat polyfilled components,
  35716. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35717. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  35718. if (oldProps !== newProps || oldContext !== nextContext) {
  35719. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  35720. }
  35721. }
  35722. resetHasForceUpdateBeforeProcessing();
  35723. var oldState = workInProgress.memoizedState;
  35724. var newState = instance.state = oldState;
  35725. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  35726. newState = workInProgress.memoizedState;
  35727. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  35728. // If an update was already in progress, we should schedule an Update
  35729. // effect even though we're bailing out, so that cWU/cDU are called.
  35730. if (typeof instance.componentDidMount === 'function') {
  35731. workInProgress.effectTag |= Update;
  35732. }
  35733. return false;
  35734. }
  35735. if (typeof getDerivedStateFromProps === 'function') {
  35736. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  35737. newState = workInProgress.memoizedState;
  35738. }
  35739. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  35740. if (shouldUpdate) {
  35741. // In order to support react-lifecycles-compat polyfilled components,
  35742. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35743. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  35744. startPhaseTimer(workInProgress, 'componentWillMount');
  35745. if (typeof instance.componentWillMount === 'function') {
  35746. instance.componentWillMount();
  35747. }
  35748. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  35749. instance.UNSAFE_componentWillMount();
  35750. }
  35751. stopPhaseTimer();
  35752. }
  35753. if (typeof instance.componentDidMount === 'function') {
  35754. workInProgress.effectTag |= Update;
  35755. }
  35756. } else {
  35757. // If an update was already in progress, we should schedule an Update
  35758. // effect even though we're bailing out, so that cWU/cDU are called.
  35759. if (typeof instance.componentDidMount === 'function') {
  35760. workInProgress.effectTag |= Update;
  35761. } // If shouldComponentUpdate returned false, we should still update the
  35762. // memoized state to indicate that this work can be reused.
  35763. workInProgress.memoizedProps = newProps;
  35764. workInProgress.memoizedState = newState;
  35765. } // Update the existing instance's state, props, and context pointers even
  35766. // if shouldComponentUpdate returns false.
  35767. instance.props = newProps;
  35768. instance.state = newState;
  35769. instance.context = nextContext;
  35770. return shouldUpdate;
  35771. } // Invokes the update life-cycles and returns false if it shouldn't rerender.
  35772. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  35773. var instance = workInProgress.stateNode;
  35774. cloneUpdateQueue(current, workInProgress);
  35775. var oldProps = workInProgress.memoizedProps;
  35776. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  35777. var oldContext = instance.context;
  35778. var contextType = ctor.contextType;
  35779. var nextContext = emptyContextObject;
  35780. if (typeof contextType === 'object' && contextType !== null) {
  35781. nextContext = readContext(contextType);
  35782. } else {
  35783. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  35784. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  35785. }
  35786. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  35787. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  35788. // ever the previously attempted to render - not the "current". However,
  35789. // during componentDidUpdate we pass the "current" props.
  35790. // In order to support react-lifecycles-compat polyfilled components,
  35791. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35792. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  35793. if (oldProps !== newProps || oldContext !== nextContext) {
  35794. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  35795. }
  35796. }
  35797. resetHasForceUpdateBeforeProcessing();
  35798. var oldState = workInProgress.memoizedState;
  35799. var newState = instance.state = oldState;
  35800. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  35801. newState = workInProgress.memoizedState;
  35802. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  35803. // If an update was already in progress, we should schedule an Update
  35804. // effect even though we're bailing out, so that cWU/cDU are called.
  35805. if (typeof instance.componentDidUpdate === 'function') {
  35806. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35807. workInProgress.effectTag |= Update;
  35808. }
  35809. }
  35810. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  35811. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35812. workInProgress.effectTag |= Snapshot;
  35813. }
  35814. }
  35815. return false;
  35816. }
  35817. if (typeof getDerivedStateFromProps === 'function') {
  35818. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  35819. newState = workInProgress.memoizedState;
  35820. }
  35821. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  35822. if (shouldUpdate) {
  35823. // In order to support react-lifecycles-compat polyfilled components,
  35824. // Unsafe lifecycles should not be invoked for components using the new APIs.
  35825. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  35826. startPhaseTimer(workInProgress, 'componentWillUpdate');
  35827. if (typeof instance.componentWillUpdate === 'function') {
  35828. instance.componentWillUpdate(newProps, newState, nextContext);
  35829. }
  35830. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  35831. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  35832. }
  35833. stopPhaseTimer();
  35834. }
  35835. if (typeof instance.componentDidUpdate === 'function') {
  35836. workInProgress.effectTag |= Update;
  35837. }
  35838. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  35839. workInProgress.effectTag |= Snapshot;
  35840. }
  35841. } else {
  35842. // If an update was already in progress, we should schedule an Update
  35843. // effect even though we're bailing out, so that cWU/cDU are called.
  35844. if (typeof instance.componentDidUpdate === 'function') {
  35845. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35846. workInProgress.effectTag |= Update;
  35847. }
  35848. }
  35849. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  35850. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  35851. workInProgress.effectTag |= Snapshot;
  35852. }
  35853. } // If shouldComponentUpdate returned false, we should still update the
  35854. // memoized props/state to indicate that this work can be reused.
  35855. workInProgress.memoizedProps = newProps;
  35856. workInProgress.memoizedState = newState;
  35857. } // Update the existing instance's state, props, and context pointers even
  35858. // if shouldComponentUpdate returns false.
  35859. instance.props = newProps;
  35860. instance.state = newState;
  35861. instance.context = nextContext;
  35862. return shouldUpdate;
  35863. }
  35864. var didWarnAboutMaps;
  35865. var didWarnAboutGenerators;
  35866. var didWarnAboutStringRefs;
  35867. var ownerHasKeyUseWarning;
  35868. var ownerHasFunctionTypeWarning;
  35869. var warnForMissingKey = function (child) {};
  35870. {
  35871. didWarnAboutMaps = false;
  35872. didWarnAboutGenerators = false;
  35873. didWarnAboutStringRefs = {};
  35874. /**
  35875. * Warn if there's no key explicitly set on dynamic arrays of children or
  35876. * object keys are not valid. This allows us to keep track of children between
  35877. * updates.
  35878. */
  35879. ownerHasKeyUseWarning = {};
  35880. ownerHasFunctionTypeWarning = {};
  35881. warnForMissingKey = function (child) {
  35882. if (child === null || typeof child !== 'object') {
  35883. return;
  35884. }
  35885. if (!child._store || child._store.validated || child.key != null) {
  35886. return;
  35887. }
  35888. if (!(typeof child._store === 'object')) {
  35889. {
  35890. throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
  35891. }
  35892. }
  35893. child._store.validated = true;
  35894. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  35895. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  35896. return;
  35897. }
  35898. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  35899. error('Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  35900. };
  35901. }
  35902. var isArray$1 = Array.isArray;
  35903. function coerceRef(returnFiber, current, element) {
  35904. var mixedRef = element.ref;
  35905. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  35906. {
  35907. // TODO: Clean this up once we turn on the string ref warning for
  35908. // everyone, because the strict mode case will no longer be relevant
  35909. if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
  35910. // because these cannot be automatically converted to an arrow function
  35911. // using a codemod. Therefore, we don't have to warn about string refs again.
  35912. !(element._owner && element._self && element._owner.stateNode !== element._self)) {
  35913. var componentName = getComponentName(returnFiber.type) || 'Component';
  35914. if (!didWarnAboutStringRefs[componentName]) {
  35915. {
  35916. error('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 useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref%s', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  35917. }
  35918. didWarnAboutStringRefs[componentName] = true;
  35919. }
  35920. }
  35921. }
  35922. if (element._owner) {
  35923. var owner = element._owner;
  35924. var inst;
  35925. if (owner) {
  35926. var ownerFiber = owner;
  35927. if (!(ownerFiber.tag === ClassComponent)) {
  35928. {
  35929. throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref" );
  35930. }
  35931. }
  35932. inst = ownerFiber.stateNode;
  35933. }
  35934. if (!inst) {
  35935. {
  35936. throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
  35937. }
  35938. }
  35939. var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref
  35940. if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
  35941. return current.ref;
  35942. }
  35943. var ref = function (value) {
  35944. var refs = inst.refs;
  35945. if (refs === emptyRefsObject) {
  35946. // This is a lazy pooled frozen object, so we need to initialize.
  35947. refs = inst.refs = {};
  35948. }
  35949. if (value === null) {
  35950. delete refs[stringRef];
  35951. } else {
  35952. refs[stringRef] = value;
  35953. }
  35954. };
  35955. ref._stringRef = stringRef;
  35956. return ref;
  35957. } else {
  35958. if (!(typeof mixedRef === 'string')) {
  35959. {
  35960. throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
  35961. }
  35962. }
  35963. if (!element._owner) {
  35964. {
  35965. throw 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." );
  35966. }
  35967. }
  35968. }
  35969. }
  35970. return mixedRef;
  35971. }
  35972. function throwOnInvalidObjectType(returnFiber, newChild) {
  35973. if (returnFiber.type !== 'textarea') {
  35974. var addendum = '';
  35975. {
  35976. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  35977. }
  35978. {
  35979. {
  35980. throw 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 );
  35981. }
  35982. }
  35983. }
  35984. }
  35985. function warnOnFunctionType() {
  35986. {
  35987. 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();
  35988. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  35989. return;
  35990. }
  35991. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  35992. error('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.');
  35993. }
  35994. } // This wrapper function exists because I expect to clone the code in each path
  35995. // to be able to optimize each path individually by branching early. This needs
  35996. // a compiler or we can do it manually. Helpers that don't need this branching
  35997. // live outside of this function.
  35998. function ChildReconciler(shouldTrackSideEffects) {
  35999. function deleteChild(returnFiber, childToDelete) {
  36000. if (!shouldTrackSideEffects) {
  36001. // Noop.
  36002. return;
  36003. } // Deletions are added in reversed order so we add it to the front.
  36004. // At this point, the return fiber's effect list is empty except for
  36005. // deletions, so we can just append the deletion to the list. The remaining
  36006. // effects aren't added until the complete phase. Once we implement
  36007. // resuming, this may not be true.
  36008. var last = returnFiber.lastEffect;
  36009. if (last !== null) {
  36010. last.nextEffect = childToDelete;
  36011. returnFiber.lastEffect = childToDelete;
  36012. } else {
  36013. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  36014. }
  36015. childToDelete.nextEffect = null;
  36016. childToDelete.effectTag = Deletion;
  36017. }
  36018. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  36019. if (!shouldTrackSideEffects) {
  36020. // Noop.
  36021. return null;
  36022. } // TODO: For the shouldClone case, this could be micro-optimized a bit by
  36023. // assuming that after the first child we've already added everything.
  36024. var childToDelete = currentFirstChild;
  36025. while (childToDelete !== null) {
  36026. deleteChild(returnFiber, childToDelete);
  36027. childToDelete = childToDelete.sibling;
  36028. }
  36029. return null;
  36030. }
  36031. function mapRemainingChildren(returnFiber, currentFirstChild) {
  36032. // Add the remaining children to a temporary map so that we can find them by
  36033. // keys quickly. Implicit (null) keys get added to this set with their index
  36034. // instead.
  36035. var existingChildren = new Map();
  36036. var existingChild = currentFirstChild;
  36037. while (existingChild !== null) {
  36038. if (existingChild.key !== null) {
  36039. existingChildren.set(existingChild.key, existingChild);
  36040. } else {
  36041. existingChildren.set(existingChild.index, existingChild);
  36042. }
  36043. existingChild = existingChild.sibling;
  36044. }
  36045. return existingChildren;
  36046. }
  36047. function useFiber(fiber, pendingProps) {
  36048. // We currently set sibling to null and index to 0 here because it is easy
  36049. // to forget to do before returning it. E.g. for the single child case.
  36050. var clone = createWorkInProgress(fiber, pendingProps);
  36051. clone.index = 0;
  36052. clone.sibling = null;
  36053. return clone;
  36054. }
  36055. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  36056. newFiber.index = newIndex;
  36057. if (!shouldTrackSideEffects) {
  36058. // Noop.
  36059. return lastPlacedIndex;
  36060. }
  36061. var current = newFiber.alternate;
  36062. if (current !== null) {
  36063. var oldIndex = current.index;
  36064. if (oldIndex < lastPlacedIndex) {
  36065. // This is a move.
  36066. newFiber.effectTag = Placement;
  36067. return lastPlacedIndex;
  36068. } else {
  36069. // This item can stay in place.
  36070. return oldIndex;
  36071. }
  36072. } else {
  36073. // This is an insertion.
  36074. newFiber.effectTag = Placement;
  36075. return lastPlacedIndex;
  36076. }
  36077. }
  36078. function placeSingleChild(newFiber) {
  36079. // This is simpler for the single child case. We only need to do a
  36080. // placement for inserting new children.
  36081. if (shouldTrackSideEffects && newFiber.alternate === null) {
  36082. newFiber.effectTag = Placement;
  36083. }
  36084. return newFiber;
  36085. }
  36086. function updateTextNode(returnFiber, current, textContent, expirationTime) {
  36087. if (current === null || current.tag !== HostText) {
  36088. // Insert
  36089. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  36090. created.return = returnFiber;
  36091. return created;
  36092. } else {
  36093. // Update
  36094. var existing = useFiber(current, textContent);
  36095. existing.return = returnFiber;
  36096. return existing;
  36097. }
  36098. }
  36099. function updateElement(returnFiber, current, element, expirationTime) {
  36100. if (current !== null) {
  36101. if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
  36102. isCompatibleFamilyForHotReloading(current, element) )) {
  36103. // Move based on index
  36104. var existing = useFiber(current, element.props);
  36105. existing.ref = coerceRef(returnFiber, current, element);
  36106. existing.return = returnFiber;
  36107. {
  36108. existing._debugSource = element._source;
  36109. existing._debugOwner = element._owner;
  36110. }
  36111. return existing;
  36112. }
  36113. } // Insert
  36114. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  36115. created.ref = coerceRef(returnFiber, current, element);
  36116. created.return = returnFiber;
  36117. return created;
  36118. }
  36119. function updatePortal(returnFiber, current, portal, expirationTime) {
  36120. if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
  36121. // Insert
  36122. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  36123. created.return = returnFiber;
  36124. return created;
  36125. } else {
  36126. // Update
  36127. var existing = useFiber(current, portal.children || []);
  36128. existing.return = returnFiber;
  36129. return existing;
  36130. }
  36131. }
  36132. function updateFragment(returnFiber, current, fragment, expirationTime, key) {
  36133. if (current === null || current.tag !== Fragment) {
  36134. // Insert
  36135. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  36136. created.return = returnFiber;
  36137. return created;
  36138. } else {
  36139. // Update
  36140. var existing = useFiber(current, fragment);
  36141. existing.return = returnFiber;
  36142. return existing;
  36143. }
  36144. }
  36145. function createChild(returnFiber, newChild, expirationTime) {
  36146. if (typeof newChild === 'string' || typeof newChild === 'number') {
  36147. // Text nodes don't have keys. If the previous node is implicitly keyed
  36148. // we can continue to replace it without aborting even if it is not a text
  36149. // node.
  36150. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  36151. created.return = returnFiber;
  36152. return created;
  36153. }
  36154. if (typeof newChild === 'object' && newChild !== null) {
  36155. switch (newChild.$$typeof) {
  36156. case REACT_ELEMENT_TYPE:
  36157. {
  36158. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  36159. _created.ref = coerceRef(returnFiber, null, newChild);
  36160. _created.return = returnFiber;
  36161. return _created;
  36162. }
  36163. case REACT_PORTAL_TYPE:
  36164. {
  36165. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  36166. _created2.return = returnFiber;
  36167. return _created2;
  36168. }
  36169. }
  36170. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  36171. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  36172. _created3.return = returnFiber;
  36173. return _created3;
  36174. }
  36175. throwOnInvalidObjectType(returnFiber, newChild);
  36176. }
  36177. {
  36178. if (typeof newChild === 'function') {
  36179. warnOnFunctionType();
  36180. }
  36181. }
  36182. return null;
  36183. }
  36184. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  36185. // Update the fiber if the keys match, otherwise return null.
  36186. var key = oldFiber !== null ? oldFiber.key : null;
  36187. if (typeof newChild === 'string' || typeof newChild === 'number') {
  36188. // Text nodes don't have keys. If the previous node is implicitly keyed
  36189. // we can continue to replace it without aborting even if it is not a text
  36190. // node.
  36191. if (key !== null) {
  36192. return null;
  36193. }
  36194. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  36195. }
  36196. if (typeof newChild === 'object' && newChild !== null) {
  36197. switch (newChild.$$typeof) {
  36198. case REACT_ELEMENT_TYPE:
  36199. {
  36200. if (newChild.key === key) {
  36201. if (newChild.type === REACT_FRAGMENT_TYPE) {
  36202. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  36203. }
  36204. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  36205. } else {
  36206. return null;
  36207. }
  36208. }
  36209. case REACT_PORTAL_TYPE:
  36210. {
  36211. if (newChild.key === key) {
  36212. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  36213. } else {
  36214. return null;
  36215. }
  36216. }
  36217. }
  36218. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  36219. if (key !== null) {
  36220. return null;
  36221. }
  36222. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  36223. }
  36224. throwOnInvalidObjectType(returnFiber, newChild);
  36225. }
  36226. {
  36227. if (typeof newChild === 'function') {
  36228. warnOnFunctionType();
  36229. }
  36230. }
  36231. return null;
  36232. }
  36233. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  36234. if (typeof newChild === 'string' || typeof newChild === 'number') {
  36235. // Text nodes don't have keys, so we neither have to check the old nor
  36236. // new node for the key. If both are text nodes, they match.
  36237. var matchedFiber = existingChildren.get(newIdx) || null;
  36238. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  36239. }
  36240. if (typeof newChild === 'object' && newChild !== null) {
  36241. switch (newChild.$$typeof) {
  36242. case REACT_ELEMENT_TYPE:
  36243. {
  36244. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  36245. if (newChild.type === REACT_FRAGMENT_TYPE) {
  36246. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  36247. }
  36248. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  36249. }
  36250. case REACT_PORTAL_TYPE:
  36251. {
  36252. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  36253. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  36254. }
  36255. }
  36256. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  36257. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  36258. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  36259. }
  36260. throwOnInvalidObjectType(returnFiber, newChild);
  36261. }
  36262. {
  36263. if (typeof newChild === 'function') {
  36264. warnOnFunctionType();
  36265. }
  36266. }
  36267. return null;
  36268. }
  36269. /**
  36270. * Warns if there is a duplicate or missing key
  36271. */
  36272. function warnOnInvalidKey(child, knownKeys) {
  36273. {
  36274. if (typeof child !== 'object' || child === null) {
  36275. return knownKeys;
  36276. }
  36277. switch (child.$$typeof) {
  36278. case REACT_ELEMENT_TYPE:
  36279. case REACT_PORTAL_TYPE:
  36280. warnForMissingKey(child);
  36281. var key = child.key;
  36282. if (typeof key !== 'string') {
  36283. break;
  36284. }
  36285. if (knownKeys === null) {
  36286. knownKeys = new Set();
  36287. knownKeys.add(key);
  36288. break;
  36289. }
  36290. if (!knownKeys.has(key)) {
  36291. knownKeys.add(key);
  36292. break;
  36293. }
  36294. error('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);
  36295. break;
  36296. }
  36297. }
  36298. return knownKeys;
  36299. }
  36300. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  36301. // This algorithm can't optimize by searching from both ends since we
  36302. // don't have backpointers on fibers. I'm trying to see how far we can get
  36303. // with that model. If it ends up not being worth the tradeoffs, we can
  36304. // add it later.
  36305. // Even with a two ended optimization, we'd want to optimize for the case
  36306. // where there are few changes and brute force the comparison instead of
  36307. // going for the Map. It'd like to explore hitting that path first in
  36308. // forward-only mode and only go for the Map once we notice that we need
  36309. // lots of look ahead. This doesn't handle reversal as well as two ended
  36310. // search but that's unusual. Besides, for the two ended optimization to
  36311. // work on Iterables, we'd need to copy the whole set.
  36312. // In this first iteration, we'll just live with hitting the bad case
  36313. // (adding everything to a Map) in for every insert/move.
  36314. // If you change this code, also update reconcileChildrenIterator() which
  36315. // uses the same algorithm.
  36316. {
  36317. // First, validate keys.
  36318. var knownKeys = null;
  36319. for (var i = 0; i < newChildren.length; i++) {
  36320. var child = newChildren[i];
  36321. knownKeys = warnOnInvalidKey(child, knownKeys);
  36322. }
  36323. }
  36324. var resultingFirstChild = null;
  36325. var previousNewFiber = null;
  36326. var oldFiber = currentFirstChild;
  36327. var lastPlacedIndex = 0;
  36328. var newIdx = 0;
  36329. var nextOldFiber = null;
  36330. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  36331. if (oldFiber.index > newIdx) {
  36332. nextOldFiber = oldFiber;
  36333. oldFiber = null;
  36334. } else {
  36335. nextOldFiber = oldFiber.sibling;
  36336. }
  36337. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  36338. if (newFiber === null) {
  36339. // TODO: This breaks on empty slots like null children. That's
  36340. // unfortunate because it triggers the slow path all the time. We need
  36341. // a better way to communicate whether this was a miss or null,
  36342. // boolean, undefined, etc.
  36343. if (oldFiber === null) {
  36344. oldFiber = nextOldFiber;
  36345. }
  36346. break;
  36347. }
  36348. if (shouldTrackSideEffects) {
  36349. if (oldFiber && newFiber.alternate === null) {
  36350. // We matched the slot, but we didn't reuse the existing fiber, so we
  36351. // need to delete the existing child.
  36352. deleteChild(returnFiber, oldFiber);
  36353. }
  36354. }
  36355. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  36356. if (previousNewFiber === null) {
  36357. // TODO: Move out of the loop. This only happens for the first run.
  36358. resultingFirstChild = newFiber;
  36359. } else {
  36360. // TODO: Defer siblings if we're not at the right index for this slot.
  36361. // I.e. if we had null values before, then we want to defer this
  36362. // for each null value. However, we also don't want to call updateSlot
  36363. // with the previous one.
  36364. previousNewFiber.sibling = newFiber;
  36365. }
  36366. previousNewFiber = newFiber;
  36367. oldFiber = nextOldFiber;
  36368. }
  36369. if (newIdx === newChildren.length) {
  36370. // We've reached the end of the new children. We can delete the rest.
  36371. deleteRemainingChildren(returnFiber, oldFiber);
  36372. return resultingFirstChild;
  36373. }
  36374. if (oldFiber === null) {
  36375. // If we don't have any more existing children we can choose a fast path
  36376. // since the rest will all be insertions.
  36377. for (; newIdx < newChildren.length; newIdx++) {
  36378. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  36379. if (_newFiber === null) {
  36380. continue;
  36381. }
  36382. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  36383. if (previousNewFiber === null) {
  36384. // TODO: Move out of the loop. This only happens for the first run.
  36385. resultingFirstChild = _newFiber;
  36386. } else {
  36387. previousNewFiber.sibling = _newFiber;
  36388. }
  36389. previousNewFiber = _newFiber;
  36390. }
  36391. return resultingFirstChild;
  36392. } // Add all children to a key map for quick lookups.
  36393. var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
  36394. for (; newIdx < newChildren.length; newIdx++) {
  36395. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  36396. if (_newFiber2 !== null) {
  36397. if (shouldTrackSideEffects) {
  36398. if (_newFiber2.alternate !== null) {
  36399. // The new fiber is a work in progress, but if there exists a
  36400. // current, that means that we reused the fiber. We need to delete
  36401. // it from the child list so that we don't add it to the deletion
  36402. // list.
  36403. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  36404. }
  36405. }
  36406. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  36407. if (previousNewFiber === null) {
  36408. resultingFirstChild = _newFiber2;
  36409. } else {
  36410. previousNewFiber.sibling = _newFiber2;
  36411. }
  36412. previousNewFiber = _newFiber2;
  36413. }
  36414. }
  36415. if (shouldTrackSideEffects) {
  36416. // Any existing children that weren't consumed above were deleted. We need
  36417. // to add them to the deletion list.
  36418. existingChildren.forEach(function (child) {
  36419. return deleteChild(returnFiber, child);
  36420. });
  36421. }
  36422. return resultingFirstChild;
  36423. }
  36424. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  36425. // This is the same implementation as reconcileChildrenArray(),
  36426. // but using the iterator instead.
  36427. var iteratorFn = getIteratorFn(newChildrenIterable);
  36428. if (!(typeof iteratorFn === 'function')) {
  36429. {
  36430. throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
  36431. }
  36432. }
  36433. {
  36434. // We don't support rendering Generators because it's a mutation.
  36435. // See https://github.com/facebook/react/issues/12995
  36436. if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
  36437. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  36438. if (!didWarnAboutGenerators) {
  36439. error('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.');
  36440. }
  36441. didWarnAboutGenerators = true;
  36442. } // Warn about using Maps as children
  36443. if (newChildrenIterable.entries === iteratorFn) {
  36444. if (!didWarnAboutMaps) {
  36445. error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.');
  36446. }
  36447. didWarnAboutMaps = true;
  36448. } // First, validate keys.
  36449. // We'll get a different iterator later for the main pass.
  36450. var _newChildren = iteratorFn.call(newChildrenIterable);
  36451. if (_newChildren) {
  36452. var knownKeys = null;
  36453. var _step = _newChildren.next();
  36454. for (; !_step.done; _step = _newChildren.next()) {
  36455. var child = _step.value;
  36456. knownKeys = warnOnInvalidKey(child, knownKeys);
  36457. }
  36458. }
  36459. }
  36460. var newChildren = iteratorFn.call(newChildrenIterable);
  36461. if (!(newChildren != null)) {
  36462. {
  36463. throw Error( "An iterable object provided no iterator." );
  36464. }
  36465. }
  36466. var resultingFirstChild = null;
  36467. var previousNewFiber = null;
  36468. var oldFiber = currentFirstChild;
  36469. var lastPlacedIndex = 0;
  36470. var newIdx = 0;
  36471. var nextOldFiber = null;
  36472. var step = newChildren.next();
  36473. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  36474. if (oldFiber.index > newIdx) {
  36475. nextOldFiber = oldFiber;
  36476. oldFiber = null;
  36477. } else {
  36478. nextOldFiber = oldFiber.sibling;
  36479. }
  36480. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  36481. if (newFiber === null) {
  36482. // TODO: This breaks on empty slots like null children. That's
  36483. // unfortunate because it triggers the slow path all the time. We need
  36484. // a better way to communicate whether this was a miss or null,
  36485. // boolean, undefined, etc.
  36486. if (oldFiber === null) {
  36487. oldFiber = nextOldFiber;
  36488. }
  36489. break;
  36490. }
  36491. if (shouldTrackSideEffects) {
  36492. if (oldFiber && newFiber.alternate === null) {
  36493. // We matched the slot, but we didn't reuse the existing fiber, so we
  36494. // need to delete the existing child.
  36495. deleteChild(returnFiber, oldFiber);
  36496. }
  36497. }
  36498. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  36499. if (previousNewFiber === null) {
  36500. // TODO: Move out of the loop. This only happens for the first run.
  36501. resultingFirstChild = newFiber;
  36502. } else {
  36503. // TODO: Defer siblings if we're not at the right index for this slot.
  36504. // I.e. if we had null values before, then we want to defer this
  36505. // for each null value. However, we also don't want to call updateSlot
  36506. // with the previous one.
  36507. previousNewFiber.sibling = newFiber;
  36508. }
  36509. previousNewFiber = newFiber;
  36510. oldFiber = nextOldFiber;
  36511. }
  36512. if (step.done) {
  36513. // We've reached the end of the new children. We can delete the rest.
  36514. deleteRemainingChildren(returnFiber, oldFiber);
  36515. return resultingFirstChild;
  36516. }
  36517. if (oldFiber === null) {
  36518. // If we don't have any more existing children we can choose a fast path
  36519. // since the rest will all be insertions.
  36520. for (; !step.done; newIdx++, step = newChildren.next()) {
  36521. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  36522. if (_newFiber3 === null) {
  36523. continue;
  36524. }
  36525. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  36526. if (previousNewFiber === null) {
  36527. // TODO: Move out of the loop. This only happens for the first run.
  36528. resultingFirstChild = _newFiber3;
  36529. } else {
  36530. previousNewFiber.sibling = _newFiber3;
  36531. }
  36532. previousNewFiber = _newFiber3;
  36533. }
  36534. return resultingFirstChild;
  36535. } // Add all children to a key map for quick lookups.
  36536. var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
  36537. for (; !step.done; newIdx++, step = newChildren.next()) {
  36538. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  36539. if (_newFiber4 !== null) {
  36540. if (shouldTrackSideEffects) {
  36541. if (_newFiber4.alternate !== null) {
  36542. // The new fiber is a work in progress, but if there exists a
  36543. // current, that means that we reused the fiber. We need to delete
  36544. // it from the child list so that we don't add it to the deletion
  36545. // list.
  36546. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  36547. }
  36548. }
  36549. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  36550. if (previousNewFiber === null) {
  36551. resultingFirstChild = _newFiber4;
  36552. } else {
  36553. previousNewFiber.sibling = _newFiber4;
  36554. }
  36555. previousNewFiber = _newFiber4;
  36556. }
  36557. }
  36558. if (shouldTrackSideEffects) {
  36559. // Any existing children that weren't consumed above were deleted. We need
  36560. // to add them to the deletion list.
  36561. existingChildren.forEach(function (child) {
  36562. return deleteChild(returnFiber, child);
  36563. });
  36564. }
  36565. return resultingFirstChild;
  36566. }
  36567. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  36568. // There's no need to check for keys on text nodes since we don't have a
  36569. // way to define them.
  36570. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  36571. // We already have an existing node so let's just update it and delete
  36572. // the rest.
  36573. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  36574. var existing = useFiber(currentFirstChild, textContent);
  36575. existing.return = returnFiber;
  36576. return existing;
  36577. } // The existing first child is not a text node so we need to create one
  36578. // and delete the existing ones.
  36579. deleteRemainingChildren(returnFiber, currentFirstChild);
  36580. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  36581. created.return = returnFiber;
  36582. return created;
  36583. }
  36584. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  36585. var key = element.key;
  36586. var child = currentFirstChild;
  36587. while (child !== null) {
  36588. // TODO: If key === null and child.key === null, then this only applies to
  36589. // the first item in the list.
  36590. if (child.key === key) {
  36591. switch (child.tag) {
  36592. case Fragment:
  36593. {
  36594. if (element.type === REACT_FRAGMENT_TYPE) {
  36595. deleteRemainingChildren(returnFiber, child.sibling);
  36596. var existing = useFiber(child, element.props.children);
  36597. existing.return = returnFiber;
  36598. {
  36599. existing._debugSource = element._source;
  36600. existing._debugOwner = element._owner;
  36601. }
  36602. return existing;
  36603. }
  36604. break;
  36605. }
  36606. case Block:
  36607. // We intentionally fallthrough here if enableBlocksAPI is not on.
  36608. // eslint-disable-next-lined no-fallthrough
  36609. default:
  36610. {
  36611. if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
  36612. isCompatibleFamilyForHotReloading(child, element) )) {
  36613. deleteRemainingChildren(returnFiber, child.sibling);
  36614. var _existing3 = useFiber(child, element.props);
  36615. _existing3.ref = coerceRef(returnFiber, child, element);
  36616. _existing3.return = returnFiber;
  36617. {
  36618. _existing3._debugSource = element._source;
  36619. _existing3._debugOwner = element._owner;
  36620. }
  36621. return _existing3;
  36622. }
  36623. break;
  36624. }
  36625. } // Didn't match.
  36626. deleteRemainingChildren(returnFiber, child);
  36627. break;
  36628. } else {
  36629. deleteChild(returnFiber, child);
  36630. }
  36631. child = child.sibling;
  36632. }
  36633. if (element.type === REACT_FRAGMENT_TYPE) {
  36634. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  36635. created.return = returnFiber;
  36636. return created;
  36637. } else {
  36638. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  36639. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  36640. _created4.return = returnFiber;
  36641. return _created4;
  36642. }
  36643. }
  36644. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  36645. var key = portal.key;
  36646. var child = currentFirstChild;
  36647. while (child !== null) {
  36648. // TODO: If key === null and child.key === null, then this only applies to
  36649. // the first item in the list.
  36650. if (child.key === key) {
  36651. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  36652. deleteRemainingChildren(returnFiber, child.sibling);
  36653. var existing = useFiber(child, portal.children || []);
  36654. existing.return = returnFiber;
  36655. return existing;
  36656. } else {
  36657. deleteRemainingChildren(returnFiber, child);
  36658. break;
  36659. }
  36660. } else {
  36661. deleteChild(returnFiber, child);
  36662. }
  36663. child = child.sibling;
  36664. }
  36665. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  36666. created.return = returnFiber;
  36667. return created;
  36668. } // This API will tag the children with the side-effect of the reconciliation
  36669. // itself. They will be added to the side-effect list as we pass through the
  36670. // children and the parent.
  36671. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  36672. // This function is not recursive.
  36673. // If the top level item is an array, we treat it as a set of children,
  36674. // not as a fragment. Nested arrays on the other hand will be treated as
  36675. // fragment nodes. Recursion happens at the normal flow.
  36676. // Handle top level unkeyed fragments as if they were arrays.
  36677. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  36678. // We treat the ambiguous cases above the same.
  36679. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  36680. if (isUnkeyedTopLevelFragment) {
  36681. newChild = newChild.props.children;
  36682. } // Handle object types
  36683. var isObject = typeof newChild === 'object' && newChild !== null;
  36684. if (isObject) {
  36685. switch (newChild.$$typeof) {
  36686. case REACT_ELEMENT_TYPE:
  36687. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  36688. case REACT_PORTAL_TYPE:
  36689. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  36690. }
  36691. }
  36692. if (typeof newChild === 'string' || typeof newChild === 'number') {
  36693. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  36694. }
  36695. if (isArray$1(newChild)) {
  36696. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  36697. }
  36698. if (getIteratorFn(newChild)) {
  36699. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  36700. }
  36701. if (isObject) {
  36702. throwOnInvalidObjectType(returnFiber, newChild);
  36703. }
  36704. {
  36705. if (typeof newChild === 'function') {
  36706. warnOnFunctionType();
  36707. }
  36708. }
  36709. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  36710. // If the new child is undefined, and the return fiber is a composite
  36711. // component, throw an error. If Fiber return types are disabled,
  36712. // we already threw above.
  36713. switch (returnFiber.tag) {
  36714. case ClassComponent:
  36715. {
  36716. {
  36717. var instance = returnFiber.stateNode;
  36718. if (instance.render._isMockFunction) {
  36719. // We allow auto-mocks to proceed as if they're returning null.
  36720. break;
  36721. }
  36722. }
  36723. }
  36724. // Intentionally fall through to the next case, which handles both
  36725. // functions and classes
  36726. // eslint-disable-next-lined no-fallthrough
  36727. case FunctionComponent:
  36728. {
  36729. var Component = returnFiber.type;
  36730. {
  36731. {
  36732. throw 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." );
  36733. }
  36734. }
  36735. }
  36736. }
  36737. } // Remaining cases are all treated as empty.
  36738. return deleteRemainingChildren(returnFiber, currentFirstChild);
  36739. }
  36740. return reconcileChildFibers;
  36741. }
  36742. var reconcileChildFibers = ChildReconciler(true);
  36743. var mountChildFibers = ChildReconciler(false);
  36744. function cloneChildFibers(current, workInProgress) {
  36745. if (!(current === null || workInProgress.child === current.child)) {
  36746. {
  36747. throw Error( "Resuming work not yet implemented." );
  36748. }
  36749. }
  36750. if (workInProgress.child === null) {
  36751. return;
  36752. }
  36753. var currentChild = workInProgress.child;
  36754. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
  36755. workInProgress.child = newChild;
  36756. newChild.return = workInProgress;
  36757. while (currentChild.sibling !== null) {
  36758. currentChild = currentChild.sibling;
  36759. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
  36760. newChild.return = workInProgress;
  36761. }
  36762. newChild.sibling = null;
  36763. } // Reset a workInProgress child set to prepare it for a second pass.
  36764. function resetChildFibers(workInProgress, renderExpirationTime) {
  36765. var child = workInProgress.child;
  36766. while (child !== null) {
  36767. resetWorkInProgress(child, renderExpirationTime);
  36768. child = child.sibling;
  36769. }
  36770. }
  36771. var NO_CONTEXT = {};
  36772. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  36773. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  36774. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  36775. function requiredContext(c) {
  36776. if (!(c !== NO_CONTEXT)) {
  36777. {
  36778. throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
  36779. }
  36780. }
  36781. return c;
  36782. }
  36783. function getRootHostContainer() {
  36784. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  36785. return rootInstance;
  36786. }
  36787. function pushHostContainer(fiber, nextRootInstance) {
  36788. // Push current root instance onto the stack;
  36789. // This allows us to reset root when portals are popped.
  36790. push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
  36791. // This enables us to pop only Fibers that provide unique contexts.
  36792. push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
  36793. // However, we can't just call getRootHostContext() and push it because
  36794. // we'd have a different number of entries on the stack depending on
  36795. // whether getRootHostContext() throws somewhere in renderer code or not.
  36796. // So we push an empty value first. This lets us safely unwind on errors.
  36797. push(contextStackCursor$1, NO_CONTEXT, fiber);
  36798. var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.
  36799. pop(contextStackCursor$1, fiber);
  36800. push(contextStackCursor$1, nextRootContext, fiber);
  36801. }
  36802. function popHostContainer(fiber) {
  36803. pop(contextStackCursor$1, fiber);
  36804. pop(contextFiberStackCursor, fiber);
  36805. pop(rootInstanceStackCursor, fiber);
  36806. }
  36807. function getHostContext() {
  36808. var context = requiredContext(contextStackCursor$1.current);
  36809. return context;
  36810. }
  36811. function pushHostContext(fiber) {
  36812. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  36813. var context = requiredContext(contextStackCursor$1.current);
  36814. var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.
  36815. if (context === nextContext) {
  36816. return;
  36817. } // Track the context and the Fiber that provided it.
  36818. // This enables us to pop only Fibers that provide unique contexts.
  36819. push(contextFiberStackCursor, fiber, fiber);
  36820. push(contextStackCursor$1, nextContext, fiber);
  36821. }
  36822. function popHostContext(fiber) {
  36823. // Do not pop unless this Fiber provided the current context.
  36824. // pushHostContext() only pushes Fibers that provide unique contexts.
  36825. if (contextFiberStackCursor.current !== fiber) {
  36826. return;
  36827. }
  36828. pop(contextStackCursor$1, fiber);
  36829. pop(contextFiberStackCursor, fiber);
  36830. }
  36831. var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
  36832. // inherited deeply down the subtree. The upper bits only affect
  36833. // this immediate suspense boundary and gets reset each new
  36834. // boundary or suspense list.
  36835. var SubtreeSuspenseContextMask = 1; // Subtree Flags:
  36836. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  36837. // boundaries is not currently showing visible main content.
  36838. // Either because it is already showing a fallback or is not mounted at all.
  36839. // We can use this to determine if it is desirable to trigger a fallback at
  36840. // the parent. If not, then we might need to trigger undesirable boundaries
  36841. // and/or suspend the commit to avoid hiding the parent content.
  36842. var InvisibleParentSuspenseContext = 1; // Shallow Flags:
  36843. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  36844. // items into their fallback state during one of the render passes.
  36845. var ForceSuspenseFallback = 2;
  36846. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  36847. function hasSuspenseContext(parentContext, flag) {
  36848. return (parentContext & flag) !== 0;
  36849. }
  36850. function setDefaultShallowSuspenseContext(parentContext) {
  36851. return parentContext & SubtreeSuspenseContextMask;
  36852. }
  36853. function setShallowSuspenseContext(parentContext, shallowContext) {
  36854. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  36855. }
  36856. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  36857. return parentContext | subtreeContext;
  36858. }
  36859. function pushSuspenseContext(fiber, newContext) {
  36860. push(suspenseStackCursor, newContext, fiber);
  36861. }
  36862. function popSuspenseContext(fiber) {
  36863. pop(suspenseStackCursor, fiber);
  36864. }
  36865. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  36866. // If it was the primary children that just suspended, capture and render the
  36867. // fallback. Otherwise, don't capture and bubble to the next boundary.
  36868. var nextState = workInProgress.memoizedState;
  36869. if (nextState !== null) {
  36870. if (nextState.dehydrated !== null) {
  36871. // A dehydrated boundary always captures.
  36872. return true;
  36873. }
  36874. return false;
  36875. }
  36876. var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.
  36877. if (props.fallback === undefined) {
  36878. return false;
  36879. } // Regular boundaries always capture.
  36880. if (props.unstable_avoidThisFallback !== true) {
  36881. return true;
  36882. } // If it's a boundary we should avoid, then we prefer to bubble up to the
  36883. // parent boundary if it is currently invisible.
  36884. if (hasInvisibleParent) {
  36885. return false;
  36886. } // If the parent is not able to handle it, we must handle it.
  36887. return true;
  36888. }
  36889. function findFirstSuspended(row) {
  36890. var node = row;
  36891. while (node !== null) {
  36892. if (node.tag === SuspenseComponent) {
  36893. var state = node.memoizedState;
  36894. if (state !== null) {
  36895. var dehydrated = state.dehydrated;
  36896. if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
  36897. return node;
  36898. }
  36899. }
  36900. } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
  36901. // keep track of whether it suspended or not.
  36902. node.memoizedProps.revealOrder !== undefined) {
  36903. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  36904. if (didSuspend) {
  36905. return node;
  36906. }
  36907. } else if (node.child !== null) {
  36908. node.child.return = node;
  36909. node = node.child;
  36910. continue;
  36911. }
  36912. if (node === row) {
  36913. return null;
  36914. }
  36915. while (node.sibling === null) {
  36916. if (node.return === null || node.return === row) {
  36917. return null;
  36918. }
  36919. node = node.return;
  36920. }
  36921. node.sibling.return = node.return;
  36922. node = node.sibling;
  36923. }
  36924. return null;
  36925. }
  36926. function createDeprecatedResponderListener(responder, props) {
  36927. var eventResponderListener = {
  36928. responder: responder,
  36929. props: props
  36930. };
  36931. {
  36932. Object.freeze(eventResponderListener);
  36933. }
  36934. return eventResponderListener;
  36935. }
  36936. var HasEffect =
  36937. /* */
  36938. 1; // Represents the phase in which the effect (not the clean-up) fires.
  36939. var Layout =
  36940. /* */
  36941. 2;
  36942. var Passive$1 =
  36943. /* */
  36944. 4;
  36945. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,
  36946. ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
  36947. var didWarnAboutMismatchedHooksForComponent;
  36948. {
  36949. didWarnAboutMismatchedHooksForComponent = new Set();
  36950. }
  36951. // These are set right before calling the component.
  36952. var renderExpirationTime = NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from
  36953. // the work-in-progress hook.
  36954. var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
  36955. // current hook list is the list that belongs to the current fiber. The
  36956. // work-in-progress hook list is a new list that will be added to the
  36957. // work-in-progress fiber.
  36958. var currentHook = null;
  36959. var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
  36960. // does not get reset if we do another render pass; only when we're completely
  36961. // finished evaluating this component. This is an optimization so we know
  36962. // whether we need to clear render phase updates after a throw.
  36963. var didScheduleRenderPhaseUpdate = false;
  36964. var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook
  36965. var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
  36966. // The list stores the order of hooks used during the initial render (mount).
  36967. // Subsequent renders (updates) reference this list.
  36968. var hookTypesDev = null;
  36969. var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
  36970. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  36971. // When true, such Hooks will always be "remounted". Only used during hot reload.
  36972. var ignorePreviousDependencies = false;
  36973. function mountHookTypesDev() {
  36974. {
  36975. var hookName = currentHookNameInDev;
  36976. if (hookTypesDev === null) {
  36977. hookTypesDev = [hookName];
  36978. } else {
  36979. hookTypesDev.push(hookName);
  36980. }
  36981. }
  36982. }
  36983. function updateHookTypesDev() {
  36984. {
  36985. var hookName = currentHookNameInDev;
  36986. if (hookTypesDev !== null) {
  36987. hookTypesUpdateIndexDev++;
  36988. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  36989. warnOnHookMismatchInDev(hookName);
  36990. }
  36991. }
  36992. }
  36993. }
  36994. function checkDepsAreArrayDev(deps) {
  36995. {
  36996. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  36997. // Verify deps, but only on mount to avoid extra checks.
  36998. // It's unlikely their type would change as usually you define them inline.
  36999. error('%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);
  37000. }
  37001. }
  37002. }
  37003. function warnOnHookMismatchInDev(currentHookName) {
  37004. {
  37005. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  37006. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  37007. didWarnAboutMismatchedHooksForComponent.add(componentName);
  37008. if (hookTypesDev !== null) {
  37009. var table = '';
  37010. var secondColumnStart = 30;
  37011. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  37012. var oldHookName = hookTypesDev[i];
  37013. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  37014. var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
  37015. // lol @ IE not supporting String#repeat
  37016. while (row.length < secondColumnStart) {
  37017. row += ' ';
  37018. }
  37019. row += newHookName + '\n';
  37020. table += row;
  37021. }
  37022. error('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);
  37023. }
  37024. }
  37025. }
  37026. }
  37027. function throwInvalidHookError() {
  37028. {
  37029. {
  37030. throw 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." );
  37031. }
  37032. }
  37033. }
  37034. function areHookInputsEqual(nextDeps, prevDeps) {
  37035. {
  37036. if (ignorePreviousDependencies) {
  37037. // Only true when this component is being hot reloaded.
  37038. return false;
  37039. }
  37040. }
  37041. if (prevDeps === null) {
  37042. {
  37043. error('%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);
  37044. }
  37045. return false;
  37046. }
  37047. {
  37048. // Don't bother comparing lengths in prod because these arrays should be
  37049. // passed inline.
  37050. if (nextDeps.length !== prevDeps.length) {
  37051. error('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(', ') + "]");
  37052. }
  37053. }
  37054. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  37055. if (objectIs(nextDeps[i], prevDeps[i])) {
  37056. continue;
  37057. }
  37058. return false;
  37059. }
  37060. return true;
  37061. }
  37062. function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime) {
  37063. renderExpirationTime = nextRenderExpirationTime;
  37064. currentlyRenderingFiber$1 = workInProgress;
  37065. {
  37066. hookTypesDev = current !== null ? current._debugHookTypes : null;
  37067. hookTypesUpdateIndexDev = -1; // Used for hot reloading:
  37068. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  37069. }
  37070. workInProgress.memoizedState = null;
  37071. workInProgress.updateQueue = null;
  37072. workInProgress.expirationTime = NoWork; // The following should have already been reset
  37073. // currentHook = null;
  37074. // workInProgressHook = null;
  37075. // didScheduleRenderPhaseUpdate = false;
  37076. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  37077. // Currently we will identify the update render as a mount because memoizedState === null.
  37078. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  37079. // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
  37080. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  37081. // so memoizedState would be null during updates and mounts.
  37082. {
  37083. if (current !== null && current.memoizedState !== null) {
  37084. ReactCurrentDispatcher.current = HooksDispatcherOnUpdateInDEV;
  37085. } else if (hookTypesDev !== null) {
  37086. // This dispatcher handles an edge case where a component is updating,
  37087. // but no stateful hooks have been used.
  37088. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  37089. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  37090. // This dispatcher does that.
  37091. ReactCurrentDispatcher.current = HooksDispatcherOnMountWithHookTypesInDEV;
  37092. } else {
  37093. ReactCurrentDispatcher.current = HooksDispatcherOnMountInDEV;
  37094. }
  37095. }
  37096. var children = Component(props, secondArg); // Check if there was a render phase update
  37097. if (workInProgress.expirationTime === renderExpirationTime) {
  37098. // Keep rendering in a loop for as long as render phase updates continue to
  37099. // be scheduled. Use a counter to prevent infinite loops.
  37100. var numberOfReRenders = 0;
  37101. do {
  37102. workInProgress.expirationTime = NoWork;
  37103. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  37104. {
  37105. throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
  37106. }
  37107. }
  37108. numberOfReRenders += 1;
  37109. {
  37110. // Even when hot reloading, allow dependencies to stabilize
  37111. // after first render to prevent infinite render phase updates.
  37112. ignorePreviousDependencies = false;
  37113. } // Start over from the beginning of the list
  37114. currentHook = null;
  37115. workInProgressHook = null;
  37116. workInProgress.updateQueue = null;
  37117. {
  37118. // Also validate hook order for cascading updates.
  37119. hookTypesUpdateIndexDev = -1;
  37120. }
  37121. ReactCurrentDispatcher.current = HooksDispatcherOnRerenderInDEV ;
  37122. children = Component(props, secondArg);
  37123. } while (workInProgress.expirationTime === renderExpirationTime);
  37124. } // We can assume the previous dispatcher is always this one, since we set it
  37125. // at the beginning of the render phase and there's no re-entrancy.
  37126. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  37127. {
  37128. workInProgress._debugHookTypes = hookTypesDev;
  37129. } // This check uses currentHook so that it works the same in DEV and prod bundles.
  37130. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  37131. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  37132. renderExpirationTime = NoWork;
  37133. currentlyRenderingFiber$1 = null;
  37134. currentHook = null;
  37135. workInProgressHook = null;
  37136. {
  37137. currentHookNameInDev = null;
  37138. hookTypesDev = null;
  37139. hookTypesUpdateIndexDev = -1;
  37140. }
  37141. didScheduleRenderPhaseUpdate = false;
  37142. if (!!didRenderTooFewHooks) {
  37143. {
  37144. throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
  37145. }
  37146. }
  37147. return children;
  37148. }
  37149. function bailoutHooks(current, workInProgress, expirationTime) {
  37150. workInProgress.updateQueue = current.updateQueue;
  37151. workInProgress.effectTag &= ~(Passive | Update);
  37152. if (current.expirationTime <= expirationTime) {
  37153. current.expirationTime = NoWork;
  37154. }
  37155. }
  37156. function resetHooksAfterThrow() {
  37157. // We can assume the previous dispatcher is always this one, since we set it
  37158. // at the beginning of the render phase and there's no re-entrancy.
  37159. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  37160. if (didScheduleRenderPhaseUpdate) {
  37161. // There were render phase updates. These are only valid for this render
  37162. // phase, which we are now aborting. Remove the updates from the queues so
  37163. // they do not persist to the next render. Do not remove updates from hooks
  37164. // that weren't processed.
  37165. //
  37166. // Only reset the updates from the queue if it has a clone. If it does
  37167. // not have a clone, that means it wasn't processed, and the updates were
  37168. // scheduled before we entered the render phase.
  37169. var hook = currentlyRenderingFiber$1.memoizedState;
  37170. while (hook !== null) {
  37171. var queue = hook.queue;
  37172. if (queue !== null) {
  37173. queue.pending = null;
  37174. }
  37175. hook = hook.next;
  37176. }
  37177. }
  37178. renderExpirationTime = NoWork;
  37179. currentlyRenderingFiber$1 = null;
  37180. currentHook = null;
  37181. workInProgressHook = null;
  37182. {
  37183. hookTypesDev = null;
  37184. hookTypesUpdateIndexDev = -1;
  37185. currentHookNameInDev = null;
  37186. }
  37187. didScheduleRenderPhaseUpdate = false;
  37188. }
  37189. function mountWorkInProgressHook() {
  37190. var hook = {
  37191. memoizedState: null,
  37192. baseState: null,
  37193. baseQueue: null,
  37194. queue: null,
  37195. next: null
  37196. };
  37197. if (workInProgressHook === null) {
  37198. // This is the first hook in the list
  37199. currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
  37200. } else {
  37201. // Append to the end of the list
  37202. workInProgressHook = workInProgressHook.next = hook;
  37203. }
  37204. return workInProgressHook;
  37205. }
  37206. function updateWorkInProgressHook() {
  37207. // This function is used both for updates and for re-renders triggered by a
  37208. // render phase update. It assumes there is either a current hook we can
  37209. // clone, or a work-in-progress hook from a previous render pass that we can
  37210. // use as a base. When we reach the end of the base list, we must switch to
  37211. // the dispatcher used for mounts.
  37212. var nextCurrentHook;
  37213. if (currentHook === null) {
  37214. var current = currentlyRenderingFiber$1.alternate;
  37215. if (current !== null) {
  37216. nextCurrentHook = current.memoizedState;
  37217. } else {
  37218. nextCurrentHook = null;
  37219. }
  37220. } else {
  37221. nextCurrentHook = currentHook.next;
  37222. }
  37223. var nextWorkInProgressHook;
  37224. if (workInProgressHook === null) {
  37225. nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
  37226. } else {
  37227. nextWorkInProgressHook = workInProgressHook.next;
  37228. }
  37229. if (nextWorkInProgressHook !== null) {
  37230. // There's already a work-in-progress. Reuse it.
  37231. workInProgressHook = nextWorkInProgressHook;
  37232. nextWorkInProgressHook = workInProgressHook.next;
  37233. currentHook = nextCurrentHook;
  37234. } else {
  37235. // Clone from the current hook.
  37236. if (!(nextCurrentHook !== null)) {
  37237. {
  37238. throw Error( "Rendered more hooks than during the previous render." );
  37239. }
  37240. }
  37241. currentHook = nextCurrentHook;
  37242. var newHook = {
  37243. memoizedState: currentHook.memoizedState,
  37244. baseState: currentHook.baseState,
  37245. baseQueue: currentHook.baseQueue,
  37246. queue: currentHook.queue,
  37247. next: null
  37248. };
  37249. if (workInProgressHook === null) {
  37250. // This is the first hook in the list.
  37251. currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
  37252. } else {
  37253. // Append to the end of the list.
  37254. workInProgressHook = workInProgressHook.next = newHook;
  37255. }
  37256. }
  37257. return workInProgressHook;
  37258. }
  37259. function createFunctionComponentUpdateQueue() {
  37260. return {
  37261. lastEffect: null
  37262. };
  37263. }
  37264. function basicStateReducer(state, action) {
  37265. // $FlowFixMe: Flow doesn't like mixed types
  37266. return typeof action === 'function' ? action(state) : action;
  37267. }
  37268. function mountReducer(reducer, initialArg, init) {
  37269. var hook = mountWorkInProgressHook();
  37270. var initialState;
  37271. if (init !== undefined) {
  37272. initialState = init(initialArg);
  37273. } else {
  37274. initialState = initialArg;
  37275. }
  37276. hook.memoizedState = hook.baseState = initialState;
  37277. var queue = hook.queue = {
  37278. pending: null,
  37279. dispatch: null,
  37280. lastRenderedReducer: reducer,
  37281. lastRenderedState: initialState
  37282. };
  37283. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  37284. return [hook.memoizedState, dispatch];
  37285. }
  37286. function updateReducer(reducer, initialArg, init) {
  37287. var hook = updateWorkInProgressHook();
  37288. var queue = hook.queue;
  37289. if (!(queue !== null)) {
  37290. {
  37291. throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
  37292. }
  37293. }
  37294. queue.lastRenderedReducer = reducer;
  37295. var current = currentHook; // The last rebase update that is NOT part of the base state.
  37296. var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.
  37297. var pendingQueue = queue.pending;
  37298. if (pendingQueue !== null) {
  37299. // We have new updates that haven't been processed yet.
  37300. // We'll add them to the base queue.
  37301. if (baseQueue !== null) {
  37302. // Merge the pending queue and the base queue.
  37303. var baseFirst = baseQueue.next;
  37304. var pendingFirst = pendingQueue.next;
  37305. baseQueue.next = pendingFirst;
  37306. pendingQueue.next = baseFirst;
  37307. }
  37308. current.baseQueue = baseQueue = pendingQueue;
  37309. queue.pending = null;
  37310. }
  37311. if (baseQueue !== null) {
  37312. // We have a queue to process.
  37313. var first = baseQueue.next;
  37314. var newState = current.baseState;
  37315. var newBaseState = null;
  37316. var newBaseQueueFirst = null;
  37317. var newBaseQueueLast = null;
  37318. var update = first;
  37319. do {
  37320. var updateExpirationTime = update.expirationTime;
  37321. if (updateExpirationTime < renderExpirationTime) {
  37322. // Priority is insufficient. Skip this update. If this is the first
  37323. // skipped update, the previous update/state is the new base
  37324. // update/state.
  37325. var clone = {
  37326. expirationTime: update.expirationTime,
  37327. suspenseConfig: update.suspenseConfig,
  37328. action: update.action,
  37329. eagerReducer: update.eagerReducer,
  37330. eagerState: update.eagerState,
  37331. next: null
  37332. };
  37333. if (newBaseQueueLast === null) {
  37334. newBaseQueueFirst = newBaseQueueLast = clone;
  37335. newBaseState = newState;
  37336. } else {
  37337. newBaseQueueLast = newBaseQueueLast.next = clone;
  37338. } // Update the remaining priority in the queue.
  37339. if (updateExpirationTime > currentlyRenderingFiber$1.expirationTime) {
  37340. currentlyRenderingFiber$1.expirationTime = updateExpirationTime;
  37341. markUnprocessedUpdateTime(updateExpirationTime);
  37342. }
  37343. } else {
  37344. // This update does have sufficient priority.
  37345. if (newBaseQueueLast !== null) {
  37346. var _clone = {
  37347. expirationTime: Sync,
  37348. // This update is going to be committed so we never want uncommit it.
  37349. suspenseConfig: update.suspenseConfig,
  37350. action: update.action,
  37351. eagerReducer: update.eagerReducer,
  37352. eagerState: update.eagerState,
  37353. next: null
  37354. };
  37355. newBaseQueueLast = newBaseQueueLast.next = _clone;
  37356. } // Mark the event time of this update as relevant to this render pass.
  37357. // TODO: This should ideally use the true event time of this update rather than
  37358. // its priority which is a derived and not reverseable value.
  37359. // TODO: We should skip this update if it was already committed but currently
  37360. // we have no way of detecting the difference between a committed and suspended
  37361. // update here.
  37362. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
  37363. if (update.eagerReducer === reducer) {
  37364. // If this update was processed eagerly, and its reducer matches the
  37365. // current reducer, we can use the eagerly computed state.
  37366. newState = update.eagerState;
  37367. } else {
  37368. var action = update.action;
  37369. newState = reducer(newState, action);
  37370. }
  37371. }
  37372. update = update.next;
  37373. } while (update !== null && update !== first);
  37374. if (newBaseQueueLast === null) {
  37375. newBaseState = newState;
  37376. } else {
  37377. newBaseQueueLast.next = newBaseQueueFirst;
  37378. } // Mark that the fiber performed work, but only if the new state is
  37379. // different from the current state.
  37380. if (!objectIs(newState, hook.memoizedState)) {
  37381. markWorkInProgressReceivedUpdate();
  37382. }
  37383. hook.memoizedState = newState;
  37384. hook.baseState = newBaseState;
  37385. hook.baseQueue = newBaseQueueLast;
  37386. queue.lastRenderedState = newState;
  37387. }
  37388. var dispatch = queue.dispatch;
  37389. return [hook.memoizedState, dispatch];
  37390. }
  37391. function rerenderReducer(reducer, initialArg, init) {
  37392. var hook = updateWorkInProgressHook();
  37393. var queue = hook.queue;
  37394. if (!(queue !== null)) {
  37395. {
  37396. throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
  37397. }
  37398. }
  37399. queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
  37400. // work-in-progress hook.
  37401. var dispatch = queue.dispatch;
  37402. var lastRenderPhaseUpdate = queue.pending;
  37403. var newState = hook.memoizedState;
  37404. if (lastRenderPhaseUpdate !== null) {
  37405. // The queue doesn't persist past this render pass.
  37406. queue.pending = null;
  37407. var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  37408. var update = firstRenderPhaseUpdate;
  37409. do {
  37410. // Process this render phase update. We don't have to check the
  37411. // priority because it will always be the same as the current
  37412. // render's.
  37413. var action = update.action;
  37414. newState = reducer(newState, action);
  37415. update = update.next;
  37416. } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
  37417. // different from the current state.
  37418. if (!objectIs(newState, hook.memoizedState)) {
  37419. markWorkInProgressReceivedUpdate();
  37420. }
  37421. hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
  37422. // the base state unless the queue is empty.
  37423. // TODO: Not sure if this is the desired semantics, but it's what we
  37424. // do for gDSFP. I can't remember why.
  37425. if (hook.baseQueue === null) {
  37426. hook.baseState = newState;
  37427. }
  37428. queue.lastRenderedState = newState;
  37429. }
  37430. return [newState, dispatch];
  37431. }
  37432. function mountState(initialState) {
  37433. var hook = mountWorkInProgressHook();
  37434. if (typeof initialState === 'function') {
  37435. // $FlowFixMe: Flow doesn't like mixed types
  37436. initialState = initialState();
  37437. }
  37438. hook.memoizedState = hook.baseState = initialState;
  37439. var queue = hook.queue = {
  37440. pending: null,
  37441. dispatch: null,
  37442. lastRenderedReducer: basicStateReducer,
  37443. lastRenderedState: initialState
  37444. };
  37445. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  37446. return [hook.memoizedState, dispatch];
  37447. }
  37448. function updateState(initialState) {
  37449. return updateReducer(basicStateReducer);
  37450. }
  37451. function rerenderState(initialState) {
  37452. return rerenderReducer(basicStateReducer);
  37453. }
  37454. function pushEffect(tag, create, destroy, deps) {
  37455. var effect = {
  37456. tag: tag,
  37457. create: create,
  37458. destroy: destroy,
  37459. deps: deps,
  37460. // Circular
  37461. next: null
  37462. };
  37463. var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
  37464. if (componentUpdateQueue === null) {
  37465. componentUpdateQueue = createFunctionComponentUpdateQueue();
  37466. currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
  37467. componentUpdateQueue.lastEffect = effect.next = effect;
  37468. } else {
  37469. var lastEffect = componentUpdateQueue.lastEffect;
  37470. if (lastEffect === null) {
  37471. componentUpdateQueue.lastEffect = effect.next = effect;
  37472. } else {
  37473. var firstEffect = lastEffect.next;
  37474. lastEffect.next = effect;
  37475. effect.next = firstEffect;
  37476. componentUpdateQueue.lastEffect = effect;
  37477. }
  37478. }
  37479. return effect;
  37480. }
  37481. function mountRef(initialValue) {
  37482. var hook = mountWorkInProgressHook();
  37483. var ref = {
  37484. current: initialValue
  37485. };
  37486. {
  37487. Object.seal(ref);
  37488. }
  37489. hook.memoizedState = ref;
  37490. return ref;
  37491. }
  37492. function updateRef(initialValue) {
  37493. var hook = updateWorkInProgressHook();
  37494. return hook.memoizedState;
  37495. }
  37496. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  37497. var hook = mountWorkInProgressHook();
  37498. var nextDeps = deps === undefined ? null : deps;
  37499. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  37500. hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);
  37501. }
  37502. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  37503. var hook = updateWorkInProgressHook();
  37504. var nextDeps = deps === undefined ? null : deps;
  37505. var destroy = undefined;
  37506. if (currentHook !== null) {
  37507. var prevEffect = currentHook.memoizedState;
  37508. destroy = prevEffect.destroy;
  37509. if (nextDeps !== null) {
  37510. var prevDeps = prevEffect.deps;
  37511. if (areHookInputsEqual(nextDeps, prevDeps)) {
  37512. pushEffect(hookEffectTag, create, destroy, nextDeps);
  37513. return;
  37514. }
  37515. }
  37516. }
  37517. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  37518. hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps);
  37519. }
  37520. function mountEffect(create, deps) {
  37521. {
  37522. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  37523. if ('undefined' !== typeof jest) {
  37524. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  37525. }
  37526. }
  37527. return mountEffectImpl(Update | Passive, Passive$1, create, deps);
  37528. }
  37529. function updateEffect(create, deps) {
  37530. {
  37531. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  37532. if ('undefined' !== typeof jest) {
  37533. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  37534. }
  37535. }
  37536. return updateEffectImpl(Update | Passive, Passive$1, create, deps);
  37537. }
  37538. function mountLayoutEffect(create, deps) {
  37539. return mountEffectImpl(Update, Layout, create, deps);
  37540. }
  37541. function updateLayoutEffect(create, deps) {
  37542. return updateEffectImpl(Update, Layout, create, deps);
  37543. }
  37544. function imperativeHandleEffect(create, ref) {
  37545. if (typeof ref === 'function') {
  37546. var refCallback = ref;
  37547. var _inst = create();
  37548. refCallback(_inst);
  37549. return function () {
  37550. refCallback(null);
  37551. };
  37552. } else if (ref !== null && ref !== undefined) {
  37553. var refObject = ref;
  37554. {
  37555. if (!refObject.hasOwnProperty('current')) {
  37556. error('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(', ') + '}');
  37557. }
  37558. }
  37559. var _inst2 = create();
  37560. refObject.current = _inst2;
  37561. return function () {
  37562. refObject.current = null;
  37563. };
  37564. }
  37565. }
  37566. function mountImperativeHandle(ref, create, deps) {
  37567. {
  37568. if (typeof create !== 'function') {
  37569. error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
  37570. }
  37571. } // TODO: If deps are provided, should we skip comparing the ref itself?
  37572. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  37573. return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  37574. }
  37575. function updateImperativeHandle(ref, create, deps) {
  37576. {
  37577. if (typeof create !== 'function') {
  37578. error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
  37579. }
  37580. } // TODO: If deps are provided, should we skip comparing the ref itself?
  37581. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  37582. return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  37583. }
  37584. function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
  37585. // The react-debug-hooks package injects its own implementation
  37586. // so that e.g. DevTools can display custom hook values.
  37587. }
  37588. var updateDebugValue = mountDebugValue;
  37589. function mountCallback(callback, deps) {
  37590. var hook = mountWorkInProgressHook();
  37591. var nextDeps = deps === undefined ? null : deps;
  37592. hook.memoizedState = [callback, nextDeps];
  37593. return callback;
  37594. }
  37595. function updateCallback(callback, deps) {
  37596. var hook = updateWorkInProgressHook();
  37597. var nextDeps = deps === undefined ? null : deps;
  37598. var prevState = hook.memoizedState;
  37599. if (prevState !== null) {
  37600. if (nextDeps !== null) {
  37601. var prevDeps = prevState[1];
  37602. if (areHookInputsEqual(nextDeps, prevDeps)) {
  37603. return prevState[0];
  37604. }
  37605. }
  37606. }
  37607. hook.memoizedState = [callback, nextDeps];
  37608. return callback;
  37609. }
  37610. function mountMemo(nextCreate, deps) {
  37611. var hook = mountWorkInProgressHook();
  37612. var nextDeps = deps === undefined ? null : deps;
  37613. var nextValue = nextCreate();
  37614. hook.memoizedState = [nextValue, nextDeps];
  37615. return nextValue;
  37616. }
  37617. function updateMemo(nextCreate, deps) {
  37618. var hook = updateWorkInProgressHook();
  37619. var nextDeps = deps === undefined ? null : deps;
  37620. var prevState = hook.memoizedState;
  37621. if (prevState !== null) {
  37622. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  37623. if (nextDeps !== null) {
  37624. var prevDeps = prevState[1];
  37625. if (areHookInputsEqual(nextDeps, prevDeps)) {
  37626. return prevState[0];
  37627. }
  37628. }
  37629. }
  37630. var nextValue = nextCreate();
  37631. hook.memoizedState = [nextValue, nextDeps];
  37632. return nextValue;
  37633. }
  37634. function mountDeferredValue(value, config) {
  37635. var _mountState = mountState(value),
  37636. prevValue = _mountState[0],
  37637. setValue = _mountState[1];
  37638. mountEffect(function () {
  37639. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  37640. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  37641. try {
  37642. setValue(value);
  37643. } finally {
  37644. ReactCurrentBatchConfig$1.suspense = previousConfig;
  37645. }
  37646. }, [value, config]);
  37647. return prevValue;
  37648. }
  37649. function updateDeferredValue(value, config) {
  37650. var _updateState = updateState(),
  37651. prevValue = _updateState[0],
  37652. setValue = _updateState[1];
  37653. updateEffect(function () {
  37654. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  37655. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  37656. try {
  37657. setValue(value);
  37658. } finally {
  37659. ReactCurrentBatchConfig$1.suspense = previousConfig;
  37660. }
  37661. }, [value, config]);
  37662. return prevValue;
  37663. }
  37664. function rerenderDeferredValue(value, config) {
  37665. var _rerenderState = rerenderState(),
  37666. prevValue = _rerenderState[0],
  37667. setValue = _rerenderState[1];
  37668. updateEffect(function () {
  37669. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  37670. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  37671. try {
  37672. setValue(value);
  37673. } finally {
  37674. ReactCurrentBatchConfig$1.suspense = previousConfig;
  37675. }
  37676. }, [value, config]);
  37677. return prevValue;
  37678. }
  37679. function startTransition(setPending, config, callback) {
  37680. var priorityLevel = getCurrentPriorityLevel();
  37681. runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () {
  37682. setPending(true);
  37683. });
  37684. runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () {
  37685. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  37686. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  37687. try {
  37688. setPending(false);
  37689. callback();
  37690. } finally {
  37691. ReactCurrentBatchConfig$1.suspense = previousConfig;
  37692. }
  37693. });
  37694. }
  37695. function mountTransition(config) {
  37696. var _mountState2 = mountState(false),
  37697. isPending = _mountState2[0],
  37698. setPending = _mountState2[1];
  37699. var start = mountCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  37700. return [start, isPending];
  37701. }
  37702. function updateTransition(config) {
  37703. var _updateState2 = updateState(),
  37704. isPending = _updateState2[0],
  37705. setPending = _updateState2[1];
  37706. var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  37707. return [start, isPending];
  37708. }
  37709. function rerenderTransition(config) {
  37710. var _rerenderState2 = rerenderState(),
  37711. isPending = _rerenderState2[0],
  37712. setPending = _rerenderState2[1];
  37713. var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  37714. return [start, isPending];
  37715. }
  37716. function dispatchAction(fiber, queue, action) {
  37717. {
  37718. if (typeof arguments[3] === 'function') {
  37719. error("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().');
  37720. }
  37721. }
  37722. var currentTime = requestCurrentTimeForUpdate();
  37723. var suspenseConfig = requestCurrentSuspenseConfig();
  37724. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  37725. var update = {
  37726. expirationTime: expirationTime,
  37727. suspenseConfig: suspenseConfig,
  37728. action: action,
  37729. eagerReducer: null,
  37730. eagerState: null,
  37731. next: null
  37732. };
  37733. {
  37734. update.priority = getCurrentPriorityLevel();
  37735. } // Append the update to the end of the list.
  37736. var pending = queue.pending;
  37737. if (pending === null) {
  37738. // This is the first update. Create a circular list.
  37739. update.next = update;
  37740. } else {
  37741. update.next = pending.next;
  37742. pending.next = update;
  37743. }
  37744. queue.pending = update;
  37745. var alternate = fiber.alternate;
  37746. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  37747. // This is a render phase update. Stash it in a lazily-created map of
  37748. // queue -> linked list of updates. After this render pass, we'll restart
  37749. // and apply the stashed updates on top of the work-in-progress hook.
  37750. didScheduleRenderPhaseUpdate = true;
  37751. update.expirationTime = renderExpirationTime;
  37752. currentlyRenderingFiber$1.expirationTime = renderExpirationTime;
  37753. } else {
  37754. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  37755. // The queue is currently empty, which means we can eagerly compute the
  37756. // next state before entering the render phase. If the new state is the
  37757. // same as the current state, we may be able to bail out entirely.
  37758. var lastRenderedReducer = queue.lastRenderedReducer;
  37759. if (lastRenderedReducer !== null) {
  37760. var prevDispatcher;
  37761. {
  37762. prevDispatcher = ReactCurrentDispatcher.current;
  37763. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  37764. }
  37765. try {
  37766. var currentState = queue.lastRenderedState;
  37767. var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
  37768. // it, on the update object. If the reducer hasn't changed by the
  37769. // time we enter the render phase, then the eager state can be used
  37770. // without calling the reducer again.
  37771. update.eagerReducer = lastRenderedReducer;
  37772. update.eagerState = eagerState;
  37773. if (objectIs(eagerState, currentState)) {
  37774. // Fast path. We can bail out without scheduling React to re-render.
  37775. // It's still possible that we'll need to rebase this update later,
  37776. // if the component re-renders for a different reason and by that
  37777. // time the reducer has changed.
  37778. return;
  37779. }
  37780. } catch (error) {// Suppress the error. It will throw again in the render phase.
  37781. } finally {
  37782. {
  37783. ReactCurrentDispatcher.current = prevDispatcher;
  37784. }
  37785. }
  37786. }
  37787. }
  37788. {
  37789. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  37790. if ('undefined' !== typeof jest) {
  37791. warnIfNotScopedWithMatchingAct(fiber);
  37792. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  37793. }
  37794. }
  37795. scheduleWork(fiber, expirationTime);
  37796. }
  37797. }
  37798. var ContextOnlyDispatcher = {
  37799. readContext: readContext,
  37800. useCallback: throwInvalidHookError,
  37801. useContext: throwInvalidHookError,
  37802. useEffect: throwInvalidHookError,
  37803. useImperativeHandle: throwInvalidHookError,
  37804. useLayoutEffect: throwInvalidHookError,
  37805. useMemo: throwInvalidHookError,
  37806. useReducer: throwInvalidHookError,
  37807. useRef: throwInvalidHookError,
  37808. useState: throwInvalidHookError,
  37809. useDebugValue: throwInvalidHookError,
  37810. useResponder: throwInvalidHookError,
  37811. useDeferredValue: throwInvalidHookError,
  37812. useTransition: throwInvalidHookError
  37813. };
  37814. var HooksDispatcherOnMountInDEV = null;
  37815. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  37816. var HooksDispatcherOnUpdateInDEV = null;
  37817. var HooksDispatcherOnRerenderInDEV = null;
  37818. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  37819. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  37820. var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
  37821. {
  37822. var warnInvalidContextAccess = function () {
  37823. 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().');
  37824. };
  37825. var warnInvalidHookAccess = function () {
  37826. error('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');
  37827. };
  37828. HooksDispatcherOnMountInDEV = {
  37829. readContext: function (context, observedBits) {
  37830. return readContext(context, observedBits);
  37831. },
  37832. useCallback: function (callback, deps) {
  37833. currentHookNameInDev = 'useCallback';
  37834. mountHookTypesDev();
  37835. checkDepsAreArrayDev(deps);
  37836. return mountCallback(callback, deps);
  37837. },
  37838. useContext: function (context, observedBits) {
  37839. currentHookNameInDev = 'useContext';
  37840. mountHookTypesDev();
  37841. return readContext(context, observedBits);
  37842. },
  37843. useEffect: function (create, deps) {
  37844. currentHookNameInDev = 'useEffect';
  37845. mountHookTypesDev();
  37846. checkDepsAreArrayDev(deps);
  37847. return mountEffect(create, deps);
  37848. },
  37849. useImperativeHandle: function (ref, create, deps) {
  37850. currentHookNameInDev = 'useImperativeHandle';
  37851. mountHookTypesDev();
  37852. checkDepsAreArrayDev(deps);
  37853. return mountImperativeHandle(ref, create, deps);
  37854. },
  37855. useLayoutEffect: function (create, deps) {
  37856. currentHookNameInDev = 'useLayoutEffect';
  37857. mountHookTypesDev();
  37858. checkDepsAreArrayDev(deps);
  37859. return mountLayoutEffect(create, deps);
  37860. },
  37861. useMemo: function (create, deps) {
  37862. currentHookNameInDev = 'useMemo';
  37863. mountHookTypesDev();
  37864. checkDepsAreArrayDev(deps);
  37865. var prevDispatcher = ReactCurrentDispatcher.current;
  37866. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37867. try {
  37868. return mountMemo(create, deps);
  37869. } finally {
  37870. ReactCurrentDispatcher.current = prevDispatcher;
  37871. }
  37872. },
  37873. useReducer: function (reducer, initialArg, init) {
  37874. currentHookNameInDev = 'useReducer';
  37875. mountHookTypesDev();
  37876. var prevDispatcher = ReactCurrentDispatcher.current;
  37877. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37878. try {
  37879. return mountReducer(reducer, initialArg, init);
  37880. } finally {
  37881. ReactCurrentDispatcher.current = prevDispatcher;
  37882. }
  37883. },
  37884. useRef: function (initialValue) {
  37885. currentHookNameInDev = 'useRef';
  37886. mountHookTypesDev();
  37887. return mountRef(initialValue);
  37888. },
  37889. useState: function (initialState) {
  37890. currentHookNameInDev = 'useState';
  37891. mountHookTypesDev();
  37892. var prevDispatcher = ReactCurrentDispatcher.current;
  37893. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37894. try {
  37895. return mountState(initialState);
  37896. } finally {
  37897. ReactCurrentDispatcher.current = prevDispatcher;
  37898. }
  37899. },
  37900. useDebugValue: function (value, formatterFn) {
  37901. currentHookNameInDev = 'useDebugValue';
  37902. mountHookTypesDev();
  37903. return mountDebugValue();
  37904. },
  37905. useResponder: function (responder, props) {
  37906. currentHookNameInDev = 'useResponder';
  37907. mountHookTypesDev();
  37908. return createDeprecatedResponderListener(responder, props);
  37909. },
  37910. useDeferredValue: function (value, config) {
  37911. currentHookNameInDev = 'useDeferredValue';
  37912. mountHookTypesDev();
  37913. return mountDeferredValue(value, config);
  37914. },
  37915. useTransition: function (config) {
  37916. currentHookNameInDev = 'useTransition';
  37917. mountHookTypesDev();
  37918. return mountTransition(config);
  37919. }
  37920. };
  37921. HooksDispatcherOnMountWithHookTypesInDEV = {
  37922. readContext: function (context, observedBits) {
  37923. return readContext(context, observedBits);
  37924. },
  37925. useCallback: function (callback, deps) {
  37926. currentHookNameInDev = 'useCallback';
  37927. updateHookTypesDev();
  37928. return mountCallback(callback, deps);
  37929. },
  37930. useContext: function (context, observedBits) {
  37931. currentHookNameInDev = 'useContext';
  37932. updateHookTypesDev();
  37933. return readContext(context, observedBits);
  37934. },
  37935. useEffect: function (create, deps) {
  37936. currentHookNameInDev = 'useEffect';
  37937. updateHookTypesDev();
  37938. return mountEffect(create, deps);
  37939. },
  37940. useImperativeHandle: function (ref, create, deps) {
  37941. currentHookNameInDev = 'useImperativeHandle';
  37942. updateHookTypesDev();
  37943. return mountImperativeHandle(ref, create, deps);
  37944. },
  37945. useLayoutEffect: function (create, deps) {
  37946. currentHookNameInDev = 'useLayoutEffect';
  37947. updateHookTypesDev();
  37948. return mountLayoutEffect(create, deps);
  37949. },
  37950. useMemo: function (create, deps) {
  37951. currentHookNameInDev = 'useMemo';
  37952. updateHookTypesDev();
  37953. var prevDispatcher = ReactCurrentDispatcher.current;
  37954. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37955. try {
  37956. return mountMemo(create, deps);
  37957. } finally {
  37958. ReactCurrentDispatcher.current = prevDispatcher;
  37959. }
  37960. },
  37961. useReducer: function (reducer, initialArg, init) {
  37962. currentHookNameInDev = 'useReducer';
  37963. updateHookTypesDev();
  37964. var prevDispatcher = ReactCurrentDispatcher.current;
  37965. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37966. try {
  37967. return mountReducer(reducer, initialArg, init);
  37968. } finally {
  37969. ReactCurrentDispatcher.current = prevDispatcher;
  37970. }
  37971. },
  37972. useRef: function (initialValue) {
  37973. currentHookNameInDev = 'useRef';
  37974. updateHookTypesDev();
  37975. return mountRef(initialValue);
  37976. },
  37977. useState: function (initialState) {
  37978. currentHookNameInDev = 'useState';
  37979. updateHookTypesDev();
  37980. var prevDispatcher = ReactCurrentDispatcher.current;
  37981. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  37982. try {
  37983. return mountState(initialState);
  37984. } finally {
  37985. ReactCurrentDispatcher.current = prevDispatcher;
  37986. }
  37987. },
  37988. useDebugValue: function (value, formatterFn) {
  37989. currentHookNameInDev = 'useDebugValue';
  37990. updateHookTypesDev();
  37991. return mountDebugValue();
  37992. },
  37993. useResponder: function (responder, props) {
  37994. currentHookNameInDev = 'useResponder';
  37995. updateHookTypesDev();
  37996. return createDeprecatedResponderListener(responder, props);
  37997. },
  37998. useDeferredValue: function (value, config) {
  37999. currentHookNameInDev = 'useDeferredValue';
  38000. updateHookTypesDev();
  38001. return mountDeferredValue(value, config);
  38002. },
  38003. useTransition: function (config) {
  38004. currentHookNameInDev = 'useTransition';
  38005. updateHookTypesDev();
  38006. return mountTransition(config);
  38007. }
  38008. };
  38009. HooksDispatcherOnUpdateInDEV = {
  38010. readContext: function (context, observedBits) {
  38011. return readContext(context, observedBits);
  38012. },
  38013. useCallback: function (callback, deps) {
  38014. currentHookNameInDev = 'useCallback';
  38015. updateHookTypesDev();
  38016. return updateCallback(callback, deps);
  38017. },
  38018. useContext: function (context, observedBits) {
  38019. currentHookNameInDev = 'useContext';
  38020. updateHookTypesDev();
  38021. return readContext(context, observedBits);
  38022. },
  38023. useEffect: function (create, deps) {
  38024. currentHookNameInDev = 'useEffect';
  38025. updateHookTypesDev();
  38026. return updateEffect(create, deps);
  38027. },
  38028. useImperativeHandle: function (ref, create, deps) {
  38029. currentHookNameInDev = 'useImperativeHandle';
  38030. updateHookTypesDev();
  38031. return updateImperativeHandle(ref, create, deps);
  38032. },
  38033. useLayoutEffect: function (create, deps) {
  38034. currentHookNameInDev = 'useLayoutEffect';
  38035. updateHookTypesDev();
  38036. return updateLayoutEffect(create, deps);
  38037. },
  38038. useMemo: function (create, deps) {
  38039. currentHookNameInDev = 'useMemo';
  38040. updateHookTypesDev();
  38041. var prevDispatcher = ReactCurrentDispatcher.current;
  38042. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38043. try {
  38044. return updateMemo(create, deps);
  38045. } finally {
  38046. ReactCurrentDispatcher.current = prevDispatcher;
  38047. }
  38048. },
  38049. useReducer: function (reducer, initialArg, init) {
  38050. currentHookNameInDev = 'useReducer';
  38051. updateHookTypesDev();
  38052. var prevDispatcher = ReactCurrentDispatcher.current;
  38053. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38054. try {
  38055. return updateReducer(reducer, initialArg, init);
  38056. } finally {
  38057. ReactCurrentDispatcher.current = prevDispatcher;
  38058. }
  38059. },
  38060. useRef: function (initialValue) {
  38061. currentHookNameInDev = 'useRef';
  38062. updateHookTypesDev();
  38063. return updateRef();
  38064. },
  38065. useState: function (initialState) {
  38066. currentHookNameInDev = 'useState';
  38067. updateHookTypesDev();
  38068. var prevDispatcher = ReactCurrentDispatcher.current;
  38069. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38070. try {
  38071. return updateState(initialState);
  38072. } finally {
  38073. ReactCurrentDispatcher.current = prevDispatcher;
  38074. }
  38075. },
  38076. useDebugValue: function (value, formatterFn) {
  38077. currentHookNameInDev = 'useDebugValue';
  38078. updateHookTypesDev();
  38079. return updateDebugValue();
  38080. },
  38081. useResponder: function (responder, props) {
  38082. currentHookNameInDev = 'useResponder';
  38083. updateHookTypesDev();
  38084. return createDeprecatedResponderListener(responder, props);
  38085. },
  38086. useDeferredValue: function (value, config) {
  38087. currentHookNameInDev = 'useDeferredValue';
  38088. updateHookTypesDev();
  38089. return updateDeferredValue(value, config);
  38090. },
  38091. useTransition: function (config) {
  38092. currentHookNameInDev = 'useTransition';
  38093. updateHookTypesDev();
  38094. return updateTransition(config);
  38095. }
  38096. };
  38097. HooksDispatcherOnRerenderInDEV = {
  38098. readContext: function (context, observedBits) {
  38099. return readContext(context, observedBits);
  38100. },
  38101. useCallback: function (callback, deps) {
  38102. currentHookNameInDev = 'useCallback';
  38103. updateHookTypesDev();
  38104. return updateCallback(callback, deps);
  38105. },
  38106. useContext: function (context, observedBits) {
  38107. currentHookNameInDev = 'useContext';
  38108. updateHookTypesDev();
  38109. return readContext(context, observedBits);
  38110. },
  38111. useEffect: function (create, deps) {
  38112. currentHookNameInDev = 'useEffect';
  38113. updateHookTypesDev();
  38114. return updateEffect(create, deps);
  38115. },
  38116. useImperativeHandle: function (ref, create, deps) {
  38117. currentHookNameInDev = 'useImperativeHandle';
  38118. updateHookTypesDev();
  38119. return updateImperativeHandle(ref, create, deps);
  38120. },
  38121. useLayoutEffect: function (create, deps) {
  38122. currentHookNameInDev = 'useLayoutEffect';
  38123. updateHookTypesDev();
  38124. return updateLayoutEffect(create, deps);
  38125. },
  38126. useMemo: function (create, deps) {
  38127. currentHookNameInDev = 'useMemo';
  38128. updateHookTypesDev();
  38129. var prevDispatcher = ReactCurrentDispatcher.current;
  38130. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  38131. try {
  38132. return updateMemo(create, deps);
  38133. } finally {
  38134. ReactCurrentDispatcher.current = prevDispatcher;
  38135. }
  38136. },
  38137. useReducer: function (reducer, initialArg, init) {
  38138. currentHookNameInDev = 'useReducer';
  38139. updateHookTypesDev();
  38140. var prevDispatcher = ReactCurrentDispatcher.current;
  38141. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  38142. try {
  38143. return rerenderReducer(reducer, initialArg, init);
  38144. } finally {
  38145. ReactCurrentDispatcher.current = prevDispatcher;
  38146. }
  38147. },
  38148. useRef: function (initialValue) {
  38149. currentHookNameInDev = 'useRef';
  38150. updateHookTypesDev();
  38151. return updateRef();
  38152. },
  38153. useState: function (initialState) {
  38154. currentHookNameInDev = 'useState';
  38155. updateHookTypesDev();
  38156. var prevDispatcher = ReactCurrentDispatcher.current;
  38157. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  38158. try {
  38159. return rerenderState(initialState);
  38160. } finally {
  38161. ReactCurrentDispatcher.current = prevDispatcher;
  38162. }
  38163. },
  38164. useDebugValue: function (value, formatterFn) {
  38165. currentHookNameInDev = 'useDebugValue';
  38166. updateHookTypesDev();
  38167. return updateDebugValue();
  38168. },
  38169. useResponder: function (responder, props) {
  38170. currentHookNameInDev = 'useResponder';
  38171. updateHookTypesDev();
  38172. return createDeprecatedResponderListener(responder, props);
  38173. },
  38174. useDeferredValue: function (value, config) {
  38175. currentHookNameInDev = 'useDeferredValue';
  38176. updateHookTypesDev();
  38177. return rerenderDeferredValue(value, config);
  38178. },
  38179. useTransition: function (config) {
  38180. currentHookNameInDev = 'useTransition';
  38181. updateHookTypesDev();
  38182. return rerenderTransition(config);
  38183. }
  38184. };
  38185. InvalidNestedHooksDispatcherOnMountInDEV = {
  38186. readContext: function (context, observedBits) {
  38187. warnInvalidContextAccess();
  38188. return readContext(context, observedBits);
  38189. },
  38190. useCallback: function (callback, deps) {
  38191. currentHookNameInDev = 'useCallback';
  38192. warnInvalidHookAccess();
  38193. mountHookTypesDev();
  38194. return mountCallback(callback, deps);
  38195. },
  38196. useContext: function (context, observedBits) {
  38197. currentHookNameInDev = 'useContext';
  38198. warnInvalidHookAccess();
  38199. mountHookTypesDev();
  38200. return readContext(context, observedBits);
  38201. },
  38202. useEffect: function (create, deps) {
  38203. currentHookNameInDev = 'useEffect';
  38204. warnInvalidHookAccess();
  38205. mountHookTypesDev();
  38206. return mountEffect(create, deps);
  38207. },
  38208. useImperativeHandle: function (ref, create, deps) {
  38209. currentHookNameInDev = 'useImperativeHandle';
  38210. warnInvalidHookAccess();
  38211. mountHookTypesDev();
  38212. return mountImperativeHandle(ref, create, deps);
  38213. },
  38214. useLayoutEffect: function (create, deps) {
  38215. currentHookNameInDev = 'useLayoutEffect';
  38216. warnInvalidHookAccess();
  38217. mountHookTypesDev();
  38218. return mountLayoutEffect(create, deps);
  38219. },
  38220. useMemo: function (create, deps) {
  38221. currentHookNameInDev = 'useMemo';
  38222. warnInvalidHookAccess();
  38223. mountHookTypesDev();
  38224. var prevDispatcher = ReactCurrentDispatcher.current;
  38225. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  38226. try {
  38227. return mountMemo(create, deps);
  38228. } finally {
  38229. ReactCurrentDispatcher.current = prevDispatcher;
  38230. }
  38231. },
  38232. useReducer: function (reducer, initialArg, init) {
  38233. currentHookNameInDev = 'useReducer';
  38234. warnInvalidHookAccess();
  38235. mountHookTypesDev();
  38236. var prevDispatcher = ReactCurrentDispatcher.current;
  38237. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  38238. try {
  38239. return mountReducer(reducer, initialArg, init);
  38240. } finally {
  38241. ReactCurrentDispatcher.current = prevDispatcher;
  38242. }
  38243. },
  38244. useRef: function (initialValue) {
  38245. currentHookNameInDev = 'useRef';
  38246. warnInvalidHookAccess();
  38247. mountHookTypesDev();
  38248. return mountRef(initialValue);
  38249. },
  38250. useState: function (initialState) {
  38251. currentHookNameInDev = 'useState';
  38252. warnInvalidHookAccess();
  38253. mountHookTypesDev();
  38254. var prevDispatcher = ReactCurrentDispatcher.current;
  38255. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  38256. try {
  38257. return mountState(initialState);
  38258. } finally {
  38259. ReactCurrentDispatcher.current = prevDispatcher;
  38260. }
  38261. },
  38262. useDebugValue: function (value, formatterFn) {
  38263. currentHookNameInDev = 'useDebugValue';
  38264. warnInvalidHookAccess();
  38265. mountHookTypesDev();
  38266. return mountDebugValue();
  38267. },
  38268. useResponder: function (responder, props) {
  38269. currentHookNameInDev = 'useResponder';
  38270. warnInvalidHookAccess();
  38271. mountHookTypesDev();
  38272. return createDeprecatedResponderListener(responder, props);
  38273. },
  38274. useDeferredValue: function (value, config) {
  38275. currentHookNameInDev = 'useDeferredValue';
  38276. warnInvalidHookAccess();
  38277. mountHookTypesDev();
  38278. return mountDeferredValue(value, config);
  38279. },
  38280. useTransition: function (config) {
  38281. currentHookNameInDev = 'useTransition';
  38282. warnInvalidHookAccess();
  38283. mountHookTypesDev();
  38284. return mountTransition(config);
  38285. }
  38286. };
  38287. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  38288. readContext: function (context, observedBits) {
  38289. warnInvalidContextAccess();
  38290. return readContext(context, observedBits);
  38291. },
  38292. useCallback: function (callback, deps) {
  38293. currentHookNameInDev = 'useCallback';
  38294. warnInvalidHookAccess();
  38295. updateHookTypesDev();
  38296. return updateCallback(callback, deps);
  38297. },
  38298. useContext: function (context, observedBits) {
  38299. currentHookNameInDev = 'useContext';
  38300. warnInvalidHookAccess();
  38301. updateHookTypesDev();
  38302. return readContext(context, observedBits);
  38303. },
  38304. useEffect: function (create, deps) {
  38305. currentHookNameInDev = 'useEffect';
  38306. warnInvalidHookAccess();
  38307. updateHookTypesDev();
  38308. return updateEffect(create, deps);
  38309. },
  38310. useImperativeHandle: function (ref, create, deps) {
  38311. currentHookNameInDev = 'useImperativeHandle';
  38312. warnInvalidHookAccess();
  38313. updateHookTypesDev();
  38314. return updateImperativeHandle(ref, create, deps);
  38315. },
  38316. useLayoutEffect: function (create, deps) {
  38317. currentHookNameInDev = 'useLayoutEffect';
  38318. warnInvalidHookAccess();
  38319. updateHookTypesDev();
  38320. return updateLayoutEffect(create, deps);
  38321. },
  38322. useMemo: function (create, deps) {
  38323. currentHookNameInDev = 'useMemo';
  38324. warnInvalidHookAccess();
  38325. updateHookTypesDev();
  38326. var prevDispatcher = ReactCurrentDispatcher.current;
  38327. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38328. try {
  38329. return updateMemo(create, deps);
  38330. } finally {
  38331. ReactCurrentDispatcher.current = prevDispatcher;
  38332. }
  38333. },
  38334. useReducer: function (reducer, initialArg, init) {
  38335. currentHookNameInDev = 'useReducer';
  38336. warnInvalidHookAccess();
  38337. updateHookTypesDev();
  38338. var prevDispatcher = ReactCurrentDispatcher.current;
  38339. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38340. try {
  38341. return updateReducer(reducer, initialArg, init);
  38342. } finally {
  38343. ReactCurrentDispatcher.current = prevDispatcher;
  38344. }
  38345. },
  38346. useRef: function (initialValue) {
  38347. currentHookNameInDev = 'useRef';
  38348. warnInvalidHookAccess();
  38349. updateHookTypesDev();
  38350. return updateRef();
  38351. },
  38352. useState: function (initialState) {
  38353. currentHookNameInDev = 'useState';
  38354. warnInvalidHookAccess();
  38355. updateHookTypesDev();
  38356. var prevDispatcher = ReactCurrentDispatcher.current;
  38357. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38358. try {
  38359. return updateState(initialState);
  38360. } finally {
  38361. ReactCurrentDispatcher.current = prevDispatcher;
  38362. }
  38363. },
  38364. useDebugValue: function (value, formatterFn) {
  38365. currentHookNameInDev = 'useDebugValue';
  38366. warnInvalidHookAccess();
  38367. updateHookTypesDev();
  38368. return updateDebugValue();
  38369. },
  38370. useResponder: function (responder, props) {
  38371. currentHookNameInDev = 'useResponder';
  38372. warnInvalidHookAccess();
  38373. updateHookTypesDev();
  38374. return createDeprecatedResponderListener(responder, props);
  38375. },
  38376. useDeferredValue: function (value, config) {
  38377. currentHookNameInDev = 'useDeferredValue';
  38378. warnInvalidHookAccess();
  38379. updateHookTypesDev();
  38380. return updateDeferredValue(value, config);
  38381. },
  38382. useTransition: function (config) {
  38383. currentHookNameInDev = 'useTransition';
  38384. warnInvalidHookAccess();
  38385. updateHookTypesDev();
  38386. return updateTransition(config);
  38387. }
  38388. };
  38389. InvalidNestedHooksDispatcherOnRerenderInDEV = {
  38390. readContext: function (context, observedBits) {
  38391. warnInvalidContextAccess();
  38392. return readContext(context, observedBits);
  38393. },
  38394. useCallback: function (callback, deps) {
  38395. currentHookNameInDev = 'useCallback';
  38396. warnInvalidHookAccess();
  38397. updateHookTypesDev();
  38398. return updateCallback(callback, deps);
  38399. },
  38400. useContext: function (context, observedBits) {
  38401. currentHookNameInDev = 'useContext';
  38402. warnInvalidHookAccess();
  38403. updateHookTypesDev();
  38404. return readContext(context, observedBits);
  38405. },
  38406. useEffect: function (create, deps) {
  38407. currentHookNameInDev = 'useEffect';
  38408. warnInvalidHookAccess();
  38409. updateHookTypesDev();
  38410. return updateEffect(create, deps);
  38411. },
  38412. useImperativeHandle: function (ref, create, deps) {
  38413. currentHookNameInDev = 'useImperativeHandle';
  38414. warnInvalidHookAccess();
  38415. updateHookTypesDev();
  38416. return updateImperativeHandle(ref, create, deps);
  38417. },
  38418. useLayoutEffect: function (create, deps) {
  38419. currentHookNameInDev = 'useLayoutEffect';
  38420. warnInvalidHookAccess();
  38421. updateHookTypesDev();
  38422. return updateLayoutEffect(create, deps);
  38423. },
  38424. useMemo: function (create, deps) {
  38425. currentHookNameInDev = 'useMemo';
  38426. warnInvalidHookAccess();
  38427. updateHookTypesDev();
  38428. var prevDispatcher = ReactCurrentDispatcher.current;
  38429. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38430. try {
  38431. return updateMemo(create, deps);
  38432. } finally {
  38433. ReactCurrentDispatcher.current = prevDispatcher;
  38434. }
  38435. },
  38436. useReducer: function (reducer, initialArg, init) {
  38437. currentHookNameInDev = 'useReducer';
  38438. warnInvalidHookAccess();
  38439. updateHookTypesDev();
  38440. var prevDispatcher = ReactCurrentDispatcher.current;
  38441. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38442. try {
  38443. return rerenderReducer(reducer, initialArg, init);
  38444. } finally {
  38445. ReactCurrentDispatcher.current = prevDispatcher;
  38446. }
  38447. },
  38448. useRef: function (initialValue) {
  38449. currentHookNameInDev = 'useRef';
  38450. warnInvalidHookAccess();
  38451. updateHookTypesDev();
  38452. return updateRef();
  38453. },
  38454. useState: function (initialState) {
  38455. currentHookNameInDev = 'useState';
  38456. warnInvalidHookAccess();
  38457. updateHookTypesDev();
  38458. var prevDispatcher = ReactCurrentDispatcher.current;
  38459. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  38460. try {
  38461. return rerenderState(initialState);
  38462. } finally {
  38463. ReactCurrentDispatcher.current = prevDispatcher;
  38464. }
  38465. },
  38466. useDebugValue: function (value, formatterFn) {
  38467. currentHookNameInDev = 'useDebugValue';
  38468. warnInvalidHookAccess();
  38469. updateHookTypesDev();
  38470. return updateDebugValue();
  38471. },
  38472. useResponder: function (responder, props) {
  38473. currentHookNameInDev = 'useResponder';
  38474. warnInvalidHookAccess();
  38475. updateHookTypesDev();
  38476. return createDeprecatedResponderListener(responder, props);
  38477. },
  38478. useDeferredValue: function (value, config) {
  38479. currentHookNameInDev = 'useDeferredValue';
  38480. warnInvalidHookAccess();
  38481. updateHookTypesDev();
  38482. return rerenderDeferredValue(value, config);
  38483. },
  38484. useTransition: function (config) {
  38485. currentHookNameInDev = 'useTransition';
  38486. warnInvalidHookAccess();
  38487. updateHookTypesDev();
  38488. return rerenderTransition(config);
  38489. }
  38490. };
  38491. }
  38492. var now$1 = Scheduler.unstable_now;
  38493. var commitTime = 0;
  38494. var profilerStartTime = -1;
  38495. function getCommitTime() {
  38496. return commitTime;
  38497. }
  38498. function recordCommitTime() {
  38499. commitTime = now$1();
  38500. }
  38501. function startProfilerTimer(fiber) {
  38502. profilerStartTime = now$1();
  38503. if (fiber.actualStartTime < 0) {
  38504. fiber.actualStartTime = now$1();
  38505. }
  38506. }
  38507. function stopProfilerTimerIfRunning(fiber) {
  38508. profilerStartTime = -1;
  38509. }
  38510. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  38511. if (profilerStartTime >= 0) {
  38512. var elapsedTime = now$1() - profilerStartTime;
  38513. fiber.actualDuration += elapsedTime;
  38514. if (overrideBaseTime) {
  38515. fiber.selfBaseDuration = elapsedTime;
  38516. }
  38517. profilerStartTime = -1;
  38518. }
  38519. }
  38520. // This may have been an insertion or a hydration.
  38521. var hydrationParentFiber = null;
  38522. var nextHydratableInstance = null;
  38523. var isHydrating = false;
  38524. function enterHydrationState(fiber) {
  38525. var parentInstance = fiber.stateNode.containerInfo;
  38526. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  38527. hydrationParentFiber = fiber;
  38528. isHydrating = true;
  38529. return true;
  38530. }
  38531. function deleteHydratableInstance(returnFiber, instance) {
  38532. {
  38533. switch (returnFiber.tag) {
  38534. case HostRoot:
  38535. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  38536. break;
  38537. case HostComponent:
  38538. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  38539. break;
  38540. }
  38541. }
  38542. var childToDelete = createFiberFromHostInstanceForDeletion();
  38543. childToDelete.stateNode = instance;
  38544. childToDelete.return = returnFiber;
  38545. childToDelete.effectTag = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
  38546. // these children are not part of the reconciliation list of children.
  38547. // Even if we abort and rereconcile the children, that will try to hydrate
  38548. // again and the nodes are still in the host tree so these will be
  38549. // recreated.
  38550. if (returnFiber.lastEffect !== null) {
  38551. returnFiber.lastEffect.nextEffect = childToDelete;
  38552. returnFiber.lastEffect = childToDelete;
  38553. } else {
  38554. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  38555. }
  38556. }
  38557. function insertNonHydratedInstance(returnFiber, fiber) {
  38558. fiber.effectTag = fiber.effectTag & ~Hydrating | Placement;
  38559. {
  38560. switch (returnFiber.tag) {
  38561. case HostRoot:
  38562. {
  38563. var parentContainer = returnFiber.stateNode.containerInfo;
  38564. switch (fiber.tag) {
  38565. case HostComponent:
  38566. var type = fiber.type;
  38567. var props = fiber.pendingProps;
  38568. didNotFindHydratableContainerInstance(parentContainer, type);
  38569. break;
  38570. case HostText:
  38571. var text = fiber.pendingProps;
  38572. didNotFindHydratableContainerTextInstance(parentContainer, text);
  38573. break;
  38574. }
  38575. break;
  38576. }
  38577. case HostComponent:
  38578. {
  38579. var parentType = returnFiber.type;
  38580. var parentProps = returnFiber.memoizedProps;
  38581. var parentInstance = returnFiber.stateNode;
  38582. switch (fiber.tag) {
  38583. case HostComponent:
  38584. var _type = fiber.type;
  38585. var _props = fiber.pendingProps;
  38586. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
  38587. break;
  38588. case HostText:
  38589. var _text = fiber.pendingProps;
  38590. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  38591. break;
  38592. case SuspenseComponent:
  38593. didNotFindHydratableSuspenseInstance(parentType, parentProps);
  38594. break;
  38595. }
  38596. break;
  38597. }
  38598. default:
  38599. return;
  38600. }
  38601. }
  38602. }
  38603. function tryHydrate(fiber, nextInstance) {
  38604. switch (fiber.tag) {
  38605. case HostComponent:
  38606. {
  38607. var type = fiber.type;
  38608. var props = fiber.pendingProps;
  38609. var instance = canHydrateInstance(nextInstance, type);
  38610. if (instance !== null) {
  38611. fiber.stateNode = instance;
  38612. return true;
  38613. }
  38614. return false;
  38615. }
  38616. case HostText:
  38617. {
  38618. var text = fiber.pendingProps;
  38619. var textInstance = canHydrateTextInstance(nextInstance, text);
  38620. if (textInstance !== null) {
  38621. fiber.stateNode = textInstance;
  38622. return true;
  38623. }
  38624. return false;
  38625. }
  38626. case SuspenseComponent:
  38627. {
  38628. return false;
  38629. }
  38630. default:
  38631. return false;
  38632. }
  38633. }
  38634. function tryToClaimNextHydratableInstance(fiber) {
  38635. if (!isHydrating) {
  38636. return;
  38637. }
  38638. var nextInstance = nextHydratableInstance;
  38639. if (!nextInstance) {
  38640. // Nothing to hydrate. Make it an insertion.
  38641. insertNonHydratedInstance(hydrationParentFiber, fiber);
  38642. isHydrating = false;
  38643. hydrationParentFiber = fiber;
  38644. return;
  38645. }
  38646. var firstAttemptedInstance = nextInstance;
  38647. if (!tryHydrate(fiber, nextInstance)) {
  38648. // If we can't hydrate this instance let's try the next one.
  38649. // We use this as a heuristic. It's based on intuition and not data so it
  38650. // might be flawed or unnecessary.
  38651. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  38652. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  38653. // Nothing to hydrate. Make it an insertion.
  38654. insertNonHydratedInstance(hydrationParentFiber, fiber);
  38655. isHydrating = false;
  38656. hydrationParentFiber = fiber;
  38657. return;
  38658. } // We matched the next one, we'll now assume that the first one was
  38659. // superfluous and we'll delete it. Since we can't eagerly delete it
  38660. // we'll have to schedule a deletion. To do that, this node needs a dummy
  38661. // fiber associated with it.
  38662. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  38663. }
  38664. hydrationParentFiber = fiber;
  38665. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  38666. }
  38667. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  38668. var instance = fiber.stateNode;
  38669. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.
  38670. fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  38671. // is a new ref we mark this as an update.
  38672. if (updatePayload !== null) {
  38673. return true;
  38674. }
  38675. return false;
  38676. }
  38677. function prepareToHydrateHostTextInstance(fiber) {
  38678. var textInstance = fiber.stateNode;
  38679. var textContent = fiber.memoizedProps;
  38680. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  38681. {
  38682. if (shouldUpdate) {
  38683. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  38684. // hydration parent is the parent host component of this host text.
  38685. var returnFiber = hydrationParentFiber;
  38686. if (returnFiber !== null) {
  38687. switch (returnFiber.tag) {
  38688. case HostRoot:
  38689. {
  38690. var parentContainer = returnFiber.stateNode.containerInfo;
  38691. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  38692. break;
  38693. }
  38694. case HostComponent:
  38695. {
  38696. var parentType = returnFiber.type;
  38697. var parentProps = returnFiber.memoizedProps;
  38698. var parentInstance = returnFiber.stateNode;
  38699. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  38700. break;
  38701. }
  38702. }
  38703. }
  38704. }
  38705. }
  38706. return shouldUpdate;
  38707. }
  38708. function skipPastDehydratedSuspenseInstance(fiber) {
  38709. var suspenseState = fiber.memoizedState;
  38710. var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
  38711. if (!suspenseInstance) {
  38712. {
  38713. throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
  38714. }
  38715. }
  38716. return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  38717. }
  38718. function popToNextHostParent(fiber) {
  38719. var parent = fiber.return;
  38720. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
  38721. parent = parent.return;
  38722. }
  38723. hydrationParentFiber = parent;
  38724. }
  38725. function popHydrationState(fiber) {
  38726. if (fiber !== hydrationParentFiber) {
  38727. // We're deeper than the current hydration context, inside an inserted
  38728. // tree.
  38729. return false;
  38730. }
  38731. if (!isHydrating) {
  38732. // If we're not currently hydrating but we're in a hydration context, then
  38733. // we were an insertion and now need to pop up reenter hydration of our
  38734. // siblings.
  38735. popToNextHostParent(fiber);
  38736. isHydrating = true;
  38737. return false;
  38738. }
  38739. var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
  38740. // We only do this deeper than head and body since they tend to have random
  38741. // other nodes in them. We also ignore components with pure text content in
  38742. // side of them.
  38743. // TODO: Better heuristic.
  38744. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  38745. var nextInstance = nextHydratableInstance;
  38746. while (nextInstance) {
  38747. deleteHydratableInstance(fiber, nextInstance);
  38748. nextInstance = getNextHydratableSibling(nextInstance);
  38749. }
  38750. }
  38751. popToNextHostParent(fiber);
  38752. if (fiber.tag === SuspenseComponent) {
  38753. nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
  38754. } else {
  38755. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  38756. }
  38757. return true;
  38758. }
  38759. function resetHydrationState() {
  38760. hydrationParentFiber = null;
  38761. nextHydratableInstance = null;
  38762. isHydrating = false;
  38763. }
  38764. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  38765. var didReceiveUpdate = false;
  38766. var didWarnAboutBadClass;
  38767. var didWarnAboutModulePatternComponent;
  38768. var didWarnAboutContextTypeOnFunctionComponent;
  38769. var didWarnAboutGetDerivedStateOnFunctionComponent;
  38770. var didWarnAboutFunctionRefs;
  38771. var didWarnAboutReassigningProps;
  38772. var didWarnAboutRevealOrder;
  38773. var didWarnAboutTailOptions;
  38774. {
  38775. didWarnAboutBadClass = {};
  38776. didWarnAboutModulePatternComponent = {};
  38777. didWarnAboutContextTypeOnFunctionComponent = {};
  38778. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  38779. didWarnAboutFunctionRefs = {};
  38780. didWarnAboutReassigningProps = false;
  38781. didWarnAboutRevealOrder = {};
  38782. didWarnAboutTailOptions = {};
  38783. }
  38784. function reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime) {
  38785. if (current === null) {
  38786. // If this is a fresh new component that hasn't been rendered yet, we
  38787. // won't update its child set by applying minimal side-effects. Instead,
  38788. // we will add them all to the child before it gets rendered. That means
  38789. // we can optimize this reconciliation pass by not tracking side-effects.
  38790. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  38791. } else {
  38792. // If the current child is the same as the work in progress, it means that
  38793. // we haven't yet started any work on these children. Therefore, we use
  38794. // the clone algorithm to create a copy of all the current children.
  38795. // If we had any progressed work already, that is invalid at this point so
  38796. // let's throw it out.
  38797. workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime);
  38798. }
  38799. }
  38800. function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime) {
  38801. // This function is fork of reconcileChildren. It's used in cases where we
  38802. // want to reconcile without matching against the existing set. This has the
  38803. // effect of all current children being unmounted; even if the type and key
  38804. // are the same, the old child is unmounted and a new child is created.
  38805. //
  38806. // To do this, we're going to go through the reconcile algorithm twice. In
  38807. // the first pass, we schedule a deletion for all the current children by
  38808. // passing null.
  38809. workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we
  38810. // pass null in place of where we usually pass the current child set. This has
  38811. // the effect of remounting all children regardless of whether their
  38812. // identities match.
  38813. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  38814. }
  38815. function updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime) {
  38816. // TODO: current can be non-null here even if the component
  38817. // hasn't yet mounted. This happens after the first render suspends.
  38818. // We'll need to figure out if this is fine or can cause issues.
  38819. {
  38820. if (workInProgress.type !== workInProgress.elementType) {
  38821. // Lazy component props can't be validated in createElement
  38822. // because they're only guaranteed to be resolved here.
  38823. var innerPropTypes = Component.propTypes;
  38824. if (innerPropTypes) {
  38825. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38826. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  38827. }
  38828. }
  38829. }
  38830. var render = Component.render;
  38831. var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent
  38832. var nextChildren;
  38833. prepareToReadContext(workInProgress, renderExpirationTime);
  38834. {
  38835. ReactCurrentOwner$1.current = workInProgress;
  38836. setIsRendering(true);
  38837. nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
  38838. if ( workInProgress.mode & StrictMode) {
  38839. // Only double-render components with Hooks
  38840. if (workInProgress.memoizedState !== null) {
  38841. nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
  38842. }
  38843. }
  38844. setIsRendering(false);
  38845. }
  38846. if (current !== null && !didReceiveUpdate) {
  38847. bailoutHooks(current, workInProgress, renderExpirationTime);
  38848. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  38849. } // React DevTools reads this flag.
  38850. workInProgress.effectTag |= PerformedWork;
  38851. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  38852. return workInProgress.child;
  38853. }
  38854. function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  38855. if (current === null) {
  38856. var type = Component.type;
  38857. if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
  38858. Component.defaultProps === undefined) {
  38859. var resolvedType = type;
  38860. {
  38861. resolvedType = resolveFunctionForHotReloading(type);
  38862. } // If this is a plain function component without default props,
  38863. // and with only the default shallow comparison, we upgrade it
  38864. // to a SimpleMemoComponent to allow fast path updates.
  38865. workInProgress.tag = SimpleMemoComponent;
  38866. workInProgress.type = resolvedType;
  38867. {
  38868. validateFunctionComponentInDev(workInProgress, type);
  38869. }
  38870. return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  38871. }
  38872. {
  38873. var innerPropTypes = type.propTypes;
  38874. if (innerPropTypes) {
  38875. // Inner memo component props aren't currently validated in createElement.
  38876. // We could move it there, but we'd still need this for lazy code path.
  38877. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38878. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  38879. }
  38880. }
  38881. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  38882. child.ref = workInProgress.ref;
  38883. child.return = workInProgress;
  38884. workInProgress.child = child;
  38885. return child;
  38886. }
  38887. {
  38888. var _type = Component.type;
  38889. var _innerPropTypes = _type.propTypes;
  38890. if (_innerPropTypes) {
  38891. // Inner memo component props aren't currently validated in createElement.
  38892. // We could move it there, but we'd still need this for lazy code path.
  38893. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  38894. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  38895. }
  38896. }
  38897. var currentChild = current.child; // This is always exactly one child
  38898. if (updateExpirationTime < renderExpirationTime) {
  38899. // This will be the props with resolved defaultProps,
  38900. // unlike current.memoizedProps which will be the unresolved ones.
  38901. var prevProps = currentChild.memoizedProps; // Default to shallow comparison
  38902. var compare = Component.compare;
  38903. compare = compare !== null ? compare : shallowEqual;
  38904. if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
  38905. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  38906. }
  38907. } // React DevTools reads this flag.
  38908. workInProgress.effectTag |= PerformedWork;
  38909. var newChild = createWorkInProgress(currentChild, nextProps);
  38910. newChild.ref = workInProgress.ref;
  38911. newChild.return = workInProgress;
  38912. workInProgress.child = newChild;
  38913. return newChild;
  38914. }
  38915. function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  38916. // TODO: current can be non-null here even if the component
  38917. // hasn't yet mounted. This happens when the inner render suspends.
  38918. // We'll need to figure out if this is fine or can cause issues.
  38919. {
  38920. if (workInProgress.type !== workInProgress.elementType) {
  38921. // Lazy component props can't be validated in createElement
  38922. // because they're only guaranteed to be resolved here.
  38923. var outerMemoType = workInProgress.elementType;
  38924. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  38925. // We warn when you define propTypes on lazy()
  38926. // so let's just skip over it to find memo() outer wrapper.
  38927. // Inner props for memo are validated later.
  38928. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  38929. }
  38930. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  38931. if (outerPropTypes) {
  38932. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  38933. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  38934. } // Inner propTypes will be validated in the function component path.
  38935. }
  38936. }
  38937. if (current !== null) {
  38938. var prevProps = current.memoizedProps;
  38939. if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
  38940. workInProgress.type === current.type )) {
  38941. didReceiveUpdate = false;
  38942. if (updateExpirationTime < renderExpirationTime) {
  38943. // The pending update priority was cleared at the beginning of
  38944. // beginWork. We're about to bail out, but there might be additional
  38945. // updates at a lower priority. Usually, the priority level of the
  38946. // remaining updates is accumlated during the evaluation of the
  38947. // component (i.e. when processing the update queue). But since since
  38948. // we're bailing out early *without* evaluating the component, we need
  38949. // to account for it here, too. Reset to the value of the current fiber.
  38950. // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
  38951. // because a MemoComponent fiber does not have hooks or an update queue;
  38952. // rather, it wraps around an inner component, which may or may not
  38953. // contains hooks.
  38954. // TODO: Move the reset at in beginWork out of the common path so that
  38955. // this is no longer necessary.
  38956. workInProgress.expirationTime = current.expirationTime;
  38957. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  38958. }
  38959. }
  38960. }
  38961. return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime);
  38962. }
  38963. function updateFragment(current, workInProgress, renderExpirationTime) {
  38964. var nextChildren = workInProgress.pendingProps;
  38965. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  38966. return workInProgress.child;
  38967. }
  38968. function updateMode(current, workInProgress, renderExpirationTime) {
  38969. var nextChildren = workInProgress.pendingProps.children;
  38970. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  38971. return workInProgress.child;
  38972. }
  38973. function updateProfiler(current, workInProgress, renderExpirationTime) {
  38974. {
  38975. workInProgress.effectTag |= Update;
  38976. }
  38977. var nextProps = workInProgress.pendingProps;
  38978. var nextChildren = nextProps.children;
  38979. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  38980. return workInProgress.child;
  38981. }
  38982. function markRef(current, workInProgress) {
  38983. var ref = workInProgress.ref;
  38984. if (current === null && ref !== null || current !== null && current.ref !== ref) {
  38985. // Schedule a Ref effect
  38986. workInProgress.effectTag |= Ref;
  38987. }
  38988. }
  38989. function updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  38990. {
  38991. if (workInProgress.type !== workInProgress.elementType) {
  38992. // Lazy component props can't be validated in createElement
  38993. // because they're only guaranteed to be resolved here.
  38994. var innerPropTypes = Component.propTypes;
  38995. if (innerPropTypes) {
  38996. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  38997. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  38998. }
  38999. }
  39000. }
  39001. var context;
  39002. {
  39003. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  39004. context = getMaskedContext(workInProgress, unmaskedContext);
  39005. }
  39006. var nextChildren;
  39007. prepareToReadContext(workInProgress, renderExpirationTime);
  39008. {
  39009. ReactCurrentOwner$1.current = workInProgress;
  39010. setIsRendering(true);
  39011. nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
  39012. if ( workInProgress.mode & StrictMode) {
  39013. // Only double-render components with Hooks
  39014. if (workInProgress.memoizedState !== null) {
  39015. nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
  39016. }
  39017. }
  39018. setIsRendering(false);
  39019. }
  39020. if (current !== null && !didReceiveUpdate) {
  39021. bailoutHooks(current, workInProgress, renderExpirationTime);
  39022. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  39023. } // React DevTools reads this flag.
  39024. workInProgress.effectTag |= PerformedWork;
  39025. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  39026. return workInProgress.child;
  39027. }
  39028. function updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  39029. {
  39030. if (workInProgress.type !== workInProgress.elementType) {
  39031. // Lazy component props can't be validated in createElement
  39032. // because they're only guaranteed to be resolved here.
  39033. var innerPropTypes = Component.propTypes;
  39034. if (innerPropTypes) {
  39035. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  39036. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  39037. }
  39038. }
  39039. } // Push context providers early to prevent context stack mismatches.
  39040. // During mounting we don't know the child context yet as the instance doesn't exist.
  39041. // We will invalidate the child context in finishClassComponent() right after rendering.
  39042. var hasContext;
  39043. if (isContextProvider(Component)) {
  39044. hasContext = true;
  39045. pushContextProvider(workInProgress);
  39046. } else {
  39047. hasContext = false;
  39048. }
  39049. prepareToReadContext(workInProgress, renderExpirationTime);
  39050. var instance = workInProgress.stateNode;
  39051. var shouldUpdate;
  39052. if (instance === null) {
  39053. if (current !== null) {
  39054. // A class component without an instance only mounts if it suspended
  39055. // inside a non-concurrent tree, in an inconsistent state. We want to
  39056. // treat it like a new mount, even though an empty version of it already
  39057. // committed. Disconnect the alternate pointers.
  39058. current.alternate = null;
  39059. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  39060. workInProgress.effectTag |= Placement;
  39061. } // In the initial pass we might need to construct the instance.
  39062. constructClassInstance(workInProgress, Component, nextProps);
  39063. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  39064. shouldUpdate = true;
  39065. } else if (current === null) {
  39066. // In a resume, we'll already have an instance we can reuse.
  39067. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  39068. } else {
  39069. shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime);
  39070. }
  39071. var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  39072. {
  39073. var inst = workInProgress.stateNode;
  39074. if (inst.props !== nextProps) {
  39075. if (!didWarnAboutReassigningProps) {
  39076. error('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');
  39077. }
  39078. didWarnAboutReassigningProps = true;
  39079. }
  39080. }
  39081. return nextUnitOfWork;
  39082. }
  39083. function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  39084. // Refs should update even if shouldComponentUpdate returns false
  39085. markRef(current, workInProgress);
  39086. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  39087. if (!shouldUpdate && !didCaptureError) {
  39088. // Context providers should defer to sCU for rendering
  39089. if (hasContext) {
  39090. invalidateContextProvider(workInProgress, Component, false);
  39091. }
  39092. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  39093. }
  39094. var instance = workInProgress.stateNode; // Rerender
  39095. ReactCurrentOwner$1.current = workInProgress;
  39096. var nextChildren;
  39097. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  39098. // If we captured an error, but getDerivedStateFromError is not defined,
  39099. // unmount all the children. componentDidCatch will schedule an update to
  39100. // re-render a fallback. This is temporary until we migrate everyone to
  39101. // the new API.
  39102. // TODO: Warn in a future release.
  39103. nextChildren = null;
  39104. {
  39105. stopProfilerTimerIfRunning();
  39106. }
  39107. } else {
  39108. {
  39109. setIsRendering(true);
  39110. nextChildren = instance.render();
  39111. if ( workInProgress.mode & StrictMode) {
  39112. instance.render();
  39113. }
  39114. setIsRendering(false);
  39115. }
  39116. } // React DevTools reads this flag.
  39117. workInProgress.effectTag |= PerformedWork;
  39118. if (current !== null && didCaptureError) {
  39119. // If we're recovering from an error, reconcile without reusing any of
  39120. // the existing children. Conceptually, the normal children and the children
  39121. // that are shown on error are two different sets, so we shouldn't reuse
  39122. // normal children even if their identities match.
  39123. forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime);
  39124. } else {
  39125. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  39126. } // Memoize state using the values we just used to render.
  39127. // TODO: Restructure so we never read values from the instance.
  39128. workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
  39129. if (hasContext) {
  39130. invalidateContextProvider(workInProgress, Component, true);
  39131. }
  39132. return workInProgress.child;
  39133. }
  39134. function pushHostRootContext(workInProgress) {
  39135. var root = workInProgress.stateNode;
  39136. if (root.pendingContext) {
  39137. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  39138. } else if (root.context) {
  39139. // Should always be set
  39140. pushTopLevelContextObject(workInProgress, root.context, false);
  39141. }
  39142. pushHostContainer(workInProgress, root.containerInfo);
  39143. }
  39144. function updateHostRoot(current, workInProgress, renderExpirationTime) {
  39145. pushHostRootContext(workInProgress);
  39146. var updateQueue = workInProgress.updateQueue;
  39147. if (!(current !== null && updateQueue !== null)) {
  39148. {
  39149. throw 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." );
  39150. }
  39151. }
  39152. var nextProps = workInProgress.pendingProps;
  39153. var prevState = workInProgress.memoizedState;
  39154. var prevChildren = prevState !== null ? prevState.element : null;
  39155. cloneUpdateQueue(current, workInProgress);
  39156. processUpdateQueue(workInProgress, nextProps, null, renderExpirationTime);
  39157. var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
  39158. // being called "element".
  39159. var nextChildren = nextState.element;
  39160. if (nextChildren === prevChildren) {
  39161. // If the state is the same as before, that's a bailout because we had
  39162. // no work that expires at this time.
  39163. resetHydrationState();
  39164. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  39165. }
  39166. var root = workInProgress.stateNode;
  39167. if (root.hydrate && enterHydrationState(workInProgress)) {
  39168. // If we don't have any current children this might be the first pass.
  39169. // We always try to hydrate. If this isn't a hydration pass there won't
  39170. // be any children to hydrate which is effectively the same thing as
  39171. // not hydrating.
  39172. var child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  39173. workInProgress.child = child;
  39174. var node = child;
  39175. while (node) {
  39176. // Mark each child as hydrating. This is a fast path to know whether this
  39177. // tree is part of a hydrating tree. This is used to determine if a child
  39178. // node has fully mounted yet, and for scheduling event replaying.
  39179. // Conceptually this is similar to Placement in that a new subtree is
  39180. // inserted into the React tree here. It just happens to not need DOM
  39181. // mutations because it already exists.
  39182. node.effectTag = node.effectTag & ~Placement | Hydrating;
  39183. node = node.sibling;
  39184. }
  39185. } else {
  39186. // Otherwise reset hydration state in case we aborted and resumed another
  39187. // root.
  39188. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  39189. resetHydrationState();
  39190. }
  39191. return workInProgress.child;
  39192. }
  39193. function updateHostComponent(current, workInProgress, renderExpirationTime) {
  39194. pushHostContext(workInProgress);
  39195. if (current === null) {
  39196. tryToClaimNextHydratableInstance(workInProgress);
  39197. }
  39198. var type = workInProgress.type;
  39199. var nextProps = workInProgress.pendingProps;
  39200. var prevProps = current !== null ? current.memoizedProps : null;
  39201. var nextChildren = nextProps.children;
  39202. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  39203. if (isDirectTextChild) {
  39204. // We special case a direct text child of a host node. This is a common
  39205. // case. We won't handle it as a reified child. We will instead handle
  39206. // this in the host environment that also has access to this prop. That
  39207. // avoids allocating another HostText fiber and traversing it.
  39208. nextChildren = null;
  39209. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  39210. // If we're switching from a direct text child to a normal child, or to
  39211. // empty, we need to schedule the text content to be reset.
  39212. workInProgress.effectTag |= ContentReset;
  39213. }
  39214. markRef(current, workInProgress); // Check the host config to see if the children are offscreen/hidden.
  39215. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  39216. {
  39217. markSpawnedWork(Never);
  39218. } // Schedule this fiber to re-render at offscreen priority. Then bailout.
  39219. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  39220. return null;
  39221. }
  39222. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  39223. return workInProgress.child;
  39224. }
  39225. function updateHostText(current, workInProgress) {
  39226. if (current === null) {
  39227. tryToClaimNextHydratableInstance(workInProgress);
  39228. } // Nothing to do here. This is terminal. We'll do the completion step
  39229. // immediately after.
  39230. return null;
  39231. }
  39232. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  39233. if (_current !== null) {
  39234. // A lazy component only mounts if it suspended inside a non-
  39235. // concurrent tree, in an inconsistent state. We want to treat it like
  39236. // a new mount, even though an empty version of it already committed.
  39237. // Disconnect the alternate pointers.
  39238. _current.alternate = null;
  39239. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  39240. workInProgress.effectTag |= Placement;
  39241. }
  39242. var props = workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet.
  39243. // Cancel and resume right after we know the tag.
  39244. cancelWorkTimer(workInProgress);
  39245. var Component = readLazyComponentType(elementType); // Store the unwrapped component in the type.
  39246. workInProgress.type = Component;
  39247. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  39248. startWorkTimer(workInProgress);
  39249. var resolvedProps = resolveDefaultProps(Component, props);
  39250. var child;
  39251. switch (resolvedTag) {
  39252. case FunctionComponent:
  39253. {
  39254. {
  39255. validateFunctionComponentInDev(workInProgress, Component);
  39256. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  39257. }
  39258. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  39259. return child;
  39260. }
  39261. case ClassComponent:
  39262. {
  39263. {
  39264. workInProgress.type = Component = resolveClassForHotReloading(Component);
  39265. }
  39266. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  39267. return child;
  39268. }
  39269. case ForwardRef:
  39270. {
  39271. {
  39272. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  39273. }
  39274. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  39275. return child;
  39276. }
  39277. case MemoComponent:
  39278. {
  39279. {
  39280. if (workInProgress.type !== workInProgress.elementType) {
  39281. var outerPropTypes = Component.propTypes;
  39282. if (outerPropTypes) {
  39283. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  39284. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  39285. }
  39286. }
  39287. }
  39288. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  39289. updateExpirationTime, renderExpirationTime);
  39290. return child;
  39291. }
  39292. }
  39293. var hint = '';
  39294. {
  39295. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  39296. hint = ' Did you wrap a component in React.lazy() more than once?';
  39297. }
  39298. } // This message intentionally doesn't mention ForwardRef or MemoComponent
  39299. // because the fact that it's a separate type of work is an
  39300. // implementation detail.
  39301. {
  39302. {
  39303. throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
  39304. }
  39305. }
  39306. }
  39307. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  39308. if (_current !== null) {
  39309. // An incomplete component only mounts if it suspended inside a non-
  39310. // concurrent tree, in an inconsistent state. We want to treat it like
  39311. // a new mount, even though an empty version of it already committed.
  39312. // Disconnect the alternate pointers.
  39313. _current.alternate = null;
  39314. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  39315. workInProgress.effectTag |= Placement;
  39316. } // Promote the fiber to a class and try rendering again.
  39317. workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
  39318. // Push context providers early to prevent context stack mismatches.
  39319. // During mounting we don't know the child context yet as the instance doesn't exist.
  39320. // We will invalidate the child context in finishClassComponent() right after rendering.
  39321. var hasContext;
  39322. if (isContextProvider(Component)) {
  39323. hasContext = true;
  39324. pushContextProvider(workInProgress);
  39325. } else {
  39326. hasContext = false;
  39327. }
  39328. prepareToReadContext(workInProgress, renderExpirationTime);
  39329. constructClassInstance(workInProgress, Component, nextProps);
  39330. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  39331. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  39332. }
  39333. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  39334. if (_current !== null) {
  39335. // An indeterminate component only mounts if it suspended inside a non-
  39336. // concurrent tree, in an inconsistent state. We want to treat it like
  39337. // a new mount, even though an empty version of it already committed.
  39338. // Disconnect the alternate pointers.
  39339. _current.alternate = null;
  39340. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  39341. workInProgress.effectTag |= Placement;
  39342. }
  39343. var props = workInProgress.pendingProps;
  39344. var context;
  39345. {
  39346. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  39347. context = getMaskedContext(workInProgress, unmaskedContext);
  39348. }
  39349. prepareToReadContext(workInProgress, renderExpirationTime);
  39350. var value;
  39351. {
  39352. if (Component.prototype && typeof Component.prototype.render === 'function') {
  39353. var componentName = getComponentName(Component) || 'Unknown';
  39354. if (!didWarnAboutBadClass[componentName]) {
  39355. error("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);
  39356. didWarnAboutBadClass[componentName] = true;
  39357. }
  39358. }
  39359. if (workInProgress.mode & StrictMode) {
  39360. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  39361. }
  39362. setIsRendering(true);
  39363. ReactCurrentOwner$1.current = workInProgress;
  39364. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  39365. setIsRendering(false);
  39366. } // React DevTools reads this flag.
  39367. workInProgress.effectTag |= PerformedWork;
  39368. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  39369. {
  39370. var _componentName = getComponentName(Component) || 'Unknown';
  39371. if (!didWarnAboutModulePatternComponent[_componentName]) {
  39372. error('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);
  39373. didWarnAboutModulePatternComponent[_componentName] = true;
  39374. }
  39375. } // Proceed under the assumption that this is a class instance
  39376. workInProgress.tag = ClassComponent; // Throw out any hooks that were used.
  39377. workInProgress.memoizedState = null;
  39378. workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
  39379. // During mounting we don't know the child context yet as the instance doesn't exist.
  39380. // We will invalidate the child context in finishClassComponent() right after rendering.
  39381. var hasContext = false;
  39382. if (isContextProvider(Component)) {
  39383. hasContext = true;
  39384. pushContextProvider(workInProgress);
  39385. } else {
  39386. hasContext = false;
  39387. }
  39388. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  39389. initializeUpdateQueue(workInProgress);
  39390. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  39391. if (typeof getDerivedStateFromProps === 'function') {
  39392. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  39393. }
  39394. adoptClassInstance(workInProgress, value);
  39395. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  39396. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  39397. } else {
  39398. // Proceed under the assumption that this is a function component
  39399. workInProgress.tag = FunctionComponent;
  39400. {
  39401. if ( workInProgress.mode & StrictMode) {
  39402. // Only double-render components with Hooks
  39403. if (workInProgress.memoizedState !== null) {
  39404. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  39405. }
  39406. }
  39407. }
  39408. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  39409. {
  39410. validateFunctionComponentInDev(workInProgress, Component);
  39411. }
  39412. return workInProgress.child;
  39413. }
  39414. }
  39415. function validateFunctionComponentInDev(workInProgress, Component) {
  39416. {
  39417. if (Component) {
  39418. if (Component.childContextTypes) {
  39419. error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
  39420. }
  39421. }
  39422. if (workInProgress.ref !== null) {
  39423. var info = '';
  39424. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  39425. if (ownerName) {
  39426. info += '\n\nCheck the render method of `' + ownerName + '`.';
  39427. }
  39428. var warningKey = ownerName || workInProgress._debugID || '';
  39429. var debugSource = workInProgress._debugSource;
  39430. if (debugSource) {
  39431. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  39432. }
  39433. if (!didWarnAboutFunctionRefs[warningKey]) {
  39434. didWarnAboutFunctionRefs[warningKey] = true;
  39435. error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  39436. }
  39437. }
  39438. if (typeof Component.getDerivedStateFromProps === 'function') {
  39439. var _componentName2 = getComponentName(Component) || 'Unknown';
  39440. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  39441. error('%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  39442. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  39443. }
  39444. }
  39445. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  39446. var _componentName3 = getComponentName(Component) || 'Unknown';
  39447. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  39448. error('%s: Function components do not support contextType.', _componentName3);
  39449. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  39450. }
  39451. }
  39452. }
  39453. }
  39454. var SUSPENDED_MARKER = {
  39455. dehydrated: null,
  39456. retryTime: NoWork
  39457. };
  39458. function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
  39459. // If the context is telling us that we should show a fallback, and we're not
  39460. // already showing content, then we should show the fallback instead.
  39461. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
  39462. }
  39463. function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
  39464. var mode = workInProgress.mode;
  39465. var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.
  39466. {
  39467. if (shouldSuspend(workInProgress)) {
  39468. workInProgress.effectTag |= DidCapture;
  39469. }
  39470. }
  39471. var suspenseContext = suspenseStackCursor.current;
  39472. var nextDidTimeout = false;
  39473. var didSuspend = (workInProgress.effectTag & DidCapture) !== NoEffect;
  39474. if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
  39475. // Something in this boundary's subtree already suspended. Switch to
  39476. // rendering the fallback children.
  39477. nextDidTimeout = true;
  39478. workInProgress.effectTag &= ~DidCapture;
  39479. } else {
  39480. // Attempting the main content
  39481. if (current === null || current.memoizedState !== null) {
  39482. // This is a new mount or this boundary is already showing a fallback state.
  39483. // Mark this subtree context as having at least one invisible parent that could
  39484. // handle the fallback state.
  39485. // Boundaries without fallbacks or should be avoided are not considered since
  39486. // they cannot handle preferred fallback states.
  39487. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  39488. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  39489. }
  39490. }
  39491. }
  39492. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  39493. pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to
  39494. // showing the fallback children in place of the "primary" children.
  39495. // However, we don't want to delete the primary children because then their
  39496. // state will be lost (both the React state and the host state, e.g.
  39497. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  39498. // Both the fallback children AND the primary children are rendered at the
  39499. // same time. Once the primary children are un-suspended, we can delete
  39500. // the fallback children — don't need to preserve their state.
  39501. //
  39502. // The two sets of children are siblings in the host environment, but
  39503. // semantically, for purposes of reconciliation, they are two separate sets.
  39504. // So we store them using two fragment fibers.
  39505. //
  39506. // However, we want to avoid allocating extra fibers for every placeholder.
  39507. // They're only necessary when the children time out, because that's the
  39508. // only time when both sets are mounted.
  39509. //
  39510. // So, the extra fragment fibers are only used if the children time out.
  39511. // Otherwise, we render the primary children directly. This requires some
  39512. // custom reconciliation logic to preserve the state of the primary
  39513. // children. It's essentially a very basic form of re-parenting.
  39514. if (current === null) {
  39515. // If we're currently hydrating, try to hydrate this boundary.
  39516. // But only if this has a fallback.
  39517. if (nextProps.fallback !== undefined) {
  39518. tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
  39519. } // This is the initial mount. This branch is pretty simple because there's
  39520. // no previous state that needs to be preserved.
  39521. if (nextDidTimeout) {
  39522. // Mount separate fragments for primary and fallback children.
  39523. var nextFallbackChildren = nextProps.fallback;
  39524. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  39525. primaryChildFragment.return = workInProgress;
  39526. if ((workInProgress.mode & BlockingMode) === NoMode) {
  39527. // Outside of blocking mode, we commit the effects from the
  39528. // partially completed, timed-out tree, too.
  39529. var progressedState = workInProgress.memoizedState;
  39530. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  39531. primaryChildFragment.child = progressedPrimaryChild;
  39532. var progressedChild = progressedPrimaryChild;
  39533. while (progressedChild !== null) {
  39534. progressedChild.return = primaryChildFragment;
  39535. progressedChild = progressedChild.sibling;
  39536. }
  39537. }
  39538. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  39539. fallbackChildFragment.return = workInProgress;
  39540. primaryChildFragment.sibling = fallbackChildFragment; // Skip the primary children, and continue working on the
  39541. // fallback children.
  39542. workInProgress.memoizedState = SUSPENDED_MARKER;
  39543. workInProgress.child = primaryChildFragment;
  39544. return fallbackChildFragment;
  39545. } else {
  39546. // Mount the primary children without an intermediate fragment fiber.
  39547. var nextPrimaryChildren = nextProps.children;
  39548. workInProgress.memoizedState = null;
  39549. return workInProgress.child = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  39550. }
  39551. } else {
  39552. // This is an update. This branch is more complicated because we need to
  39553. // ensure the state of the primary children is preserved.
  39554. var prevState = current.memoizedState;
  39555. if (prevState !== null) {
  39556. // wrapped in a fragment fiber.
  39557. var currentPrimaryChildFragment = current.child;
  39558. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  39559. if (nextDidTimeout) {
  39560. // Still timed out. Reuse the current primary children by cloning
  39561. // its fragment. We're going to skip over these entirely.
  39562. var _nextFallbackChildren2 = nextProps.fallback;
  39563. var _primaryChildFragment2 = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps);
  39564. _primaryChildFragment2.return = workInProgress;
  39565. if ((workInProgress.mode & BlockingMode) === NoMode) {
  39566. // Outside of blocking mode, we commit the effects from the
  39567. // partially completed, timed-out tree, too.
  39568. var _progressedState = workInProgress.memoizedState;
  39569. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  39570. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  39571. _primaryChildFragment2.child = _progressedPrimaryChild;
  39572. var _progressedChild2 = _progressedPrimaryChild;
  39573. while (_progressedChild2 !== null) {
  39574. _progressedChild2.return = _primaryChildFragment2;
  39575. _progressedChild2 = _progressedChild2.sibling;
  39576. }
  39577. }
  39578. } // Because primaryChildFragment is a new fiber that we're inserting as the
  39579. // parent of a new tree, we need to set its treeBaseDuration.
  39580. if ( workInProgress.mode & ProfileMode) {
  39581. // treeBaseDuration is the sum of all the child tree base durations.
  39582. var _treeBaseDuration = 0;
  39583. var _hiddenChild = _primaryChildFragment2.child;
  39584. while (_hiddenChild !== null) {
  39585. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  39586. _hiddenChild = _hiddenChild.sibling;
  39587. }
  39588. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  39589. } // Clone the fallback child fragment, too. These we'll continue
  39590. // working on.
  39591. var _fallbackChildFragment2 = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2);
  39592. _fallbackChildFragment2.return = workInProgress;
  39593. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  39594. _primaryChildFragment2.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
  39595. // fallback children.
  39596. workInProgress.memoizedState = SUSPENDED_MARKER;
  39597. workInProgress.child = _primaryChildFragment2;
  39598. return _fallbackChildFragment2;
  39599. } else {
  39600. // No longer suspended. Switch back to showing the primary children,
  39601. // and remove the intermediate fragment fiber.
  39602. var _nextPrimaryChildren = nextProps.children;
  39603. var currentPrimaryChild = currentPrimaryChildFragment.child;
  39604. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback
  39605. // children. Wait until the complete phase, after we've confirmed the
  39606. // fallback is no longer needed.
  39607. // TODO: Would it be better to store the fallback fragment on
  39608. // the stateNode?
  39609. // Continue rendering the children, like we normally do.
  39610. workInProgress.memoizedState = null;
  39611. return workInProgress.child = primaryChild;
  39612. }
  39613. } else {
  39614. // The current tree has not already timed out. That means the primary
  39615. // children are not wrapped in a fragment fiber.
  39616. var _currentPrimaryChild = current.child;
  39617. if (nextDidTimeout) {
  39618. // Timed out. Wrap the children in a fragment fiber to keep them
  39619. // separate from the fallback children.
  39620. var _nextFallbackChildren3 = nextProps.fallback;
  39621. var _primaryChildFragment3 = createFiberFromFragment( // It shouldn't matter what the pending props are because we aren't
  39622. // going to render this fragment.
  39623. null, mode, NoWork, null);
  39624. _primaryChildFragment3.return = workInProgress;
  39625. _primaryChildFragment3.child = _currentPrimaryChild;
  39626. if (_currentPrimaryChild !== null) {
  39627. _currentPrimaryChild.return = _primaryChildFragment3;
  39628. } // Even though we're creating a new fiber, there are no new children,
  39629. // because we're reusing an already mounted tree. So we don't need to
  39630. // schedule a placement.
  39631. // primaryChildFragment.effectTag |= Placement;
  39632. if ((workInProgress.mode & BlockingMode) === NoMode) {
  39633. // Outside of blocking mode, we commit the effects from the
  39634. // partially completed, timed-out tree, too.
  39635. var _progressedState2 = workInProgress.memoizedState;
  39636. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  39637. _primaryChildFragment3.child = _progressedPrimaryChild2;
  39638. var _progressedChild3 = _progressedPrimaryChild2;
  39639. while (_progressedChild3 !== null) {
  39640. _progressedChild3.return = _primaryChildFragment3;
  39641. _progressedChild3 = _progressedChild3.sibling;
  39642. }
  39643. } // Because primaryChildFragment is a new fiber that we're inserting as the
  39644. // parent of a new tree, we need to set its treeBaseDuration.
  39645. if ( workInProgress.mode & ProfileMode) {
  39646. // treeBaseDuration is the sum of all the child tree base durations.
  39647. var _treeBaseDuration2 = 0;
  39648. var _hiddenChild2 = _primaryChildFragment3.child;
  39649. while (_hiddenChild2 !== null) {
  39650. _treeBaseDuration2 += _hiddenChild2.treeBaseDuration;
  39651. _hiddenChild2 = _hiddenChild2.sibling;
  39652. }
  39653. _primaryChildFragment3.treeBaseDuration = _treeBaseDuration2;
  39654. } // Create a fragment from the fallback children, too.
  39655. var _fallbackChildFragment3 = createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null);
  39656. _fallbackChildFragment3.return = workInProgress;
  39657. _primaryChildFragment3.sibling = _fallbackChildFragment3;
  39658. _fallbackChildFragment3.effectTag |= Placement;
  39659. _primaryChildFragment3.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
  39660. // fallback children.
  39661. workInProgress.memoizedState = SUSPENDED_MARKER;
  39662. workInProgress.child = _primaryChildFragment3;
  39663. return _fallbackChildFragment3;
  39664. } else {
  39665. // Still haven't timed out. Continue rendering the children, like we
  39666. // normally do.
  39667. workInProgress.memoizedState = null;
  39668. var _nextPrimaryChildren2 = nextProps.children;
  39669. return workInProgress.child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  39670. }
  39671. }
  39672. }
  39673. }
  39674. function scheduleWorkOnFiber(fiber, renderExpirationTime) {
  39675. if (fiber.expirationTime < renderExpirationTime) {
  39676. fiber.expirationTime = renderExpirationTime;
  39677. }
  39678. var alternate = fiber.alternate;
  39679. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  39680. alternate.expirationTime = renderExpirationTime;
  39681. }
  39682. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  39683. }
  39684. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  39685. // Mark any Suspense boundaries with fallbacks as having work to do.
  39686. // If they were previously forced into fallbacks, they may now be able
  39687. // to unblock.
  39688. var node = firstChild;
  39689. while (node !== null) {
  39690. if (node.tag === SuspenseComponent) {
  39691. var state = node.memoizedState;
  39692. if (state !== null) {
  39693. scheduleWorkOnFiber(node, renderExpirationTime);
  39694. }
  39695. } else if (node.tag === SuspenseListComponent) {
  39696. // If the tail is hidden there might not be an Suspense boundaries
  39697. // to schedule work on. In this case we have to schedule it on the
  39698. // list itself.
  39699. // We don't have to traverse to the children of the list since
  39700. // the list will propagate the change when it rerenders.
  39701. scheduleWorkOnFiber(node, renderExpirationTime);
  39702. } else if (node.child !== null) {
  39703. node.child.return = node;
  39704. node = node.child;
  39705. continue;
  39706. }
  39707. if (node === workInProgress) {
  39708. return;
  39709. }
  39710. while (node.sibling === null) {
  39711. if (node.return === null || node.return === workInProgress) {
  39712. return;
  39713. }
  39714. node = node.return;
  39715. }
  39716. node.sibling.return = node.return;
  39717. node = node.sibling;
  39718. }
  39719. }
  39720. function findLastContentRow(firstChild) {
  39721. // This is going to find the last row among these children that is already
  39722. // showing content on the screen, as opposed to being in fallback state or
  39723. // new. If a row has multiple Suspense boundaries, any of them being in the
  39724. // fallback state, counts as the whole row being in a fallback state.
  39725. // Note that the "rows" will be workInProgress, but any nested children
  39726. // will still be current since we haven't rendered them yet. The mounted
  39727. // order may not be the same as the new order. We use the new order.
  39728. var row = firstChild;
  39729. var lastContentRow = null;
  39730. while (row !== null) {
  39731. var currentRow = row.alternate; // New rows can't be content rows.
  39732. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  39733. lastContentRow = row;
  39734. }
  39735. row = row.sibling;
  39736. }
  39737. return lastContentRow;
  39738. }
  39739. function validateRevealOrder(revealOrder) {
  39740. {
  39741. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  39742. didWarnAboutRevealOrder[revealOrder] = true;
  39743. if (typeof revealOrder === 'string') {
  39744. switch (revealOrder.toLowerCase()) {
  39745. case 'together':
  39746. case 'forwards':
  39747. case 'backwards':
  39748. {
  39749. error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  39750. break;
  39751. }
  39752. case 'forward':
  39753. case 'backward':
  39754. {
  39755. error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
  39756. break;
  39757. }
  39758. default:
  39759. error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  39760. break;
  39761. }
  39762. } else {
  39763. error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  39764. }
  39765. }
  39766. }
  39767. }
  39768. function validateTailOptions(tailMode, revealOrder) {
  39769. {
  39770. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  39771. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  39772. didWarnAboutTailOptions[tailMode] = true;
  39773. error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  39774. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  39775. didWarnAboutTailOptions[tailMode] = true;
  39776. error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  39777. }
  39778. }
  39779. }
  39780. }
  39781. function validateSuspenseListNestedChild(childSlot, index) {
  39782. {
  39783. var isArray = Array.isArray(childSlot);
  39784. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  39785. if (isArray || isIterable) {
  39786. var type = isArray ? 'array' : 'iterable';
  39787. error('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);
  39788. return false;
  39789. }
  39790. }
  39791. return true;
  39792. }
  39793. function validateSuspenseListChildren(children, revealOrder) {
  39794. {
  39795. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  39796. if (Array.isArray(children)) {
  39797. for (var i = 0; i < children.length; i++) {
  39798. if (!validateSuspenseListNestedChild(children[i], i)) {
  39799. return;
  39800. }
  39801. }
  39802. } else {
  39803. var iteratorFn = getIteratorFn(children);
  39804. if (typeof iteratorFn === 'function') {
  39805. var childrenIterator = iteratorFn.call(children);
  39806. if (childrenIterator) {
  39807. var step = childrenIterator.next();
  39808. var _i = 0;
  39809. for (; !step.done; step = childrenIterator.next()) {
  39810. if (!validateSuspenseListNestedChild(step.value, _i)) {
  39811. return;
  39812. }
  39813. _i++;
  39814. }
  39815. }
  39816. } else {
  39817. error('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);
  39818. }
  39819. }
  39820. }
  39821. }
  39822. }
  39823. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
  39824. var renderState = workInProgress.memoizedState;
  39825. if (renderState === null) {
  39826. workInProgress.memoizedState = {
  39827. isBackwards: isBackwards,
  39828. rendering: null,
  39829. renderingStartTime: 0,
  39830. last: lastContentRow,
  39831. tail: tail,
  39832. tailExpiration: 0,
  39833. tailMode: tailMode,
  39834. lastEffect: lastEffectBeforeRendering
  39835. };
  39836. } else {
  39837. // We can reuse the existing object from previous renders.
  39838. renderState.isBackwards = isBackwards;
  39839. renderState.rendering = null;
  39840. renderState.renderingStartTime = 0;
  39841. renderState.last = lastContentRow;
  39842. renderState.tail = tail;
  39843. renderState.tailExpiration = 0;
  39844. renderState.tailMode = tailMode;
  39845. renderState.lastEffect = lastEffectBeforeRendering;
  39846. }
  39847. } // This can end up rendering this component multiple passes.
  39848. // The first pass splits the children fibers into two sets. A head and tail.
  39849. // We first render the head. If anything is in fallback state, we do another
  39850. // pass through beginWork to rerender all children (including the tail) with
  39851. // the force suspend context. If the first render didn't have anything in
  39852. // in fallback state. Then we render each row in the tail one-by-one.
  39853. // That happens in the completeWork phase without going back to beginWork.
  39854. function updateSuspenseListComponent(current, workInProgress, renderExpirationTime) {
  39855. var nextProps = workInProgress.pendingProps;
  39856. var revealOrder = nextProps.revealOrder;
  39857. var tailMode = nextProps.tail;
  39858. var newChildren = nextProps.children;
  39859. validateRevealOrder(revealOrder);
  39860. validateTailOptions(tailMode, revealOrder);
  39861. validateSuspenseListChildren(newChildren, revealOrder);
  39862. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  39863. var suspenseContext = suspenseStackCursor.current;
  39864. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  39865. if (shouldForceFallback) {
  39866. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  39867. workInProgress.effectTag |= DidCapture;
  39868. } else {
  39869. var didSuspendBefore = current !== null && (current.effectTag & DidCapture) !== NoEffect;
  39870. if (didSuspendBefore) {
  39871. // If we previously forced a fallback, we need to schedule work
  39872. // on any nested boundaries to let them know to try to render
  39873. // again. This is the same as context updating.
  39874. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  39875. }
  39876. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  39877. }
  39878. pushSuspenseContext(workInProgress, suspenseContext);
  39879. if ((workInProgress.mode & BlockingMode) === NoMode) {
  39880. // Outside of blocking mode, SuspenseList doesn't work so we just
  39881. // use make it a noop by treating it as the default revealOrder.
  39882. workInProgress.memoizedState = null;
  39883. } else {
  39884. switch (revealOrder) {
  39885. case 'forwards':
  39886. {
  39887. var lastContentRow = findLastContentRow(workInProgress.child);
  39888. var tail;
  39889. if (lastContentRow === null) {
  39890. // The whole list is part of the tail.
  39891. // TODO: We could fast path by just rendering the tail now.
  39892. tail = workInProgress.child;
  39893. workInProgress.child = null;
  39894. } else {
  39895. // Disconnect the tail rows after the content row.
  39896. // We're going to render them separately later.
  39897. tail = lastContentRow.sibling;
  39898. lastContentRow.sibling = null;
  39899. }
  39900. initSuspenseListRenderState(workInProgress, false, // isBackwards
  39901. tail, lastContentRow, tailMode, workInProgress.lastEffect);
  39902. break;
  39903. }
  39904. case 'backwards':
  39905. {
  39906. // We're going to find the first row that has existing content.
  39907. // At the same time we're going to reverse the list of everything
  39908. // we pass in the meantime. That's going to be our tail in reverse
  39909. // order.
  39910. var _tail = null;
  39911. var row = workInProgress.child;
  39912. workInProgress.child = null;
  39913. while (row !== null) {
  39914. var currentRow = row.alternate; // New rows can't be content rows.
  39915. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  39916. // This is the beginning of the main content.
  39917. workInProgress.child = row;
  39918. break;
  39919. }
  39920. var nextRow = row.sibling;
  39921. row.sibling = _tail;
  39922. _tail = row;
  39923. row = nextRow;
  39924. } // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  39925. initSuspenseListRenderState(workInProgress, true, // isBackwards
  39926. _tail, null, // last
  39927. tailMode, workInProgress.lastEffect);
  39928. break;
  39929. }
  39930. case 'together':
  39931. {
  39932. initSuspenseListRenderState(workInProgress, false, // isBackwards
  39933. null, // tail
  39934. null, // last
  39935. undefined, workInProgress.lastEffect);
  39936. break;
  39937. }
  39938. default:
  39939. {
  39940. // The default reveal order is the same as not having
  39941. // a boundary.
  39942. workInProgress.memoizedState = null;
  39943. }
  39944. }
  39945. }
  39946. return workInProgress.child;
  39947. }
  39948. function updatePortalComponent(current, workInProgress, renderExpirationTime) {
  39949. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  39950. var nextChildren = workInProgress.pendingProps;
  39951. if (current === null) {
  39952. // Portals are special because we don't append the children during mount
  39953. // but at commit. Therefore we need to track insertions which the normal
  39954. // flow doesn't do during mount. This doesn't happen at the root because
  39955. // the root always starts with a "current" with a null child.
  39956. // TODO: Consider unifying this with how the root works.
  39957. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  39958. } else {
  39959. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  39960. }
  39961. return workInProgress.child;
  39962. }
  39963. function updateContextProvider(current, workInProgress, renderExpirationTime) {
  39964. var providerType = workInProgress.type;
  39965. var context = providerType._context;
  39966. var newProps = workInProgress.pendingProps;
  39967. var oldProps = workInProgress.memoizedProps;
  39968. var newValue = newProps.value;
  39969. {
  39970. var providerPropTypes = workInProgress.type.propTypes;
  39971. if (providerPropTypes) {
  39972. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  39973. }
  39974. }
  39975. pushProvider(workInProgress, newValue);
  39976. if (oldProps !== null) {
  39977. var oldValue = oldProps.value;
  39978. var changedBits = calculateChangedBits(context, newValue, oldValue);
  39979. if (changedBits === 0) {
  39980. // No change. Bailout early if children are the same.
  39981. if (oldProps.children === newProps.children && !hasContextChanged()) {
  39982. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  39983. }
  39984. } else {
  39985. // The context value changed. Search for matching consumers and schedule
  39986. // them to update.
  39987. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  39988. }
  39989. }
  39990. var newChildren = newProps.children;
  39991. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  39992. return workInProgress.child;
  39993. }
  39994. var hasWarnedAboutUsingContextAsConsumer = false;
  39995. function updateContextConsumer(current, workInProgress, renderExpirationTime) {
  39996. var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
  39997. // DEV mode, we create a separate object for Context.Consumer that acts
  39998. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  39999. // so we use the old behaviour (Context.Consumer references Context) to
  40000. // reduce size and overhead. The separate object references context via
  40001. // a property called "_context", which also gives us the ability to check
  40002. // in DEV mode if this property exists or not and warn if it does not.
  40003. {
  40004. if (context._context === undefined) {
  40005. // This may be because it's a Context (rather than a Consumer).
  40006. // Or it may be because it's older React where they're the same thing.
  40007. // We only want to warn if we're sure it's a new React.
  40008. if (context !== context.Consumer) {
  40009. if (!hasWarnedAboutUsingContextAsConsumer) {
  40010. hasWarnedAboutUsingContextAsConsumer = true;
  40011. error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  40012. }
  40013. }
  40014. } else {
  40015. context = context._context;
  40016. }
  40017. }
  40018. var newProps = workInProgress.pendingProps;
  40019. var render = newProps.children;
  40020. {
  40021. if (typeof render !== 'function') {
  40022. error('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.');
  40023. }
  40024. }
  40025. prepareToReadContext(workInProgress, renderExpirationTime);
  40026. var newValue = readContext(context, newProps.unstable_observedBits);
  40027. var newChildren;
  40028. {
  40029. ReactCurrentOwner$1.current = workInProgress;
  40030. setIsRendering(true);
  40031. newChildren = render(newValue);
  40032. setIsRendering(false);
  40033. } // React DevTools reads this flag.
  40034. workInProgress.effectTag |= PerformedWork;
  40035. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  40036. return workInProgress.child;
  40037. }
  40038. function markWorkInProgressReceivedUpdate() {
  40039. didReceiveUpdate = true;
  40040. }
  40041. function bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime) {
  40042. cancelWorkTimer(workInProgress);
  40043. if (current !== null) {
  40044. // Reuse previous dependencies
  40045. workInProgress.dependencies = current.dependencies;
  40046. }
  40047. {
  40048. // Don't update "base" render times for bailouts.
  40049. stopProfilerTimerIfRunning();
  40050. }
  40051. var updateExpirationTime = workInProgress.expirationTime;
  40052. if (updateExpirationTime !== NoWork) {
  40053. markUnprocessedUpdateTime(updateExpirationTime);
  40054. } // Check if the children have any pending work.
  40055. var childExpirationTime = workInProgress.childExpirationTime;
  40056. if (childExpirationTime < renderExpirationTime) {
  40057. // The children don't have any work either. We can skip them.
  40058. // TODO: Once we add back resuming, we should check if the children are
  40059. // a work-in-progress set. If so, we need to transfer their effects.
  40060. return null;
  40061. } else {
  40062. // This fiber doesn't have work, but its subtree does. Clone the child
  40063. // fibers and continue.
  40064. cloneChildFibers(current, workInProgress);
  40065. return workInProgress.child;
  40066. }
  40067. }
  40068. function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
  40069. {
  40070. var returnFiber = oldWorkInProgress.return;
  40071. if (returnFiber === null) {
  40072. throw new Error('Cannot swap the root fiber.');
  40073. } // Disconnect from the old current.
  40074. // It will get deleted.
  40075. current.alternate = null;
  40076. oldWorkInProgress.alternate = null; // Connect to the new tree.
  40077. newWorkInProgress.index = oldWorkInProgress.index;
  40078. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  40079. newWorkInProgress.return = oldWorkInProgress.return;
  40080. newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.
  40081. if (oldWorkInProgress === returnFiber.child) {
  40082. returnFiber.child = newWorkInProgress;
  40083. } else {
  40084. var prevSibling = returnFiber.child;
  40085. if (prevSibling === null) {
  40086. throw new Error('Expected parent to have a child.');
  40087. }
  40088. while (prevSibling.sibling !== oldWorkInProgress) {
  40089. prevSibling = prevSibling.sibling;
  40090. if (prevSibling === null) {
  40091. throw new Error('Expected to find the previous sibling.');
  40092. }
  40093. }
  40094. prevSibling.sibling = newWorkInProgress;
  40095. } // Delete the old fiber and place the new one.
  40096. // Since the old fiber is disconnected, we have to schedule it manually.
  40097. var last = returnFiber.lastEffect;
  40098. if (last !== null) {
  40099. last.nextEffect = current;
  40100. returnFiber.lastEffect = current;
  40101. } else {
  40102. returnFiber.firstEffect = returnFiber.lastEffect = current;
  40103. }
  40104. current.nextEffect = null;
  40105. current.effectTag = Deletion;
  40106. newWorkInProgress.effectTag |= Placement; // Restart work from the new fiber.
  40107. return newWorkInProgress;
  40108. }
  40109. }
  40110. function beginWork(current, workInProgress, renderExpirationTime) {
  40111. var updateExpirationTime = workInProgress.expirationTime;
  40112. {
  40113. if (workInProgress._debugNeedsRemount && current !== null) {
  40114. // This will restart the begin phase with a new fiber.
  40115. return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  40116. }
  40117. }
  40118. if (current !== null) {
  40119. var oldProps = current.memoizedProps;
  40120. var newProps = workInProgress.pendingProps;
  40121. if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
  40122. workInProgress.type !== current.type )) {
  40123. // If props or context changed, mark the fiber as having performed work.
  40124. // This may be unset if the props are determined to be equal later (memo).
  40125. didReceiveUpdate = true;
  40126. } else if (updateExpirationTime < renderExpirationTime) {
  40127. didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
  40128. // the begin phase. There's still some bookkeeping we that needs to be done
  40129. // in this optimized path, mostly pushing stuff onto the stack.
  40130. switch (workInProgress.tag) {
  40131. case HostRoot:
  40132. pushHostRootContext(workInProgress);
  40133. resetHydrationState();
  40134. break;
  40135. case HostComponent:
  40136. pushHostContext(workInProgress);
  40137. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  40138. {
  40139. markSpawnedWork(Never);
  40140. } // Schedule this fiber to re-render at offscreen priority. Then bailout.
  40141. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  40142. return null;
  40143. }
  40144. break;
  40145. case ClassComponent:
  40146. {
  40147. var Component = workInProgress.type;
  40148. if (isContextProvider(Component)) {
  40149. pushContextProvider(workInProgress);
  40150. }
  40151. break;
  40152. }
  40153. case HostPortal:
  40154. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  40155. break;
  40156. case ContextProvider:
  40157. {
  40158. var newValue = workInProgress.memoizedProps.value;
  40159. pushProvider(workInProgress, newValue);
  40160. break;
  40161. }
  40162. case Profiler:
  40163. {
  40164. // Profiler should only call onRender when one of its descendants actually rendered.
  40165. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  40166. if (hasChildWork) {
  40167. workInProgress.effectTag |= Update;
  40168. }
  40169. }
  40170. break;
  40171. case SuspenseComponent:
  40172. {
  40173. var state = workInProgress.memoizedState;
  40174. if (state !== null) {
  40175. // whether to retry the primary children, or to skip over it and
  40176. // go straight to the fallback. Check the priority of the primary
  40177. // child fragment.
  40178. var primaryChildFragment = workInProgress.child;
  40179. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  40180. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  40181. // The primary children have pending work. Use the normal path
  40182. // to attempt to render the primary children again.
  40183. return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
  40184. } else {
  40185. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
  40186. // priority. Bailout.
  40187. var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  40188. if (child !== null) {
  40189. // The fallback children have pending work. Skip over the
  40190. // primary children and work on the fallback.
  40191. return child.sibling;
  40192. } else {
  40193. return null;
  40194. }
  40195. }
  40196. } else {
  40197. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  40198. }
  40199. break;
  40200. }
  40201. case SuspenseListComponent:
  40202. {
  40203. var didSuspendBefore = (current.effectTag & DidCapture) !== NoEffect;
  40204. var _hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  40205. if (didSuspendBefore) {
  40206. if (_hasChildWork) {
  40207. // If something was in fallback state last time, and we have all the
  40208. // same children then we're still in progressive loading state.
  40209. // Something might get unblocked by state updates or retries in the
  40210. // tree which will affect the tail. So we need to use the normal
  40211. // path to compute the correct tail.
  40212. return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
  40213. } // If none of the children had any work, that means that none of
  40214. // them got retried so they'll still be blocked in the same way
  40215. // as before. We can fast bail out.
  40216. workInProgress.effectTag |= DidCapture;
  40217. } // If nothing suspended before and we're rendering the same children,
  40218. // then the tail doesn't matter. Anything new that suspends will work
  40219. // in the "together" mode, so we can continue from the state we had.
  40220. var renderState = workInProgress.memoizedState;
  40221. if (renderState !== null) {
  40222. // Reset to the "together" mode in case we've started a different
  40223. // update in the past but didn't complete it.
  40224. renderState.rendering = null;
  40225. renderState.tail = null;
  40226. }
  40227. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  40228. if (_hasChildWork) {
  40229. break;
  40230. } else {
  40231. // If none of the children had any work, that means that none of
  40232. // them got retried so they'll still be blocked in the same way
  40233. // as before. We can fast bail out.
  40234. return null;
  40235. }
  40236. }
  40237. }
  40238. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  40239. } else {
  40240. // An update was scheduled on this fiber, but there are no new props
  40241. // nor legacy context. Set this to false. If an update queue or context
  40242. // consumer produces a changed value, it will set this to true. Otherwise,
  40243. // the component will assume the children have not changed and bail out.
  40244. didReceiveUpdate = false;
  40245. }
  40246. } else {
  40247. didReceiveUpdate = false;
  40248. } // Before entering the begin phase, clear pending update priority.
  40249. // TODO: This assumes that we're about to evaluate the component and process
  40250. // the update queue. However, there's an exception: SimpleMemoComponent
  40251. // sometimes bails out later in the begin phase. This indicates that we should
  40252. // move this assignment out of the common path and into each branch.
  40253. workInProgress.expirationTime = NoWork;
  40254. switch (workInProgress.tag) {
  40255. case IndeterminateComponent:
  40256. {
  40257. return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime);
  40258. }
  40259. case LazyComponent:
  40260. {
  40261. var elementType = workInProgress.elementType;
  40262. return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  40263. }
  40264. case FunctionComponent:
  40265. {
  40266. var _Component = workInProgress.type;
  40267. var unresolvedProps = workInProgress.pendingProps;
  40268. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  40269. return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime);
  40270. }
  40271. case ClassComponent:
  40272. {
  40273. var _Component2 = workInProgress.type;
  40274. var _unresolvedProps = workInProgress.pendingProps;
  40275. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  40276. return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  40277. }
  40278. case HostRoot:
  40279. return updateHostRoot(current, workInProgress, renderExpirationTime);
  40280. case HostComponent:
  40281. return updateHostComponent(current, workInProgress, renderExpirationTime);
  40282. case HostText:
  40283. return updateHostText(current, workInProgress);
  40284. case SuspenseComponent:
  40285. return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
  40286. case HostPortal:
  40287. return updatePortalComponent(current, workInProgress, renderExpirationTime);
  40288. case ForwardRef:
  40289. {
  40290. var type = workInProgress.type;
  40291. var _unresolvedProps2 = workInProgress.pendingProps;
  40292. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  40293. return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime);
  40294. }
  40295. case Fragment:
  40296. return updateFragment(current, workInProgress, renderExpirationTime);
  40297. case Mode:
  40298. return updateMode(current, workInProgress, renderExpirationTime);
  40299. case Profiler:
  40300. return updateProfiler(current, workInProgress, renderExpirationTime);
  40301. case ContextProvider:
  40302. return updateContextProvider(current, workInProgress, renderExpirationTime);
  40303. case ContextConsumer:
  40304. return updateContextConsumer(current, workInProgress, renderExpirationTime);
  40305. case MemoComponent:
  40306. {
  40307. var _type2 = workInProgress.type;
  40308. var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
  40309. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  40310. {
  40311. if (workInProgress.type !== workInProgress.elementType) {
  40312. var outerPropTypes = _type2.propTypes;
  40313. if (outerPropTypes) {
  40314. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  40315. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  40316. }
  40317. }
  40318. }
  40319. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  40320. return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  40321. }
  40322. case SimpleMemoComponent:
  40323. {
  40324. return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  40325. }
  40326. case IncompleteClassComponent:
  40327. {
  40328. var _Component3 = workInProgress.type;
  40329. var _unresolvedProps4 = workInProgress.pendingProps;
  40330. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  40331. return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  40332. }
  40333. case SuspenseListComponent:
  40334. {
  40335. return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
  40336. }
  40337. }
  40338. {
  40339. {
  40340. throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
  40341. }
  40342. }
  40343. }
  40344. function markUpdate(workInProgress) {
  40345. // Tag the fiber with an update effect. This turns a Placement into
  40346. // a PlacementAndUpdate.
  40347. workInProgress.effectTag |= Update;
  40348. }
  40349. function markRef$1(workInProgress) {
  40350. workInProgress.effectTag |= Ref;
  40351. }
  40352. var appendAllChildren;
  40353. var updateHostContainer;
  40354. var updateHostComponent$1;
  40355. var updateHostText$1;
  40356. {
  40357. // Mutation mode
  40358. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  40359. // We only have the top Fiber that was created but we need recurse down its
  40360. // children to find all the terminal nodes.
  40361. var node = workInProgress.child;
  40362. while (node !== null) {
  40363. if (node.tag === HostComponent || node.tag === HostText) {
  40364. appendInitialChild(parent, node.stateNode);
  40365. } else if (node.tag === HostPortal) ; else if (node.child !== null) {
  40366. node.child.return = node;
  40367. node = node.child;
  40368. continue;
  40369. }
  40370. if (node === workInProgress) {
  40371. return;
  40372. }
  40373. while (node.sibling === null) {
  40374. if (node.return === null || node.return === workInProgress) {
  40375. return;
  40376. }
  40377. node = node.return;
  40378. }
  40379. node.sibling.return = node.return;
  40380. node = node.sibling;
  40381. }
  40382. };
  40383. updateHostContainer = function (workInProgress) {// Noop
  40384. };
  40385. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  40386. // If we have an alternate, that means this is an update and we need to
  40387. // schedule a side-effect to do the updates.
  40388. var oldProps = current.memoizedProps;
  40389. if (oldProps === newProps) {
  40390. // In mutation mode, this is sufficient for a bailout because
  40391. // we won't touch this node even if children changed.
  40392. return;
  40393. } // If we get updated because one of our children updated, we don't
  40394. // have newProps so we'll have to reuse them.
  40395. // TODO: Split the update API as separate for the props vs. children.
  40396. // Even better would be if children weren't special cased at all tho.
  40397. var instance = workInProgress.stateNode;
  40398. var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
  40399. // component is hitting the resume path. Figure out why. Possibly
  40400. // related to `hidden`.
  40401. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.
  40402. workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  40403. // is a new ref we mark this as an update. All the work is done in commitWork.
  40404. if (updatePayload) {
  40405. markUpdate(workInProgress);
  40406. }
  40407. };
  40408. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  40409. // If the text differs, mark it as an update. All the work in done in commitWork.
  40410. if (oldText !== newText) {
  40411. markUpdate(workInProgress);
  40412. }
  40413. };
  40414. }
  40415. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  40416. switch (renderState.tailMode) {
  40417. case 'hidden':
  40418. {
  40419. // Any insertions at the end of the tail list after this point
  40420. // should be invisible. If there are already mounted boundaries
  40421. // anything before them are not considered for collapsing.
  40422. // Therefore we need to go through the whole tail to find if
  40423. // there are any.
  40424. var tailNode = renderState.tail;
  40425. var lastTailNode = null;
  40426. while (tailNode !== null) {
  40427. if (tailNode.alternate !== null) {
  40428. lastTailNode = tailNode;
  40429. }
  40430. tailNode = tailNode.sibling;
  40431. } // Next we're simply going to delete all insertions after the
  40432. // last rendered item.
  40433. if (lastTailNode === null) {
  40434. // All remaining items in the tail are insertions.
  40435. renderState.tail = null;
  40436. } else {
  40437. // Detach the insertion after the last node that was already
  40438. // inserted.
  40439. lastTailNode.sibling = null;
  40440. }
  40441. break;
  40442. }
  40443. case 'collapsed':
  40444. {
  40445. // Any insertions at the end of the tail list after this point
  40446. // should be invisible. If there are already mounted boundaries
  40447. // anything before them are not considered for collapsing.
  40448. // Therefore we need to go through the whole tail to find if
  40449. // there are any.
  40450. var _tailNode = renderState.tail;
  40451. var _lastTailNode = null;
  40452. while (_tailNode !== null) {
  40453. if (_tailNode.alternate !== null) {
  40454. _lastTailNode = _tailNode;
  40455. }
  40456. _tailNode = _tailNode.sibling;
  40457. } // Next we're simply going to delete all insertions after the
  40458. // last rendered item.
  40459. if (_lastTailNode === null) {
  40460. // All remaining items in the tail are insertions.
  40461. if (!hasRenderedATailFallback && renderState.tail !== null) {
  40462. // We suspended during the head. We want to show at least one
  40463. // row at the tail. So we'll keep on and cut off the rest.
  40464. renderState.tail.sibling = null;
  40465. } else {
  40466. renderState.tail = null;
  40467. }
  40468. } else {
  40469. // Detach the insertion after the last node that was already
  40470. // inserted.
  40471. _lastTailNode.sibling = null;
  40472. }
  40473. break;
  40474. }
  40475. }
  40476. }
  40477. function completeWork(current, workInProgress, renderExpirationTime) {
  40478. var newProps = workInProgress.pendingProps;
  40479. switch (workInProgress.tag) {
  40480. case IndeterminateComponent:
  40481. case LazyComponent:
  40482. case SimpleMemoComponent:
  40483. case FunctionComponent:
  40484. case ForwardRef:
  40485. case Fragment:
  40486. case Mode:
  40487. case Profiler:
  40488. case ContextConsumer:
  40489. case MemoComponent:
  40490. return null;
  40491. case ClassComponent:
  40492. {
  40493. var Component = workInProgress.type;
  40494. if (isContextProvider(Component)) {
  40495. popContext(workInProgress);
  40496. }
  40497. return null;
  40498. }
  40499. case HostRoot:
  40500. {
  40501. popHostContainer(workInProgress);
  40502. popTopLevelContextObject(workInProgress);
  40503. var fiberRoot = workInProgress.stateNode;
  40504. if (fiberRoot.pendingContext) {
  40505. fiberRoot.context = fiberRoot.pendingContext;
  40506. fiberRoot.pendingContext = null;
  40507. }
  40508. if (current === null || current.child === null) {
  40509. // If we hydrated, pop so that we can delete any remaining children
  40510. // that weren't hydrated.
  40511. var wasHydrated = popHydrationState(workInProgress);
  40512. if (wasHydrated) {
  40513. // If we hydrated, then we'll need to schedule an update for
  40514. // the commit side-effects on the root.
  40515. markUpdate(workInProgress);
  40516. }
  40517. }
  40518. updateHostContainer(workInProgress);
  40519. return null;
  40520. }
  40521. case HostComponent:
  40522. {
  40523. popHostContext(workInProgress);
  40524. var rootContainerInstance = getRootHostContainer();
  40525. var type = workInProgress.type;
  40526. if (current !== null && workInProgress.stateNode != null) {
  40527. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  40528. if (current.ref !== workInProgress.ref) {
  40529. markRef$1(workInProgress);
  40530. }
  40531. } else {
  40532. if (!newProps) {
  40533. if (!(workInProgress.stateNode !== null)) {
  40534. {
  40535. throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
  40536. }
  40537. } // This can happen when we abort work.
  40538. return null;
  40539. }
  40540. var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
  40541. // "stack" as the parent. Then append children as we go in beginWork
  40542. // or completeWork depending on whether we want to add them top->down or
  40543. // bottom->up. Top->down is faster in IE11.
  40544. var _wasHydrated = popHydrationState(workInProgress);
  40545. if (_wasHydrated) {
  40546. // TODO: Move this and createInstance step into the beginPhase
  40547. // to consolidate.
  40548. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  40549. // If changes to the hydrated node need to be applied at the
  40550. // commit-phase we mark this as such.
  40551. markUpdate(workInProgress);
  40552. }
  40553. } else {
  40554. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  40555. appendAllChildren(instance, workInProgress, false, false); // This needs to be set before we mount Flare event listeners
  40556. workInProgress.stateNode = instance;
  40557. // (eg DOM renderer supports auto-focus for certain elements).
  40558. // Make sure such renderers get scheduled for later work.
  40559. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
  40560. markUpdate(workInProgress);
  40561. }
  40562. }
  40563. if (workInProgress.ref !== null) {
  40564. // If there is a ref on a host node we need to schedule a callback
  40565. markRef$1(workInProgress);
  40566. }
  40567. }
  40568. return null;
  40569. }
  40570. case HostText:
  40571. {
  40572. var newText = newProps;
  40573. if (current && workInProgress.stateNode != null) {
  40574. var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
  40575. // to schedule a side-effect to do the updates.
  40576. updateHostText$1(current, workInProgress, oldText, newText);
  40577. } else {
  40578. if (typeof newText !== 'string') {
  40579. if (!(workInProgress.stateNode !== null)) {
  40580. {
  40581. throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
  40582. }
  40583. } // This can happen when we abort work.
  40584. }
  40585. var _rootContainerInstance = getRootHostContainer();
  40586. var _currentHostContext = getHostContext();
  40587. var _wasHydrated2 = popHydrationState(workInProgress);
  40588. if (_wasHydrated2) {
  40589. if (prepareToHydrateHostTextInstance(workInProgress)) {
  40590. markUpdate(workInProgress);
  40591. }
  40592. } else {
  40593. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  40594. }
  40595. }
  40596. return null;
  40597. }
  40598. case SuspenseComponent:
  40599. {
  40600. popSuspenseContext(workInProgress);
  40601. var nextState = workInProgress.memoizedState;
  40602. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  40603. // Something suspended. Re-render with the fallback children.
  40604. workInProgress.expirationTime = renderExpirationTime; // Do not reset the effect list.
  40605. return workInProgress;
  40606. }
  40607. var nextDidTimeout = nextState !== null;
  40608. var prevDidTimeout = false;
  40609. if (current === null) {
  40610. if (workInProgress.memoizedProps.fallback !== undefined) {
  40611. popHydrationState(workInProgress);
  40612. }
  40613. } else {
  40614. var prevState = current.memoizedState;
  40615. prevDidTimeout = prevState !== null;
  40616. if (!nextDidTimeout && prevState !== null) {
  40617. // We just switched from the fallback to the normal children.
  40618. // Delete the fallback.
  40619. // TODO: Would it be better to store the fallback fragment on
  40620. // the stateNode during the begin phase?
  40621. var currentFallbackChild = current.child.sibling;
  40622. if (currentFallbackChild !== null) {
  40623. // Deletions go at the beginning of the return fiber's effect list
  40624. var first = workInProgress.firstEffect;
  40625. if (first !== null) {
  40626. workInProgress.firstEffect = currentFallbackChild;
  40627. currentFallbackChild.nextEffect = first;
  40628. } else {
  40629. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  40630. currentFallbackChild.nextEffect = null;
  40631. }
  40632. currentFallbackChild.effectTag = Deletion;
  40633. }
  40634. }
  40635. }
  40636. if (nextDidTimeout && !prevDidTimeout) {
  40637. // If this subtreee is running in blocking mode we can suspend,
  40638. // otherwise we won't suspend.
  40639. // TODO: This will still suspend a synchronous tree if anything
  40640. // in the concurrent tree already suspended during this render.
  40641. // This is a known bug.
  40642. if ((workInProgress.mode & BlockingMode) !== NoMode) {
  40643. // TODO: Move this back to throwException because this is too late
  40644. // if this is a large tree which is common for initial loads. We
  40645. // don't know if we should restart a render or not until we get
  40646. // this marker, and this is too late.
  40647. // If this render already had a ping or lower pri updates,
  40648. // and this is the first time we know we're going to suspend we
  40649. // should be able to immediately restart from within throwException.
  40650. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  40651. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  40652. // If this was in an invisible tree or a new render, then showing
  40653. // this boundary is ok.
  40654. renderDidSuspend();
  40655. } else {
  40656. // Otherwise, we're going to have to hide content so we should
  40657. // suspend for longer if possible.
  40658. renderDidSuspendDelayIfPossible();
  40659. }
  40660. }
  40661. }
  40662. {
  40663. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  40664. if (nextDidTimeout || prevDidTimeout) {
  40665. // If this boundary just timed out, schedule an effect to attach a
  40666. // retry listener to the promise. This flag is also used to hide the
  40667. // primary children. In mutation mode, we also need the flag to
  40668. // *unhide* children that were previously hidden, so check if this
  40669. // is currently timed out, too.
  40670. workInProgress.effectTag |= Update;
  40671. }
  40672. }
  40673. return null;
  40674. }
  40675. case HostPortal:
  40676. popHostContainer(workInProgress);
  40677. updateHostContainer(workInProgress);
  40678. return null;
  40679. case ContextProvider:
  40680. // Pop provider fiber
  40681. popProvider(workInProgress);
  40682. return null;
  40683. case IncompleteClassComponent:
  40684. {
  40685. // Same as class component case. I put it down here so that the tags are
  40686. // sequential to ensure this switch is compiled to a jump table.
  40687. var _Component = workInProgress.type;
  40688. if (isContextProvider(_Component)) {
  40689. popContext(workInProgress);
  40690. }
  40691. return null;
  40692. }
  40693. case SuspenseListComponent:
  40694. {
  40695. popSuspenseContext(workInProgress);
  40696. var renderState = workInProgress.memoizedState;
  40697. if (renderState === null) {
  40698. // We're running in the default, "independent" mode.
  40699. // We don't do anything in this mode.
  40700. return null;
  40701. }
  40702. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  40703. var renderedTail = renderState.rendering;
  40704. if (renderedTail === null) {
  40705. // We just rendered the head.
  40706. if (!didSuspendAlready) {
  40707. // This is the first pass. We need to figure out if anything is still
  40708. // suspended in the rendered set.
  40709. // If new content unsuspended, but there's still some content that
  40710. // didn't. Then we need to do a second pass that forces everything
  40711. // to keep showing their fallbacks.
  40712. // We might be suspended if something in this render pass suspended, or
  40713. // something in the previous committed pass suspended. Otherwise,
  40714. // there's no chance so we can skip the expensive call to
  40715. // findFirstSuspended.
  40716. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  40717. if (!cannotBeSuspended) {
  40718. var row = workInProgress.child;
  40719. while (row !== null) {
  40720. var suspended = findFirstSuspended(row);
  40721. if (suspended !== null) {
  40722. didSuspendAlready = true;
  40723. workInProgress.effectTag |= DidCapture;
  40724. cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
  40725. // part of the second pass. In that case nothing will subscribe to
  40726. // its thennables. Instead, we'll transfer its thennables to the
  40727. // SuspenseList so that it can retry if they resolve.
  40728. // There might be multiple of these in the list but since we're
  40729. // going to wait for all of them anyway, it doesn't really matter
  40730. // which ones gets to ping. In theory we could get clever and keep
  40731. // track of how many dependencies remain but it gets tricky because
  40732. // in the meantime, we can add/remove/change items and dependencies.
  40733. // We might bail out of the loop before finding any but that
  40734. // doesn't matter since that means that the other boundaries that
  40735. // we did find already has their listeners attached.
  40736. var newThennables = suspended.updateQueue;
  40737. if (newThennables !== null) {
  40738. workInProgress.updateQueue = newThennables;
  40739. workInProgress.effectTag |= Update;
  40740. } // Rerender the whole list, but this time, we'll force fallbacks
  40741. // to stay in place.
  40742. // Reset the effect list before doing the second pass since that's now invalid.
  40743. if (renderState.lastEffect === null) {
  40744. workInProgress.firstEffect = null;
  40745. }
  40746. workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.
  40747. resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately
  40748. // rerender the children.
  40749. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  40750. return workInProgress.child;
  40751. }
  40752. row = row.sibling;
  40753. }
  40754. }
  40755. } else {
  40756. cutOffTailIfNeeded(renderState, false);
  40757. } // Next we're going to render the tail.
  40758. } else {
  40759. // Append the rendered row to the child list.
  40760. if (!didSuspendAlready) {
  40761. var _suspended = findFirstSuspended(renderedTail);
  40762. if (_suspended !== null) {
  40763. workInProgress.effectTag |= DidCapture;
  40764. didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
  40765. // get lost if this row ends up dropped during a second pass.
  40766. var _newThennables = _suspended.updateQueue;
  40767. if (_newThennables !== null) {
  40768. workInProgress.updateQueue = _newThennables;
  40769. workInProgress.effectTag |= Update;
  40770. }
  40771. cutOffTailIfNeeded(renderState, true); // This might have been modified.
  40772. if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate) {
  40773. // We need to delete the row we just rendered.
  40774. // Reset the effect list to what it was before we rendered this
  40775. // child. The nested children have already appended themselves.
  40776. var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.
  40777. if (lastEffect !== null) {
  40778. lastEffect.nextEffect = null;
  40779. } // We're done.
  40780. return null;
  40781. }
  40782. } else if ( // The time it took to render last row is greater than time until
  40783. // the expiration.
  40784. now() * 2 - renderState.renderingStartTime > renderState.tailExpiration && renderExpirationTime > Never) {
  40785. // We have now passed our CPU deadline and we'll just give up further
  40786. // attempts to render the main content and only render fallbacks.
  40787. // The assumption is that this is usually faster.
  40788. workInProgress.effectTag |= DidCapture;
  40789. didSuspendAlready = true;
  40790. cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
  40791. // to get it started back up to attempt the next item. If we can show
  40792. // them, then they really have the same priority as this render.
  40793. // So we'll pick it back up the very next render pass once we've had
  40794. // an opportunity to yield for paint.
  40795. var nextPriority = renderExpirationTime - 1;
  40796. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  40797. {
  40798. markSpawnedWork(nextPriority);
  40799. }
  40800. }
  40801. }
  40802. if (renderState.isBackwards) {
  40803. // The effect list of the backwards tail will have been added
  40804. // to the end. This breaks the guarantee that life-cycles fire in
  40805. // sibling order but that isn't a strong guarantee promised by React.
  40806. // Especially since these might also just pop in during future commits.
  40807. // Append to the beginning of the list.
  40808. renderedTail.sibling = workInProgress.child;
  40809. workInProgress.child = renderedTail;
  40810. } else {
  40811. var previousSibling = renderState.last;
  40812. if (previousSibling !== null) {
  40813. previousSibling.sibling = renderedTail;
  40814. } else {
  40815. workInProgress.child = renderedTail;
  40816. }
  40817. renderState.last = renderedTail;
  40818. }
  40819. }
  40820. if (renderState.tail !== null) {
  40821. // We still have tail rows to render.
  40822. if (renderState.tailExpiration === 0) {
  40823. // Heuristic for how long we're willing to spend rendering rows
  40824. // until we just give up and show what we have so far.
  40825. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  40826. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this
  40827. // is a per component value. It should really be since the start
  40828. // of the total render or last commit. Consider using something like
  40829. // globalMostRecentFallbackTime. That doesn't account for being
  40830. // suspended for part of the time or when it's a new render.
  40831. // It should probably use a global start time value instead.
  40832. } // Pop a row.
  40833. var next = renderState.tail;
  40834. renderState.rendering = next;
  40835. renderState.tail = next.sibling;
  40836. renderState.lastEffect = workInProgress.lastEffect;
  40837. renderState.renderingStartTime = now();
  40838. next.sibling = null; // Restore the context.
  40839. // TODO: We can probably just avoid popping it instead and only
  40840. // setting it the first time we go from not suspended to suspended.
  40841. var suspenseContext = suspenseStackCursor.current;
  40842. if (didSuspendAlready) {
  40843. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  40844. } else {
  40845. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  40846. }
  40847. pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
  40848. return next;
  40849. }
  40850. return null;
  40851. }
  40852. }
  40853. {
  40854. {
  40855. throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
  40856. }
  40857. }
  40858. }
  40859. function unwindWork(workInProgress, renderExpirationTime) {
  40860. switch (workInProgress.tag) {
  40861. case ClassComponent:
  40862. {
  40863. var Component = workInProgress.type;
  40864. if (isContextProvider(Component)) {
  40865. popContext(workInProgress);
  40866. }
  40867. var effectTag = workInProgress.effectTag;
  40868. if (effectTag & ShouldCapture) {
  40869. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  40870. return workInProgress;
  40871. }
  40872. return null;
  40873. }
  40874. case HostRoot:
  40875. {
  40876. popHostContainer(workInProgress);
  40877. popTopLevelContextObject(workInProgress);
  40878. var _effectTag = workInProgress.effectTag;
  40879. if (!((_effectTag & DidCapture) === NoEffect)) {
  40880. {
  40881. throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
  40882. }
  40883. }
  40884. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  40885. return workInProgress;
  40886. }
  40887. case HostComponent:
  40888. {
  40889. // TODO: popHydrationState
  40890. popHostContext(workInProgress);
  40891. return null;
  40892. }
  40893. case SuspenseComponent:
  40894. {
  40895. popSuspenseContext(workInProgress);
  40896. var _effectTag2 = workInProgress.effectTag;
  40897. if (_effectTag2 & ShouldCapture) {
  40898. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.
  40899. return workInProgress;
  40900. }
  40901. return null;
  40902. }
  40903. case SuspenseListComponent:
  40904. {
  40905. popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
  40906. // caught by a nested boundary. If not, it should bubble through.
  40907. return null;
  40908. }
  40909. case HostPortal:
  40910. popHostContainer(workInProgress);
  40911. return null;
  40912. case ContextProvider:
  40913. popProvider(workInProgress);
  40914. return null;
  40915. default:
  40916. return null;
  40917. }
  40918. }
  40919. function unwindInterruptedWork(interruptedWork) {
  40920. switch (interruptedWork.tag) {
  40921. case ClassComponent:
  40922. {
  40923. var childContextTypes = interruptedWork.type.childContextTypes;
  40924. if (childContextTypes !== null && childContextTypes !== undefined) {
  40925. popContext(interruptedWork);
  40926. }
  40927. break;
  40928. }
  40929. case HostRoot:
  40930. {
  40931. popHostContainer(interruptedWork);
  40932. popTopLevelContextObject(interruptedWork);
  40933. break;
  40934. }
  40935. case HostComponent:
  40936. {
  40937. popHostContext(interruptedWork);
  40938. break;
  40939. }
  40940. case HostPortal:
  40941. popHostContainer(interruptedWork);
  40942. break;
  40943. case SuspenseComponent:
  40944. popSuspenseContext(interruptedWork);
  40945. break;
  40946. case SuspenseListComponent:
  40947. popSuspenseContext(interruptedWork);
  40948. break;
  40949. case ContextProvider:
  40950. popProvider(interruptedWork);
  40951. break;
  40952. }
  40953. }
  40954. function createCapturedValue(value, source) {
  40955. // If the value is an error, call this function immediately after it is thrown
  40956. // so the stack is accurate.
  40957. return {
  40958. value: value,
  40959. source: source,
  40960. stack: getStackByFiberInDevAndProd(source)
  40961. };
  40962. }
  40963. function logCapturedError(capturedError) {
  40964. var error = capturedError.error;
  40965. {
  40966. var componentName = capturedError.componentName,
  40967. componentStack = capturedError.componentStack,
  40968. errorBoundaryName = capturedError.errorBoundaryName,
  40969. errorBoundaryFound = capturedError.errorBoundaryFound,
  40970. willRetry = capturedError.willRetry; // Browsers support silencing uncaught errors by calling
  40971. // `preventDefault()` in window `error` handler.
  40972. // We record this information as an expando on the error.
  40973. if (error != null && error._suppressLogging) {
  40974. if (errorBoundaryFound && willRetry) {
  40975. // The error is recoverable and was silenced.
  40976. // Ignore it and don't print the stack addendum.
  40977. // This is handy for testing error boundaries without noise.
  40978. return;
  40979. } // The error is fatal. Since the silencing might have
  40980. // been accidental, we'll surface it anyway.
  40981. // However, the browser would have silenced the original error
  40982. // so we'll print it first, and then print the stack addendum.
  40983. console['error'](error); // Don't transform to our wrapper
  40984. // For a more detailed description of this block, see:
  40985. // https://github.com/facebook/react/pull/13384
  40986. }
  40987. var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
  40988. var errorBoundaryMessage; // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  40989. if (errorBoundaryFound && errorBoundaryName) {
  40990. if (willRetry) {
  40991. errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
  40992. } else {
  40993. errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree.";
  40994. }
  40995. } else {
  40996. 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.';
  40997. }
  40998. var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
  40999. // We don't include the original error message and JS stack because the browser
  41000. // has already printed it. Even if the application swallows the error, it is still
  41001. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  41002. console['error'](combinedMessage); // Don't transform to our wrapper
  41003. }
  41004. }
  41005. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  41006. {
  41007. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  41008. }
  41009. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  41010. function logError(boundary, errorInfo) {
  41011. var source = errorInfo.source;
  41012. var stack = errorInfo.stack;
  41013. if (stack === null && source !== null) {
  41014. stack = getStackByFiberInDevAndProd(source);
  41015. }
  41016. var capturedError = {
  41017. componentName: source !== null ? getComponentName(source.type) : null,
  41018. componentStack: stack !== null ? stack : '',
  41019. error: errorInfo.value,
  41020. errorBoundary: null,
  41021. errorBoundaryName: null,
  41022. errorBoundaryFound: false,
  41023. willRetry: false
  41024. };
  41025. if (boundary !== null && boundary.tag === ClassComponent) {
  41026. capturedError.errorBoundary = boundary.stateNode;
  41027. capturedError.errorBoundaryName = getComponentName(boundary.type);
  41028. capturedError.errorBoundaryFound = true;
  41029. capturedError.willRetry = true;
  41030. }
  41031. try {
  41032. logCapturedError(capturedError);
  41033. } catch (e) {
  41034. // This method must not throw, or React internal state will get messed up.
  41035. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  41036. // we want to report this error outside of the normal stack as a last resort.
  41037. // https://github.com/facebook/react/issues/13188
  41038. setTimeout(function () {
  41039. throw e;
  41040. });
  41041. }
  41042. }
  41043. var callComponentWillUnmountWithTimer = function (current, instance) {
  41044. startPhaseTimer(current, 'componentWillUnmount');
  41045. instance.props = current.memoizedProps;
  41046. instance.state = current.memoizedState;
  41047. instance.componentWillUnmount();
  41048. stopPhaseTimer();
  41049. }; // Capture errors so they don't interrupt unmounting.
  41050. function safelyCallComponentWillUnmount(current, instance) {
  41051. {
  41052. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);
  41053. if (hasCaughtError()) {
  41054. var unmountError = clearCaughtError();
  41055. captureCommitPhaseError(current, unmountError);
  41056. }
  41057. }
  41058. }
  41059. function safelyDetachRef(current) {
  41060. var ref = current.ref;
  41061. if (ref !== null) {
  41062. if (typeof ref === 'function') {
  41063. {
  41064. invokeGuardedCallback(null, ref, null, null);
  41065. if (hasCaughtError()) {
  41066. var refError = clearCaughtError();
  41067. captureCommitPhaseError(current, refError);
  41068. }
  41069. }
  41070. } else {
  41071. ref.current = null;
  41072. }
  41073. }
  41074. }
  41075. function safelyCallDestroy(current, destroy) {
  41076. {
  41077. invokeGuardedCallback(null, destroy, null);
  41078. if (hasCaughtError()) {
  41079. var error = clearCaughtError();
  41080. captureCommitPhaseError(current, error);
  41081. }
  41082. }
  41083. }
  41084. function commitBeforeMutationLifeCycles(current, finishedWork) {
  41085. switch (finishedWork.tag) {
  41086. case FunctionComponent:
  41087. case ForwardRef:
  41088. case SimpleMemoComponent:
  41089. case Block:
  41090. {
  41091. return;
  41092. }
  41093. case ClassComponent:
  41094. {
  41095. if (finishedWork.effectTag & Snapshot) {
  41096. if (current !== null) {
  41097. var prevProps = current.memoizedProps;
  41098. var prevState = current.memoizedState;
  41099. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  41100. var instance = finishedWork.stateNode; // We could update instance props and state here,
  41101. // but instead we rely on them being set during last render.
  41102. // TODO: revisit this when we implement resuming.
  41103. {
  41104. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41105. if (instance.props !== finishedWork.memoizedProps) {
  41106. error('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');
  41107. }
  41108. if (instance.state !== finishedWork.memoizedState) {
  41109. error('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');
  41110. }
  41111. }
  41112. }
  41113. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  41114. {
  41115. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  41116. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  41117. didWarnSet.add(finishedWork.type);
  41118. error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  41119. }
  41120. }
  41121. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  41122. stopPhaseTimer();
  41123. }
  41124. }
  41125. return;
  41126. }
  41127. case HostRoot:
  41128. case HostComponent:
  41129. case HostText:
  41130. case HostPortal:
  41131. case IncompleteClassComponent:
  41132. // Nothing to do for these component types
  41133. return;
  41134. }
  41135. {
  41136. {
  41137. throw 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." );
  41138. }
  41139. }
  41140. }
  41141. function commitHookEffectListUnmount(tag, finishedWork) {
  41142. var updateQueue = finishedWork.updateQueue;
  41143. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  41144. if (lastEffect !== null) {
  41145. var firstEffect = lastEffect.next;
  41146. var effect = firstEffect;
  41147. do {
  41148. if ((effect.tag & tag) === tag) {
  41149. // Unmount
  41150. var destroy = effect.destroy;
  41151. effect.destroy = undefined;
  41152. if (destroy !== undefined) {
  41153. destroy();
  41154. }
  41155. }
  41156. effect = effect.next;
  41157. } while (effect !== firstEffect);
  41158. }
  41159. }
  41160. function commitHookEffectListMount(tag, finishedWork) {
  41161. var updateQueue = finishedWork.updateQueue;
  41162. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  41163. if (lastEffect !== null) {
  41164. var firstEffect = lastEffect.next;
  41165. var effect = firstEffect;
  41166. do {
  41167. if ((effect.tag & tag) === tag) {
  41168. // Mount
  41169. var create = effect.create;
  41170. effect.destroy = create();
  41171. {
  41172. var destroy = effect.destroy;
  41173. if (destroy !== undefined && typeof destroy !== 'function') {
  41174. var addendum = void 0;
  41175. if (destroy === null) {
  41176. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  41177. } else if (typeof destroy.then === 'function') {
  41178. 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';
  41179. } else {
  41180. addendum = ' You returned: ' + destroy;
  41181. }
  41182. error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  41183. }
  41184. }
  41185. }
  41186. effect = effect.next;
  41187. } while (effect !== firstEffect);
  41188. }
  41189. }
  41190. function commitPassiveHookEffects(finishedWork) {
  41191. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  41192. switch (finishedWork.tag) {
  41193. case FunctionComponent:
  41194. case ForwardRef:
  41195. case SimpleMemoComponent:
  41196. case Block:
  41197. {
  41198. // TODO (#17945) We should call all passive destroy functions (for all fibers)
  41199. // before calling any create functions. The current approach only serializes
  41200. // these for a single fiber.
  41201. commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);
  41202. commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
  41203. break;
  41204. }
  41205. }
  41206. }
  41207. }
  41208. function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) {
  41209. switch (finishedWork.tag) {
  41210. case FunctionComponent:
  41211. case ForwardRef:
  41212. case SimpleMemoComponent:
  41213. case Block:
  41214. {
  41215. // At this point layout effects have already been destroyed (during mutation phase).
  41216. // This is done to prevent sibling component effects from interfering with each other,
  41217. // e.g. a destroy function in one component should never override a ref set
  41218. // by a create function in another component during the same commit.
  41219. commitHookEffectListMount(Layout | HasEffect, finishedWork);
  41220. return;
  41221. }
  41222. case ClassComponent:
  41223. {
  41224. var instance = finishedWork.stateNode;
  41225. if (finishedWork.effectTag & Update) {
  41226. if (current === null) {
  41227. startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here,
  41228. // but instead we rely on them being set during last render.
  41229. // TODO: revisit this when we implement resuming.
  41230. {
  41231. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41232. if (instance.props !== finishedWork.memoizedProps) {
  41233. error('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');
  41234. }
  41235. if (instance.state !== finishedWork.memoizedState) {
  41236. error('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');
  41237. }
  41238. }
  41239. }
  41240. instance.componentDidMount();
  41241. stopPhaseTimer();
  41242. } else {
  41243. var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
  41244. var prevState = current.memoizedState;
  41245. startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here,
  41246. // but instead we rely on them being set during last render.
  41247. // TODO: revisit this when we implement resuming.
  41248. {
  41249. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41250. if (instance.props !== finishedWork.memoizedProps) {
  41251. error('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');
  41252. }
  41253. if (instance.state !== finishedWork.memoizedState) {
  41254. error('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');
  41255. }
  41256. }
  41257. }
  41258. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  41259. stopPhaseTimer();
  41260. }
  41261. }
  41262. var updateQueue = finishedWork.updateQueue;
  41263. if (updateQueue !== null) {
  41264. {
  41265. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  41266. if (instance.props !== finishedWork.memoizedProps) {
  41267. error('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');
  41268. }
  41269. if (instance.state !== finishedWork.memoizedState) {
  41270. error('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');
  41271. }
  41272. }
  41273. } // We could update instance props and state here,
  41274. // but instead we rely on them being set during last render.
  41275. // TODO: revisit this when we implement resuming.
  41276. commitUpdateQueue(finishedWork, updateQueue, instance);
  41277. }
  41278. return;
  41279. }
  41280. case HostRoot:
  41281. {
  41282. var _updateQueue = finishedWork.updateQueue;
  41283. if (_updateQueue !== null) {
  41284. var _instance = null;
  41285. if (finishedWork.child !== null) {
  41286. switch (finishedWork.child.tag) {
  41287. case HostComponent:
  41288. _instance = getPublicInstance(finishedWork.child.stateNode);
  41289. break;
  41290. case ClassComponent:
  41291. _instance = finishedWork.child.stateNode;
  41292. break;
  41293. }
  41294. }
  41295. commitUpdateQueue(finishedWork, _updateQueue, _instance);
  41296. }
  41297. return;
  41298. }
  41299. case HostComponent:
  41300. {
  41301. var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
  41302. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  41303. // These effects should only be committed when components are first mounted,
  41304. // aka when there is no current/alternate.
  41305. if (current === null && finishedWork.effectTag & Update) {
  41306. var type = finishedWork.type;
  41307. var props = finishedWork.memoizedProps;
  41308. commitMount(_instance2, type, props);
  41309. }
  41310. return;
  41311. }
  41312. case HostText:
  41313. {
  41314. // We have no life-cycles associated with text.
  41315. return;
  41316. }
  41317. case HostPortal:
  41318. {
  41319. // We have no life-cycles associated with portals.
  41320. return;
  41321. }
  41322. case Profiler:
  41323. {
  41324. {
  41325. var onRender = finishedWork.memoizedProps.onRender;
  41326. if (typeof onRender === 'function') {
  41327. {
  41328. onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  41329. }
  41330. }
  41331. }
  41332. return;
  41333. }
  41334. case SuspenseComponent:
  41335. {
  41336. commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
  41337. return;
  41338. }
  41339. case SuspenseListComponent:
  41340. case IncompleteClassComponent:
  41341. case FundamentalComponent:
  41342. case ScopeComponent:
  41343. return;
  41344. }
  41345. {
  41346. {
  41347. throw 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." );
  41348. }
  41349. }
  41350. }
  41351. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  41352. {
  41353. // We only have the top Fiber that was inserted but we need to recurse down its
  41354. // children to find all the terminal nodes.
  41355. var node = finishedWork;
  41356. while (true) {
  41357. if (node.tag === HostComponent) {
  41358. var instance = node.stateNode;
  41359. if (isHidden) {
  41360. hideInstance(instance);
  41361. } else {
  41362. unhideInstance(node.stateNode, node.memoizedProps);
  41363. }
  41364. } else if (node.tag === HostText) {
  41365. var _instance3 = node.stateNode;
  41366. if (isHidden) {
  41367. hideTextInstance(_instance3);
  41368. } else {
  41369. unhideTextInstance(_instance3, node.memoizedProps);
  41370. }
  41371. } else if (node.tag === SuspenseComponent && node.memoizedState !== null && node.memoizedState.dehydrated === null) {
  41372. // Found a nested Suspense component that timed out. Skip over the
  41373. // primary child fragment, which should remain hidden.
  41374. var fallbackChildFragment = node.child.sibling;
  41375. fallbackChildFragment.return = node;
  41376. node = fallbackChildFragment;
  41377. continue;
  41378. } else if (node.child !== null) {
  41379. node.child.return = node;
  41380. node = node.child;
  41381. continue;
  41382. }
  41383. if (node === finishedWork) {
  41384. return;
  41385. }
  41386. while (node.sibling === null) {
  41387. if (node.return === null || node.return === finishedWork) {
  41388. return;
  41389. }
  41390. node = node.return;
  41391. }
  41392. node.sibling.return = node.return;
  41393. node = node.sibling;
  41394. }
  41395. }
  41396. }
  41397. function commitAttachRef(finishedWork) {
  41398. var ref = finishedWork.ref;
  41399. if (ref !== null) {
  41400. var instance = finishedWork.stateNode;
  41401. var instanceToUse;
  41402. switch (finishedWork.tag) {
  41403. case HostComponent:
  41404. instanceToUse = getPublicInstance(instance);
  41405. break;
  41406. default:
  41407. instanceToUse = instance;
  41408. } // Moved outside to ensure DCE works with this flag
  41409. if (typeof ref === 'function') {
  41410. ref(instanceToUse);
  41411. } else {
  41412. {
  41413. if (!ref.hasOwnProperty('current')) {
  41414. error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  41415. }
  41416. }
  41417. ref.current = instanceToUse;
  41418. }
  41419. }
  41420. }
  41421. function commitDetachRef(current) {
  41422. var currentRef = current.ref;
  41423. if (currentRef !== null) {
  41424. if (typeof currentRef === 'function') {
  41425. currentRef(null);
  41426. } else {
  41427. currentRef.current = null;
  41428. }
  41429. }
  41430. } // User-originating errors (lifecycles and refs) should not interrupt
  41431. // deletion, so don't let them throw. Host-originating errors should
  41432. // interrupt deletion, so it's okay
  41433. function commitUnmount(finishedRoot, current, renderPriorityLevel) {
  41434. onCommitUnmount(current);
  41435. switch (current.tag) {
  41436. case FunctionComponent:
  41437. case ForwardRef:
  41438. case MemoComponent:
  41439. case SimpleMemoComponent:
  41440. case Block:
  41441. {
  41442. var updateQueue = current.updateQueue;
  41443. if (updateQueue !== null) {
  41444. var lastEffect = updateQueue.lastEffect;
  41445. if (lastEffect !== null) {
  41446. var firstEffect = lastEffect.next;
  41447. {
  41448. // When the owner fiber is deleted, the destroy function of a passive
  41449. // effect hook is called during the synchronous commit phase. This is
  41450. // a concession to implementation complexity. Calling it in the
  41451. // passive effect phase (like they usually are, when dependencies
  41452. // change during an update) would require either traversing the
  41453. // children of the deleted fiber again, or including unmount effects
  41454. // as part of the fiber effect list.
  41455. //
  41456. // Because this is during the sync commit phase, we need to change
  41457. // the priority.
  41458. //
  41459. // TODO: Reconsider this implementation trade off.
  41460. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  41461. runWithPriority$1(priorityLevel, function () {
  41462. var effect = firstEffect;
  41463. do {
  41464. var _destroy = effect.destroy;
  41465. if (_destroy !== undefined) {
  41466. safelyCallDestroy(current, _destroy);
  41467. }
  41468. effect = effect.next;
  41469. } while (effect !== firstEffect);
  41470. });
  41471. }
  41472. }
  41473. }
  41474. return;
  41475. }
  41476. case ClassComponent:
  41477. {
  41478. safelyDetachRef(current);
  41479. var instance = current.stateNode;
  41480. if (typeof instance.componentWillUnmount === 'function') {
  41481. safelyCallComponentWillUnmount(current, instance);
  41482. }
  41483. return;
  41484. }
  41485. case HostComponent:
  41486. {
  41487. safelyDetachRef(current);
  41488. return;
  41489. }
  41490. case HostPortal:
  41491. {
  41492. // TODO: this is recursive.
  41493. // We are also not using this parent because
  41494. // the portal will get pushed immediately.
  41495. {
  41496. unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  41497. }
  41498. return;
  41499. }
  41500. case FundamentalComponent:
  41501. {
  41502. return;
  41503. }
  41504. case DehydratedFragment:
  41505. {
  41506. return;
  41507. }
  41508. case ScopeComponent:
  41509. {
  41510. return;
  41511. }
  41512. }
  41513. }
  41514. function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
  41515. // While we're inside a removed host node we don't want to call
  41516. // removeChild on the inner nodes because they're removed by the top
  41517. // call anyway. We also want to call componentWillUnmount on all
  41518. // composites before this host node is removed from the tree. Therefore
  41519. // we do an inner loop while we're still inside the host node.
  41520. var node = root;
  41521. while (true) {
  41522. commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because they may contain more composite or host nodes.
  41523. // Skip portals because commitUnmount() currently visits them recursively.
  41524. if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
  41525. // If we don't use mutation we drill down into portals here instead.
  41526. node.tag !== HostPortal)) {
  41527. node.child.return = node;
  41528. node = node.child;
  41529. continue;
  41530. }
  41531. if (node === root) {
  41532. return;
  41533. }
  41534. while (node.sibling === null) {
  41535. if (node.return === null || node.return === root) {
  41536. return;
  41537. }
  41538. node = node.return;
  41539. }
  41540. node.sibling.return = node.return;
  41541. node = node.sibling;
  41542. }
  41543. }
  41544. function detachFiber(current) {
  41545. var alternate = current.alternate; // Cut off the return pointers to disconnect it from the tree. Ideally, we
  41546. // should clear the child pointer of the parent alternate to let this
  41547. // get GC:ed but we don't know which for sure which parent is the current
  41548. // one so we'll settle for GC:ing the subtree of this child. This child
  41549. // itself will be GC:ed when the parent updates the next time.
  41550. current.return = null;
  41551. current.child = null;
  41552. current.memoizedState = null;
  41553. current.updateQueue = null;
  41554. current.dependencies = null;
  41555. current.alternate = null;
  41556. current.firstEffect = null;
  41557. current.lastEffect = null;
  41558. current.pendingProps = null;
  41559. current.memoizedProps = null;
  41560. current.stateNode = null;
  41561. if (alternate !== null) {
  41562. detachFiber(alternate);
  41563. }
  41564. }
  41565. function getHostParentFiber(fiber) {
  41566. var parent = fiber.return;
  41567. while (parent !== null) {
  41568. if (isHostParent(parent)) {
  41569. return parent;
  41570. }
  41571. parent = parent.return;
  41572. }
  41573. {
  41574. {
  41575. throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
  41576. }
  41577. }
  41578. }
  41579. function isHostParent(fiber) {
  41580. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  41581. }
  41582. function getHostSibling(fiber) {
  41583. // We're going to search forward into the tree until we find a sibling host
  41584. // node. Unfortunately, if multiple insertions are done in a row we have to
  41585. // search past them. This leads to exponential search for the next sibling.
  41586. // TODO: Find a more efficient way to do this.
  41587. var node = fiber;
  41588. siblings: while (true) {
  41589. // If we didn't find anything, let's try the next sibling.
  41590. while (node.sibling === null) {
  41591. if (node.return === null || isHostParent(node.return)) {
  41592. // If we pop out of the root or hit the parent the fiber we are the
  41593. // last sibling.
  41594. return null;
  41595. }
  41596. node = node.return;
  41597. }
  41598. node.sibling.return = node.return;
  41599. node = node.sibling;
  41600. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
  41601. // If it is not host node and, we might have a host node inside it.
  41602. // Try to search down until we find one.
  41603. if (node.effectTag & Placement) {
  41604. // If we don't have a child, try the siblings instead.
  41605. continue siblings;
  41606. } // If we don't have a child, try the siblings instead.
  41607. // We also skip portals because they are not part of this host tree.
  41608. if (node.child === null || node.tag === HostPortal) {
  41609. continue siblings;
  41610. } else {
  41611. node.child.return = node;
  41612. node = node.child;
  41613. }
  41614. } // Check if this host node is stable or about to be placed.
  41615. if (!(node.effectTag & Placement)) {
  41616. // Found it!
  41617. return node.stateNode;
  41618. }
  41619. }
  41620. }
  41621. function commitPlacement(finishedWork) {
  41622. var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.
  41623. var parent;
  41624. var isContainer;
  41625. var parentStateNode = parentFiber.stateNode;
  41626. switch (parentFiber.tag) {
  41627. case HostComponent:
  41628. parent = parentStateNode;
  41629. isContainer = false;
  41630. break;
  41631. case HostRoot:
  41632. parent = parentStateNode.containerInfo;
  41633. isContainer = true;
  41634. break;
  41635. case HostPortal:
  41636. parent = parentStateNode.containerInfo;
  41637. isContainer = true;
  41638. break;
  41639. case FundamentalComponent:
  41640. // eslint-disable-next-line-no-fallthrough
  41641. default:
  41642. {
  41643. {
  41644. throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
  41645. }
  41646. }
  41647. }
  41648. if (parentFiber.effectTag & ContentReset) {
  41649. // Reset the text content of the parent before doing any insertions
  41650. resetTextContent(parent); // Clear ContentReset from the effect tag
  41651. parentFiber.effectTag &= ~ContentReset;
  41652. }
  41653. var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
  41654. // children to find all the terminal nodes.
  41655. if (isContainer) {
  41656. insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
  41657. } else {
  41658. insertOrAppendPlacementNode(finishedWork, before, parent);
  41659. }
  41660. }
  41661. function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
  41662. var tag = node.tag;
  41663. var isHost = tag === HostComponent || tag === HostText;
  41664. if (isHost || enableFundamentalAPI ) {
  41665. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  41666. if (before) {
  41667. insertInContainerBefore(parent, stateNode, before);
  41668. } else {
  41669. appendChildToContainer(parent, stateNode);
  41670. }
  41671. } else if (tag === HostPortal) ; else {
  41672. var child = node.child;
  41673. if (child !== null) {
  41674. insertOrAppendPlacementNodeIntoContainer(child, before, parent);
  41675. var sibling = child.sibling;
  41676. while (sibling !== null) {
  41677. insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
  41678. sibling = sibling.sibling;
  41679. }
  41680. }
  41681. }
  41682. }
  41683. function insertOrAppendPlacementNode(node, before, parent) {
  41684. var tag = node.tag;
  41685. var isHost = tag === HostComponent || tag === HostText;
  41686. if (isHost || enableFundamentalAPI ) {
  41687. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  41688. if (before) {
  41689. insertBefore(parent, stateNode, before);
  41690. } else {
  41691. appendChild(parent, stateNode);
  41692. }
  41693. } else if (tag === HostPortal) ; else {
  41694. var child = node.child;
  41695. if (child !== null) {
  41696. insertOrAppendPlacementNode(child, before, parent);
  41697. var sibling = child.sibling;
  41698. while (sibling !== null) {
  41699. insertOrAppendPlacementNode(sibling, before, parent);
  41700. sibling = sibling.sibling;
  41701. }
  41702. }
  41703. }
  41704. }
  41705. function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
  41706. // We only have the top Fiber that was deleted but we need to recurse down its
  41707. // children to find all the terminal nodes.
  41708. var node = current; // Each iteration, currentParent is populated with node's host parent if not
  41709. // currentParentIsValid.
  41710. var currentParentIsValid = false; // Note: these two variables *must* always be updated together.
  41711. var currentParent;
  41712. var currentParentIsContainer;
  41713. while (true) {
  41714. if (!currentParentIsValid) {
  41715. var parent = node.return;
  41716. findParent: while (true) {
  41717. if (!(parent !== null)) {
  41718. {
  41719. throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
  41720. }
  41721. }
  41722. var parentStateNode = parent.stateNode;
  41723. switch (parent.tag) {
  41724. case HostComponent:
  41725. currentParent = parentStateNode;
  41726. currentParentIsContainer = false;
  41727. break findParent;
  41728. case HostRoot:
  41729. currentParent = parentStateNode.containerInfo;
  41730. currentParentIsContainer = true;
  41731. break findParent;
  41732. case HostPortal:
  41733. currentParent = parentStateNode.containerInfo;
  41734. currentParentIsContainer = true;
  41735. break findParent;
  41736. }
  41737. parent = parent.return;
  41738. }
  41739. currentParentIsValid = true;
  41740. }
  41741. if (node.tag === HostComponent || node.tag === HostText) {
  41742. commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // After all the children have unmounted, it is now safe to remove the
  41743. // node from the tree.
  41744. if (currentParentIsContainer) {
  41745. removeChildFromContainer(currentParent, node.stateNode);
  41746. } else {
  41747. removeChild(currentParent, node.stateNode);
  41748. } // Don't visit children because we already visited them.
  41749. } else if (node.tag === HostPortal) {
  41750. if (node.child !== null) {
  41751. // When we go into a portal, it becomes the parent to remove from.
  41752. // We will reassign it back when we pop the portal on the way up.
  41753. currentParent = node.stateNode.containerInfo;
  41754. currentParentIsContainer = true; // Visit children because portals might contain host components.
  41755. node.child.return = node;
  41756. node = node.child;
  41757. continue;
  41758. }
  41759. } else {
  41760. commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because we may find more host components below.
  41761. if (node.child !== null) {
  41762. node.child.return = node;
  41763. node = node.child;
  41764. continue;
  41765. }
  41766. }
  41767. if (node === current) {
  41768. return;
  41769. }
  41770. while (node.sibling === null) {
  41771. if (node.return === null || node.return === current) {
  41772. return;
  41773. }
  41774. node = node.return;
  41775. if (node.tag === HostPortal) {
  41776. // When we go out of the portal, we need to restore the parent.
  41777. // Since we don't keep a stack of them, we will search for it.
  41778. currentParentIsValid = false;
  41779. }
  41780. }
  41781. node.sibling.return = node.return;
  41782. node = node.sibling;
  41783. }
  41784. }
  41785. function commitDeletion(finishedRoot, current, renderPriorityLevel) {
  41786. {
  41787. // Recursively delete all host nodes from the parent.
  41788. // Detach refs and call componentWillUnmount() on the whole subtree.
  41789. unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  41790. }
  41791. detachFiber(current);
  41792. }
  41793. function commitWork(current, finishedWork) {
  41794. switch (finishedWork.tag) {
  41795. case FunctionComponent:
  41796. case ForwardRef:
  41797. case MemoComponent:
  41798. case SimpleMemoComponent:
  41799. case Block:
  41800. {
  41801. // Layout effects are destroyed during the mutation phase so that all
  41802. // destroy functions for all fibers are called before any create functions.
  41803. // This prevents sibling component effects from interfering with each other,
  41804. // e.g. a destroy function in one component should never override a ref set
  41805. // by a create function in another component during the same commit.
  41806. commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
  41807. return;
  41808. }
  41809. case ClassComponent:
  41810. {
  41811. return;
  41812. }
  41813. case HostComponent:
  41814. {
  41815. var instance = finishedWork.stateNode;
  41816. if (instance != null) {
  41817. // Commit the work prepared earlier.
  41818. var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
  41819. // as the newProps. The updatePayload will contain the real change in
  41820. // this case.
  41821. var oldProps = current !== null ? current.memoizedProps : newProps;
  41822. var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.
  41823. var updatePayload = finishedWork.updateQueue;
  41824. finishedWork.updateQueue = null;
  41825. if (updatePayload !== null) {
  41826. commitUpdate(instance, updatePayload, type, oldProps, newProps);
  41827. }
  41828. }
  41829. return;
  41830. }
  41831. case HostText:
  41832. {
  41833. if (!(finishedWork.stateNode !== null)) {
  41834. {
  41835. throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
  41836. }
  41837. }
  41838. var textInstance = finishedWork.stateNode;
  41839. var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
  41840. // as the newProps. The updatePayload will contain the real change in
  41841. // this case.
  41842. var oldText = current !== null ? current.memoizedProps : newText;
  41843. commitTextUpdate(textInstance, oldText, newText);
  41844. return;
  41845. }
  41846. case HostRoot:
  41847. {
  41848. {
  41849. var _root = finishedWork.stateNode;
  41850. if (_root.hydrate) {
  41851. // We've just hydrated. No need to hydrate again.
  41852. _root.hydrate = false;
  41853. commitHydratedContainer(_root.containerInfo);
  41854. }
  41855. }
  41856. return;
  41857. }
  41858. case Profiler:
  41859. {
  41860. return;
  41861. }
  41862. case SuspenseComponent:
  41863. {
  41864. commitSuspenseComponent(finishedWork);
  41865. attachSuspenseRetryListeners(finishedWork);
  41866. return;
  41867. }
  41868. case SuspenseListComponent:
  41869. {
  41870. attachSuspenseRetryListeners(finishedWork);
  41871. return;
  41872. }
  41873. case IncompleteClassComponent:
  41874. {
  41875. return;
  41876. }
  41877. }
  41878. {
  41879. {
  41880. throw 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." );
  41881. }
  41882. }
  41883. }
  41884. function commitSuspenseComponent(finishedWork) {
  41885. var newState = finishedWork.memoizedState;
  41886. var newDidTimeout;
  41887. var primaryChildParent = finishedWork;
  41888. if (newState === null) {
  41889. newDidTimeout = false;
  41890. } else {
  41891. newDidTimeout = true;
  41892. primaryChildParent = finishedWork.child;
  41893. markCommitTimeOfFallback();
  41894. }
  41895. if ( primaryChildParent !== null) {
  41896. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  41897. }
  41898. }
  41899. function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
  41900. var newState = finishedWork.memoizedState;
  41901. if (newState === null) {
  41902. var current = finishedWork.alternate;
  41903. if (current !== null) {
  41904. var prevState = current.memoizedState;
  41905. if (prevState !== null) {
  41906. var suspenseInstance = prevState.dehydrated;
  41907. if (suspenseInstance !== null) {
  41908. commitHydratedSuspenseInstance(suspenseInstance);
  41909. }
  41910. }
  41911. }
  41912. }
  41913. }
  41914. function attachSuspenseRetryListeners(finishedWork) {
  41915. // If this boundary just timed out, then it will have a set of thenables.
  41916. // For each thenable, attach a listener so that when it resolves, React
  41917. // attempts to re-render the boundary in the primary (pre-timeout) state.
  41918. var thenables = finishedWork.updateQueue;
  41919. if (thenables !== null) {
  41920. finishedWork.updateQueue = null;
  41921. var retryCache = finishedWork.stateNode;
  41922. if (retryCache === null) {
  41923. retryCache = finishedWork.stateNode = new PossiblyWeakSet();
  41924. }
  41925. thenables.forEach(function (thenable) {
  41926. // Memoize using the boundary fiber to prevent redundant listeners.
  41927. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  41928. if (!retryCache.has(thenable)) {
  41929. {
  41930. if (thenable.__reactDoNotTraceInteractions !== true) {
  41931. retry = tracing.unstable_wrap(retry);
  41932. }
  41933. }
  41934. retryCache.add(thenable);
  41935. thenable.then(retry, retry);
  41936. }
  41937. });
  41938. }
  41939. }
  41940. function commitResetTextContent(current) {
  41941. resetTextContent(current.stateNode);
  41942. }
  41943. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  41944. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  41945. var update = createUpdate(expirationTime, null); // Unmount the root by rendering null.
  41946. update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
  41947. // being called "element".
  41948. update.payload = {
  41949. element: null
  41950. };
  41951. var error = errorInfo.value;
  41952. update.callback = function () {
  41953. onUncaughtError(error);
  41954. logError(fiber, errorInfo);
  41955. };
  41956. return update;
  41957. }
  41958. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  41959. var update = createUpdate(expirationTime, null);
  41960. update.tag = CaptureUpdate;
  41961. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  41962. if (typeof getDerivedStateFromError === 'function') {
  41963. var error$1 = errorInfo.value;
  41964. update.payload = function () {
  41965. logError(fiber, errorInfo);
  41966. return getDerivedStateFromError(error$1);
  41967. };
  41968. }
  41969. var inst = fiber.stateNode;
  41970. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  41971. update.callback = function callback() {
  41972. {
  41973. markFailedErrorBoundaryForHotReloading(fiber);
  41974. }
  41975. if (typeof getDerivedStateFromError !== 'function') {
  41976. // To preserve the preexisting retry behavior of error boundaries,
  41977. // we keep track of which ones already failed during this batch.
  41978. // This gets reset before we yield back to the browser.
  41979. // TODO: Warn in strict mode if getDerivedStateFromError is
  41980. // not defined.
  41981. markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined
  41982. logError(fiber, errorInfo);
  41983. }
  41984. var error$1 = errorInfo.value;
  41985. var stack = errorInfo.stack;
  41986. this.componentDidCatch(error$1, {
  41987. componentStack: stack !== null ? stack : ''
  41988. });
  41989. {
  41990. if (typeof getDerivedStateFromError !== 'function') {
  41991. // If componentDidCatch is the only error boundary method defined,
  41992. // then it needs to call setState to recover from errors.
  41993. // If no state update is scheduled then the boundary will swallow the error.
  41994. if (fiber.expirationTime !== Sync) {
  41995. error('%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');
  41996. }
  41997. }
  41998. }
  41999. };
  42000. } else {
  42001. update.callback = function () {
  42002. markFailedErrorBoundaryForHotReloading(fiber);
  42003. };
  42004. }
  42005. return update;
  42006. }
  42007. function attachPingListener(root, renderExpirationTime, thenable) {
  42008. // Attach a listener to the promise to "ping" the root and retry. But
  42009. // only if one does not already exist for the current render expiration
  42010. // time (which acts like a "thread ID" here).
  42011. var pingCache = root.pingCache;
  42012. var threadIDs;
  42013. if (pingCache === null) {
  42014. pingCache = root.pingCache = new PossiblyWeakMap$1();
  42015. threadIDs = new Set();
  42016. pingCache.set(thenable, threadIDs);
  42017. } else {
  42018. threadIDs = pingCache.get(thenable);
  42019. if (threadIDs === undefined) {
  42020. threadIDs = new Set();
  42021. pingCache.set(thenable, threadIDs);
  42022. }
  42023. }
  42024. if (!threadIDs.has(renderExpirationTime)) {
  42025. // Memoize using the thread ID to prevent redundant listeners.
  42026. threadIDs.add(renderExpirationTime);
  42027. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  42028. thenable.then(ping, ping);
  42029. }
  42030. }
  42031. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  42032. // The source fiber did not complete.
  42033. sourceFiber.effectTag |= Incomplete; // Its effect list is no longer valid.
  42034. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  42035. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  42036. // This is a thenable.
  42037. var thenable = value;
  42038. if ((sourceFiber.mode & BlockingMode) === NoMode) {
  42039. // Reset the memoizedState to what it was before we attempted
  42040. // to render it.
  42041. var currentSource = sourceFiber.alternate;
  42042. if (currentSource) {
  42043. sourceFiber.updateQueue = currentSource.updateQueue;
  42044. sourceFiber.memoizedState = currentSource.memoizedState;
  42045. sourceFiber.expirationTime = currentSource.expirationTime;
  42046. } else {
  42047. sourceFiber.updateQueue = null;
  42048. sourceFiber.memoizedState = null;
  42049. }
  42050. }
  42051. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.
  42052. var _workInProgress = returnFiber;
  42053. do {
  42054. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  42055. // Found the nearest boundary.
  42056. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  42057. // attach another listener to flip the boundary back to its normal state.
  42058. var thenables = _workInProgress.updateQueue;
  42059. if (thenables === null) {
  42060. var updateQueue = new Set();
  42061. updateQueue.add(thenable);
  42062. _workInProgress.updateQueue = updateQueue;
  42063. } else {
  42064. thenables.add(thenable);
  42065. } // If the boundary is outside of blocking mode, we should *not*
  42066. // suspend the commit. Pretend as if the suspended component rendered
  42067. // null and keep rendering. In the commit phase, we'll schedule a
  42068. // subsequent synchronous update to re-render the Suspense.
  42069. //
  42070. // Note: It doesn't matter whether the component that suspended was
  42071. // inside a blocking mode tree. If the Suspense is outside of it, we
  42072. // should *not* suspend the commit.
  42073. if ((_workInProgress.mode & BlockingMode) === NoMode) {
  42074. _workInProgress.effectTag |= DidCapture; // We're going to commit this fiber even though it didn't complete.
  42075. // But we shouldn't call any lifecycle methods or callbacks. Remove
  42076. // all lifecycle effect tags.
  42077. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  42078. if (sourceFiber.tag === ClassComponent) {
  42079. var currentSourceFiber = sourceFiber.alternate;
  42080. if (currentSourceFiber === null) {
  42081. // This is a new mount. Change the tag so it's not mistaken for a
  42082. // completed class component. For example, we should not call
  42083. // componentWillUnmount if it is deleted.
  42084. sourceFiber.tag = IncompleteClassComponent;
  42085. } else {
  42086. // When we try rendering again, we should not reuse the current fiber,
  42087. // since it's known to be in an inconsistent state. Use a force update to
  42088. // prevent a bail out.
  42089. var update = createUpdate(Sync, null);
  42090. update.tag = ForceUpdate;
  42091. enqueueUpdate(sourceFiber, update);
  42092. }
  42093. } // The source fiber did not complete. Mark it with Sync priority to
  42094. // indicate that it still has pending work.
  42095. sourceFiber.expirationTime = Sync; // Exit without suspending.
  42096. return;
  42097. } // Confirmed that the boundary is in a concurrent mode tree. Continue
  42098. // with the normal suspend path.
  42099. //
  42100. // After this we'll use a set of heuristics to determine whether this
  42101. // render pass will run to completion or restart or "suspend" the commit.
  42102. // The actual logic for this is spread out in different places.
  42103. //
  42104. // This first principle is that if we're going to suspend when we complete
  42105. // a root, then we should also restart if we get an update or ping that
  42106. // might unsuspend it, and vice versa. The only reason to suspend is
  42107. // because you think you might want to restart before committing. However,
  42108. // it doesn't make sense to restart only while in the period we're suspended.
  42109. //
  42110. // Restarting too aggressively is also not good because it starves out any
  42111. // intermediate loading state. So we use heuristics to determine when.
  42112. // Suspense Heuristics
  42113. //
  42114. // If nothing threw a Promise or all the same fallbacks are already showing,
  42115. // then don't suspend/restart.
  42116. //
  42117. // If this is an initial render of a new tree of Suspense boundaries and
  42118. // those trigger a fallback, then don't suspend/restart. We want to ensure
  42119. // that we can show the initial loading state as quickly as possible.
  42120. //
  42121. // If we hit a "Delayed" case, such as when we'd switch from content back into
  42122. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  42123. // this case. If none is defined, JND is used instead.
  42124. //
  42125. // If we're already showing a fallback and it gets "retried", allowing us to show
  42126. // another level, but there's still an inner boundary that would show a fallback,
  42127. // then we suspend/restart for 500ms since the last time we showed a fallback
  42128. // anywhere in the tree. This effectively throttles progressive loading into a
  42129. // consistent train of commits. This also gives us an opportunity to restart to
  42130. // get to the completed state slightly earlier.
  42131. //
  42132. // If there's ambiguity due to batching it's resolved in preference of:
  42133. // 1) "delayed", 2) "initial render", 3) "retry".
  42134. //
  42135. // We want to ensure that a "busy" state doesn't get force committed. We want to
  42136. // ensure that new initial loading states can commit as soon as possible.
  42137. attachPingListener(root, renderExpirationTime, thenable);
  42138. _workInProgress.effectTag |= ShouldCapture;
  42139. _workInProgress.expirationTime = renderExpirationTime;
  42140. return;
  42141. } // This boundary already captured during this render. Continue to the next
  42142. // boundary.
  42143. _workInProgress = _workInProgress.return;
  42144. } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
  42145. // TODO: Use invariant so the message is stripped in prod?
  42146. 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));
  42147. } // We didn't find a boundary that could handle this type of exception. Start
  42148. // over and traverse parent path again, this time treating the exception
  42149. // as an error.
  42150. renderDidError();
  42151. value = createCapturedValue(value, sourceFiber);
  42152. var workInProgress = returnFiber;
  42153. do {
  42154. switch (workInProgress.tag) {
  42155. case HostRoot:
  42156. {
  42157. var _errorInfo = value;
  42158. workInProgress.effectTag |= ShouldCapture;
  42159. workInProgress.expirationTime = renderExpirationTime;
  42160. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  42161. enqueueCapturedUpdate(workInProgress, _update);
  42162. return;
  42163. }
  42164. case ClassComponent:
  42165. // Capture and retry
  42166. var errorInfo = value;
  42167. var ctor = workInProgress.type;
  42168. var instance = workInProgress.stateNode;
  42169. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  42170. workInProgress.effectTag |= ShouldCapture;
  42171. workInProgress.expirationTime = renderExpirationTime; // Schedule the error boundary to re-render using updated state
  42172. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  42173. enqueueCapturedUpdate(workInProgress, _update2);
  42174. return;
  42175. }
  42176. break;
  42177. }
  42178. workInProgress = workInProgress.return;
  42179. } while (workInProgress !== null);
  42180. }
  42181. var ceil = Math.ceil;
  42182. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
  42183. ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
  42184. IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  42185. var NoContext =
  42186. /* */
  42187. 0;
  42188. var BatchedContext =
  42189. /* */
  42190. 1;
  42191. var EventContext =
  42192. /* */
  42193. 2;
  42194. var DiscreteEventContext =
  42195. /* */
  42196. 4;
  42197. var LegacyUnbatchedContext =
  42198. /* */
  42199. 8;
  42200. var RenderContext =
  42201. /* */
  42202. 16;
  42203. var CommitContext =
  42204. /* */
  42205. 32;
  42206. var RootIncomplete = 0;
  42207. var RootFatalErrored = 1;
  42208. var RootErrored = 2;
  42209. var RootSuspended = 3;
  42210. var RootSuspendedWithDelay = 4;
  42211. var RootCompleted = 5;
  42212. // Describes where we are in the React execution stack
  42213. var executionContext = NoContext; // The root we're working on
  42214. var workInProgressRoot = null; // The fiber we're working on
  42215. var workInProgress = null; // The expiration time we're rendering
  42216. var renderExpirationTime$1 = NoWork; // Whether to root completed, errored, suspended, etc.
  42217. var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown
  42218. var workInProgressRootFatalError = null; // Most recent event time among processed updates during this render.
  42219. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  42220. // because we deal mostly with expiration times in the hot path, so this avoids
  42221. // the conversion happening in the hot path.
  42222. var workInProgressRootLatestProcessedExpirationTime = Sync;
  42223. var workInProgressRootLatestSuspenseTimeout = Sync;
  42224. var workInProgressRootCanSuspendUsingConfig = null; // The work left over by components that were visited during this render. Only
  42225. // includes unprocessed updates, not work in bailed out children.
  42226. var workInProgressRootNextUnprocessedUpdateTime = NoWork; // If we're pinged while rendering we don't always restart immediately.
  42227. // This flag determines if it might be worthwhile to restart if an opportunity
  42228. // happens latere.
  42229. var workInProgressRootHasPendingPing = false; // The most recent time we committed a fallback. This lets us ensure a train
  42230. // model where we don't commit new loading states in too quick succession.
  42231. var globalMostRecentFallbackTime = 0;
  42232. var FALLBACK_THROTTLE_MS = 500;
  42233. var nextEffect = null;
  42234. var hasUncaughtError = false;
  42235. var firstUncaughtError = null;
  42236. var legacyErrorBoundariesThatAlreadyFailed = null;
  42237. var rootDoesHavePassiveEffects = false;
  42238. var rootWithPendingPassiveEffects = null;
  42239. var pendingPassiveEffectsRenderPriority = NoPriority;
  42240. var pendingPassiveEffectsExpirationTime = NoWork;
  42241. var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates
  42242. var NESTED_UPDATE_LIMIT = 50;
  42243. var nestedUpdateCount = 0;
  42244. var rootWithNestedUpdates = null;
  42245. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  42246. var nestedPassiveUpdateCount = 0;
  42247. var interruptedBy = null; // Marks the need to reschedule pending interactions at these expiration times
  42248. // during the commit phase. This enables them to be traced across components
  42249. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  42250. // hydration or SuspenseList.
  42251. var spawnedWorkDuringRender = null; // Expiration times are computed by adding to the current time (the start
  42252. // time). However, if two updates are scheduled within the same event, we
  42253. // should treat their start times as simultaneous, even if the actual clock
  42254. // time has advanced between the first and second call.
  42255. // In other words, because expiration times determine how updates are batched,
  42256. // we want all updates of like priority that occur within the same event to
  42257. // receive the same expiration time. Otherwise we get tearing.
  42258. var currentEventTime = NoWork;
  42259. function requestCurrentTimeForUpdate() {
  42260. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  42261. // We're inside React, so it's fine to read the actual time.
  42262. return msToExpirationTime(now());
  42263. } // We're not inside React, so we may be in the middle of a browser event.
  42264. if (currentEventTime !== NoWork) {
  42265. // Use the same start time for all updates until we enter React again.
  42266. return currentEventTime;
  42267. } // This is the first update since React yielded. Compute a new start time.
  42268. currentEventTime = msToExpirationTime(now());
  42269. return currentEventTime;
  42270. }
  42271. function getCurrentTime() {
  42272. return msToExpirationTime(now());
  42273. }
  42274. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  42275. var mode = fiber.mode;
  42276. if ((mode & BlockingMode) === NoMode) {
  42277. return Sync;
  42278. }
  42279. var priorityLevel = getCurrentPriorityLevel();
  42280. if ((mode & ConcurrentMode) === NoMode) {
  42281. return priorityLevel === ImmediatePriority ? Sync : Batched;
  42282. }
  42283. if ((executionContext & RenderContext) !== NoContext) {
  42284. // Use whatever time we're already rendering
  42285. // TODO: Should there be a way to opt out, like with `runWithPriority`?
  42286. return renderExpirationTime$1;
  42287. }
  42288. var expirationTime;
  42289. if (suspenseConfig !== null) {
  42290. // Compute an expiration time based on the Suspense timeout.
  42291. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  42292. } else {
  42293. // Compute an expiration time based on the Scheduler priority.
  42294. switch (priorityLevel) {
  42295. case ImmediatePriority:
  42296. expirationTime = Sync;
  42297. break;
  42298. case UserBlockingPriority$1:
  42299. // TODO: Rename this to computeUserBlockingExpiration
  42300. expirationTime = computeInteractiveExpiration(currentTime);
  42301. break;
  42302. case NormalPriority:
  42303. case LowPriority:
  42304. // TODO: Handle LowPriority
  42305. // TODO: Rename this to... something better.
  42306. expirationTime = computeAsyncExpiration(currentTime);
  42307. break;
  42308. case IdlePriority:
  42309. expirationTime = Idle;
  42310. break;
  42311. default:
  42312. {
  42313. {
  42314. throw Error( "Expected a valid priority level" );
  42315. }
  42316. }
  42317. }
  42318. } // If we're in the middle of rendering a tree, do not update at the same
  42319. // expiration time that is already rendering.
  42320. // TODO: We shouldn't have to do this if the update is on a different root.
  42321. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  42322. // the root when we check for this condition.
  42323. if (workInProgressRoot !== null && expirationTime === renderExpirationTime$1) {
  42324. // This is a trick to move this update into a separate batch
  42325. expirationTime -= 1;
  42326. }
  42327. return expirationTime;
  42328. }
  42329. function scheduleUpdateOnFiber(fiber, expirationTime) {
  42330. checkForNestedUpdates();
  42331. warnAboutRenderPhaseUpdatesInDEV(fiber);
  42332. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  42333. if (root === null) {
  42334. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  42335. return;
  42336. }
  42337. checkForInterruption(fiber, expirationTime);
  42338. recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the
  42339. // priority as an argument to that function and this one.
  42340. var priorityLevel = getCurrentPriorityLevel();
  42341. if (expirationTime === Sync) {
  42342. if ( // Check if we're inside unbatchedUpdates
  42343. (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
  42344. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  42345. // Register pending interactions on the root to avoid losing traced interaction data.
  42346. schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  42347. // root inside of batchedUpdates should be synchronous, but layout updates
  42348. // should be deferred until the end of the batch.
  42349. performSyncWorkOnRoot(root);
  42350. } else {
  42351. ensureRootIsScheduled(root);
  42352. schedulePendingInteractions(root, expirationTime);
  42353. if (executionContext === NoContext) {
  42354. // Flush the synchronous work now, unless we're already working or inside
  42355. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  42356. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  42357. // without immediately flushing it. We only do this for user-initiated
  42358. // updates, to preserve historical behavior of legacy mode.
  42359. flushSyncCallbackQueue();
  42360. }
  42361. }
  42362. } else {
  42363. ensureRootIsScheduled(root);
  42364. schedulePendingInteractions(root, expirationTime);
  42365. }
  42366. if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
  42367. // discrete, even inside a discrete event.
  42368. priorityLevel === UserBlockingPriority$1 || priorityLevel === ImmediatePriority)) {
  42369. // This is the result of a discrete event. Track the lowest priority
  42370. // discrete update per root so we can flush them early, if needed.
  42371. if (rootsWithPendingDiscreteUpdates === null) {
  42372. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  42373. } else {
  42374. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  42375. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  42376. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  42377. }
  42378. }
  42379. }
  42380. }
  42381. var scheduleWork = scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending
  42382. // work without treating it as a typical update that originates from an event;
  42383. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  42384. // on a fiber.
  42385. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  42386. // Update the source fiber's expiration time
  42387. if (fiber.expirationTime < expirationTime) {
  42388. fiber.expirationTime = expirationTime;
  42389. }
  42390. var alternate = fiber.alternate;
  42391. if (alternate !== null && alternate.expirationTime < expirationTime) {
  42392. alternate.expirationTime = expirationTime;
  42393. } // Walk the parent path to the root and update the child expiration time.
  42394. var node = fiber.return;
  42395. var root = null;
  42396. if (node === null && fiber.tag === HostRoot) {
  42397. root = fiber.stateNode;
  42398. } else {
  42399. while (node !== null) {
  42400. alternate = node.alternate;
  42401. if (node.childExpirationTime < expirationTime) {
  42402. node.childExpirationTime = expirationTime;
  42403. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  42404. alternate.childExpirationTime = expirationTime;
  42405. }
  42406. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  42407. alternate.childExpirationTime = expirationTime;
  42408. }
  42409. if (node.return === null && node.tag === HostRoot) {
  42410. root = node.stateNode;
  42411. break;
  42412. }
  42413. node = node.return;
  42414. }
  42415. }
  42416. if (root !== null) {
  42417. if (workInProgressRoot === root) {
  42418. // Received an update to a tree that's in the middle of rendering. Mark
  42419. // that's unprocessed work on this root.
  42420. markUnprocessedUpdateTime(expirationTime);
  42421. if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  42422. // The root already suspended with a delay, which means this render
  42423. // definitely won't finish. Since we have a new update, let's mark it as
  42424. // suspended now, right before marking the incoming update. This has the
  42425. // effect of interrupting the current render and switching to the update.
  42426. // TODO: This happens to work when receiving an update during the render
  42427. // phase, because of the trick inside computeExpirationForFiber to
  42428. // subtract 1 from `renderExpirationTime` to move it into a
  42429. // separate bucket. But we should probably model it with an exception,
  42430. // using the same mechanism we use to force hydration of a subtree.
  42431. // TODO: This does not account for low pri updates that were already
  42432. // scheduled before the root started rendering. Need to track the next
  42433. // pending expiration time (perhaps by backtracking the return path) and
  42434. // then trigger a restart in the `renderDidSuspendDelayIfPossible` path.
  42435. markRootSuspendedAtTime(root, renderExpirationTime$1);
  42436. }
  42437. } // Mark that the root has a pending update.
  42438. markRootUpdatedAtTime(root, expirationTime);
  42439. }
  42440. return root;
  42441. }
  42442. function getNextRootExpirationTimeToWorkOn(root) {
  42443. // Determines the next expiration time that the root should render, taking
  42444. // into account levels that may be suspended, or levels that may have
  42445. // received a ping.
  42446. var lastExpiredTime = root.lastExpiredTime;
  42447. if (lastExpiredTime !== NoWork) {
  42448. return lastExpiredTime;
  42449. } // "Pending" refers to any update that hasn't committed yet, including if it
  42450. // suspended. The "suspended" range is therefore a subset.
  42451. var firstPendingTime = root.firstPendingTime;
  42452. if (!isRootSuspendedAtTime(root, firstPendingTime)) {
  42453. // The highest priority pending time is not suspended. Let's work on that.
  42454. return firstPendingTime;
  42455. } // If the first pending time is suspended, check if there's a lower priority
  42456. // pending level that we know about. Or check if we received a ping. Work
  42457. // on whichever is higher priority.
  42458. var lastPingedTime = root.lastPingedTime;
  42459. var nextKnownPendingLevel = root.nextKnownPendingLevel;
  42460. var nextLevel = lastPingedTime > nextKnownPendingLevel ? lastPingedTime : nextKnownPendingLevel;
  42461. if ( nextLevel <= Idle && firstPendingTime !== nextLevel) {
  42462. // Don't work on Idle/Never priority unless everything else is committed.
  42463. return NoWork;
  42464. }
  42465. return nextLevel;
  42466. } // Use this function to schedule a task for a root. There's only one task per
  42467. // root; if a task was already scheduled, we'll check to make sure the
  42468. // expiration time of the existing task is the same as the expiration time of
  42469. // the next level that the root has work on. This function is called on every
  42470. // update, and right before exiting a task.
  42471. function ensureRootIsScheduled(root) {
  42472. var lastExpiredTime = root.lastExpiredTime;
  42473. if (lastExpiredTime !== NoWork) {
  42474. // Special case: Expired work should flush synchronously.
  42475. root.callbackExpirationTime = Sync;
  42476. root.callbackPriority = ImmediatePriority;
  42477. root.callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  42478. return;
  42479. }
  42480. var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  42481. var existingCallbackNode = root.callbackNode;
  42482. if (expirationTime === NoWork) {
  42483. // There's nothing to work on.
  42484. if (existingCallbackNode !== null) {
  42485. root.callbackNode = null;
  42486. root.callbackExpirationTime = NoWork;
  42487. root.callbackPriority = NoPriority;
  42488. }
  42489. return;
  42490. } // TODO: If this is an update, we already read the current time. Pass the
  42491. // time as an argument.
  42492. var currentTime = requestCurrentTimeForUpdate();
  42493. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and
  42494. // expiration time. Otherwise, we'll cancel it and schedule a new one.
  42495. if (existingCallbackNode !== null) {
  42496. var existingCallbackPriority = root.callbackPriority;
  42497. var existingCallbackExpirationTime = root.callbackExpirationTime;
  42498. if ( // Callback must have the exact same expiration time.
  42499. existingCallbackExpirationTime === expirationTime && // Callback must have greater or equal priority.
  42500. existingCallbackPriority >= priorityLevel) {
  42501. // Existing callback is sufficient.
  42502. return;
  42503. } // Need to schedule a new task.
  42504. // TODO: Instead of scheduling a new task, we should be able to change the
  42505. // priority of the existing one.
  42506. cancelCallback(existingCallbackNode);
  42507. }
  42508. root.callbackExpirationTime = expirationTime;
  42509. root.callbackPriority = priorityLevel;
  42510. var callbackNode;
  42511. if (expirationTime === Sync) {
  42512. // Sync React callbacks are scheduled on a special internal queue
  42513. callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  42514. } else {
  42515. callbackNode = scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects
  42516. // ordering because tasks are processed in timeout order.
  42517. {
  42518. timeout: expirationTimeToMs(expirationTime) - now()
  42519. });
  42520. }
  42521. root.callbackNode = callbackNode;
  42522. } // This is the entry point for every concurrent task, i.e. anything that
  42523. // goes through Scheduler.
  42524. function performConcurrentWorkOnRoot(root, didTimeout) {
  42525. // Since we know we're in a React event, we can clear the current
  42526. // event time. The next update will compute a new event time.
  42527. currentEventTime = NoWork;
  42528. if (didTimeout) {
  42529. // The render task took too long to complete. Mark the current time as
  42530. // expired to synchronously render all expired work in a single batch.
  42531. var currentTime = requestCurrentTimeForUpdate();
  42532. markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback.
  42533. ensureRootIsScheduled(root);
  42534. return null;
  42535. } // Determine the next expiration time to work on, using the fields stored
  42536. // on the root.
  42537. var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  42538. if (expirationTime !== NoWork) {
  42539. var originalCallbackNode = root.callbackNode;
  42540. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  42541. {
  42542. throw Error( "Should not already be working." );
  42543. }
  42544. }
  42545. flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  42546. // and prepare a fresh one. Otherwise we'll continue where we left off.
  42547. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
  42548. prepareFreshStack(root, expirationTime);
  42549. startWorkOnPendingInteractions(root, expirationTime);
  42550. } // If we have a work-in-progress fiber, it means there's still work to do
  42551. // in this root.
  42552. if (workInProgress !== null) {
  42553. var prevExecutionContext = executionContext;
  42554. executionContext |= RenderContext;
  42555. var prevDispatcher = pushDispatcher();
  42556. var prevInteractions = pushInteractions(root);
  42557. startWorkLoopTimer(workInProgress);
  42558. do {
  42559. try {
  42560. workLoopConcurrent();
  42561. break;
  42562. } catch (thrownValue) {
  42563. handleError(root, thrownValue);
  42564. }
  42565. } while (true);
  42566. resetContextDependencies();
  42567. executionContext = prevExecutionContext;
  42568. popDispatcher(prevDispatcher);
  42569. {
  42570. popInteractions(prevInteractions);
  42571. }
  42572. if (workInProgressRootExitStatus === RootFatalErrored) {
  42573. var fatalError = workInProgressRootFatalError;
  42574. stopInterruptedWorkLoopTimer();
  42575. prepareFreshStack(root, expirationTime);
  42576. markRootSuspendedAtTime(root, expirationTime);
  42577. ensureRootIsScheduled(root);
  42578. throw fatalError;
  42579. }
  42580. if (workInProgress !== null) {
  42581. // There's still work left over. Exit without committing.
  42582. stopInterruptedWorkLoopTimer();
  42583. } else {
  42584. // We now have a consistent tree. The next step is either to commit it,
  42585. // or, if something suspended, wait to commit it after a timeout.
  42586. stopFinishedWorkLoopTimer();
  42587. var finishedWork = root.finishedWork = root.current.alternate;
  42588. root.finishedExpirationTime = expirationTime;
  42589. finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime);
  42590. }
  42591. ensureRootIsScheduled(root);
  42592. if (root.callbackNode === originalCallbackNode) {
  42593. // The task node scheduled for this root is the same one that's
  42594. // currently executed. Need to return a continuation.
  42595. return performConcurrentWorkOnRoot.bind(null, root);
  42596. }
  42597. }
  42598. }
  42599. return null;
  42600. }
  42601. function finishConcurrentRender(root, finishedWork, exitStatus, expirationTime) {
  42602. // Set this to null to indicate there's no in-progress render.
  42603. workInProgressRoot = null;
  42604. switch (exitStatus) {
  42605. case RootIncomplete:
  42606. case RootFatalErrored:
  42607. {
  42608. {
  42609. {
  42610. throw Error( "Root did not complete. This is a bug in React." );
  42611. }
  42612. }
  42613. }
  42614. // Flow knows about invariant, so it complains if I add a break
  42615. // statement, but eslint doesn't know about invariant, so it complains
  42616. // if I do. eslint-disable-next-line no-fallthrough
  42617. case RootErrored:
  42618. {
  42619. // If this was an async render, the error may have happened due to
  42620. // a mutation in a concurrent event. Try rendering one more time,
  42621. // synchronously, to see if the error goes away. If there are
  42622. // lower priority updates, let's include those, too, in case they
  42623. // fix the inconsistency. Render at Idle to include all updates.
  42624. // If it was Idle or Never or some not-yet-invented time, render
  42625. // at that time.
  42626. markRootExpiredAtTime(root, expirationTime > Idle ? Idle : expirationTime); // We assume that this second render pass will be synchronous
  42627. // and therefore not hit this path again.
  42628. break;
  42629. }
  42630. case RootSuspended:
  42631. {
  42632. markRootSuspendedAtTime(root, expirationTime);
  42633. var lastSuspendedTime = root.lastSuspendedTime;
  42634. if (expirationTime === lastSuspendedTime) {
  42635. root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
  42636. } // We have an acceptable loading state. We need to figure out if we
  42637. // should immediately commit it or wait a bit.
  42638. // If we have processed new updates during this render, we may now
  42639. // have a new loading state ready. We want to ensure that we commit
  42640. // that as soon as possible.
  42641. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  42642. if (hasNotProcessedNewUpdates && // do not delay if we're inside an act() scope
  42643. !( IsThisRendererActing.current)) {
  42644. // If we have not processed any new updates during this pass, then
  42645. // this is either a retry of an existing fallback state or a
  42646. // hidden tree. Hidden trees shouldn't be batched with other work
  42647. // and after that's fixed it can only be a retry. We're going to
  42648. // throttle committing retries so that we don't show too many
  42649. // loading states too quickly.
  42650. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.
  42651. if (msUntilTimeout > 10) {
  42652. if (workInProgressRootHasPendingPing) {
  42653. var lastPingedTime = root.lastPingedTime;
  42654. if (lastPingedTime === NoWork || lastPingedTime >= expirationTime) {
  42655. // This render was pinged but we didn't get to restart
  42656. // earlier so try restarting now instead.
  42657. root.lastPingedTime = expirationTime;
  42658. prepareFreshStack(root, expirationTime);
  42659. break;
  42660. }
  42661. }
  42662. var nextTime = getNextRootExpirationTimeToWorkOn(root);
  42663. if (nextTime !== NoWork && nextTime !== expirationTime) {
  42664. // There's additional work on this root.
  42665. break;
  42666. }
  42667. if (lastSuspendedTime !== NoWork && lastSuspendedTime !== expirationTime) {
  42668. // We should prefer to render the fallback of at the last
  42669. // suspended level. Ping the last suspended level to try
  42670. // rendering it again.
  42671. root.lastPingedTime = lastSuspendedTime;
  42672. break;
  42673. } // The render is suspended, it hasn't timed out, and there's no
  42674. // lower priority work to do. Instead of committing the fallback
  42675. // immediately, wait for more data to arrive.
  42676. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  42677. break;
  42678. }
  42679. } // The work expired. Commit immediately.
  42680. commitRoot(root);
  42681. break;
  42682. }
  42683. case RootSuspendedWithDelay:
  42684. {
  42685. markRootSuspendedAtTime(root, expirationTime);
  42686. var _lastSuspendedTime = root.lastSuspendedTime;
  42687. if (expirationTime === _lastSuspendedTime) {
  42688. root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
  42689. }
  42690. if ( // do not delay if we're inside an act() scope
  42691. !( IsThisRendererActing.current)) {
  42692. // We're suspended in a state that should be avoided. We'll try to
  42693. // avoid committing it for as long as the timeouts let us.
  42694. if (workInProgressRootHasPendingPing) {
  42695. var _lastPingedTime = root.lastPingedTime;
  42696. if (_lastPingedTime === NoWork || _lastPingedTime >= expirationTime) {
  42697. // This render was pinged but we didn't get to restart earlier
  42698. // so try restarting now instead.
  42699. root.lastPingedTime = expirationTime;
  42700. prepareFreshStack(root, expirationTime);
  42701. break;
  42702. }
  42703. }
  42704. var _nextTime = getNextRootExpirationTimeToWorkOn(root);
  42705. if (_nextTime !== NoWork && _nextTime !== expirationTime) {
  42706. // There's additional work on this root.
  42707. break;
  42708. }
  42709. if (_lastSuspendedTime !== NoWork && _lastSuspendedTime !== expirationTime) {
  42710. // We should prefer to render the fallback of at the last
  42711. // suspended level. Ping the last suspended level to try
  42712. // rendering it again.
  42713. root.lastPingedTime = _lastSuspendedTime;
  42714. break;
  42715. }
  42716. var _msUntilTimeout;
  42717. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  42718. // We have processed a suspense config whose expiration time we
  42719. // can use as the timeout.
  42720. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  42721. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  42722. // This should never normally happen because only new updates
  42723. // cause delayed states, so we should have processed something.
  42724. // However, this could also happen in an offscreen tree.
  42725. _msUntilTimeout = 0;
  42726. } else {
  42727. // If we don't have a suspense config, we're going to use a
  42728. // heuristic to determine how long we can suspend.
  42729. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  42730. var currentTimeMs = now();
  42731. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  42732. var timeElapsed = currentTimeMs - eventTimeMs;
  42733. if (timeElapsed < 0) {
  42734. // We get this wrong some time since we estimate the time.
  42735. timeElapsed = 0;
  42736. }
  42737. _msUntilTimeout = jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the
  42738. // event time is exact instead of inferred from expiration time
  42739. // we don't need this.
  42740. if (timeUntilExpirationMs < _msUntilTimeout) {
  42741. _msUntilTimeout = timeUntilExpirationMs;
  42742. }
  42743. } // Don't bother with a very short suspense time.
  42744. if (_msUntilTimeout > 10) {
  42745. // The render is suspended, it hasn't timed out, and there's no
  42746. // lower priority work to do. Instead of committing the fallback
  42747. // immediately, wait for more data to arrive.
  42748. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  42749. break;
  42750. }
  42751. } // The work expired. Commit immediately.
  42752. commitRoot(root);
  42753. break;
  42754. }
  42755. case RootCompleted:
  42756. {
  42757. // The work completed. Ready to commit.
  42758. if ( // do not delay if we're inside an act() scope
  42759. !( IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  42760. // If we have exceeded the minimum loading delay, which probably
  42761. // means we have shown a spinner already, we might have to suspend
  42762. // a bit longer to ensure that the spinner is shown for
  42763. // enough time.
  42764. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  42765. if (_msUntilTimeout2 > 10) {
  42766. markRootSuspendedAtTime(root, expirationTime);
  42767. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  42768. break;
  42769. }
  42770. }
  42771. commitRoot(root);
  42772. break;
  42773. }
  42774. default:
  42775. {
  42776. {
  42777. {
  42778. throw Error( "Unknown root exit status." );
  42779. }
  42780. }
  42781. }
  42782. }
  42783. } // This is the entry point for synchronous tasks that don't go
  42784. // through Scheduler
  42785. function performSyncWorkOnRoot(root) {
  42786. // Check if there's expired work on this root. Otherwise, render at Sync.
  42787. var lastExpiredTime = root.lastExpiredTime;
  42788. var expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime : Sync;
  42789. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  42790. {
  42791. throw Error( "Should not already be working." );
  42792. }
  42793. }
  42794. flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  42795. // and prepare a fresh one. Otherwise we'll continue where we left off.
  42796. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
  42797. prepareFreshStack(root, expirationTime);
  42798. startWorkOnPendingInteractions(root, expirationTime);
  42799. } // If we have a work-in-progress fiber, it means there's still work to do
  42800. // in this root.
  42801. if (workInProgress !== null) {
  42802. var prevExecutionContext = executionContext;
  42803. executionContext |= RenderContext;
  42804. var prevDispatcher = pushDispatcher();
  42805. var prevInteractions = pushInteractions(root);
  42806. startWorkLoopTimer(workInProgress);
  42807. do {
  42808. try {
  42809. workLoopSync();
  42810. break;
  42811. } catch (thrownValue) {
  42812. handleError(root, thrownValue);
  42813. }
  42814. } while (true);
  42815. resetContextDependencies();
  42816. executionContext = prevExecutionContext;
  42817. popDispatcher(prevDispatcher);
  42818. {
  42819. popInteractions(prevInteractions);
  42820. }
  42821. if (workInProgressRootExitStatus === RootFatalErrored) {
  42822. var fatalError = workInProgressRootFatalError;
  42823. stopInterruptedWorkLoopTimer();
  42824. prepareFreshStack(root, expirationTime);
  42825. markRootSuspendedAtTime(root, expirationTime);
  42826. ensureRootIsScheduled(root);
  42827. throw fatalError;
  42828. }
  42829. if (workInProgress !== null) {
  42830. // This is a sync render, so we should have finished the whole tree.
  42831. {
  42832. {
  42833. throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
  42834. }
  42835. }
  42836. } else {
  42837. // We now have a consistent tree. Because this is a sync render, we
  42838. // will commit it even if something suspended.
  42839. stopFinishedWorkLoopTimer();
  42840. root.finishedWork = root.current.alternate;
  42841. root.finishedExpirationTime = expirationTime;
  42842. finishSyncRender(root);
  42843. } // Before exiting, make sure there's a callback scheduled for the next
  42844. // pending level.
  42845. ensureRootIsScheduled(root);
  42846. }
  42847. return null;
  42848. }
  42849. function finishSyncRender(root) {
  42850. // Set this to null to indicate there's no in-progress render.
  42851. workInProgressRoot = null;
  42852. commitRoot(root);
  42853. }
  42854. function flushDiscreteUpdates() {
  42855. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  42856. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  42857. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  42858. // as a public API.
  42859. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  42860. {
  42861. if ((executionContext & RenderContext) !== NoContext) {
  42862. error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  42863. }
  42864. } // We're already rendering, so we can't synchronously flush pending work.
  42865. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  42866. // like `el.focus()`. Exit.
  42867. return;
  42868. }
  42869. flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
  42870. // they fire before the next serial event.
  42871. flushPassiveEffects();
  42872. }
  42873. function syncUpdates(fn, a, b, c) {
  42874. return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c));
  42875. }
  42876. function flushPendingDiscreteUpdates() {
  42877. if (rootsWithPendingDiscreteUpdates !== null) {
  42878. // For each root with pending discrete updates, schedule a callback to
  42879. // immediately flush them.
  42880. var roots = rootsWithPendingDiscreteUpdates;
  42881. rootsWithPendingDiscreteUpdates = null;
  42882. roots.forEach(function (expirationTime, root) {
  42883. markRootExpiredAtTime(root, expirationTime);
  42884. ensureRootIsScheduled(root);
  42885. }); // Now flush the immediate queue.
  42886. flushSyncCallbackQueue();
  42887. }
  42888. }
  42889. function batchedUpdates$1(fn, a) {
  42890. var prevExecutionContext = executionContext;
  42891. executionContext |= BatchedContext;
  42892. try {
  42893. return fn(a);
  42894. } finally {
  42895. executionContext = prevExecutionContext;
  42896. if (executionContext === NoContext) {
  42897. // Flush the immediate callbacks that were scheduled during this batch
  42898. flushSyncCallbackQueue();
  42899. }
  42900. }
  42901. }
  42902. function batchedEventUpdates$1(fn, a) {
  42903. var prevExecutionContext = executionContext;
  42904. executionContext |= EventContext;
  42905. try {
  42906. return fn(a);
  42907. } finally {
  42908. executionContext = prevExecutionContext;
  42909. if (executionContext === NoContext) {
  42910. // Flush the immediate callbacks that were scheduled during this batch
  42911. flushSyncCallbackQueue();
  42912. }
  42913. }
  42914. }
  42915. function discreteUpdates$1(fn, a, b, c, d) {
  42916. var prevExecutionContext = executionContext;
  42917. executionContext |= DiscreteEventContext;
  42918. try {
  42919. // Should this
  42920. return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
  42921. } finally {
  42922. executionContext = prevExecutionContext;
  42923. if (executionContext === NoContext) {
  42924. // Flush the immediate callbacks that were scheduled during this batch
  42925. flushSyncCallbackQueue();
  42926. }
  42927. }
  42928. }
  42929. function unbatchedUpdates(fn, a) {
  42930. var prevExecutionContext = executionContext;
  42931. executionContext &= ~BatchedContext;
  42932. executionContext |= LegacyUnbatchedContext;
  42933. try {
  42934. return fn(a);
  42935. } finally {
  42936. executionContext = prevExecutionContext;
  42937. if (executionContext === NoContext) {
  42938. // Flush the immediate callbacks that were scheduled during this batch
  42939. flushSyncCallbackQueue();
  42940. }
  42941. }
  42942. }
  42943. function flushSync(fn, a) {
  42944. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  42945. {
  42946. {
  42947. throw Error( "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering." );
  42948. }
  42949. }
  42950. }
  42951. var prevExecutionContext = executionContext;
  42952. executionContext |= BatchedContext;
  42953. try {
  42954. return runWithPriority$1(ImmediatePriority, fn.bind(null, a));
  42955. } finally {
  42956. executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
  42957. // Note that this will happen even if batchedUpdates is higher up
  42958. // the stack.
  42959. flushSyncCallbackQueue();
  42960. }
  42961. }
  42962. function prepareFreshStack(root, expirationTime) {
  42963. root.finishedWork = null;
  42964. root.finishedExpirationTime = NoWork;
  42965. var timeoutHandle = root.timeoutHandle;
  42966. if (timeoutHandle !== noTimeout) {
  42967. // The root previous suspended and scheduled a timeout to commit a fallback
  42968. // state. Now that we have additional work, cancel the timeout.
  42969. root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  42970. cancelTimeout(timeoutHandle);
  42971. }
  42972. if (workInProgress !== null) {
  42973. var interruptedWork = workInProgress.return;
  42974. while (interruptedWork !== null) {
  42975. unwindInterruptedWork(interruptedWork);
  42976. interruptedWork = interruptedWork.return;
  42977. }
  42978. }
  42979. workInProgressRoot = root;
  42980. workInProgress = createWorkInProgress(root.current, null);
  42981. renderExpirationTime$1 = expirationTime;
  42982. workInProgressRootExitStatus = RootIncomplete;
  42983. workInProgressRootFatalError = null;
  42984. workInProgressRootLatestProcessedExpirationTime = Sync;
  42985. workInProgressRootLatestSuspenseTimeout = Sync;
  42986. workInProgressRootCanSuspendUsingConfig = null;
  42987. workInProgressRootNextUnprocessedUpdateTime = NoWork;
  42988. workInProgressRootHasPendingPing = false;
  42989. {
  42990. spawnedWorkDuringRender = null;
  42991. }
  42992. {
  42993. ReactStrictModeWarnings.discardPendingWarnings();
  42994. }
  42995. }
  42996. function handleError(root, thrownValue) {
  42997. do {
  42998. try {
  42999. // Reset module-level state that was set during the render phase.
  43000. resetContextDependencies();
  43001. resetHooksAfterThrow();
  43002. resetCurrentFiber();
  43003. if (workInProgress === null || workInProgress.return === null) {
  43004. // Expected to be working on a non-root fiber. This is a fatal error
  43005. // because there's no ancestor that can handle it; the root is
  43006. // supposed to capture all errors that weren't caught by an error
  43007. // boundary.
  43008. workInProgressRootExitStatus = RootFatalErrored;
  43009. workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
  43010. // sibling, or the parent if there are no siblings. But since the root
  43011. // has no siblings nor a parent, we set it to null. Usually this is
  43012. // handled by `completeUnitOfWork` or `unwindWork`, but since we're
  43013. // interntionally not calling those, we need set it here.
  43014. // TODO: Consider calling `unwindWork` to pop the contexts.
  43015. workInProgress = null;
  43016. return null;
  43017. }
  43018. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  43019. // Record the time spent rendering before an error was thrown. This
  43020. // avoids inaccurate Profiler durations in the case of a
  43021. // suspended render.
  43022. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  43023. }
  43024. throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1);
  43025. workInProgress = completeUnitOfWork(workInProgress);
  43026. } catch (yetAnotherThrownValue) {
  43027. // Something in the return path also threw.
  43028. thrownValue = yetAnotherThrownValue;
  43029. continue;
  43030. } // Return to the normal work loop.
  43031. return;
  43032. } while (true);
  43033. }
  43034. function pushDispatcher(root) {
  43035. var prevDispatcher = ReactCurrentDispatcher$1.current;
  43036. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  43037. if (prevDispatcher === null) {
  43038. // The React isomorphic package does not include a default dispatcher.
  43039. // Instead the first renderer will lazily attach one, in order to give
  43040. // nicer error messages.
  43041. return ContextOnlyDispatcher;
  43042. } else {
  43043. return prevDispatcher;
  43044. }
  43045. }
  43046. function popDispatcher(prevDispatcher) {
  43047. ReactCurrentDispatcher$1.current = prevDispatcher;
  43048. }
  43049. function pushInteractions(root) {
  43050. {
  43051. var prevInteractions = tracing.__interactionsRef.current;
  43052. tracing.__interactionsRef.current = root.memoizedInteractions;
  43053. return prevInteractions;
  43054. }
  43055. }
  43056. function popInteractions(prevInteractions) {
  43057. {
  43058. tracing.__interactionsRef.current = prevInteractions;
  43059. }
  43060. }
  43061. function markCommitTimeOfFallback() {
  43062. globalMostRecentFallbackTime = now();
  43063. }
  43064. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  43065. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Idle) {
  43066. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  43067. }
  43068. if (suspenseConfig !== null) {
  43069. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Idle) {
  43070. workInProgressRootLatestSuspenseTimeout = expirationTime; // Most of the time we only have one config and getting wrong is not bad.
  43071. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  43072. }
  43073. }
  43074. }
  43075. function markUnprocessedUpdateTime(expirationTime) {
  43076. if (expirationTime > workInProgressRootNextUnprocessedUpdateTime) {
  43077. workInProgressRootNextUnprocessedUpdateTime = expirationTime;
  43078. }
  43079. }
  43080. function renderDidSuspend() {
  43081. if (workInProgressRootExitStatus === RootIncomplete) {
  43082. workInProgressRootExitStatus = RootSuspended;
  43083. }
  43084. }
  43085. function renderDidSuspendDelayIfPossible() {
  43086. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  43087. workInProgressRootExitStatus = RootSuspendedWithDelay;
  43088. } // Check if there's a lower priority update somewhere else in the tree.
  43089. if (workInProgressRootNextUnprocessedUpdateTime !== NoWork && workInProgressRoot !== null) {
  43090. // Mark the current render as suspended, and then mark that there's a
  43091. // pending update.
  43092. // TODO: This should immediately interrupt the current render, instead
  43093. // of waiting until the next time we yield.
  43094. markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1);
  43095. markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime);
  43096. }
  43097. }
  43098. function renderDidError() {
  43099. if (workInProgressRootExitStatus !== RootCompleted) {
  43100. workInProgressRootExitStatus = RootErrored;
  43101. }
  43102. } // Called during render to determine if anything has suspended.
  43103. // Returns false if we're not sure.
  43104. function renderHasNotSuspendedYet() {
  43105. // If something errored or completed, we can't really be sure,
  43106. // so those are false.
  43107. return workInProgressRootExitStatus === RootIncomplete;
  43108. }
  43109. function inferTimeFromExpirationTime(expirationTime) {
  43110. // We don't know exactly when the update was scheduled, but we can infer an
  43111. // approximate start time from the expiration time.
  43112. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  43113. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  43114. }
  43115. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  43116. // We don't know exactly when the update was scheduled, but we can infer an
  43117. // approximate start time from the expiration time by subtracting the timeout
  43118. // that was added to the event time.
  43119. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  43120. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  43121. } // The work loop is an extremely hot path. Tell Closure not to inline it.
  43122. /** @noinline */
  43123. function workLoopSync() {
  43124. // Already timed out, so perform work without checking if we need to yield.
  43125. while (workInProgress !== null) {
  43126. workInProgress = performUnitOfWork(workInProgress);
  43127. }
  43128. }
  43129. /** @noinline */
  43130. function workLoopConcurrent() {
  43131. // Perform work until Scheduler asks us to yield
  43132. while (workInProgress !== null && !shouldYield()) {
  43133. workInProgress = performUnitOfWork(workInProgress);
  43134. }
  43135. }
  43136. function performUnitOfWork(unitOfWork) {
  43137. // The current, flushed, state of this fiber is the alternate. Ideally
  43138. // nothing should rely on this, but relying on it here means that we don't
  43139. // need an additional field on the work in progress.
  43140. var current = unitOfWork.alternate;
  43141. startWorkTimer(unitOfWork);
  43142. setCurrentFiber(unitOfWork);
  43143. var next;
  43144. if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
  43145. startProfilerTimer(unitOfWork);
  43146. next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  43147. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  43148. } else {
  43149. next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  43150. }
  43151. resetCurrentFiber();
  43152. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  43153. if (next === null) {
  43154. // If this doesn't spawn new work, complete the current work.
  43155. next = completeUnitOfWork(unitOfWork);
  43156. }
  43157. ReactCurrentOwner$2.current = null;
  43158. return next;
  43159. }
  43160. function completeUnitOfWork(unitOfWork) {
  43161. // Attempt to complete the current unit of work, then move to the next
  43162. // sibling. If there are no more siblings, return to the parent fiber.
  43163. workInProgress = unitOfWork;
  43164. do {
  43165. // The current, flushed, state of this fiber is the alternate. Ideally
  43166. // nothing should rely on this, but relying on it here means that we don't
  43167. // need an additional field on the work in progress.
  43168. var current = workInProgress.alternate;
  43169. var returnFiber = workInProgress.return; // Check if the work completed or if something threw.
  43170. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  43171. setCurrentFiber(workInProgress);
  43172. var next = void 0;
  43173. if ( (workInProgress.mode & ProfileMode) === NoMode) {
  43174. next = completeWork(current, workInProgress, renderExpirationTime$1);
  43175. } else {
  43176. startProfilerTimer(workInProgress);
  43177. next = completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error.
  43178. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  43179. }
  43180. stopWorkTimer(workInProgress);
  43181. resetCurrentFiber();
  43182. resetChildExpirationTime(workInProgress);
  43183. if (next !== null) {
  43184. // Completing this fiber spawned new work. Work on that next.
  43185. return next;
  43186. }
  43187. if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
  43188. (returnFiber.effectTag & Incomplete) === NoEffect) {
  43189. // Append all the effects of the subtree and this fiber onto the effect
  43190. // list of the parent. The completion order of the children affects the
  43191. // side-effect order.
  43192. if (returnFiber.firstEffect === null) {
  43193. returnFiber.firstEffect = workInProgress.firstEffect;
  43194. }
  43195. if (workInProgress.lastEffect !== null) {
  43196. if (returnFiber.lastEffect !== null) {
  43197. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  43198. }
  43199. returnFiber.lastEffect = workInProgress.lastEffect;
  43200. } // If this fiber had side-effects, we append it AFTER the children's
  43201. // side-effects. We can perform certain side-effects earlier if needed,
  43202. // by doing multiple passes over the effect list. We don't want to
  43203. // schedule our own side-effect on our own list because if end up
  43204. // reusing children we'll schedule this effect onto itself since we're
  43205. // at the end.
  43206. var effectTag = workInProgress.effectTag; // Skip both NoWork and PerformedWork tags when creating the effect
  43207. // list. PerformedWork effect is read by React DevTools but shouldn't be
  43208. // committed.
  43209. if (effectTag > PerformedWork) {
  43210. if (returnFiber.lastEffect !== null) {
  43211. returnFiber.lastEffect.nextEffect = workInProgress;
  43212. } else {
  43213. returnFiber.firstEffect = workInProgress;
  43214. }
  43215. returnFiber.lastEffect = workInProgress;
  43216. }
  43217. }
  43218. } else {
  43219. // This fiber did not complete because something threw. Pop values off
  43220. // the stack without entering the complete phase. If this is a boundary,
  43221. // capture values if possible.
  43222. var _next = unwindWork(workInProgress); // Because this fiber did not complete, don't reset its expiration time.
  43223. if ( (workInProgress.mode & ProfileMode) !== NoMode) {
  43224. // Record the render duration for the fiber that errored.
  43225. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing.
  43226. var actualDuration = workInProgress.actualDuration;
  43227. var child = workInProgress.child;
  43228. while (child !== null) {
  43229. actualDuration += child.actualDuration;
  43230. child = child.sibling;
  43231. }
  43232. workInProgress.actualDuration = actualDuration;
  43233. }
  43234. if (_next !== null) {
  43235. // If completing this work spawned new work, do that next. We'll come
  43236. // back here again.
  43237. // Since we're restarting, remove anything that is not a host effect
  43238. // from the effect tag.
  43239. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  43240. // also captures and restarts.
  43241. stopFailedWorkTimer(workInProgress);
  43242. _next.effectTag &= HostEffectMask;
  43243. return _next;
  43244. }
  43245. stopWorkTimer(workInProgress);
  43246. if (returnFiber !== null) {
  43247. // Mark the parent fiber as incomplete and clear its effect list.
  43248. returnFiber.firstEffect = returnFiber.lastEffect = null;
  43249. returnFiber.effectTag |= Incomplete;
  43250. }
  43251. }
  43252. var siblingFiber = workInProgress.sibling;
  43253. if (siblingFiber !== null) {
  43254. // If there is more work to do in this returnFiber, do that next.
  43255. return siblingFiber;
  43256. } // Otherwise, return to the parent
  43257. workInProgress = returnFiber;
  43258. } while (workInProgress !== null); // We've reached the root.
  43259. if (workInProgressRootExitStatus === RootIncomplete) {
  43260. workInProgressRootExitStatus = RootCompleted;
  43261. }
  43262. return null;
  43263. }
  43264. function getRemainingExpirationTime(fiber) {
  43265. var updateExpirationTime = fiber.expirationTime;
  43266. var childExpirationTime = fiber.childExpirationTime;
  43267. return updateExpirationTime > childExpirationTime ? updateExpirationTime : childExpirationTime;
  43268. }
  43269. function resetChildExpirationTime(completedWork) {
  43270. if (renderExpirationTime$1 !== Never && completedWork.childExpirationTime === Never) {
  43271. // The children of this component are hidden. Don't bubble their
  43272. // expiration times.
  43273. return;
  43274. }
  43275. var newChildExpirationTime = NoWork; // Bubble up the earliest expiration time.
  43276. if ( (completedWork.mode & ProfileMode) !== NoMode) {
  43277. // In profiling mode, resetChildExpirationTime is also used to reset
  43278. // profiler durations.
  43279. var actualDuration = completedWork.actualDuration;
  43280. var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
  43281. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  43282. // When work is done, it should bubble to the parent's actualDuration. If
  43283. // the fiber has not been cloned though, (meaning no work was done), then
  43284. // this value will reflect the amount of time spent working on a previous
  43285. // render. In that case it should not bubble. We determine whether it was
  43286. // cloned by comparing the child pointer.
  43287. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  43288. var child = completedWork.child;
  43289. while (child !== null) {
  43290. var childUpdateExpirationTime = child.expirationTime;
  43291. var childChildExpirationTime = child.childExpirationTime;
  43292. if (childUpdateExpirationTime > newChildExpirationTime) {
  43293. newChildExpirationTime = childUpdateExpirationTime;
  43294. }
  43295. if (childChildExpirationTime > newChildExpirationTime) {
  43296. newChildExpirationTime = childChildExpirationTime;
  43297. }
  43298. if (shouldBubbleActualDurations) {
  43299. actualDuration += child.actualDuration;
  43300. }
  43301. treeBaseDuration += child.treeBaseDuration;
  43302. child = child.sibling;
  43303. }
  43304. completedWork.actualDuration = actualDuration;
  43305. completedWork.treeBaseDuration = treeBaseDuration;
  43306. } else {
  43307. var _child = completedWork.child;
  43308. while (_child !== null) {
  43309. var _childUpdateExpirationTime = _child.expirationTime;
  43310. var _childChildExpirationTime = _child.childExpirationTime;
  43311. if (_childUpdateExpirationTime > newChildExpirationTime) {
  43312. newChildExpirationTime = _childUpdateExpirationTime;
  43313. }
  43314. if (_childChildExpirationTime > newChildExpirationTime) {
  43315. newChildExpirationTime = _childChildExpirationTime;
  43316. }
  43317. _child = _child.sibling;
  43318. }
  43319. }
  43320. completedWork.childExpirationTime = newChildExpirationTime;
  43321. }
  43322. function commitRoot(root) {
  43323. var renderPriorityLevel = getCurrentPriorityLevel();
  43324. runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  43325. return null;
  43326. }
  43327. function commitRootImpl(root, renderPriorityLevel) {
  43328. do {
  43329. // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
  43330. // means `flushPassiveEffects` will sometimes result in additional
  43331. // passive effects. So we need to keep flushing in a loop until there are
  43332. // no more pending effects.
  43333. // TODO: Might be better if `flushPassiveEffects` did not automatically
  43334. // flush synchronous work at the end, to avoid factoring hazards like this.
  43335. flushPassiveEffects();
  43336. } while (rootWithPendingPassiveEffects !== null);
  43337. flushRenderPhaseStrictModeWarningsInDEV();
  43338. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  43339. {
  43340. throw Error( "Should not already be working." );
  43341. }
  43342. }
  43343. var finishedWork = root.finishedWork;
  43344. var expirationTime = root.finishedExpirationTime;
  43345. if (finishedWork === null) {
  43346. return null;
  43347. }
  43348. root.finishedWork = null;
  43349. root.finishedExpirationTime = NoWork;
  43350. if (!(finishedWork !== root.current)) {
  43351. {
  43352. throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
  43353. }
  43354. } // commitRoot never returns a continuation; it always finishes synchronously.
  43355. // So we can clear these now to allow a new callback to be scheduled.
  43356. root.callbackNode = null;
  43357. root.callbackExpirationTime = NoWork;
  43358. root.callbackPriority = NoPriority;
  43359. root.nextKnownPendingLevel = NoWork;
  43360. startCommitTimer(); // Update the first and last pending times on this root. The new first
  43361. // pending time is whatever is left on the root fiber.
  43362. var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(finishedWork);
  43363. markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit);
  43364. if (root === workInProgressRoot) {
  43365. // We can reset these now that they are finished.
  43366. workInProgressRoot = null;
  43367. workInProgress = null;
  43368. renderExpirationTime$1 = NoWork;
  43369. } // This indicates that the last root we worked on is not the same one that
  43370. // we're committing now. This most commonly happens when a suspended root
  43371. // times out.
  43372. // Get the list of effects.
  43373. var firstEffect;
  43374. if (finishedWork.effectTag > PerformedWork) {
  43375. // A fiber's effect list consists only of its children, not itself. So if
  43376. // the root has an effect, we need to add it to the end of the list. The
  43377. // resulting list is the set that would belong to the root's parent, if it
  43378. // had one; that is, all the effects in the tree including the root.
  43379. if (finishedWork.lastEffect !== null) {
  43380. finishedWork.lastEffect.nextEffect = finishedWork;
  43381. firstEffect = finishedWork.firstEffect;
  43382. } else {
  43383. firstEffect = finishedWork;
  43384. }
  43385. } else {
  43386. // There is no effect on the root.
  43387. firstEffect = finishedWork.firstEffect;
  43388. }
  43389. if (firstEffect !== null) {
  43390. var prevExecutionContext = executionContext;
  43391. executionContext |= CommitContext;
  43392. var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles
  43393. ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
  43394. // of the effect list for each phase: all mutation effects come before all
  43395. // layout effects, and so on.
  43396. // The first phase a "before mutation" phase. We use this phase to read the
  43397. // state of the host tree right before we mutate it. This is where
  43398. // getSnapshotBeforeUpdate is called.
  43399. startCommitSnapshotEffectsTimer();
  43400. prepareForCommit(root.containerInfo);
  43401. nextEffect = firstEffect;
  43402. do {
  43403. {
  43404. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  43405. if (hasCaughtError()) {
  43406. if (!(nextEffect !== null)) {
  43407. {
  43408. throw Error( "Should be working on an effect." );
  43409. }
  43410. }
  43411. var error = clearCaughtError();
  43412. captureCommitPhaseError(nextEffect, error);
  43413. nextEffect = nextEffect.nextEffect;
  43414. }
  43415. }
  43416. } while (nextEffect !== null);
  43417. stopCommitSnapshotEffectsTimer();
  43418. {
  43419. // Mark the current commit time to be shared by all Profilers in this
  43420. // batch. This enables them to be grouped later.
  43421. recordCommitTime();
  43422. } // The next phase is the mutation phase, where we mutate the host tree.
  43423. startCommitHostEffectsTimer();
  43424. nextEffect = firstEffect;
  43425. do {
  43426. {
  43427. invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);
  43428. if (hasCaughtError()) {
  43429. if (!(nextEffect !== null)) {
  43430. {
  43431. throw Error( "Should be working on an effect." );
  43432. }
  43433. }
  43434. var _error = clearCaughtError();
  43435. captureCommitPhaseError(nextEffect, _error);
  43436. nextEffect = nextEffect.nextEffect;
  43437. }
  43438. }
  43439. } while (nextEffect !== null);
  43440. stopCommitHostEffectsTimer();
  43441. resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
  43442. // the mutation phase, so that the previous tree is still current during
  43443. // componentWillUnmount, but before the layout phase, so that the finished
  43444. // work is current during componentDidMount/Update.
  43445. root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
  43446. // the host tree after it's been mutated. The idiomatic use case for this is
  43447. // layout, but class component lifecycles also fire here for legacy reasons.
  43448. startCommitLifeCyclesTimer();
  43449. nextEffect = firstEffect;
  43450. do {
  43451. {
  43452. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  43453. if (hasCaughtError()) {
  43454. if (!(nextEffect !== null)) {
  43455. {
  43456. throw Error( "Should be working on an effect." );
  43457. }
  43458. }
  43459. var _error2 = clearCaughtError();
  43460. captureCommitPhaseError(nextEffect, _error2);
  43461. nextEffect = nextEffect.nextEffect;
  43462. }
  43463. }
  43464. } while (nextEffect !== null);
  43465. stopCommitLifeCyclesTimer();
  43466. nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
  43467. // opportunity to paint.
  43468. requestPaint();
  43469. {
  43470. popInteractions(prevInteractions);
  43471. }
  43472. executionContext = prevExecutionContext;
  43473. } else {
  43474. // No effects.
  43475. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
  43476. // no effects.
  43477. // TODO: Maybe there's a better way to report this.
  43478. startCommitSnapshotEffectsTimer();
  43479. stopCommitSnapshotEffectsTimer();
  43480. {
  43481. recordCommitTime();
  43482. }
  43483. startCommitHostEffectsTimer();
  43484. stopCommitHostEffectsTimer();
  43485. startCommitLifeCyclesTimer();
  43486. stopCommitLifeCyclesTimer();
  43487. }
  43488. stopCommitTimer();
  43489. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  43490. if (rootDoesHavePassiveEffects) {
  43491. // This commit has passive effects. Stash a reference to them. But don't
  43492. // schedule a callback until after flushing layout work.
  43493. rootDoesHavePassiveEffects = false;
  43494. rootWithPendingPassiveEffects = root;
  43495. pendingPassiveEffectsExpirationTime = expirationTime;
  43496. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  43497. } else {
  43498. // We are done with the effect chain at this point so let's clear the
  43499. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  43500. // clear this in flushPassiveEffects.
  43501. nextEffect = firstEffect;
  43502. while (nextEffect !== null) {
  43503. var nextNextEffect = nextEffect.nextEffect;
  43504. nextEffect.nextEffect = null;
  43505. nextEffect = nextNextEffect;
  43506. }
  43507. } // Check if there's remaining work on this root
  43508. var remainingExpirationTime = root.firstPendingTime;
  43509. if (remainingExpirationTime !== NoWork) {
  43510. {
  43511. if (spawnedWorkDuringRender !== null) {
  43512. var expirationTimes = spawnedWorkDuringRender;
  43513. spawnedWorkDuringRender = null;
  43514. for (var i = 0; i < expirationTimes.length; i++) {
  43515. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  43516. }
  43517. }
  43518. schedulePendingInteractions(root, remainingExpirationTime);
  43519. }
  43520. } else {
  43521. // If there's no remaining work, we can clear the set of already failed
  43522. // error boundaries.
  43523. legacyErrorBoundariesThatAlreadyFailed = null;
  43524. }
  43525. {
  43526. if (!rootDidHavePassiveEffects) {
  43527. // If there are no passive effects, then we can complete the pending interactions.
  43528. // Otherwise, we'll wait until after the passive effects are flushed.
  43529. // Wait to do this until after remaining work has been scheduled,
  43530. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  43531. finishPendingInteractions(root, expirationTime);
  43532. }
  43533. }
  43534. if (remainingExpirationTime === Sync) {
  43535. // Count the number of times the root synchronously re-renders without
  43536. // finishing. If there are too many, it indicates an infinite update loop.
  43537. if (root === rootWithNestedUpdates) {
  43538. nestedUpdateCount++;
  43539. } else {
  43540. nestedUpdateCount = 0;
  43541. rootWithNestedUpdates = root;
  43542. }
  43543. } else {
  43544. nestedUpdateCount = 0;
  43545. }
  43546. onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any
  43547. // additional work on this root is scheduled.
  43548. ensureRootIsScheduled(root);
  43549. if (hasUncaughtError) {
  43550. hasUncaughtError = false;
  43551. var _error3 = firstUncaughtError;
  43552. firstUncaughtError = null;
  43553. throw _error3;
  43554. }
  43555. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  43556. // This is a legacy edge case. We just committed the initial mount of
  43557. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  43558. // synchronously, but layout updates should be deferred until the end
  43559. // of the batch.
  43560. return null;
  43561. } // If layout work was scheduled, flush it now.
  43562. flushSyncCallbackQueue();
  43563. return null;
  43564. }
  43565. function commitBeforeMutationEffects() {
  43566. while (nextEffect !== null) {
  43567. var effectTag = nextEffect.effectTag;
  43568. if ((effectTag & Snapshot) !== NoEffect) {
  43569. setCurrentFiber(nextEffect);
  43570. recordEffect();
  43571. var current = nextEffect.alternate;
  43572. commitBeforeMutationLifeCycles(current, nextEffect);
  43573. resetCurrentFiber();
  43574. }
  43575. if ((effectTag & Passive) !== NoEffect) {
  43576. // If there are passive effects, schedule a callback to flush at
  43577. // the earliest opportunity.
  43578. if (!rootDoesHavePassiveEffects) {
  43579. rootDoesHavePassiveEffects = true;
  43580. scheduleCallback(NormalPriority, function () {
  43581. flushPassiveEffects();
  43582. return null;
  43583. });
  43584. }
  43585. }
  43586. nextEffect = nextEffect.nextEffect;
  43587. }
  43588. }
  43589. function commitMutationEffects(root, renderPriorityLevel) {
  43590. // TODO: Should probably move the bulk of this function to commitWork.
  43591. while (nextEffect !== null) {
  43592. setCurrentFiber(nextEffect);
  43593. var effectTag = nextEffect.effectTag;
  43594. if (effectTag & ContentReset) {
  43595. commitResetTextContent(nextEffect);
  43596. }
  43597. if (effectTag & Ref) {
  43598. var current = nextEffect.alternate;
  43599. if (current !== null) {
  43600. commitDetachRef(current);
  43601. }
  43602. } // The following switch statement is only concerned about placement,
  43603. // updates, and deletions. To avoid needing to add a case for every possible
  43604. // bitmap value, we remove the secondary effects from the effect tag and
  43605. // switch on that value.
  43606. var primaryEffectTag = effectTag & (Placement | Update | Deletion | Hydrating);
  43607. switch (primaryEffectTag) {
  43608. case Placement:
  43609. {
  43610. commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
  43611. // inserted, before any life-cycles like componentDidMount gets called.
  43612. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  43613. // and isMounted is deprecated anyway so we should be able to kill this.
  43614. nextEffect.effectTag &= ~Placement;
  43615. break;
  43616. }
  43617. case PlacementAndUpdate:
  43618. {
  43619. // Placement
  43620. commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
  43621. // inserted, before any life-cycles like componentDidMount gets called.
  43622. nextEffect.effectTag &= ~Placement; // Update
  43623. var _current = nextEffect.alternate;
  43624. commitWork(_current, nextEffect);
  43625. break;
  43626. }
  43627. case Hydrating:
  43628. {
  43629. nextEffect.effectTag &= ~Hydrating;
  43630. break;
  43631. }
  43632. case HydratingAndUpdate:
  43633. {
  43634. nextEffect.effectTag &= ~Hydrating; // Update
  43635. var _current2 = nextEffect.alternate;
  43636. commitWork(_current2, nextEffect);
  43637. break;
  43638. }
  43639. case Update:
  43640. {
  43641. var _current3 = nextEffect.alternate;
  43642. commitWork(_current3, nextEffect);
  43643. break;
  43644. }
  43645. case Deletion:
  43646. {
  43647. commitDeletion(root, nextEffect, renderPriorityLevel);
  43648. break;
  43649. }
  43650. } // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  43651. recordEffect();
  43652. resetCurrentFiber();
  43653. nextEffect = nextEffect.nextEffect;
  43654. }
  43655. }
  43656. function commitLayoutEffects(root, committedExpirationTime) {
  43657. // TODO: Should probably move the bulk of this function to commitWork.
  43658. while (nextEffect !== null) {
  43659. setCurrentFiber(nextEffect);
  43660. var effectTag = nextEffect.effectTag;
  43661. if (effectTag & (Update | Callback)) {
  43662. recordEffect();
  43663. var current = nextEffect.alternate;
  43664. commitLifeCycles(root, current, nextEffect);
  43665. }
  43666. if (effectTag & Ref) {
  43667. recordEffect();
  43668. commitAttachRef(nextEffect);
  43669. }
  43670. resetCurrentFiber();
  43671. nextEffect = nextEffect.nextEffect;
  43672. }
  43673. }
  43674. function flushPassiveEffects() {
  43675. if (pendingPassiveEffectsRenderPriority !== NoPriority) {
  43676. var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority : pendingPassiveEffectsRenderPriority;
  43677. pendingPassiveEffectsRenderPriority = NoPriority;
  43678. return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
  43679. }
  43680. }
  43681. function flushPassiveEffectsImpl() {
  43682. if (rootWithPendingPassiveEffects === null) {
  43683. return false;
  43684. }
  43685. var root = rootWithPendingPassiveEffects;
  43686. var expirationTime = pendingPassiveEffectsExpirationTime;
  43687. rootWithPendingPassiveEffects = null;
  43688. pendingPassiveEffectsExpirationTime = NoWork;
  43689. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  43690. {
  43691. throw Error( "Cannot flush passive effects while already rendering." );
  43692. }
  43693. }
  43694. var prevExecutionContext = executionContext;
  43695. executionContext |= CommitContext;
  43696. var prevInteractions = pushInteractions(root);
  43697. {
  43698. // Note: This currently assumes there are no passive effects on the root fiber
  43699. // because the root is not part of its own effect list.
  43700. // This could change in the future.
  43701. var _effect2 = root.current.firstEffect;
  43702. while (_effect2 !== null) {
  43703. {
  43704. setCurrentFiber(_effect2);
  43705. invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2);
  43706. if (hasCaughtError()) {
  43707. if (!(_effect2 !== null)) {
  43708. {
  43709. throw Error( "Should be working on an effect." );
  43710. }
  43711. }
  43712. var _error5 = clearCaughtError();
  43713. captureCommitPhaseError(_effect2, _error5);
  43714. }
  43715. resetCurrentFiber();
  43716. }
  43717. var nextNextEffect = _effect2.nextEffect; // Remove nextEffect pointer to assist GC
  43718. _effect2.nextEffect = null;
  43719. _effect2 = nextNextEffect;
  43720. }
  43721. }
  43722. {
  43723. popInteractions(prevInteractions);
  43724. finishPendingInteractions(root, expirationTime);
  43725. }
  43726. executionContext = prevExecutionContext;
  43727. flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
  43728. // exceeds the limit, we'll fire a warning.
  43729. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  43730. return true;
  43731. }
  43732. function isAlreadyFailedLegacyErrorBoundary(instance) {
  43733. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  43734. }
  43735. function markLegacyErrorBoundaryAsFailed(instance) {
  43736. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  43737. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  43738. } else {
  43739. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  43740. }
  43741. }
  43742. function prepareToThrowUncaughtError(error) {
  43743. if (!hasUncaughtError) {
  43744. hasUncaughtError = true;
  43745. firstUncaughtError = error;
  43746. }
  43747. }
  43748. var onUncaughtError = prepareToThrowUncaughtError;
  43749. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  43750. var errorInfo = createCapturedValue(error, sourceFiber);
  43751. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  43752. enqueueUpdate(rootFiber, update);
  43753. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  43754. if (root !== null) {
  43755. ensureRootIsScheduled(root);
  43756. schedulePendingInteractions(root, Sync);
  43757. }
  43758. }
  43759. function captureCommitPhaseError(sourceFiber, error) {
  43760. if (sourceFiber.tag === HostRoot) {
  43761. // Error was thrown at the root. There is no parent, so the root
  43762. // itself should capture it.
  43763. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  43764. return;
  43765. }
  43766. var fiber = sourceFiber.return;
  43767. while (fiber !== null) {
  43768. if (fiber.tag === HostRoot) {
  43769. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  43770. return;
  43771. } else if (fiber.tag === ClassComponent) {
  43772. var ctor = fiber.type;
  43773. var instance = fiber.stateNode;
  43774. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  43775. var errorInfo = createCapturedValue(error, sourceFiber);
  43776. var update = createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync
  43777. Sync);
  43778. enqueueUpdate(fiber, update);
  43779. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  43780. if (root !== null) {
  43781. ensureRootIsScheduled(root);
  43782. schedulePendingInteractions(root, Sync);
  43783. }
  43784. return;
  43785. }
  43786. }
  43787. fiber = fiber.return;
  43788. }
  43789. }
  43790. function pingSuspendedRoot(root, thenable, suspendedTime) {
  43791. var pingCache = root.pingCache;
  43792. if (pingCache !== null) {
  43793. // The thenable resolved, so we no longer need to memoize, because it will
  43794. // never be thrown again.
  43795. pingCache.delete(thenable);
  43796. }
  43797. if (workInProgressRoot === root && renderExpirationTime$1 === suspendedTime) {
  43798. // Received a ping at the same priority level at which we're currently
  43799. // rendering. We might want to restart this render. This should mirror
  43800. // the logic of whether or not a root suspends once it completes.
  43801. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  43802. // we should probably never restart.
  43803. // If we're suspended with delay, we'll always suspend so we can always
  43804. // restart. If we're suspended without any updates, it might be a retry.
  43805. // If it's early in the retry we can restart. We can't know for sure
  43806. // whether we'll eventually process an update during this render pass,
  43807. // but it's somewhat unlikely that we get to a ping before that, since
  43808. // getting to the root most update is usually very fast.
  43809. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  43810. // Restart from the root. Don't need to schedule a ping because
  43811. // we're already working on this tree.
  43812. prepareFreshStack(root, renderExpirationTime$1);
  43813. } else {
  43814. // Even though we can't restart right now, we might get an
  43815. // opportunity later. So we mark this render as having a ping.
  43816. workInProgressRootHasPendingPing = true;
  43817. }
  43818. return;
  43819. }
  43820. if (!isRootSuspendedAtTime(root, suspendedTime)) {
  43821. // The root is no longer suspended at this time.
  43822. return;
  43823. }
  43824. var lastPingedTime = root.lastPingedTime;
  43825. if (lastPingedTime !== NoWork && lastPingedTime < suspendedTime) {
  43826. // There's already a lower priority ping scheduled.
  43827. return;
  43828. } // Mark the time at which this ping was scheduled.
  43829. root.lastPingedTime = suspendedTime;
  43830. ensureRootIsScheduled(root);
  43831. schedulePendingInteractions(root, suspendedTime);
  43832. }
  43833. function retryTimedOutBoundary(boundaryFiber, retryTime) {
  43834. // The boundary fiber (a Suspense component or SuspenseList component)
  43835. // previously was rendered in its fallback state. One of the promises that
  43836. // suspended it has resolved, which means at least part of the tree was
  43837. // likely unblocked. Try rendering again, at a new expiration time.
  43838. if (retryTime === NoWork) {
  43839. var suspenseConfig = null; // Retries don't carry over the already committed update.
  43840. var currentTime = requestCurrentTimeForUpdate();
  43841. retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  43842. } // TODO: Special case idle priority?
  43843. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  43844. if (root !== null) {
  43845. ensureRootIsScheduled(root);
  43846. schedulePendingInteractions(root, retryTime);
  43847. }
  43848. }
  43849. function resolveRetryThenable(boundaryFiber, thenable) {
  43850. var retryTime = NoWork; // Default
  43851. var retryCache;
  43852. {
  43853. retryCache = boundaryFiber.stateNode;
  43854. }
  43855. if (retryCache !== null) {
  43856. // The thenable resolved, so we no longer need to memoize, because it will
  43857. // never be thrown again.
  43858. retryCache.delete(thenable);
  43859. }
  43860. retryTimedOutBoundary(boundaryFiber, retryTime);
  43861. } // Computes the next Just Noticeable Difference (JND) boundary.
  43862. // The theory is that a person can't tell the difference between small differences in time.
  43863. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  43864. // difference in the experience. However, waiting for longer might mean that we can avoid
  43865. // showing an intermediate loading state. The longer we have already waited, the harder it
  43866. // is to tell small differences in time. Therefore, the longer we've already waited,
  43867. // the longer we can wait additionally. At some point we have to give up though.
  43868. // We pick a train model where the next boundary commits at a consistent schedule.
  43869. // These particular numbers are vague estimates. We expect to adjust them based on research.
  43870. function jnd(timeElapsed) {
  43871. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  43872. }
  43873. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  43874. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  43875. if (busyMinDurationMs <= 0) {
  43876. return 0;
  43877. }
  43878. var busyDelayMs = suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire.
  43879. var currentTimeMs = now();
  43880. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  43881. var timeElapsed = currentTimeMs - eventTimeMs;
  43882. if (timeElapsed <= busyDelayMs) {
  43883. // If we haven't yet waited longer than the initial delay, we don't
  43884. // have to wait any additional time.
  43885. return 0;
  43886. }
  43887. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`.
  43888. return msUntilTimeout;
  43889. }
  43890. function checkForNestedUpdates() {
  43891. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  43892. nestedUpdateCount = 0;
  43893. rootWithNestedUpdates = null;
  43894. {
  43895. {
  43896. throw 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." );
  43897. }
  43898. }
  43899. }
  43900. {
  43901. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  43902. nestedPassiveUpdateCount = 0;
  43903. error('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.');
  43904. }
  43905. }
  43906. }
  43907. function flushRenderPhaseStrictModeWarningsInDEV() {
  43908. {
  43909. ReactStrictModeWarnings.flushLegacyContextWarning();
  43910. {
  43911. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  43912. }
  43913. }
  43914. }
  43915. function stopFinishedWorkLoopTimer() {
  43916. var didCompleteRoot = true;
  43917. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  43918. interruptedBy = null;
  43919. }
  43920. function stopInterruptedWorkLoopTimer() {
  43921. // TODO: Track which fiber caused the interruption.
  43922. var didCompleteRoot = false;
  43923. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  43924. interruptedBy = null;
  43925. }
  43926. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  43927. if ( workInProgressRoot !== null && updateExpirationTime > renderExpirationTime$1) {
  43928. interruptedBy = fiberThatReceivedUpdate;
  43929. }
  43930. }
  43931. var didWarnStateUpdateForUnmountedComponent = null;
  43932. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  43933. {
  43934. var tag = fiber.tag;
  43935. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
  43936. // Only warn for user-defined components, not internal ones like Suspense.
  43937. return;
  43938. }
  43939. // the problematic code almost always lies inside that component.
  43940. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  43941. if (didWarnStateUpdateForUnmountedComponent !== null) {
  43942. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  43943. return;
  43944. }
  43945. didWarnStateUpdateForUnmountedComponent.add(componentName);
  43946. } else {
  43947. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  43948. }
  43949. error("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));
  43950. }
  43951. }
  43952. var beginWork$1;
  43953. {
  43954. var dummyFiber = null;
  43955. beginWork$1 = function (current, unitOfWork, expirationTime) {
  43956. // If a component throws an error, we replay it again in a synchronously
  43957. // dispatched event, so that the debugger will treat it as an uncaught
  43958. // error See ReactErrorUtils for more information.
  43959. // Before entering the begin phase, copy the work-in-progress onto a dummy
  43960. // fiber. If beginWork throws, we'll use this to reset the state.
  43961. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  43962. try {
  43963. return beginWork(current, unitOfWork, expirationTime);
  43964. } catch (originalError) {
  43965. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  43966. // Don't replay promises. Treat everything else like an error.
  43967. throw originalError;
  43968. } // Keep this code in sync with handleError; any changes here must have
  43969. // corresponding changes there.
  43970. resetContextDependencies();
  43971. resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
  43972. // same fiber again.
  43973. // Unwind the failed stack frame
  43974. unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.
  43975. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  43976. if ( unitOfWork.mode & ProfileMode) {
  43977. // Reset the profiler timer.
  43978. startProfilerTimer(unitOfWork);
  43979. } // Run beginWork again.
  43980. invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime);
  43981. if (hasCaughtError()) {
  43982. var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  43983. // Rethrow this error instead of the original one.
  43984. throw replayError;
  43985. } else {
  43986. // This branch is reachable if the render phase is impure.
  43987. throw originalError;
  43988. }
  43989. }
  43990. };
  43991. }
  43992. var didWarnAboutUpdateInRender = false;
  43993. var didWarnAboutUpdateInRenderForAnotherComponent;
  43994. {
  43995. didWarnAboutUpdateInRenderForAnotherComponent = new Set();
  43996. }
  43997. function warnAboutRenderPhaseUpdatesInDEV(fiber) {
  43998. {
  43999. if (isRendering && (executionContext & RenderContext) !== NoContext) {
  44000. switch (fiber.tag) {
  44001. case FunctionComponent:
  44002. case ForwardRef:
  44003. case SimpleMemoComponent:
  44004. {
  44005. var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.
  44006. var dedupeKey = renderingComponentName;
  44007. if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
  44008. didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
  44009. var setStateComponentName = getComponentName(fiber.type) || 'Unknown';
  44010. error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://fb.me/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
  44011. }
  44012. break;
  44013. }
  44014. case ClassComponent:
  44015. {
  44016. if (!didWarnAboutUpdateInRender) {
  44017. error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');
  44018. didWarnAboutUpdateInRender = true;
  44019. }
  44020. break;
  44021. }
  44022. }
  44023. }
  44024. }
  44025. } // a 'shared' variable that changes when act() opens/closes in tests.
  44026. var IsThisRendererActing = {
  44027. current: false
  44028. };
  44029. function warnIfNotScopedWithMatchingAct(fiber) {
  44030. {
  44031. if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  44032. error("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));
  44033. }
  44034. }
  44035. }
  44036. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  44037. {
  44038. if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  44039. error('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));
  44040. }
  44041. }
  44042. }
  44043. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  44044. {
  44045. if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  44046. error('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));
  44047. }
  44048. }
  44049. }
  44050. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.
  44051. var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  44052. // scheduler is the actual recommendation. The alternative could be a testing build,
  44053. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  44054. // to get their tests right.
  44055. function warnIfUnmockedScheduler(fiber) {
  44056. {
  44057. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  44058. if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
  44059. didWarnAboutUnmockedScheduler = true;
  44060. error('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');
  44061. }
  44062. }
  44063. }
  44064. }
  44065. function computeThreadID(root, expirationTime) {
  44066. // Interaction threads are unique per root and expiration time.
  44067. return expirationTime * 1000 + root.interactionThreadID;
  44068. }
  44069. function markSpawnedWork(expirationTime) {
  44070. if (spawnedWorkDuringRender === null) {
  44071. spawnedWorkDuringRender = [expirationTime];
  44072. } else {
  44073. spawnedWorkDuringRender.push(expirationTime);
  44074. }
  44075. }
  44076. function scheduleInteractions(root, expirationTime, interactions) {
  44077. if (interactions.size > 0) {
  44078. var pendingInteractionMap = root.pendingInteractionMap;
  44079. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  44080. if (pendingInteractions != null) {
  44081. interactions.forEach(function (interaction) {
  44082. if (!pendingInteractions.has(interaction)) {
  44083. // Update the pending async work count for previously unscheduled interaction.
  44084. interaction.__count++;
  44085. }
  44086. pendingInteractions.add(interaction);
  44087. });
  44088. } else {
  44089. pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions.
  44090. interactions.forEach(function (interaction) {
  44091. interaction.__count++;
  44092. });
  44093. }
  44094. var subscriber = tracing.__subscriberRef.current;
  44095. if (subscriber !== null) {
  44096. var threadID = computeThreadID(root, expirationTime);
  44097. subscriber.onWorkScheduled(interactions, threadID);
  44098. }
  44099. }
  44100. }
  44101. function schedulePendingInteractions(root, expirationTime) {
  44102. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  44103. }
  44104. function startWorkOnPendingInteractions(root, expirationTime) {
  44105. // we can accurately attribute time spent working on it, And so that cascading
  44106. // work triggered during the render phase will be associated with it.
  44107. var interactions = new Set();
  44108. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  44109. if (scheduledExpirationTime >= expirationTime) {
  44110. scheduledInteractions.forEach(function (interaction) {
  44111. return interactions.add(interaction);
  44112. });
  44113. }
  44114. }); // Store the current set of interactions on the FiberRoot for a few reasons:
  44115. // We can re-use it in hot functions like performConcurrentWorkOnRoot()
  44116. // without having to recalculate it. We will also use it in commitWork() to
  44117. // pass to any Profiler onRender() hooks. This also provides DevTools with a
  44118. // way to access it when the onCommitRoot() hook is called.
  44119. root.memoizedInteractions = interactions;
  44120. if (interactions.size > 0) {
  44121. var subscriber = tracing.__subscriberRef.current;
  44122. if (subscriber !== null) {
  44123. var threadID = computeThreadID(root, expirationTime);
  44124. try {
  44125. subscriber.onWorkStarted(interactions, threadID);
  44126. } catch (error) {
  44127. // If the subscriber throws, rethrow it in a separate task
  44128. scheduleCallback(ImmediatePriority, function () {
  44129. throw error;
  44130. });
  44131. }
  44132. }
  44133. }
  44134. }
  44135. function finishPendingInteractions(root, committedExpirationTime) {
  44136. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  44137. var subscriber;
  44138. try {
  44139. subscriber = tracing.__subscriberRef.current;
  44140. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  44141. var threadID = computeThreadID(root, committedExpirationTime);
  44142. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  44143. }
  44144. } catch (error) {
  44145. // If the subscriber throws, rethrow it in a separate task
  44146. scheduleCallback(ImmediatePriority, function () {
  44147. throw error;
  44148. });
  44149. } finally {
  44150. // Clear completed interactions from the pending Map.
  44151. // Unless the render was suspended or cascading work was scheduled,
  44152. // In which case– leave pending interactions until the subsequent render.
  44153. var pendingInteractionMap = root.pendingInteractionMap;
  44154. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  44155. // Only decrement the pending interaction count if we're done.
  44156. // If there's still work at the current priority,
  44157. // That indicates that we are waiting for suspense data.
  44158. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  44159. pendingInteractionMap.delete(scheduledExpirationTime);
  44160. scheduledInteractions.forEach(function (interaction) {
  44161. interaction.__count--;
  44162. if (subscriber !== null && interaction.__count === 0) {
  44163. try {
  44164. subscriber.onInteractionScheduledWorkCompleted(interaction);
  44165. } catch (error) {
  44166. // If the subscriber throws, rethrow it in a separate task
  44167. scheduleCallback(ImmediatePriority, function () {
  44168. throw error;
  44169. });
  44170. }
  44171. }
  44172. });
  44173. }
  44174. });
  44175. }
  44176. }
  44177. var onScheduleFiberRoot = null;
  44178. var onCommitFiberRoot = null;
  44179. var onCommitFiberUnmount = null;
  44180. var hasLoggedError = false;
  44181. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  44182. function injectInternals(internals) {
  44183. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  44184. // No DevTools
  44185. return false;
  44186. }
  44187. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  44188. if (hook.isDisabled) {
  44189. // This isn't a real property on the hook, but it can be set to opt out
  44190. // of DevTools integration and associated warnings and logs.
  44191. // https://github.com/facebook/react/issues/3877
  44192. return true;
  44193. }
  44194. if (!hook.supportsFiber) {
  44195. {
  44196. error('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');
  44197. } // DevTools exists, even though it doesn't support Fiber.
  44198. return true;
  44199. }
  44200. try {
  44201. var rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
  44202. if (true) {
  44203. // Only used by Fast Refresh
  44204. if (typeof hook.onScheduleFiberRoot === 'function') {
  44205. onScheduleFiberRoot = function (root, children) {
  44206. try {
  44207. hook.onScheduleFiberRoot(rendererID, root, children);
  44208. } catch (err) {
  44209. if ( true && !hasLoggedError) {
  44210. hasLoggedError = true;
  44211. error('React instrumentation encountered an error: %s', err);
  44212. }
  44213. }
  44214. };
  44215. }
  44216. }
  44217. onCommitFiberRoot = function (root, expirationTime) {
  44218. try {
  44219. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  44220. if (enableProfilerTimer) {
  44221. var currentTime = getCurrentTime();
  44222. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  44223. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  44224. } else {
  44225. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  44226. }
  44227. } catch (err) {
  44228. if (true) {
  44229. if (!hasLoggedError) {
  44230. hasLoggedError = true;
  44231. error('React instrumentation encountered an error: %s', err);
  44232. }
  44233. }
  44234. }
  44235. };
  44236. onCommitFiberUnmount = function (fiber) {
  44237. try {
  44238. hook.onCommitFiberUnmount(rendererID, fiber);
  44239. } catch (err) {
  44240. if (true) {
  44241. if (!hasLoggedError) {
  44242. hasLoggedError = true;
  44243. error('React instrumentation encountered an error: %s', err);
  44244. }
  44245. }
  44246. }
  44247. };
  44248. } catch (err) {
  44249. // Catch all errors because it is unsafe to throw during initialization.
  44250. {
  44251. error('React instrumentation encountered an error: %s.', err);
  44252. }
  44253. } // DevTools exists
  44254. return true;
  44255. }
  44256. function onScheduleRoot(root, children) {
  44257. if (typeof onScheduleFiberRoot === 'function') {
  44258. onScheduleFiberRoot(root, children);
  44259. }
  44260. }
  44261. function onCommitRoot(root, expirationTime) {
  44262. if (typeof onCommitFiberRoot === 'function') {
  44263. onCommitFiberRoot(root, expirationTime);
  44264. }
  44265. }
  44266. function onCommitUnmount(fiber) {
  44267. if (typeof onCommitFiberUnmount === 'function') {
  44268. onCommitFiberUnmount(fiber);
  44269. }
  44270. }
  44271. var hasBadMapPolyfill;
  44272. {
  44273. hasBadMapPolyfill = false;
  44274. try {
  44275. var nonExtensibleObject = Object.preventExtensions({});
  44276. var testMap = new Map([[nonExtensibleObject, null]]);
  44277. var testSet = new Set([nonExtensibleObject]); // This is necessary for Rollup to not consider these unused.
  44278. // https://github.com/rollup/rollup/issues/1771
  44279. // TODO: we can remove these if Rollup fixes the bug.
  44280. testMap.set(0, 0);
  44281. testSet.add(0);
  44282. } catch (e) {
  44283. // TODO: Consider warning about bad polyfills
  44284. hasBadMapPolyfill = true;
  44285. }
  44286. }
  44287. var debugCounter = 1;
  44288. function FiberNode(tag, pendingProps, key, mode) {
  44289. // Instance
  44290. this.tag = tag;
  44291. this.key = key;
  44292. this.elementType = null;
  44293. this.type = null;
  44294. this.stateNode = null; // Fiber
  44295. this.return = null;
  44296. this.child = null;
  44297. this.sibling = null;
  44298. this.index = 0;
  44299. this.ref = null;
  44300. this.pendingProps = pendingProps;
  44301. this.memoizedProps = null;
  44302. this.updateQueue = null;
  44303. this.memoizedState = null;
  44304. this.dependencies = null;
  44305. this.mode = mode; // Effects
  44306. this.effectTag = NoEffect;
  44307. this.nextEffect = null;
  44308. this.firstEffect = null;
  44309. this.lastEffect = null;
  44310. this.expirationTime = NoWork;
  44311. this.childExpirationTime = NoWork;
  44312. this.alternate = null;
  44313. {
  44314. // Note: The following is done to avoid a v8 performance cliff.
  44315. //
  44316. // Initializing the fields below to smis and later updating them with
  44317. // double values will cause Fibers to end up having separate shapes.
  44318. // This behavior/bug has something to do with Object.preventExtension().
  44319. // Fortunately this only impacts DEV builds.
  44320. // Unfortunately it makes React unusably slow for some applications.
  44321. // To work around this, initialize the fields below with doubles.
  44322. //
  44323. // Learn more about this here:
  44324. // https://github.com/facebook/react/issues/14365
  44325. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  44326. this.actualDuration = Number.NaN;
  44327. this.actualStartTime = Number.NaN;
  44328. this.selfBaseDuration = Number.NaN;
  44329. this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
  44330. // This won't trigger the performance cliff mentioned above,
  44331. // and it simplifies other profiler code (including DevTools).
  44332. this.actualDuration = 0;
  44333. this.actualStartTime = -1;
  44334. this.selfBaseDuration = 0;
  44335. this.treeBaseDuration = 0;
  44336. } // This is normally DEV-only except www when it adds listeners.
  44337. // TODO: remove the User Timing integration in favor of Root Events.
  44338. {
  44339. this._debugID = debugCounter++;
  44340. this._debugIsCurrentlyTiming = false;
  44341. }
  44342. {
  44343. this._debugSource = null;
  44344. this._debugOwner = null;
  44345. this._debugNeedsRemount = false;
  44346. this._debugHookTypes = null;
  44347. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  44348. Object.preventExtensions(this);
  44349. }
  44350. }
  44351. } // This is a constructor function, rather than a POJO constructor, still
  44352. // please ensure we do the following:
  44353. // 1) Nobody should add any instance methods on this. Instance methods can be
  44354. // more difficult to predict when they get optimized and they are almost
  44355. // never inlined properly in static compilers.
  44356. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  44357. // always know when it is a fiber.
  44358. // 3) We might want to experiment with using numeric keys since they are easier
  44359. // to optimize in a non-JIT environment.
  44360. // 4) We can easily go from a constructor to a createFiber object literal if that
  44361. // is faster.
  44362. // 5) It should be easy to port this to a C struct and keep a C implementation
  44363. // compatible.
  44364. var createFiber = function (tag, pendingProps, key, mode) {
  44365. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  44366. return new FiberNode(tag, pendingProps, key, mode);
  44367. };
  44368. function shouldConstruct(Component) {
  44369. var prototype = Component.prototype;
  44370. return !!(prototype && prototype.isReactComponent);
  44371. }
  44372. function isSimpleFunctionComponent(type) {
  44373. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  44374. }
  44375. function resolveLazyComponentTag(Component) {
  44376. if (typeof Component === 'function') {
  44377. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  44378. } else if (Component !== undefined && Component !== null) {
  44379. var $$typeof = Component.$$typeof;
  44380. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  44381. return ForwardRef;
  44382. }
  44383. if ($$typeof === REACT_MEMO_TYPE) {
  44384. return MemoComponent;
  44385. }
  44386. }
  44387. return IndeterminateComponent;
  44388. } // This is used to create an alternate fiber to do work on.
  44389. function createWorkInProgress(current, pendingProps) {
  44390. var workInProgress = current.alternate;
  44391. if (workInProgress === null) {
  44392. // We use a double buffering pooling technique because we know that we'll
  44393. // only ever need at most two versions of a tree. We pool the "other" unused
  44394. // node that we're free to reuse. This is lazily created to avoid allocating
  44395. // extra objects for things that are never updated. It also allow us to
  44396. // reclaim the extra memory if needed.
  44397. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  44398. workInProgress.elementType = current.elementType;
  44399. workInProgress.type = current.type;
  44400. workInProgress.stateNode = current.stateNode;
  44401. {
  44402. // DEV-only fields
  44403. {
  44404. workInProgress._debugID = current._debugID;
  44405. }
  44406. workInProgress._debugSource = current._debugSource;
  44407. workInProgress._debugOwner = current._debugOwner;
  44408. workInProgress._debugHookTypes = current._debugHookTypes;
  44409. }
  44410. workInProgress.alternate = current;
  44411. current.alternate = workInProgress;
  44412. } else {
  44413. workInProgress.pendingProps = pendingProps; // We already have an alternate.
  44414. // Reset the effect tag.
  44415. workInProgress.effectTag = NoEffect; // The effect list is no longer valid.
  44416. workInProgress.nextEffect = null;
  44417. workInProgress.firstEffect = null;
  44418. workInProgress.lastEffect = null;
  44419. {
  44420. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  44421. // This prevents time from endlessly accumulating in new commits.
  44422. // This has the downside of resetting values for different priority renders,
  44423. // But works for yielding (the common case) and should support resuming.
  44424. workInProgress.actualDuration = 0;
  44425. workInProgress.actualStartTime = -1;
  44426. }
  44427. }
  44428. workInProgress.childExpirationTime = current.childExpirationTime;
  44429. workInProgress.expirationTime = current.expirationTime;
  44430. workInProgress.child = current.child;
  44431. workInProgress.memoizedProps = current.memoizedProps;
  44432. workInProgress.memoizedState = current.memoizedState;
  44433. workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  44434. // it cannot be shared with the current fiber.
  44435. var currentDependencies = current.dependencies;
  44436. workInProgress.dependencies = currentDependencies === null ? null : {
  44437. expirationTime: currentDependencies.expirationTime,
  44438. firstContext: currentDependencies.firstContext,
  44439. responders: currentDependencies.responders
  44440. }; // These will be overridden during the parent's reconciliation
  44441. workInProgress.sibling = current.sibling;
  44442. workInProgress.index = current.index;
  44443. workInProgress.ref = current.ref;
  44444. {
  44445. workInProgress.selfBaseDuration = current.selfBaseDuration;
  44446. workInProgress.treeBaseDuration = current.treeBaseDuration;
  44447. }
  44448. {
  44449. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  44450. switch (workInProgress.tag) {
  44451. case IndeterminateComponent:
  44452. case FunctionComponent:
  44453. case SimpleMemoComponent:
  44454. workInProgress.type = resolveFunctionForHotReloading(current.type);
  44455. break;
  44456. case ClassComponent:
  44457. workInProgress.type = resolveClassForHotReloading(current.type);
  44458. break;
  44459. case ForwardRef:
  44460. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  44461. break;
  44462. }
  44463. }
  44464. return workInProgress;
  44465. } // Used to reuse a Fiber for a second pass.
  44466. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  44467. // This resets the Fiber to what createFiber or createWorkInProgress would
  44468. // have set the values to before during the first pass. Ideally this wouldn't
  44469. // be necessary but unfortunately many code paths reads from the workInProgress
  44470. // when they should be reading from current and writing to workInProgress.
  44471. // We assume pendingProps, index, key, ref, return are still untouched to
  44472. // avoid doing another reconciliation.
  44473. // Reset the effect tag but keep any Placement tags, since that's something
  44474. // that child fiber is setting, not the reconciliation.
  44475. workInProgress.effectTag &= Placement; // The effect list is no longer valid.
  44476. workInProgress.nextEffect = null;
  44477. workInProgress.firstEffect = null;
  44478. workInProgress.lastEffect = null;
  44479. var current = workInProgress.alternate;
  44480. if (current === null) {
  44481. // Reset to createFiber's initial values.
  44482. workInProgress.childExpirationTime = NoWork;
  44483. workInProgress.expirationTime = renderExpirationTime;
  44484. workInProgress.child = null;
  44485. workInProgress.memoizedProps = null;
  44486. workInProgress.memoizedState = null;
  44487. workInProgress.updateQueue = null;
  44488. workInProgress.dependencies = null;
  44489. {
  44490. // Note: We don't reset the actualTime counts. It's useful to accumulate
  44491. // actual time across multiple render passes.
  44492. workInProgress.selfBaseDuration = 0;
  44493. workInProgress.treeBaseDuration = 0;
  44494. }
  44495. } else {
  44496. // Reset to the cloned values that createWorkInProgress would've.
  44497. workInProgress.childExpirationTime = current.childExpirationTime;
  44498. workInProgress.expirationTime = current.expirationTime;
  44499. workInProgress.child = current.child;
  44500. workInProgress.memoizedProps = current.memoizedProps;
  44501. workInProgress.memoizedState = current.memoizedState;
  44502. workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  44503. // it cannot be shared with the current fiber.
  44504. var currentDependencies = current.dependencies;
  44505. workInProgress.dependencies = currentDependencies === null ? null : {
  44506. expirationTime: currentDependencies.expirationTime,
  44507. firstContext: currentDependencies.firstContext,
  44508. responders: currentDependencies.responders
  44509. };
  44510. {
  44511. // Note: We don't reset the actualTime counts. It's useful to accumulate
  44512. // actual time across multiple render passes.
  44513. workInProgress.selfBaseDuration = current.selfBaseDuration;
  44514. workInProgress.treeBaseDuration = current.treeBaseDuration;
  44515. }
  44516. }
  44517. return workInProgress;
  44518. }
  44519. function createHostRootFiber(tag) {
  44520. var mode;
  44521. if (tag === ConcurrentRoot) {
  44522. mode = ConcurrentMode | BlockingMode | StrictMode;
  44523. } else if (tag === BlockingRoot) {
  44524. mode = BlockingMode | StrictMode;
  44525. } else {
  44526. mode = NoMode;
  44527. }
  44528. if ( isDevToolsPresent) {
  44529. // Always collect profile timings when DevTools are present.
  44530. // This enables DevTools to start capturing timing at any point–
  44531. // Without some nodes in the tree having empty base times.
  44532. mode |= ProfileMode;
  44533. }
  44534. return createFiber(HostRoot, null, null, mode);
  44535. }
  44536. function createFiberFromTypeAndProps(type, // React$ElementType
  44537. key, pendingProps, owner, mode, expirationTime) {
  44538. var fiber;
  44539. var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  44540. var resolvedType = type;
  44541. if (typeof type === 'function') {
  44542. if (shouldConstruct(type)) {
  44543. fiberTag = ClassComponent;
  44544. {
  44545. resolvedType = resolveClassForHotReloading(resolvedType);
  44546. }
  44547. } else {
  44548. {
  44549. resolvedType = resolveFunctionForHotReloading(resolvedType);
  44550. }
  44551. }
  44552. } else if (typeof type === 'string') {
  44553. fiberTag = HostComponent;
  44554. } else {
  44555. getTag: switch (type) {
  44556. case REACT_FRAGMENT_TYPE:
  44557. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  44558. case REACT_CONCURRENT_MODE_TYPE:
  44559. fiberTag = Mode;
  44560. mode |= ConcurrentMode | BlockingMode | StrictMode;
  44561. break;
  44562. case REACT_STRICT_MODE_TYPE:
  44563. fiberTag = Mode;
  44564. mode |= StrictMode;
  44565. break;
  44566. case REACT_PROFILER_TYPE:
  44567. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  44568. case REACT_SUSPENSE_TYPE:
  44569. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  44570. case REACT_SUSPENSE_LIST_TYPE:
  44571. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  44572. default:
  44573. {
  44574. if (typeof type === 'object' && type !== null) {
  44575. switch (type.$$typeof) {
  44576. case REACT_PROVIDER_TYPE:
  44577. fiberTag = ContextProvider;
  44578. break getTag;
  44579. case REACT_CONTEXT_TYPE:
  44580. // This is a consumer
  44581. fiberTag = ContextConsumer;
  44582. break getTag;
  44583. case REACT_FORWARD_REF_TYPE:
  44584. fiberTag = ForwardRef;
  44585. {
  44586. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  44587. }
  44588. break getTag;
  44589. case REACT_MEMO_TYPE:
  44590. fiberTag = MemoComponent;
  44591. break getTag;
  44592. case REACT_LAZY_TYPE:
  44593. fiberTag = LazyComponent;
  44594. resolvedType = null;
  44595. break getTag;
  44596. case REACT_BLOCK_TYPE:
  44597. fiberTag = Block;
  44598. break getTag;
  44599. }
  44600. }
  44601. var info = '';
  44602. {
  44603. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  44604. 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.';
  44605. }
  44606. var ownerName = owner ? getComponentName(owner.type) : null;
  44607. if (ownerName) {
  44608. info += '\n\nCheck the render method of `' + ownerName + '`.';
  44609. }
  44610. }
  44611. {
  44612. {
  44613. throw 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 );
  44614. }
  44615. }
  44616. }
  44617. }
  44618. }
  44619. fiber = createFiber(fiberTag, pendingProps, key, mode);
  44620. fiber.elementType = type;
  44621. fiber.type = resolvedType;
  44622. fiber.expirationTime = expirationTime;
  44623. return fiber;
  44624. }
  44625. function createFiberFromElement(element, mode, expirationTime) {
  44626. var owner = null;
  44627. {
  44628. owner = element._owner;
  44629. }
  44630. var type = element.type;
  44631. var key = element.key;
  44632. var pendingProps = element.props;
  44633. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  44634. {
  44635. fiber._debugSource = element._source;
  44636. fiber._debugOwner = element._owner;
  44637. }
  44638. return fiber;
  44639. }
  44640. function createFiberFromFragment(elements, mode, expirationTime, key) {
  44641. var fiber = createFiber(Fragment, elements, key, mode);
  44642. fiber.expirationTime = expirationTime;
  44643. return fiber;
  44644. }
  44645. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  44646. {
  44647. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  44648. error('Profiler must specify an "id" string and "onRender" function as props');
  44649. }
  44650. }
  44651. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  44652. fiber.elementType = REACT_PROFILER_TYPE;
  44653. fiber.type = REACT_PROFILER_TYPE;
  44654. fiber.expirationTime = expirationTime;
  44655. return fiber;
  44656. }
  44657. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  44658. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  44659. // This needs to be fixed in getComponentName so that it relies on the tag
  44660. // instead.
  44661. fiber.type = REACT_SUSPENSE_TYPE;
  44662. fiber.elementType = REACT_SUSPENSE_TYPE;
  44663. fiber.expirationTime = expirationTime;
  44664. return fiber;
  44665. }
  44666. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  44667. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  44668. {
  44669. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  44670. // This needs to be fixed in getComponentName so that it relies on the tag
  44671. // instead.
  44672. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  44673. }
  44674. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  44675. fiber.expirationTime = expirationTime;
  44676. return fiber;
  44677. }
  44678. function createFiberFromText(content, mode, expirationTime) {
  44679. var fiber = createFiber(HostText, content, null, mode);
  44680. fiber.expirationTime = expirationTime;
  44681. return fiber;
  44682. }
  44683. function createFiberFromHostInstanceForDeletion() {
  44684. var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.
  44685. fiber.elementType = 'DELETED';
  44686. fiber.type = 'DELETED';
  44687. return fiber;
  44688. }
  44689. function createFiberFromPortal(portal, mode, expirationTime) {
  44690. var pendingProps = portal.children !== null ? portal.children : [];
  44691. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  44692. fiber.expirationTime = expirationTime;
  44693. fiber.stateNode = {
  44694. containerInfo: portal.containerInfo,
  44695. pendingChildren: null,
  44696. // Used by persistent updates
  44697. implementation: portal.implementation
  44698. };
  44699. return fiber;
  44700. } // Used for stashing WIP properties to replay failed work in DEV.
  44701. function assignFiberPropertiesInDEV(target, source) {
  44702. if (target === null) {
  44703. // This Fiber's initial properties will always be overwritten.
  44704. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  44705. target = createFiber(IndeterminateComponent, null, null, NoMode);
  44706. } // This is intentionally written as a list of all properties.
  44707. // We tried to use Object.assign() instead but this is called in
  44708. // the hottest path, and Object.assign() was too slow:
  44709. // https://github.com/facebook/react/issues/12502
  44710. // This code is DEV-only so size is not a concern.
  44711. target.tag = source.tag;
  44712. target.key = source.key;
  44713. target.elementType = source.elementType;
  44714. target.type = source.type;
  44715. target.stateNode = source.stateNode;
  44716. target.return = source.return;
  44717. target.child = source.child;
  44718. target.sibling = source.sibling;
  44719. target.index = source.index;
  44720. target.ref = source.ref;
  44721. target.pendingProps = source.pendingProps;
  44722. target.memoizedProps = source.memoizedProps;
  44723. target.updateQueue = source.updateQueue;
  44724. target.memoizedState = source.memoizedState;
  44725. target.dependencies = source.dependencies;
  44726. target.mode = source.mode;
  44727. target.effectTag = source.effectTag;
  44728. target.nextEffect = source.nextEffect;
  44729. target.firstEffect = source.firstEffect;
  44730. target.lastEffect = source.lastEffect;
  44731. target.expirationTime = source.expirationTime;
  44732. target.childExpirationTime = source.childExpirationTime;
  44733. target.alternate = source.alternate;
  44734. {
  44735. target.actualDuration = source.actualDuration;
  44736. target.actualStartTime = source.actualStartTime;
  44737. target.selfBaseDuration = source.selfBaseDuration;
  44738. target.treeBaseDuration = source.treeBaseDuration;
  44739. }
  44740. {
  44741. target._debugID = source._debugID;
  44742. }
  44743. target._debugSource = source._debugSource;
  44744. target._debugOwner = source._debugOwner;
  44745. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  44746. target._debugNeedsRemount = source._debugNeedsRemount;
  44747. target._debugHookTypes = source._debugHookTypes;
  44748. return target;
  44749. }
  44750. function FiberRootNode(containerInfo, tag, hydrate) {
  44751. this.tag = tag;
  44752. this.current = null;
  44753. this.containerInfo = containerInfo;
  44754. this.pendingChildren = null;
  44755. this.pingCache = null;
  44756. this.finishedExpirationTime = NoWork;
  44757. this.finishedWork = null;
  44758. this.timeoutHandle = noTimeout;
  44759. this.context = null;
  44760. this.pendingContext = null;
  44761. this.hydrate = hydrate;
  44762. this.callbackNode = null;
  44763. this.callbackPriority = NoPriority;
  44764. this.firstPendingTime = NoWork;
  44765. this.firstSuspendedTime = NoWork;
  44766. this.lastSuspendedTime = NoWork;
  44767. this.nextKnownPendingLevel = NoWork;
  44768. this.lastPingedTime = NoWork;
  44769. this.lastExpiredTime = NoWork;
  44770. {
  44771. this.interactionThreadID = tracing.unstable_getThreadID();
  44772. this.memoizedInteractions = new Set();
  44773. this.pendingInteractionMap = new Map();
  44774. }
  44775. }
  44776. function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
  44777. var root = new FiberRootNode(containerInfo, tag, hydrate);
  44778. // stateNode is any.
  44779. var uninitializedFiber = createHostRootFiber(tag);
  44780. root.current = uninitializedFiber;
  44781. uninitializedFiber.stateNode = root;
  44782. initializeUpdateQueue(uninitializedFiber);
  44783. return root;
  44784. }
  44785. function isRootSuspendedAtTime(root, expirationTime) {
  44786. var firstSuspendedTime = root.firstSuspendedTime;
  44787. var lastSuspendedTime = root.lastSuspendedTime;
  44788. return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime;
  44789. }
  44790. function markRootSuspendedAtTime(root, expirationTime) {
  44791. var firstSuspendedTime = root.firstSuspendedTime;
  44792. var lastSuspendedTime = root.lastSuspendedTime;
  44793. if (firstSuspendedTime < expirationTime) {
  44794. root.firstSuspendedTime = expirationTime;
  44795. }
  44796. if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) {
  44797. root.lastSuspendedTime = expirationTime;
  44798. }
  44799. if (expirationTime <= root.lastPingedTime) {
  44800. root.lastPingedTime = NoWork;
  44801. }
  44802. if (expirationTime <= root.lastExpiredTime) {
  44803. root.lastExpiredTime = NoWork;
  44804. }
  44805. }
  44806. function markRootUpdatedAtTime(root, expirationTime) {
  44807. // Update the range of pending times
  44808. var firstPendingTime = root.firstPendingTime;
  44809. if (expirationTime > firstPendingTime) {
  44810. root.firstPendingTime = expirationTime;
  44811. } // Update the range of suspended times. Treat everything lower priority or
  44812. // equal to this update as unsuspended.
  44813. var firstSuspendedTime = root.firstSuspendedTime;
  44814. if (firstSuspendedTime !== NoWork) {
  44815. if (expirationTime >= firstSuspendedTime) {
  44816. // The entire suspended range is now unsuspended.
  44817. root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  44818. } else if (expirationTime >= root.lastSuspendedTime) {
  44819. root.lastSuspendedTime = expirationTime + 1;
  44820. } // This is a pending level. Check if it's higher priority than the next
  44821. // known pending level.
  44822. if (expirationTime > root.nextKnownPendingLevel) {
  44823. root.nextKnownPendingLevel = expirationTime;
  44824. }
  44825. }
  44826. }
  44827. function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) {
  44828. // Update the range of pending times
  44829. root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or
  44830. // equal to this update as unsuspended.
  44831. if (finishedExpirationTime <= root.lastSuspendedTime) {
  44832. // The entire suspended range is now unsuspended.
  44833. root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  44834. } else if (finishedExpirationTime <= root.firstSuspendedTime) {
  44835. // Part of the suspended range is now unsuspended. Narrow the range to
  44836. // include everything between the unsuspended time (non-inclusive) and the
  44837. // last suspended time.
  44838. root.firstSuspendedTime = finishedExpirationTime - 1;
  44839. }
  44840. if (finishedExpirationTime <= root.lastPingedTime) {
  44841. // Clear the pinged time
  44842. root.lastPingedTime = NoWork;
  44843. }
  44844. if (finishedExpirationTime <= root.lastExpiredTime) {
  44845. // Clear the expired time
  44846. root.lastExpiredTime = NoWork;
  44847. }
  44848. }
  44849. function markRootExpiredAtTime(root, expirationTime) {
  44850. var lastExpiredTime = root.lastExpiredTime;
  44851. if (lastExpiredTime === NoWork || lastExpiredTime > expirationTime) {
  44852. root.lastExpiredTime = expirationTime;
  44853. }
  44854. }
  44855. var didWarnAboutNestedUpdates;
  44856. var didWarnAboutFindNodeInStrictMode;
  44857. {
  44858. didWarnAboutNestedUpdates = false;
  44859. didWarnAboutFindNodeInStrictMode = {};
  44860. }
  44861. function getContextForSubtree(parentComponent) {
  44862. if (!parentComponent) {
  44863. return emptyContextObject;
  44864. }
  44865. var fiber = get(parentComponent);
  44866. var parentContext = findCurrentUnmaskedContext(fiber);
  44867. if (fiber.tag === ClassComponent) {
  44868. var Component = fiber.type;
  44869. if (isContextProvider(Component)) {
  44870. return processChildContext(fiber, Component, parentContext);
  44871. }
  44872. }
  44873. return parentContext;
  44874. }
  44875. function findHostInstanceWithWarning(component, methodName) {
  44876. {
  44877. var fiber = get(component);
  44878. if (fiber === undefined) {
  44879. if (typeof component.render === 'function') {
  44880. {
  44881. {
  44882. throw Error( "Unable to find node on an unmounted component." );
  44883. }
  44884. }
  44885. } else {
  44886. {
  44887. {
  44888. throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
  44889. }
  44890. }
  44891. }
  44892. }
  44893. var hostFiber = findCurrentHostFiber(fiber);
  44894. if (hostFiber === null) {
  44895. return null;
  44896. }
  44897. if (hostFiber.mode & StrictMode) {
  44898. var componentName = getComponentName(fiber.type) || 'Component';
  44899. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  44900. didWarnAboutFindNodeInStrictMode[componentName] = true;
  44901. if (fiber.mode & StrictMode) {
  44902. error('%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. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  44903. } else {
  44904. error('%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. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  44905. }
  44906. }
  44907. }
  44908. return hostFiber.stateNode;
  44909. }
  44910. }
  44911. function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
  44912. return createFiberRoot(containerInfo, tag, hydrate);
  44913. }
  44914. function updateContainer(element, container, parentComponent, callback) {
  44915. {
  44916. onScheduleRoot(container, element);
  44917. }
  44918. var current$1 = container.current;
  44919. var currentTime = requestCurrentTimeForUpdate();
  44920. {
  44921. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  44922. if ('undefined' !== typeof jest) {
  44923. warnIfUnmockedScheduler(current$1);
  44924. warnIfNotScopedWithMatchingAct(current$1);
  44925. }
  44926. }
  44927. var suspenseConfig = requestCurrentSuspenseConfig();
  44928. var expirationTime = computeExpirationForFiber(currentTime, current$1, suspenseConfig);
  44929. var context = getContextForSubtree(parentComponent);
  44930. if (container.context === null) {
  44931. container.context = context;
  44932. } else {
  44933. container.pendingContext = context;
  44934. }
  44935. {
  44936. if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
  44937. didWarnAboutNestedUpdates = true;
  44938. error('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');
  44939. }
  44940. }
  44941. var update = createUpdate(expirationTime, suspenseConfig); // Caution: React DevTools currently depends on this property
  44942. // being called "element".
  44943. update.payload = {
  44944. element: element
  44945. };
  44946. callback = callback === undefined ? null : callback;
  44947. if (callback !== null) {
  44948. {
  44949. if (typeof callback !== 'function') {
  44950. error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
  44951. }
  44952. }
  44953. update.callback = callback;
  44954. }
  44955. enqueueUpdate(current$1, update);
  44956. scheduleWork(current$1, expirationTime);
  44957. return expirationTime;
  44958. }
  44959. function getPublicRootInstance(container) {
  44960. var containerFiber = container.current;
  44961. if (!containerFiber.child) {
  44962. return null;
  44963. }
  44964. switch (containerFiber.child.tag) {
  44965. case HostComponent:
  44966. return getPublicInstance(containerFiber.child.stateNode);
  44967. default:
  44968. return containerFiber.child.stateNode;
  44969. }
  44970. }
  44971. function markRetryTimeImpl(fiber, retryTime) {
  44972. var suspenseState = fiber.memoizedState;
  44973. if (suspenseState !== null && suspenseState.dehydrated !== null) {
  44974. if (suspenseState.retryTime < retryTime) {
  44975. suspenseState.retryTime = retryTime;
  44976. }
  44977. }
  44978. } // Increases the priority of thennables when they resolve within this boundary.
  44979. function markRetryTimeIfNotHydrated(fiber, retryTime) {
  44980. markRetryTimeImpl(fiber, retryTime);
  44981. var alternate = fiber.alternate;
  44982. if (alternate) {
  44983. markRetryTimeImpl(alternate, retryTime);
  44984. }
  44985. }
  44986. function attemptUserBlockingHydration$1(fiber) {
  44987. if (fiber.tag !== SuspenseComponent) {
  44988. // We ignore HostRoots here because we can't increase
  44989. // their priority and they should not suspend on I/O,
  44990. // since you have to wrap anything that might suspend in
  44991. // Suspense.
  44992. return;
  44993. }
  44994. var expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate());
  44995. scheduleWork(fiber, expTime);
  44996. markRetryTimeIfNotHydrated(fiber, expTime);
  44997. }
  44998. function attemptContinuousHydration$1(fiber) {
  44999. if (fiber.tag !== SuspenseComponent) {
  45000. // We ignore HostRoots here because we can't increase
  45001. // their priority and they should not suspend on I/O,
  45002. // since you have to wrap anything that might suspend in
  45003. // Suspense.
  45004. return;
  45005. }
  45006. scheduleWork(fiber, ContinuousHydration);
  45007. markRetryTimeIfNotHydrated(fiber, ContinuousHydration);
  45008. }
  45009. function attemptHydrationAtCurrentPriority$1(fiber) {
  45010. if (fiber.tag !== SuspenseComponent) {
  45011. // We ignore HostRoots here because we can't increase
  45012. // their priority other than synchronously flush it.
  45013. return;
  45014. }
  45015. var currentTime = requestCurrentTimeForUpdate();
  45016. var expTime = computeExpirationForFiber(currentTime, fiber, null);
  45017. scheduleWork(fiber, expTime);
  45018. markRetryTimeIfNotHydrated(fiber, expTime);
  45019. }
  45020. function findHostInstanceWithNoPortals(fiber) {
  45021. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  45022. if (hostFiber === null) {
  45023. return null;
  45024. }
  45025. if (hostFiber.tag === FundamentalComponent) {
  45026. return hostFiber.stateNode.instance;
  45027. }
  45028. return hostFiber.stateNode;
  45029. }
  45030. var shouldSuspendImpl = function (fiber) {
  45031. return false;
  45032. };
  45033. function shouldSuspend(fiber) {
  45034. return shouldSuspendImpl(fiber);
  45035. }
  45036. var overrideHookState = null;
  45037. var overrideProps = null;
  45038. var scheduleUpdate = null;
  45039. var setSuspenseHandler = null;
  45040. {
  45041. var copyWithSetImpl = function (obj, path, idx, value) {
  45042. if (idx >= path.length) {
  45043. return value;
  45044. }
  45045. var key = path[idx];
  45046. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here
  45047. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  45048. return updated;
  45049. };
  45050. var copyWithSet = function (obj, path, value) {
  45051. return copyWithSetImpl(obj, path, 0, value);
  45052. }; // Support DevTools editable values for useState and useReducer.
  45053. overrideHookState = function (fiber, id, path, value) {
  45054. // For now, the "id" of stateful hooks is just the stateful hook index.
  45055. // This may change in the future with e.g. nested hooks.
  45056. var currentHook = fiber.memoizedState;
  45057. while (currentHook !== null && id > 0) {
  45058. currentHook = currentHook.next;
  45059. id--;
  45060. }
  45061. if (currentHook !== null) {
  45062. var newState = copyWithSet(currentHook.memoizedState, path, value);
  45063. currentHook.memoizedState = newState;
  45064. currentHook.baseState = newState; // We aren't actually adding an update to the queue,
  45065. // because there is no update we can add for useReducer hooks that won't trigger an error.
  45066. // (There's no appropriate action type for DevTools overrides.)
  45067. // As a result though, React will see the scheduled update as a noop and bailout.
  45068. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  45069. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  45070. scheduleWork(fiber, Sync);
  45071. }
  45072. }; // Support DevTools props for function components, forwardRef, memo, host components, etc.
  45073. overrideProps = function (fiber, path, value) {
  45074. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  45075. if (fiber.alternate) {
  45076. fiber.alternate.pendingProps = fiber.pendingProps;
  45077. }
  45078. scheduleWork(fiber, Sync);
  45079. };
  45080. scheduleUpdate = function (fiber) {
  45081. scheduleWork(fiber, Sync);
  45082. };
  45083. setSuspenseHandler = function (newShouldSuspendImpl) {
  45084. shouldSuspendImpl = newShouldSuspendImpl;
  45085. };
  45086. }
  45087. function injectIntoDevTools(devToolsConfig) {
  45088. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  45089. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  45090. return injectInternals(_assign({}, devToolsConfig, {
  45091. overrideHookState: overrideHookState,
  45092. overrideProps: overrideProps,
  45093. setSuspenseHandler: setSuspenseHandler,
  45094. scheduleUpdate: scheduleUpdate,
  45095. currentDispatcherRef: ReactCurrentDispatcher,
  45096. findHostInstanceByFiber: function (fiber) {
  45097. var hostFiber = findCurrentHostFiber(fiber);
  45098. if (hostFiber === null) {
  45099. return null;
  45100. }
  45101. return hostFiber.stateNode;
  45102. },
  45103. findFiberByHostInstance: function (instance) {
  45104. if (!findFiberByHostInstance) {
  45105. // Might not be implemented by the renderer.
  45106. return null;
  45107. }
  45108. return findFiberByHostInstance(instance);
  45109. },
  45110. // React Refresh
  45111. findHostInstancesForRefresh: findHostInstancesForRefresh ,
  45112. scheduleRefresh: scheduleRefresh ,
  45113. scheduleRoot: scheduleRoot ,
  45114. setRefreshHandler: setRefreshHandler ,
  45115. // Enables DevTools to append owner stacks to error messages in DEV mode.
  45116. getCurrentFiber: function () {
  45117. return current;
  45118. }
  45119. }));
  45120. }
  45121. var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;
  45122. function ReactDOMRoot(container, options) {
  45123. this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
  45124. }
  45125. function ReactDOMBlockingRoot(container, tag, options) {
  45126. this._internalRoot = createRootImpl(container, tag, options);
  45127. }
  45128. ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
  45129. var root = this._internalRoot;
  45130. {
  45131. if (typeof arguments[1] === 'function') {
  45132. error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
  45133. }
  45134. var container = root.containerInfo;
  45135. if (container.nodeType !== COMMENT_NODE) {
  45136. var hostInstance = findHostInstanceWithNoPortals(root.current);
  45137. if (hostInstance) {
  45138. if (hostInstance.parentNode !== container) {
  45139. error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
  45140. }
  45141. }
  45142. }
  45143. }
  45144. updateContainer(children, root, null, null);
  45145. };
  45146. ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
  45147. {
  45148. if (typeof arguments[0] === 'function') {
  45149. error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
  45150. }
  45151. }
  45152. var root = this._internalRoot;
  45153. var container = root.containerInfo;
  45154. updateContainer(null, root, null, function () {
  45155. unmarkContainerAsRoot(container);
  45156. });
  45157. };
  45158. function createRootImpl(container, tag, options) {
  45159. // Tag is either LegacyRoot or Concurrent Root
  45160. var hydrate = options != null && options.hydrate === true;
  45161. var hydrationCallbacks = options != null && options.hydrationOptions || null;
  45162. var root = createContainer(container, tag, hydrate);
  45163. markContainerAsRoot(root.current, container);
  45164. if (hydrate && tag !== LegacyRoot) {
  45165. var doc = container.nodeType === DOCUMENT_NODE ? container : container.ownerDocument;
  45166. eagerlyTrapReplayableEvents(container, doc);
  45167. }
  45168. return root;
  45169. }
  45170. function createLegacyRoot(container, options) {
  45171. return new ReactDOMBlockingRoot(container, LegacyRoot, options);
  45172. }
  45173. function isValidContainer(node) {
  45174. 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 '));
  45175. }
  45176. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  45177. var topLevelUpdateWarnings;
  45178. var warnedAboutHydrateAPI = false;
  45179. {
  45180. topLevelUpdateWarnings = function (container) {
  45181. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  45182. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  45183. if (hostInstance) {
  45184. if (hostInstance.parentNode !== container) {
  45185. error('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.');
  45186. }
  45187. }
  45188. }
  45189. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  45190. var rootEl = getReactRootElementInContainer(container);
  45191. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  45192. if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
  45193. error('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.');
  45194. }
  45195. if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
  45196. error('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.');
  45197. }
  45198. };
  45199. }
  45200. function getReactRootElementInContainer(container) {
  45201. if (!container) {
  45202. return null;
  45203. }
  45204. if (container.nodeType === DOCUMENT_NODE) {
  45205. return container.documentElement;
  45206. } else {
  45207. return container.firstChild;
  45208. }
  45209. }
  45210. function shouldHydrateDueToLegacyHeuristic(container) {
  45211. var rootElement = getReactRootElementInContainer(container);
  45212. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  45213. }
  45214. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  45215. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.
  45216. if (!shouldHydrate) {
  45217. var warned = false;
  45218. var rootSibling;
  45219. while (rootSibling = container.lastChild) {
  45220. {
  45221. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  45222. warned = true;
  45223. error('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.');
  45224. }
  45225. }
  45226. container.removeChild(rootSibling);
  45227. }
  45228. }
  45229. {
  45230. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  45231. warnedAboutHydrateAPI = true;
  45232. warn('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.');
  45233. }
  45234. }
  45235. return createLegacyRoot(container, shouldHydrate ? {
  45236. hydrate: true
  45237. } : undefined);
  45238. }
  45239. function warnOnInvalidCallback$1(callback, callerName) {
  45240. {
  45241. if (callback !== null && typeof callback !== 'function') {
  45242. error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  45243. }
  45244. }
  45245. }
  45246. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  45247. {
  45248. topLevelUpdateWarnings(container);
  45249. warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
  45250. } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  45251. // member of intersection type." Whyyyyyy.
  45252. var root = container._reactRootContainer;
  45253. var fiberRoot;
  45254. if (!root) {
  45255. // Initial mount
  45256. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  45257. fiberRoot = root._internalRoot;
  45258. if (typeof callback === 'function') {
  45259. var originalCallback = callback;
  45260. callback = function () {
  45261. var instance = getPublicRootInstance(fiberRoot);
  45262. originalCallback.call(instance);
  45263. };
  45264. } // Initial mount should not be batched.
  45265. unbatchedUpdates(function () {
  45266. updateContainer(children, fiberRoot, parentComponent, callback);
  45267. });
  45268. } else {
  45269. fiberRoot = root._internalRoot;
  45270. if (typeof callback === 'function') {
  45271. var _originalCallback = callback;
  45272. callback = function () {
  45273. var instance = getPublicRootInstance(fiberRoot);
  45274. _originalCallback.call(instance);
  45275. };
  45276. } // Update
  45277. updateContainer(children, fiberRoot, parentComponent, callback);
  45278. }
  45279. return getPublicRootInstance(fiberRoot);
  45280. }
  45281. function findDOMNode(componentOrElement) {
  45282. {
  45283. var owner = ReactCurrentOwner$3.current;
  45284. if (owner !== null && owner.stateNode !== null) {
  45285. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  45286. if (!warnedAboutRefsInRender) {
  45287. error('%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');
  45288. }
  45289. owner.stateNode._warnedAboutRefsInRender = true;
  45290. }
  45291. }
  45292. if (componentOrElement == null) {
  45293. return null;
  45294. }
  45295. if (componentOrElement.nodeType === ELEMENT_NODE) {
  45296. return componentOrElement;
  45297. }
  45298. {
  45299. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  45300. }
  45301. }
  45302. function hydrate(element, container, callback) {
  45303. if (!isValidContainer(container)) {
  45304. {
  45305. throw Error( "Target container is not a DOM element." );
  45306. }
  45307. }
  45308. {
  45309. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  45310. if (isModernRoot) {
  45311. error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
  45312. }
  45313. } // TODO: throw or warn if we couldn't hydrate?
  45314. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  45315. }
  45316. function render(element, container, callback) {
  45317. if (!isValidContainer(container)) {
  45318. {
  45319. throw Error( "Target container is not a DOM element." );
  45320. }
  45321. }
  45322. {
  45323. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  45324. if (isModernRoot) {
  45325. error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
  45326. }
  45327. }
  45328. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  45329. }
  45330. function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  45331. if (!isValidContainer(containerNode)) {
  45332. {
  45333. throw Error( "Target container is not a DOM element." );
  45334. }
  45335. }
  45336. if (!(parentComponent != null && has(parentComponent))) {
  45337. {
  45338. throw Error( "parentComponent must be a valid React Component" );
  45339. }
  45340. }
  45341. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  45342. }
  45343. function unmountComponentAtNode(container) {
  45344. if (!isValidContainer(container)) {
  45345. {
  45346. throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
  45347. }
  45348. }
  45349. {
  45350. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  45351. if (isModernRoot) {
  45352. error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
  45353. }
  45354. }
  45355. if (container._reactRootContainer) {
  45356. {
  45357. var rootEl = getReactRootElementInContainer(container);
  45358. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  45359. if (renderedByDifferentReact) {
  45360. error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
  45361. }
  45362. } // Unmount should not be batched.
  45363. unbatchedUpdates(function () {
  45364. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  45365. // $FlowFixMe This should probably use `delete container._reactRootContainer`
  45366. container._reactRootContainer = null;
  45367. unmarkContainerAsRoot(container);
  45368. });
  45369. }); // If you call unmountComponentAtNode twice in quick succession, you'll
  45370. // get `true` twice. That's probably fine?
  45371. return true;
  45372. } else {
  45373. {
  45374. var _rootEl = getReactRootElementInContainer(container);
  45375. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node.
  45376. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  45377. if (hasNonRootReactChild) {
  45378. error("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.');
  45379. }
  45380. }
  45381. return false;
  45382. }
  45383. }
  45384. function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
  45385. implementation) {
  45386. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  45387. return {
  45388. // This tag allow us to uniquely identify this as a React Portal
  45389. $$typeof: REACT_PORTAL_TYPE,
  45390. key: key == null ? null : '' + key,
  45391. children: children,
  45392. containerInfo: containerInfo,
  45393. implementation: implementation
  45394. };
  45395. }
  45396. var ReactVersion = '16.13.1';
  45397. setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
  45398. setAttemptContinuousHydration(attemptContinuousHydration$1);
  45399. setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
  45400. var didWarnAboutUnstableCreatePortal = false;
  45401. {
  45402. if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
  45403. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
  45404. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  45405. error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  45406. }
  45407. }
  45408. setRestoreImplementation(restoreControlledState$3);
  45409. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  45410. function createPortal$1(children, container) {
  45411. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  45412. if (!isValidContainer(container)) {
  45413. {
  45414. throw Error( "Target container is not a DOM element." );
  45415. }
  45416. } // TODO: pass ReactDOM portal implementation as third argument
  45417. // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
  45418. return createPortal(children, container, null, key);
  45419. }
  45420. function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  45421. return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
  45422. }
  45423. function unstable_createPortal(children, container) {
  45424. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  45425. {
  45426. if (!didWarnAboutUnstableCreatePortal) {
  45427. didWarnAboutUnstableCreatePortal = true;
  45428. warn('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.');
  45429. }
  45430. }
  45431. return createPortal$1(children, container, key);
  45432. }
  45433. var Internals = {
  45434. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  45435. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  45436. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  45437. };
  45438. var foundDevTools = injectIntoDevTools({
  45439. findFiberByHostInstance: getClosestInstanceFromNode,
  45440. bundleType: 1 ,
  45441. version: ReactVersion,
  45442. rendererPackageName: 'react-dom'
  45443. });
  45444. {
  45445. if (!foundDevTools && canUseDOM && window.top === window.self) {
  45446. // If we're in Chrome or Firefox, provide a download link if not installed.
  45447. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  45448. var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
  45449. if (/^(https?|file):$/.test(protocol)) {
  45450. // eslint-disable-next-line react-internal/no-production-logging
  45451. 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');
  45452. }
  45453. }
  45454. }
  45455. }
  45456. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
  45457. exports.createPortal = createPortal$1;
  45458. exports.findDOMNode = findDOMNode;
  45459. exports.flushSync = flushSync;
  45460. exports.hydrate = hydrate;
  45461. exports.render = render;
  45462. exports.unmountComponentAtNode = unmountComponentAtNode;
  45463. exports.unstable_batchedUpdates = batchedUpdates$1;
  45464. exports.unstable_createPortal = unstable_createPortal;
  45465. exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
  45466. exports.version = ReactVersion;
  45467. })();
  45468. }
  45469. /***/ }),
  45470. /***/ "../../node_modules/react-dom/index.js":
  45471. /*!***********************************************************!*\
  45472. !*** D:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  45473. \***********************************************************/
  45474. /*! no static exports found */
  45475. /***/ (function(module, exports, __webpack_require__) {
  45476. "use strict";
  45477. function checkDCE() {
  45478. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  45479. if (
  45480. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  45481. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  45482. ) {
  45483. return;
  45484. }
  45485. if (true) {
  45486. // This branch is unreachable because this function is only called
  45487. // in production, but the condition is true only in development.
  45488. // Therefore if the branch is still here, dead code elimination wasn't
  45489. // properly applied.
  45490. // Don't change the message. React DevTools relies on it. Also make sure
  45491. // this message doesn't occur elsewhere in this function, or it will cause
  45492. // a false positive.
  45493. throw new Error('^_^');
  45494. }
  45495. try {
  45496. // Verify that the code above has been dead code eliminated (DCE'd).
  45497. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  45498. } catch (err) {
  45499. // DevTools shouldn't crash React, no matter what.
  45500. // We should still report in case we break this code.
  45501. console.error(err);
  45502. }
  45503. }
  45504. if (false) {} else {
  45505. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  45506. }
  45507. /***/ }),
  45508. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  45509. /*!*****************************************************************************!*\
  45510. !*** D:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  45511. \*****************************************************************************/
  45512. /*! no static exports found */
  45513. /***/ (function(module, exports, __webpack_require__) {
  45514. "use strict";
  45515. /** @license React v16.13.1
  45516. * react-is.development.js
  45517. *
  45518. * Copyright (c) Facebook, Inc. and its affiliates.
  45519. *
  45520. * This source code is licensed under the MIT license found in the
  45521. * LICENSE file in the root directory of this source tree.
  45522. */
  45523. if (true) {
  45524. (function() {
  45525. 'use strict';
  45526. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  45527. // nor polyfill, then a plain number is used for performance.
  45528. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  45529. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  45530. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  45531. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  45532. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  45533. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  45534. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  45535. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  45536. // (unstable) APIs that have been removed. Can we remove the symbols?
  45537. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  45538. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  45539. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  45540. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  45541. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  45542. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  45543. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  45544. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  45545. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  45546. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  45547. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  45548. function isValidElementType(type) {
  45549. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  45550. 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 || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
  45551. }
  45552. function typeOf(object) {
  45553. if (typeof object === 'object' && object !== null) {
  45554. var $$typeof = object.$$typeof;
  45555. switch ($$typeof) {
  45556. case REACT_ELEMENT_TYPE:
  45557. var type = object.type;
  45558. switch (type) {
  45559. case REACT_ASYNC_MODE_TYPE:
  45560. case REACT_CONCURRENT_MODE_TYPE:
  45561. case REACT_FRAGMENT_TYPE:
  45562. case REACT_PROFILER_TYPE:
  45563. case REACT_STRICT_MODE_TYPE:
  45564. case REACT_SUSPENSE_TYPE:
  45565. return type;
  45566. default:
  45567. var $$typeofType = type && type.$$typeof;
  45568. switch ($$typeofType) {
  45569. case REACT_CONTEXT_TYPE:
  45570. case REACT_FORWARD_REF_TYPE:
  45571. case REACT_LAZY_TYPE:
  45572. case REACT_MEMO_TYPE:
  45573. case REACT_PROVIDER_TYPE:
  45574. return $$typeofType;
  45575. default:
  45576. return $$typeof;
  45577. }
  45578. }
  45579. case REACT_PORTAL_TYPE:
  45580. return $$typeof;
  45581. }
  45582. }
  45583. return undefined;
  45584. } // AsyncMode is deprecated along with isAsyncMode
  45585. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  45586. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  45587. var ContextConsumer = REACT_CONTEXT_TYPE;
  45588. var ContextProvider = REACT_PROVIDER_TYPE;
  45589. var Element = REACT_ELEMENT_TYPE;
  45590. var ForwardRef = REACT_FORWARD_REF_TYPE;
  45591. var Fragment = REACT_FRAGMENT_TYPE;
  45592. var Lazy = REACT_LAZY_TYPE;
  45593. var Memo = REACT_MEMO_TYPE;
  45594. var Portal = REACT_PORTAL_TYPE;
  45595. var Profiler = REACT_PROFILER_TYPE;
  45596. var StrictMode = REACT_STRICT_MODE_TYPE;
  45597. var Suspense = REACT_SUSPENSE_TYPE;
  45598. var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
  45599. function isAsyncMode(object) {
  45600. {
  45601. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  45602. hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
  45603. console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
  45604. }
  45605. }
  45606. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  45607. }
  45608. function isConcurrentMode(object) {
  45609. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  45610. }
  45611. function isContextConsumer(object) {
  45612. return typeOf(object) === REACT_CONTEXT_TYPE;
  45613. }
  45614. function isContextProvider(object) {
  45615. return typeOf(object) === REACT_PROVIDER_TYPE;
  45616. }
  45617. function isElement(object) {
  45618. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  45619. }
  45620. function isForwardRef(object) {
  45621. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  45622. }
  45623. function isFragment(object) {
  45624. return typeOf(object) === REACT_FRAGMENT_TYPE;
  45625. }
  45626. function isLazy(object) {
  45627. return typeOf(object) === REACT_LAZY_TYPE;
  45628. }
  45629. function isMemo(object) {
  45630. return typeOf(object) === REACT_MEMO_TYPE;
  45631. }
  45632. function isPortal(object) {
  45633. return typeOf(object) === REACT_PORTAL_TYPE;
  45634. }
  45635. function isProfiler(object) {
  45636. return typeOf(object) === REACT_PROFILER_TYPE;
  45637. }
  45638. function isStrictMode(object) {
  45639. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  45640. }
  45641. function isSuspense(object) {
  45642. return typeOf(object) === REACT_SUSPENSE_TYPE;
  45643. }
  45644. exports.AsyncMode = AsyncMode;
  45645. exports.ConcurrentMode = ConcurrentMode;
  45646. exports.ContextConsumer = ContextConsumer;
  45647. exports.ContextProvider = ContextProvider;
  45648. exports.Element = Element;
  45649. exports.ForwardRef = ForwardRef;
  45650. exports.Fragment = Fragment;
  45651. exports.Lazy = Lazy;
  45652. exports.Memo = Memo;
  45653. exports.Portal = Portal;
  45654. exports.Profiler = Profiler;
  45655. exports.StrictMode = StrictMode;
  45656. exports.Suspense = Suspense;
  45657. exports.isAsyncMode = isAsyncMode;
  45658. exports.isConcurrentMode = isConcurrentMode;
  45659. exports.isContextConsumer = isContextConsumer;
  45660. exports.isContextProvider = isContextProvider;
  45661. exports.isElement = isElement;
  45662. exports.isForwardRef = isForwardRef;
  45663. exports.isFragment = isFragment;
  45664. exports.isLazy = isLazy;
  45665. exports.isMemo = isMemo;
  45666. exports.isPortal = isPortal;
  45667. exports.isProfiler = isProfiler;
  45668. exports.isStrictMode = isStrictMode;
  45669. exports.isSuspense = isSuspense;
  45670. exports.isValidElementType = isValidElementType;
  45671. exports.typeOf = typeOf;
  45672. })();
  45673. }
  45674. /***/ }),
  45675. /***/ "../../node_modules/react-is/index.js":
  45676. /*!**********************************************************!*\
  45677. !*** D:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  45678. \**********************************************************/
  45679. /*! no static exports found */
  45680. /***/ (function(module, exports, __webpack_require__) {
  45681. "use strict";
  45682. if (false) {} else {
  45683. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  45684. }
  45685. /***/ }),
  45686. /***/ "../../node_modules/react/cjs/react.development.js":
  45687. /*!***********************************************************************!*\
  45688. !*** D:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  45689. \***********************************************************************/
  45690. /*! no static exports found */
  45691. /***/ (function(module, exports, __webpack_require__) {
  45692. "use strict";
  45693. /** @license React v16.13.1
  45694. * react.development.js
  45695. *
  45696. * Copyright (c) Facebook, Inc. and its affiliates.
  45697. *
  45698. * This source code is licensed under the MIT license found in the
  45699. * LICENSE file in the root directory of this source tree.
  45700. */
  45701. if (true) {
  45702. (function() {
  45703. 'use strict';
  45704. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  45705. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  45706. var ReactVersion = '16.13.1';
  45707. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  45708. // nor polyfill, then a plain number is used for performance.
  45709. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  45710. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  45711. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  45712. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  45713. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  45714. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  45715. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  45716. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  45717. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  45718. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  45719. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  45720. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  45721. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  45722. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  45723. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  45724. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  45725. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  45726. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  45727. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  45728. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  45729. function getIteratorFn(maybeIterable) {
  45730. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  45731. return null;
  45732. }
  45733. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  45734. if (typeof maybeIterator === 'function') {
  45735. return maybeIterator;
  45736. }
  45737. return null;
  45738. }
  45739. /**
  45740. * Keeps track of the current dispatcher.
  45741. */
  45742. var ReactCurrentDispatcher = {
  45743. /**
  45744. * @internal
  45745. * @type {ReactComponent}
  45746. */
  45747. current: null
  45748. };
  45749. /**
  45750. * Keeps track of the current batch's configuration such as how long an update
  45751. * should suspend for if it needs to.
  45752. */
  45753. var ReactCurrentBatchConfig = {
  45754. suspense: null
  45755. };
  45756. /**
  45757. * Keeps track of the current owner.
  45758. *
  45759. * The current owner is the component who should own any components that are
  45760. * currently being constructed.
  45761. */
  45762. var ReactCurrentOwner = {
  45763. /**
  45764. * @internal
  45765. * @type {ReactComponent}
  45766. */
  45767. current: null
  45768. };
  45769. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  45770. function describeComponentFrame (name, source, ownerName) {
  45771. var sourceInfo = '';
  45772. if (source) {
  45773. var path = source.fileName;
  45774. var fileName = path.replace(BEFORE_SLASH_RE, '');
  45775. {
  45776. // In DEV, include code for a common special case:
  45777. // prefer "folder/index.js" instead of just "index.js".
  45778. if (/^index\./.test(fileName)) {
  45779. var match = path.match(BEFORE_SLASH_RE);
  45780. if (match) {
  45781. var pathBeforeSlash = match[1];
  45782. if (pathBeforeSlash) {
  45783. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  45784. fileName = folderName + '/' + fileName;
  45785. }
  45786. }
  45787. }
  45788. }
  45789. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  45790. } else if (ownerName) {
  45791. sourceInfo = ' (created by ' + ownerName + ')';
  45792. }
  45793. return '\n in ' + (name || 'Unknown') + sourceInfo;
  45794. }
  45795. var Resolved = 1;
  45796. function refineResolvedLazyComponent(lazyComponent) {
  45797. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  45798. }
  45799. function getWrappedName(outerType, innerType, wrapperName) {
  45800. var functionName = innerType.displayName || innerType.name || '';
  45801. return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
  45802. }
  45803. function getComponentName(type) {
  45804. if (type == null) {
  45805. // Host root, text node or just invalid type.
  45806. return null;
  45807. }
  45808. {
  45809. if (typeof type.tag === 'number') {
  45810. error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  45811. }
  45812. }
  45813. if (typeof type === 'function') {
  45814. return type.displayName || type.name || null;
  45815. }
  45816. if (typeof type === 'string') {
  45817. return type;
  45818. }
  45819. switch (type) {
  45820. case REACT_FRAGMENT_TYPE:
  45821. return 'Fragment';
  45822. case REACT_PORTAL_TYPE:
  45823. return 'Portal';
  45824. case REACT_PROFILER_TYPE:
  45825. return "Profiler";
  45826. case REACT_STRICT_MODE_TYPE:
  45827. return 'StrictMode';
  45828. case REACT_SUSPENSE_TYPE:
  45829. return 'Suspense';
  45830. case REACT_SUSPENSE_LIST_TYPE:
  45831. return 'SuspenseList';
  45832. }
  45833. if (typeof type === 'object') {
  45834. switch (type.$$typeof) {
  45835. case REACT_CONTEXT_TYPE:
  45836. return 'Context.Consumer';
  45837. case REACT_PROVIDER_TYPE:
  45838. return 'Context.Provider';
  45839. case REACT_FORWARD_REF_TYPE:
  45840. return getWrappedName(type, type.render, 'ForwardRef');
  45841. case REACT_MEMO_TYPE:
  45842. return getComponentName(type.type);
  45843. case REACT_BLOCK_TYPE:
  45844. return getComponentName(type.render);
  45845. case REACT_LAZY_TYPE:
  45846. {
  45847. var thenable = type;
  45848. var resolvedThenable = refineResolvedLazyComponent(thenable);
  45849. if (resolvedThenable) {
  45850. return getComponentName(resolvedThenable);
  45851. }
  45852. break;
  45853. }
  45854. }
  45855. }
  45856. return null;
  45857. }
  45858. var ReactDebugCurrentFrame = {};
  45859. var currentlyValidatingElement = null;
  45860. function setCurrentlyValidatingElement(element) {
  45861. {
  45862. currentlyValidatingElement = element;
  45863. }
  45864. }
  45865. {
  45866. // Stack implementation injected by the current renderer.
  45867. ReactDebugCurrentFrame.getCurrentStack = null;
  45868. ReactDebugCurrentFrame.getStackAddendum = function () {
  45869. var stack = ''; // Add an extra top frame while an element is being validated
  45870. if (currentlyValidatingElement) {
  45871. var name = getComponentName(currentlyValidatingElement.type);
  45872. var owner = currentlyValidatingElement._owner;
  45873. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  45874. } // Delegate to the injected renderer-specific implementation
  45875. var impl = ReactDebugCurrentFrame.getCurrentStack;
  45876. if (impl) {
  45877. stack += impl() || '';
  45878. }
  45879. return stack;
  45880. };
  45881. }
  45882. /**
  45883. * Used by act() to track whether you're inside an act() scope.
  45884. */
  45885. var IsSomeRendererActing = {
  45886. current: false
  45887. };
  45888. var ReactSharedInternals = {
  45889. ReactCurrentDispatcher: ReactCurrentDispatcher,
  45890. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  45891. ReactCurrentOwner: ReactCurrentOwner,
  45892. IsSomeRendererActing: IsSomeRendererActing,
  45893. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  45894. assign: _assign
  45895. };
  45896. {
  45897. _assign(ReactSharedInternals, {
  45898. // These should not be included in production.
  45899. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  45900. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  45901. // TODO: remove in React 17.0.
  45902. ReactComponentTreeHook: {}
  45903. });
  45904. }
  45905. // by calls to these methods by a Babel plugin.
  45906. //
  45907. // In PROD (or in packages without access to React internals),
  45908. // they are left as they are instead.
  45909. function warn(format) {
  45910. {
  45911. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  45912. args[_key - 1] = arguments[_key];
  45913. }
  45914. printWarning('warn', format, args);
  45915. }
  45916. }
  45917. function error(format) {
  45918. {
  45919. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  45920. args[_key2 - 1] = arguments[_key2];
  45921. }
  45922. printWarning('error', format, args);
  45923. }
  45924. }
  45925. function printWarning(level, format, args) {
  45926. // When changing this logic, you might want to also
  45927. // update consoleWithStackDev.www.js as well.
  45928. {
  45929. var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
  45930. if (!hasExistingStack) {
  45931. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  45932. var stack = ReactDebugCurrentFrame.getStackAddendum();
  45933. if (stack !== '') {
  45934. format += '%s';
  45935. args = args.concat([stack]);
  45936. }
  45937. }
  45938. var argsWithFormat = args.map(function (item) {
  45939. return '' + item;
  45940. }); // Careful: RN currently depends on this prefix
  45941. argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  45942. // breaks IE9: https://github.com/facebook/react/issues/13610
  45943. // eslint-disable-next-line react-internal/no-production-logging
  45944. Function.prototype.apply.call(console[level], console, argsWithFormat);
  45945. try {
  45946. // --- Welcome to debugging React ---
  45947. // This error was thrown as a convenience so that you can use this stack
  45948. // to find the callsite that caused this warning to fire.
  45949. var argIndex = 0;
  45950. var message = 'Warning: ' + format.replace(/%s/g, function () {
  45951. return args[argIndex++];
  45952. });
  45953. throw new Error(message);
  45954. } catch (x) {}
  45955. }
  45956. }
  45957. var didWarnStateUpdateForUnmountedComponent = {};
  45958. function warnNoop(publicInstance, callerName) {
  45959. {
  45960. var _constructor = publicInstance.constructor;
  45961. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  45962. var warningKey = componentName + "." + callerName;
  45963. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  45964. return;
  45965. }
  45966. error("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);
  45967. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  45968. }
  45969. }
  45970. /**
  45971. * This is the abstract API for an update queue.
  45972. */
  45973. var ReactNoopUpdateQueue = {
  45974. /**
  45975. * Checks whether or not this composite component is mounted.
  45976. * @param {ReactClass} publicInstance The instance we want to test.
  45977. * @return {boolean} True if mounted, false otherwise.
  45978. * @protected
  45979. * @final
  45980. */
  45981. isMounted: function (publicInstance) {
  45982. return false;
  45983. },
  45984. /**
  45985. * Forces an update. This should only be invoked when it is known with
  45986. * certainty that we are **not** in a DOM transaction.
  45987. *
  45988. * You may want to call this when you know that some deeper aspect of the
  45989. * component's state has changed but `setState` was not called.
  45990. *
  45991. * This will not invoke `shouldComponentUpdate`, but it will invoke
  45992. * `componentWillUpdate` and `componentDidUpdate`.
  45993. *
  45994. * @param {ReactClass} publicInstance The instance that should rerender.
  45995. * @param {?function} callback Called after component is updated.
  45996. * @param {?string} callerName name of the calling function in the public API.
  45997. * @internal
  45998. */
  45999. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  46000. warnNoop(publicInstance, 'forceUpdate');
  46001. },
  46002. /**
  46003. * Replaces all of the state. Always use this or `setState` to mutate state.
  46004. * You should treat `this.state` as immutable.
  46005. *
  46006. * There is no guarantee that `this.state` will be immediately updated, so
  46007. * accessing `this.state` after calling this method may return the old value.
  46008. *
  46009. * @param {ReactClass} publicInstance The instance that should rerender.
  46010. * @param {object} completeState Next state.
  46011. * @param {?function} callback Called after component is updated.
  46012. * @param {?string} callerName name of the calling function in the public API.
  46013. * @internal
  46014. */
  46015. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  46016. warnNoop(publicInstance, 'replaceState');
  46017. },
  46018. /**
  46019. * Sets a subset of the state. This only exists because _pendingState is
  46020. * internal. This provides a merging strategy that is not available to deep
  46021. * properties which is confusing. TODO: Expose pendingState or don't use it
  46022. * during the merge.
  46023. *
  46024. * @param {ReactClass} publicInstance The instance that should rerender.
  46025. * @param {object} partialState Next partial state to be merged with state.
  46026. * @param {?function} callback Called after component is updated.
  46027. * @param {?string} Name of the calling function in the public API.
  46028. * @internal
  46029. */
  46030. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  46031. warnNoop(publicInstance, 'setState');
  46032. }
  46033. };
  46034. var emptyObject = {};
  46035. {
  46036. Object.freeze(emptyObject);
  46037. }
  46038. /**
  46039. * Base class helpers for the updating state of a component.
  46040. */
  46041. function Component(props, context, updater) {
  46042. this.props = props;
  46043. this.context = context; // If a component has string refs, we will assign a different object later.
  46044. this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
  46045. // renderer.
  46046. this.updater = updater || ReactNoopUpdateQueue;
  46047. }
  46048. Component.prototype.isReactComponent = {};
  46049. /**
  46050. * Sets a subset of the state. Always use this to mutate
  46051. * state. You should treat `this.state` as immutable.
  46052. *
  46053. * There is no guarantee that `this.state` will be immediately updated, so
  46054. * accessing `this.state` after calling this method may return the old value.
  46055. *
  46056. * There is no guarantee that calls to `setState` will run synchronously,
  46057. * as they may eventually be batched together. You can provide an optional
  46058. * callback that will be executed when the call to setState is actually
  46059. * completed.
  46060. *
  46061. * When a function is provided to setState, it will be called at some point in
  46062. * the future (not synchronously). It will be called with the up to date
  46063. * component arguments (state, props, context). These values can be different
  46064. * from this.* because your function may be called after receiveProps but before
  46065. * shouldComponentUpdate, and this new state, props, and context will not yet be
  46066. * assigned to this.
  46067. *
  46068. * @param {object|function} partialState Next partial state or function to
  46069. * produce next partial state to be merged with current state.
  46070. * @param {?function} callback Called after state is updated.
  46071. * @final
  46072. * @protected
  46073. */
  46074. Component.prototype.setState = function (partialState, callback) {
  46075. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  46076. {
  46077. throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
  46078. }
  46079. }
  46080. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  46081. };
  46082. /**
  46083. * Forces an update. This should only be invoked when it is known with
  46084. * certainty that we are **not** in a DOM transaction.
  46085. *
  46086. * You may want to call this when you know that some deeper aspect of the
  46087. * component's state has changed but `setState` was not called.
  46088. *
  46089. * This will not invoke `shouldComponentUpdate`, but it will invoke
  46090. * `componentWillUpdate` and `componentDidUpdate`.
  46091. *
  46092. * @param {?function} callback Called after update is complete.
  46093. * @final
  46094. * @protected
  46095. */
  46096. Component.prototype.forceUpdate = function (callback) {
  46097. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  46098. };
  46099. /**
  46100. * Deprecated APIs. These APIs used to exist on classic React classes but since
  46101. * we would like to deprecate them, we're not going to move them over to this
  46102. * modern base class. Instead, we define a getter that warns if it's accessed.
  46103. */
  46104. {
  46105. var deprecatedAPIs = {
  46106. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  46107. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  46108. };
  46109. var defineDeprecationWarning = function (methodName, info) {
  46110. Object.defineProperty(Component.prototype, methodName, {
  46111. get: function () {
  46112. warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  46113. return undefined;
  46114. }
  46115. });
  46116. };
  46117. for (var fnName in deprecatedAPIs) {
  46118. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  46119. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  46120. }
  46121. }
  46122. }
  46123. function ComponentDummy() {}
  46124. ComponentDummy.prototype = Component.prototype;
  46125. /**
  46126. * Convenience component with default shallow equality check for sCU.
  46127. */
  46128. function PureComponent(props, context, updater) {
  46129. this.props = props;
  46130. this.context = context; // If a component has string refs, we will assign a different object later.
  46131. this.refs = emptyObject;
  46132. this.updater = updater || ReactNoopUpdateQueue;
  46133. }
  46134. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  46135. pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
  46136. _assign(pureComponentPrototype, Component.prototype);
  46137. pureComponentPrototype.isPureReactComponent = true;
  46138. // an immutable object with a single mutable value
  46139. function createRef() {
  46140. var refObject = {
  46141. current: null
  46142. };
  46143. {
  46144. Object.seal(refObject);
  46145. }
  46146. return refObject;
  46147. }
  46148. var hasOwnProperty = Object.prototype.hasOwnProperty;
  46149. var RESERVED_PROPS = {
  46150. key: true,
  46151. ref: true,
  46152. __self: true,
  46153. __source: true
  46154. };
  46155. var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
  46156. {
  46157. didWarnAboutStringRefs = {};
  46158. }
  46159. function hasValidRef(config) {
  46160. {
  46161. if (hasOwnProperty.call(config, 'ref')) {
  46162. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  46163. if (getter && getter.isReactWarning) {
  46164. return false;
  46165. }
  46166. }
  46167. }
  46168. return config.ref !== undefined;
  46169. }
  46170. function hasValidKey(config) {
  46171. {
  46172. if (hasOwnProperty.call(config, 'key')) {
  46173. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  46174. if (getter && getter.isReactWarning) {
  46175. return false;
  46176. }
  46177. }
  46178. }
  46179. return config.key !== undefined;
  46180. }
  46181. function defineKeyPropWarningGetter(props, displayName) {
  46182. var warnAboutAccessingKey = function () {
  46183. {
  46184. if (!specialPropKeyWarningShown) {
  46185. specialPropKeyWarningShown = true;
  46186. error('%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);
  46187. }
  46188. }
  46189. };
  46190. warnAboutAccessingKey.isReactWarning = true;
  46191. Object.defineProperty(props, 'key', {
  46192. get: warnAboutAccessingKey,
  46193. configurable: true
  46194. });
  46195. }
  46196. function defineRefPropWarningGetter(props, displayName) {
  46197. var warnAboutAccessingRef = function () {
  46198. {
  46199. if (!specialPropRefWarningShown) {
  46200. specialPropRefWarningShown = true;
  46201. error('%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);
  46202. }
  46203. }
  46204. };
  46205. warnAboutAccessingRef.isReactWarning = true;
  46206. Object.defineProperty(props, 'ref', {
  46207. get: warnAboutAccessingRef,
  46208. configurable: true
  46209. });
  46210. }
  46211. function warnIfStringRefCannotBeAutoConverted(config) {
  46212. {
  46213. if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
  46214. var componentName = getComponentName(ReactCurrentOwner.current.type);
  46215. if (!didWarnAboutStringRefs[componentName]) {
  46216. error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
  46217. didWarnAboutStringRefs[componentName] = true;
  46218. }
  46219. }
  46220. }
  46221. }
  46222. /**
  46223. * Factory method to create a new React element. This no longer adheres to
  46224. * the class pattern, so do not use new to call it. Also, instanceof check
  46225. * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
  46226. * if something is a React Element.
  46227. *
  46228. * @param {*} type
  46229. * @param {*} props
  46230. * @param {*} key
  46231. * @param {string|object} ref
  46232. * @param {*} owner
  46233. * @param {*} self A *temporary* helper to detect places where `this` is
  46234. * different from the `owner` when React.createElement is called, so that we
  46235. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  46236. * functions, and as long as `this` and owner are the same, there will be no
  46237. * change in behavior.
  46238. * @param {*} source An annotation object (added by a transpiler or otherwise)
  46239. * indicating filename, line number, and/or other information.
  46240. * @internal
  46241. */
  46242. var ReactElement = function (type, key, ref, self, source, owner, props) {
  46243. var element = {
  46244. // This tag allows us to uniquely identify this as a React Element
  46245. $$typeof: REACT_ELEMENT_TYPE,
  46246. // Built-in properties that belong on the element
  46247. type: type,
  46248. key: key,
  46249. ref: ref,
  46250. props: props,
  46251. // Record the component responsible for creating this element.
  46252. _owner: owner
  46253. };
  46254. {
  46255. // The validation flag is currently mutative. We put it on
  46256. // an external backing store so that we can freeze the whole object.
  46257. // This can be replaced with a WeakMap once they are implemented in
  46258. // commonly used development environments.
  46259. element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
  46260. // the validation flag non-enumerable (where possible, which should
  46261. // include every environment we run tests in), so the test framework
  46262. // ignores it.
  46263. Object.defineProperty(element._store, 'validated', {
  46264. configurable: false,
  46265. enumerable: false,
  46266. writable: true,
  46267. value: false
  46268. }); // self and source are DEV only properties.
  46269. Object.defineProperty(element, '_self', {
  46270. configurable: false,
  46271. enumerable: false,
  46272. writable: false,
  46273. value: self
  46274. }); // Two elements created in two different places should be considered
  46275. // equal for testing purposes and therefore we hide it from enumeration.
  46276. Object.defineProperty(element, '_source', {
  46277. configurable: false,
  46278. enumerable: false,
  46279. writable: false,
  46280. value: source
  46281. });
  46282. if (Object.freeze) {
  46283. Object.freeze(element.props);
  46284. Object.freeze(element);
  46285. }
  46286. }
  46287. return element;
  46288. };
  46289. /**
  46290. * Create and return a new ReactElement of the given type.
  46291. * See https://reactjs.org/docs/react-api.html#createelement
  46292. */
  46293. function createElement(type, config, children) {
  46294. var propName; // Reserved names are extracted
  46295. var props = {};
  46296. var key = null;
  46297. var ref = null;
  46298. var self = null;
  46299. var source = null;
  46300. if (config != null) {
  46301. if (hasValidRef(config)) {
  46302. ref = config.ref;
  46303. {
  46304. warnIfStringRefCannotBeAutoConverted(config);
  46305. }
  46306. }
  46307. if (hasValidKey(config)) {
  46308. key = '' + config.key;
  46309. }
  46310. self = config.__self === undefined ? null : config.__self;
  46311. source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
  46312. for (propName in config) {
  46313. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  46314. props[propName] = config[propName];
  46315. }
  46316. }
  46317. } // Children can be more than one argument, and those are transferred onto
  46318. // the newly allocated props object.
  46319. var childrenLength = arguments.length - 2;
  46320. if (childrenLength === 1) {
  46321. props.children = children;
  46322. } else if (childrenLength > 1) {
  46323. var childArray = Array(childrenLength);
  46324. for (var i = 0; i < childrenLength; i++) {
  46325. childArray[i] = arguments[i + 2];
  46326. }
  46327. {
  46328. if (Object.freeze) {
  46329. Object.freeze(childArray);
  46330. }
  46331. }
  46332. props.children = childArray;
  46333. } // Resolve default props
  46334. if (type && type.defaultProps) {
  46335. var defaultProps = type.defaultProps;
  46336. for (propName in defaultProps) {
  46337. if (props[propName] === undefined) {
  46338. props[propName] = defaultProps[propName];
  46339. }
  46340. }
  46341. }
  46342. {
  46343. if (key || ref) {
  46344. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  46345. if (key) {
  46346. defineKeyPropWarningGetter(props, displayName);
  46347. }
  46348. if (ref) {
  46349. defineRefPropWarningGetter(props, displayName);
  46350. }
  46351. }
  46352. }
  46353. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  46354. }
  46355. function cloneAndReplaceKey(oldElement, newKey) {
  46356. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  46357. return newElement;
  46358. }
  46359. /**
  46360. * Clone and return a new ReactElement using element as the starting point.
  46361. * See https://reactjs.org/docs/react-api.html#cloneelement
  46362. */
  46363. function cloneElement(element, config, children) {
  46364. if (!!(element === null || element === undefined)) {
  46365. {
  46366. throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
  46367. }
  46368. }
  46369. var propName; // Original props are copied
  46370. var props = _assign({}, element.props); // Reserved names are extracted
  46371. var key = element.key;
  46372. var ref = element.ref; // Self is preserved since the owner is preserved.
  46373. var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
  46374. // transpiler, and the original source is probably a better indicator of the
  46375. // true owner.
  46376. var source = element._source; // Owner will be preserved, unless ref is overridden
  46377. var owner = element._owner;
  46378. if (config != null) {
  46379. if (hasValidRef(config)) {
  46380. // Silently steal the ref from the parent.
  46381. ref = config.ref;
  46382. owner = ReactCurrentOwner.current;
  46383. }
  46384. if (hasValidKey(config)) {
  46385. key = '' + config.key;
  46386. } // Remaining properties override existing props
  46387. var defaultProps;
  46388. if (element.type && element.type.defaultProps) {
  46389. defaultProps = element.type.defaultProps;
  46390. }
  46391. for (propName in config) {
  46392. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  46393. if (config[propName] === undefined && defaultProps !== undefined) {
  46394. // Resolve default props
  46395. props[propName] = defaultProps[propName];
  46396. } else {
  46397. props[propName] = config[propName];
  46398. }
  46399. }
  46400. }
  46401. } // Children can be more than one argument, and those are transferred onto
  46402. // the newly allocated props object.
  46403. var childrenLength = arguments.length - 2;
  46404. if (childrenLength === 1) {
  46405. props.children = children;
  46406. } else if (childrenLength > 1) {
  46407. var childArray = Array(childrenLength);
  46408. for (var i = 0; i < childrenLength; i++) {
  46409. childArray[i] = arguments[i + 2];
  46410. }
  46411. props.children = childArray;
  46412. }
  46413. return ReactElement(element.type, key, ref, self, source, owner, props);
  46414. }
  46415. /**
  46416. * Verifies the object is a ReactElement.
  46417. * See https://reactjs.org/docs/react-api.html#isvalidelement
  46418. * @param {?object} object
  46419. * @return {boolean} True if `object` is a ReactElement.
  46420. * @final
  46421. */
  46422. function isValidElement(object) {
  46423. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  46424. }
  46425. var SEPARATOR = '.';
  46426. var SUBSEPARATOR = ':';
  46427. /**
  46428. * Escape and wrap key so it is safe to use as a reactid
  46429. *
  46430. * @param {string} key to be escaped.
  46431. * @return {string} the escaped key.
  46432. */
  46433. function escape(key) {
  46434. var escapeRegex = /[=:]/g;
  46435. var escaperLookup = {
  46436. '=': '=0',
  46437. ':': '=2'
  46438. };
  46439. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  46440. return escaperLookup[match];
  46441. });
  46442. return '$' + escapedString;
  46443. }
  46444. /**
  46445. * TODO: Test that a single child and an array with one item have the same key
  46446. * pattern.
  46447. */
  46448. var didWarnAboutMaps = false;
  46449. var userProvidedKeyEscapeRegex = /\/+/g;
  46450. function escapeUserProvidedKey(text) {
  46451. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  46452. }
  46453. var POOL_SIZE = 10;
  46454. var traverseContextPool = [];
  46455. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  46456. if (traverseContextPool.length) {
  46457. var traverseContext = traverseContextPool.pop();
  46458. traverseContext.result = mapResult;
  46459. traverseContext.keyPrefix = keyPrefix;
  46460. traverseContext.func = mapFunction;
  46461. traverseContext.context = mapContext;
  46462. traverseContext.count = 0;
  46463. return traverseContext;
  46464. } else {
  46465. return {
  46466. result: mapResult,
  46467. keyPrefix: keyPrefix,
  46468. func: mapFunction,
  46469. context: mapContext,
  46470. count: 0
  46471. };
  46472. }
  46473. }
  46474. function releaseTraverseContext(traverseContext) {
  46475. traverseContext.result = null;
  46476. traverseContext.keyPrefix = null;
  46477. traverseContext.func = null;
  46478. traverseContext.context = null;
  46479. traverseContext.count = 0;
  46480. if (traverseContextPool.length < POOL_SIZE) {
  46481. traverseContextPool.push(traverseContext);
  46482. }
  46483. }
  46484. /**
  46485. * @param {?*} children Children tree container.
  46486. * @param {!string} nameSoFar Name of the key path so far.
  46487. * @param {!function} callback Callback to invoke with each child found.
  46488. * @param {?*} traverseContext Used to pass information throughout the traversal
  46489. * process.
  46490. * @return {!number} The number of children in this subtree.
  46491. */
  46492. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  46493. var type = typeof children;
  46494. if (type === 'undefined' || type === 'boolean') {
  46495. // All of the above are perceived as null.
  46496. children = null;
  46497. }
  46498. var invokeCallback = false;
  46499. if (children === null) {
  46500. invokeCallback = true;
  46501. } else {
  46502. switch (type) {
  46503. case 'string':
  46504. case 'number':
  46505. invokeCallback = true;
  46506. break;
  46507. case 'object':
  46508. switch (children.$$typeof) {
  46509. case REACT_ELEMENT_TYPE:
  46510. case REACT_PORTAL_TYPE:
  46511. invokeCallback = true;
  46512. }
  46513. }
  46514. }
  46515. if (invokeCallback) {
  46516. callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
  46517. // so that it's consistent if the number of children grows.
  46518. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  46519. return 1;
  46520. }
  46521. var child;
  46522. var nextName;
  46523. var subtreeCount = 0; // Count of children found in the current subtree.
  46524. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  46525. if (Array.isArray(children)) {
  46526. for (var i = 0; i < children.length; i++) {
  46527. child = children[i];
  46528. nextName = nextNamePrefix + getComponentKey(child, i);
  46529. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  46530. }
  46531. } else {
  46532. var iteratorFn = getIteratorFn(children);
  46533. if (typeof iteratorFn === 'function') {
  46534. {
  46535. // Warn about using Maps as children
  46536. if (iteratorFn === children.entries) {
  46537. if (!didWarnAboutMaps) {
  46538. warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
  46539. }
  46540. didWarnAboutMaps = true;
  46541. }
  46542. }
  46543. var iterator = iteratorFn.call(children);
  46544. var step;
  46545. var ii = 0;
  46546. while (!(step = iterator.next()).done) {
  46547. child = step.value;
  46548. nextName = nextNamePrefix + getComponentKey(child, ii++);
  46549. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  46550. }
  46551. } else if (type === 'object') {
  46552. var addendum = '';
  46553. {
  46554. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  46555. }
  46556. var childrenString = '' + children;
  46557. {
  46558. {
  46559. throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
  46560. }
  46561. }
  46562. }
  46563. }
  46564. return subtreeCount;
  46565. }
  46566. /**
  46567. * Traverses children that are typically specified as `props.children`, but
  46568. * might also be specified through attributes:
  46569. *
  46570. * - `traverseAllChildren(this.props.children, ...)`
  46571. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  46572. *
  46573. * The `traverseContext` is an optional argument that is passed through the
  46574. * entire traversal. It can be used to store accumulations or anything else that
  46575. * the callback might find relevant.
  46576. *
  46577. * @param {?*} children Children tree object.
  46578. * @param {!function} callback To invoke upon traversing each child.
  46579. * @param {?*} traverseContext Context for traversal.
  46580. * @return {!number} The number of children in this subtree.
  46581. */
  46582. function traverseAllChildren(children, callback, traverseContext) {
  46583. if (children == null) {
  46584. return 0;
  46585. }
  46586. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  46587. }
  46588. /**
  46589. * Generate a key string that identifies a component within a set.
  46590. *
  46591. * @param {*} component A component that could contain a manual key.
  46592. * @param {number} index Index that is used if a manual key is not provided.
  46593. * @return {string}
  46594. */
  46595. function getComponentKey(component, index) {
  46596. // Do some typechecking here since we call this blindly. We want to ensure
  46597. // that we don't block potential future ES APIs.
  46598. if (typeof component === 'object' && component !== null && component.key != null) {
  46599. // Explicit key
  46600. return escape(component.key);
  46601. } // Implicit key determined by the index in the set
  46602. return index.toString(36);
  46603. }
  46604. function forEachSingleChild(bookKeeping, child, name) {
  46605. var func = bookKeeping.func,
  46606. context = bookKeeping.context;
  46607. func.call(context, child, bookKeeping.count++);
  46608. }
  46609. /**
  46610. * Iterates through children that are typically specified as `props.children`.
  46611. *
  46612. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  46613. *
  46614. * The provided forEachFunc(child, index) will be called for each
  46615. * leaf child.
  46616. *
  46617. * @param {?*} children Children tree container.
  46618. * @param {function(*, int)} forEachFunc
  46619. * @param {*} forEachContext Context for forEachContext.
  46620. */
  46621. function forEachChildren(children, forEachFunc, forEachContext) {
  46622. if (children == null) {
  46623. return children;
  46624. }
  46625. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  46626. traverseAllChildren(children, forEachSingleChild, traverseContext);
  46627. releaseTraverseContext(traverseContext);
  46628. }
  46629. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  46630. var result = bookKeeping.result,
  46631. keyPrefix = bookKeeping.keyPrefix,
  46632. func = bookKeeping.func,
  46633. context = bookKeeping.context;
  46634. var mappedChild = func.call(context, child, bookKeeping.count++);
  46635. if (Array.isArray(mappedChild)) {
  46636. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  46637. return c;
  46638. });
  46639. } else if (mappedChild != null) {
  46640. if (isValidElement(mappedChild)) {
  46641. mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
  46642. // traverseAllChildren used to do for objects as children
  46643. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  46644. }
  46645. result.push(mappedChild);
  46646. }
  46647. }
  46648. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  46649. var escapedPrefix = '';
  46650. if (prefix != null) {
  46651. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  46652. }
  46653. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  46654. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  46655. releaseTraverseContext(traverseContext);
  46656. }
  46657. /**
  46658. * Maps children that are typically specified as `props.children`.
  46659. *
  46660. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  46661. *
  46662. * The provided mapFunction(child, key, index) will be called for each
  46663. * leaf child.
  46664. *
  46665. * @param {?*} children Children tree container.
  46666. * @param {function(*, int)} func The map function.
  46667. * @param {*} context Context for mapFunction.
  46668. * @return {object} Object containing the ordered map of results.
  46669. */
  46670. function mapChildren(children, func, context) {
  46671. if (children == null) {
  46672. return children;
  46673. }
  46674. var result = [];
  46675. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  46676. return result;
  46677. }
  46678. /**
  46679. * Count the number of children that are typically specified as
  46680. * `props.children`.
  46681. *
  46682. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  46683. *
  46684. * @param {?*} children Children tree container.
  46685. * @return {number} The number of children.
  46686. */
  46687. function countChildren(children) {
  46688. return traverseAllChildren(children, function () {
  46689. return null;
  46690. }, null);
  46691. }
  46692. /**
  46693. * Flatten a children object (typically specified as `props.children`) and
  46694. * return an array with appropriately re-keyed children.
  46695. *
  46696. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  46697. */
  46698. function toArray(children) {
  46699. var result = [];
  46700. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  46701. return child;
  46702. });
  46703. return result;
  46704. }
  46705. /**
  46706. * Returns the first child in a collection of children and verifies that there
  46707. * is only one child in the collection.
  46708. *
  46709. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  46710. *
  46711. * The current implementation of this function assumes that a single child gets
  46712. * passed without a wrapper, but the purpose of this helper function is to
  46713. * abstract away the particular structure of children.
  46714. *
  46715. * @param {?object} children Child collection structure.
  46716. * @return {ReactElement} The first and only `ReactElement` contained in the
  46717. * structure.
  46718. */
  46719. function onlyChild(children) {
  46720. if (!isValidElement(children)) {
  46721. {
  46722. throw Error( "React.Children.only expected to receive a single React element child." );
  46723. }
  46724. }
  46725. return children;
  46726. }
  46727. function createContext(defaultValue, calculateChangedBits) {
  46728. if (calculateChangedBits === undefined) {
  46729. calculateChangedBits = null;
  46730. } else {
  46731. {
  46732. if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
  46733. error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
  46734. }
  46735. }
  46736. }
  46737. var context = {
  46738. $$typeof: REACT_CONTEXT_TYPE,
  46739. _calculateChangedBits: calculateChangedBits,
  46740. // As a workaround to support multiple concurrent renderers, we categorize
  46741. // some renderers as primary and others as secondary. We only expect
  46742. // there to be two concurrent renderers at most: React Native (primary) and
  46743. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  46744. // Secondary renderers store their context values on separate fields.
  46745. _currentValue: defaultValue,
  46746. _currentValue2: defaultValue,
  46747. // Used to track how many concurrent renderers this context currently
  46748. // supports within in a single renderer. Such as parallel server rendering.
  46749. _threadCount: 0,
  46750. // These are circular
  46751. Provider: null,
  46752. Consumer: null
  46753. };
  46754. context.Provider = {
  46755. $$typeof: REACT_PROVIDER_TYPE,
  46756. _context: context
  46757. };
  46758. var hasWarnedAboutUsingNestedContextConsumers = false;
  46759. var hasWarnedAboutUsingConsumerProvider = false;
  46760. {
  46761. // A separate object, but proxies back to the original context object for
  46762. // backwards compatibility. It has a different $$typeof, so we can properly
  46763. // warn for the incorrect usage of Context as a Consumer.
  46764. var Consumer = {
  46765. $$typeof: REACT_CONTEXT_TYPE,
  46766. _context: context,
  46767. _calculateChangedBits: context._calculateChangedBits
  46768. }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  46769. Object.defineProperties(Consumer, {
  46770. Provider: {
  46771. get: function () {
  46772. if (!hasWarnedAboutUsingConsumerProvider) {
  46773. hasWarnedAboutUsingConsumerProvider = true;
  46774. error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  46775. }
  46776. return context.Provider;
  46777. },
  46778. set: function (_Provider) {
  46779. context.Provider = _Provider;
  46780. }
  46781. },
  46782. _currentValue: {
  46783. get: function () {
  46784. return context._currentValue;
  46785. },
  46786. set: function (_currentValue) {
  46787. context._currentValue = _currentValue;
  46788. }
  46789. },
  46790. _currentValue2: {
  46791. get: function () {
  46792. return context._currentValue2;
  46793. },
  46794. set: function (_currentValue2) {
  46795. context._currentValue2 = _currentValue2;
  46796. }
  46797. },
  46798. _threadCount: {
  46799. get: function () {
  46800. return context._threadCount;
  46801. },
  46802. set: function (_threadCount) {
  46803. context._threadCount = _threadCount;
  46804. }
  46805. },
  46806. Consumer: {
  46807. get: function () {
  46808. if (!hasWarnedAboutUsingNestedContextConsumers) {
  46809. hasWarnedAboutUsingNestedContextConsumers = true;
  46810. error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  46811. }
  46812. return context.Consumer;
  46813. }
  46814. }
  46815. }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  46816. context.Consumer = Consumer;
  46817. }
  46818. {
  46819. context._currentRenderer = null;
  46820. context._currentRenderer2 = null;
  46821. }
  46822. return context;
  46823. }
  46824. function lazy(ctor) {
  46825. var lazyType = {
  46826. $$typeof: REACT_LAZY_TYPE,
  46827. _ctor: ctor,
  46828. // React uses these fields to store the result.
  46829. _status: -1,
  46830. _result: null
  46831. };
  46832. {
  46833. // In production, this would just set it on the object.
  46834. var defaultProps;
  46835. var propTypes;
  46836. Object.defineProperties(lazyType, {
  46837. defaultProps: {
  46838. configurable: true,
  46839. get: function () {
  46840. return defaultProps;
  46841. },
  46842. set: function (newDefaultProps) {
  46843. error('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.');
  46844. defaultProps = newDefaultProps; // Match production behavior more closely:
  46845. Object.defineProperty(lazyType, 'defaultProps', {
  46846. enumerable: true
  46847. });
  46848. }
  46849. },
  46850. propTypes: {
  46851. configurable: true,
  46852. get: function () {
  46853. return propTypes;
  46854. },
  46855. set: function (newPropTypes) {
  46856. error('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.');
  46857. propTypes = newPropTypes; // Match production behavior more closely:
  46858. Object.defineProperty(lazyType, 'propTypes', {
  46859. enumerable: true
  46860. });
  46861. }
  46862. }
  46863. });
  46864. }
  46865. return lazyType;
  46866. }
  46867. function forwardRef(render) {
  46868. {
  46869. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  46870. error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  46871. } else if (typeof render !== 'function') {
  46872. error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  46873. } else {
  46874. if (render.length !== 0 && render.length !== 2) {
  46875. error('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.');
  46876. }
  46877. }
  46878. if (render != null) {
  46879. if (render.defaultProps != null || render.propTypes != null) {
  46880. error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
  46881. }
  46882. }
  46883. }
  46884. return {
  46885. $$typeof: REACT_FORWARD_REF_TYPE,
  46886. render: render
  46887. };
  46888. }
  46889. function isValidElementType(type) {
  46890. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  46891. 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 || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
  46892. }
  46893. function memo(type, compare) {
  46894. {
  46895. if (!isValidElementType(type)) {
  46896. error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  46897. }
  46898. }
  46899. return {
  46900. $$typeof: REACT_MEMO_TYPE,
  46901. type: type,
  46902. compare: compare === undefined ? null : compare
  46903. };
  46904. }
  46905. function resolveDispatcher() {
  46906. var dispatcher = ReactCurrentDispatcher.current;
  46907. if (!(dispatcher !== null)) {
  46908. {
  46909. throw 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." );
  46910. }
  46911. }
  46912. return dispatcher;
  46913. }
  46914. function useContext(Context, unstable_observedBits) {
  46915. var dispatcher = resolveDispatcher();
  46916. {
  46917. if (unstable_observedBits !== undefined) {
  46918. error('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' : '');
  46919. } // TODO: add a more generic warning for invalid values.
  46920. if (Context._context !== undefined) {
  46921. var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
  46922. // and nobody should be using this in existing code.
  46923. if (realContext.Consumer === Context) {
  46924. error('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?');
  46925. } else if (realContext.Provider === Context) {
  46926. error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  46927. }
  46928. }
  46929. }
  46930. return dispatcher.useContext(Context, unstable_observedBits);
  46931. }
  46932. function useState(initialState) {
  46933. var dispatcher = resolveDispatcher();
  46934. return dispatcher.useState(initialState);
  46935. }
  46936. function useReducer(reducer, initialArg, init) {
  46937. var dispatcher = resolveDispatcher();
  46938. return dispatcher.useReducer(reducer, initialArg, init);
  46939. }
  46940. function useRef(initialValue) {
  46941. var dispatcher = resolveDispatcher();
  46942. return dispatcher.useRef(initialValue);
  46943. }
  46944. function useEffect(create, deps) {
  46945. var dispatcher = resolveDispatcher();
  46946. return dispatcher.useEffect(create, deps);
  46947. }
  46948. function useLayoutEffect(create, deps) {
  46949. var dispatcher = resolveDispatcher();
  46950. return dispatcher.useLayoutEffect(create, deps);
  46951. }
  46952. function useCallback(callback, deps) {
  46953. var dispatcher = resolveDispatcher();
  46954. return dispatcher.useCallback(callback, deps);
  46955. }
  46956. function useMemo(create, deps) {
  46957. var dispatcher = resolveDispatcher();
  46958. return dispatcher.useMemo(create, deps);
  46959. }
  46960. function useImperativeHandle(ref, create, deps) {
  46961. var dispatcher = resolveDispatcher();
  46962. return dispatcher.useImperativeHandle(ref, create, deps);
  46963. }
  46964. function useDebugValue(value, formatterFn) {
  46965. {
  46966. var dispatcher = resolveDispatcher();
  46967. return dispatcher.useDebugValue(value, formatterFn);
  46968. }
  46969. }
  46970. var propTypesMisspellWarningShown;
  46971. {
  46972. propTypesMisspellWarningShown = false;
  46973. }
  46974. function getDeclarationErrorAddendum() {
  46975. if (ReactCurrentOwner.current) {
  46976. var name = getComponentName(ReactCurrentOwner.current.type);
  46977. if (name) {
  46978. return '\n\nCheck the render method of `' + name + '`.';
  46979. }
  46980. }
  46981. return '';
  46982. }
  46983. function getSourceInfoErrorAddendum(source) {
  46984. if (source !== undefined) {
  46985. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  46986. var lineNumber = source.lineNumber;
  46987. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  46988. }
  46989. return '';
  46990. }
  46991. function getSourceInfoErrorAddendumForProps(elementProps) {
  46992. if (elementProps !== null && elementProps !== undefined) {
  46993. return getSourceInfoErrorAddendum(elementProps.__source);
  46994. }
  46995. return '';
  46996. }
  46997. /**
  46998. * Warn if there's no key explicitly set on dynamic arrays of children or
  46999. * object keys are not valid. This allows us to keep track of children between
  47000. * updates.
  47001. */
  47002. var ownerHasKeyUseWarning = {};
  47003. function getCurrentComponentErrorInfo(parentType) {
  47004. var info = getDeclarationErrorAddendum();
  47005. if (!info) {
  47006. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  47007. if (parentName) {
  47008. info = "\n\nCheck the top-level render call using <" + parentName + ">.";
  47009. }
  47010. }
  47011. return info;
  47012. }
  47013. /**
  47014. * Warn if the element doesn't have an explicit key assigned to it.
  47015. * This element is in an array. The array could grow and shrink or be
  47016. * reordered. All children that haven't already been validated are required to
  47017. * have a "key" property assigned to it. Error statuses are cached so a warning
  47018. * will only be shown once.
  47019. *
  47020. * @internal
  47021. * @param {ReactElement} element Element that requires a key.
  47022. * @param {*} parentType element's parent's type.
  47023. */
  47024. function validateExplicitKey(element, parentType) {
  47025. if (!element._store || element._store.validated || element.key != null) {
  47026. return;
  47027. }
  47028. element._store.validated = true;
  47029. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  47030. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  47031. return;
  47032. }
  47033. ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
  47034. // property, it may be the creator of the child that's responsible for
  47035. // assigning it a key.
  47036. var childOwner = '';
  47037. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  47038. // Give the component that originally created this child.
  47039. childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
  47040. }
  47041. setCurrentlyValidatingElement(element);
  47042. {
  47043. error('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);
  47044. }
  47045. setCurrentlyValidatingElement(null);
  47046. }
  47047. /**
  47048. * Ensure that every element either is passed in a static location, in an
  47049. * array with an explicit keys property defined, or in an object literal
  47050. * with valid key property.
  47051. *
  47052. * @internal
  47053. * @param {ReactNode} node Statically passed child of any type.
  47054. * @param {*} parentType node's parent's type.
  47055. */
  47056. function validateChildKeys(node, parentType) {
  47057. if (typeof node !== 'object') {
  47058. return;
  47059. }
  47060. if (Array.isArray(node)) {
  47061. for (var i = 0; i < node.length; i++) {
  47062. var child = node[i];
  47063. if (isValidElement(child)) {
  47064. validateExplicitKey(child, parentType);
  47065. }
  47066. }
  47067. } else if (isValidElement(node)) {
  47068. // This element was passed in a valid location.
  47069. if (node._store) {
  47070. node._store.validated = true;
  47071. }
  47072. } else if (node) {
  47073. var iteratorFn = getIteratorFn(node);
  47074. if (typeof iteratorFn === 'function') {
  47075. // Entry iterators used to provide implicit keys,
  47076. // but now we print a separate warning for them later.
  47077. if (iteratorFn !== node.entries) {
  47078. var iterator = iteratorFn.call(node);
  47079. var step;
  47080. while (!(step = iterator.next()).done) {
  47081. if (isValidElement(step.value)) {
  47082. validateExplicitKey(step.value, parentType);
  47083. }
  47084. }
  47085. }
  47086. }
  47087. }
  47088. }
  47089. /**
  47090. * Given an element, validate that its props follow the propTypes definition,
  47091. * provided by the type.
  47092. *
  47093. * @param {ReactElement} element
  47094. */
  47095. function validatePropTypes(element) {
  47096. {
  47097. var type = element.type;
  47098. if (type === null || type === undefined || typeof type === 'string') {
  47099. return;
  47100. }
  47101. var name = getComponentName(type);
  47102. var propTypes;
  47103. if (typeof type === 'function') {
  47104. propTypes = type.propTypes;
  47105. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
  47106. // Inner props are checked in the reconciler.
  47107. type.$$typeof === REACT_MEMO_TYPE)) {
  47108. propTypes = type.propTypes;
  47109. } else {
  47110. return;
  47111. }
  47112. if (propTypes) {
  47113. setCurrentlyValidatingElement(element);
  47114. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  47115. setCurrentlyValidatingElement(null);
  47116. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  47117. propTypesMisspellWarningShown = true;
  47118. error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  47119. }
  47120. if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
  47121. error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
  47122. }
  47123. }
  47124. }
  47125. /**
  47126. * Given a fragment, validate that it can only be provided with fragment props
  47127. * @param {ReactElement} fragment
  47128. */
  47129. function validateFragmentProps(fragment) {
  47130. {
  47131. setCurrentlyValidatingElement(fragment);
  47132. var keys = Object.keys(fragment.props);
  47133. for (var i = 0; i < keys.length; i++) {
  47134. var key = keys[i];
  47135. if (key !== 'children' && key !== 'key') {
  47136. error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  47137. break;
  47138. }
  47139. }
  47140. if (fragment.ref !== null) {
  47141. error('Invalid attribute `ref` supplied to `React.Fragment`.');
  47142. }
  47143. setCurrentlyValidatingElement(null);
  47144. }
  47145. }
  47146. function createElementWithValidation(type, props, children) {
  47147. var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
  47148. // succeed and there will likely be errors in render.
  47149. if (!validType) {
  47150. var info = '';
  47151. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  47152. 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.";
  47153. }
  47154. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  47155. if (sourceInfo) {
  47156. info += sourceInfo;
  47157. } else {
  47158. info += getDeclarationErrorAddendum();
  47159. }
  47160. var typeString;
  47161. if (type === null) {
  47162. typeString = 'null';
  47163. } else if (Array.isArray(type)) {
  47164. typeString = 'array';
  47165. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  47166. typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
  47167. info = ' Did you accidentally export a JSX literal instead of a component?';
  47168. } else {
  47169. typeString = typeof type;
  47170. }
  47171. {
  47172. error('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);
  47173. }
  47174. }
  47175. var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
  47176. // TODO: Drop this when these are no longer allowed as the type argument.
  47177. if (element == null) {
  47178. return element;
  47179. } // Skip key warning if the type isn't valid since our key validation logic
  47180. // doesn't expect a non-string/function type and can throw confusing errors.
  47181. // We don't want exception behavior to differ between dev and prod.
  47182. // (Rendering will throw with a helpful message and as soon as the type is
  47183. // fixed, the key warnings will appear.)
  47184. if (validType) {
  47185. for (var i = 2; i < arguments.length; i++) {
  47186. validateChildKeys(arguments[i], type);
  47187. }
  47188. }
  47189. if (type === REACT_FRAGMENT_TYPE) {
  47190. validateFragmentProps(element);
  47191. } else {
  47192. validatePropTypes(element);
  47193. }
  47194. return element;
  47195. }
  47196. var didWarnAboutDeprecatedCreateFactory = false;
  47197. function createFactoryWithValidation(type) {
  47198. var validatedFactory = createElementWithValidation.bind(null, type);
  47199. validatedFactory.type = type;
  47200. {
  47201. if (!didWarnAboutDeprecatedCreateFactory) {
  47202. didWarnAboutDeprecatedCreateFactory = true;
  47203. warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
  47204. } // Legacy hook: remove it
  47205. Object.defineProperty(validatedFactory, 'type', {
  47206. enumerable: false,
  47207. get: function () {
  47208. warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  47209. Object.defineProperty(this, 'type', {
  47210. value: type
  47211. });
  47212. return type;
  47213. }
  47214. });
  47215. }
  47216. return validatedFactory;
  47217. }
  47218. function cloneElementWithValidation(element, props, children) {
  47219. var newElement = cloneElement.apply(this, arguments);
  47220. for (var i = 2; i < arguments.length; i++) {
  47221. validateChildKeys(arguments[i], newElement.type);
  47222. }
  47223. validatePropTypes(newElement);
  47224. return newElement;
  47225. }
  47226. {
  47227. try {
  47228. var frozenObject = Object.freeze({});
  47229. var testMap = new Map([[frozenObject, null]]);
  47230. var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
  47231. // https://github.com/rollup/rollup/issues/1771
  47232. // TODO: we can remove these if Rollup fixes the bug.
  47233. testMap.set(0, 0);
  47234. testSet.add(0);
  47235. } catch (e) {
  47236. }
  47237. }
  47238. var createElement$1 = createElementWithValidation ;
  47239. var cloneElement$1 = cloneElementWithValidation ;
  47240. var createFactory = createFactoryWithValidation ;
  47241. var Children = {
  47242. map: mapChildren,
  47243. forEach: forEachChildren,
  47244. count: countChildren,
  47245. toArray: toArray,
  47246. only: onlyChild
  47247. };
  47248. exports.Children = Children;
  47249. exports.Component = Component;
  47250. exports.Fragment = REACT_FRAGMENT_TYPE;
  47251. exports.Profiler = REACT_PROFILER_TYPE;
  47252. exports.PureComponent = PureComponent;
  47253. exports.StrictMode = REACT_STRICT_MODE_TYPE;
  47254. exports.Suspense = REACT_SUSPENSE_TYPE;
  47255. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
  47256. exports.cloneElement = cloneElement$1;
  47257. exports.createContext = createContext;
  47258. exports.createElement = createElement$1;
  47259. exports.createFactory = createFactory;
  47260. exports.createRef = createRef;
  47261. exports.forwardRef = forwardRef;
  47262. exports.isValidElement = isValidElement;
  47263. exports.lazy = lazy;
  47264. exports.memo = memo;
  47265. exports.useCallback = useCallback;
  47266. exports.useContext = useContext;
  47267. exports.useDebugValue = useDebugValue;
  47268. exports.useEffect = useEffect;
  47269. exports.useImperativeHandle = useImperativeHandle;
  47270. exports.useLayoutEffect = useLayoutEffect;
  47271. exports.useMemo = useMemo;
  47272. exports.useReducer = useReducer;
  47273. exports.useRef = useRef;
  47274. exports.useState = useState;
  47275. exports.version = ReactVersion;
  47276. })();
  47277. }
  47278. /***/ }),
  47279. /***/ "../../node_modules/react/index.js":
  47280. /*!*******************************************************!*\
  47281. !*** D:/Repos/Babylon.js/node_modules/react/index.js ***!
  47282. \*******************************************************/
  47283. /*! no static exports found */
  47284. /***/ (function(module, exports, __webpack_require__) {
  47285. "use strict";
  47286. if (false) {} else {
  47287. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  47288. }
  47289. /***/ }),
  47290. /***/ "../../node_modules/reactcss/lib/autoprefix.js":
  47291. /*!*******************************************************************!*\
  47292. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/autoprefix.js ***!
  47293. \*******************************************************************/
  47294. /*! no static exports found */
  47295. /***/ (function(module, exports, __webpack_require__) {
  47296. "use strict";
  47297. Object.defineProperty(exports, "__esModule", {
  47298. value: true
  47299. });
  47300. exports.autoprefix = undefined;
  47301. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  47302. var _forOwn3 = _interopRequireDefault(_forOwn2);
  47303. 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; };
  47304. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47305. var transforms = {
  47306. borderRadius: function borderRadius(value) {
  47307. return {
  47308. msBorderRadius: value,
  47309. MozBorderRadius: value,
  47310. OBorderRadius: value,
  47311. WebkitBorderRadius: value,
  47312. borderRadius: value
  47313. };
  47314. },
  47315. boxShadow: function boxShadow(value) {
  47316. return {
  47317. msBoxShadow: value,
  47318. MozBoxShadow: value,
  47319. OBoxShadow: value,
  47320. WebkitBoxShadow: value,
  47321. boxShadow: value
  47322. };
  47323. },
  47324. userSelect: function userSelect(value) {
  47325. return {
  47326. WebkitTouchCallout: value,
  47327. KhtmlUserSelect: value,
  47328. MozUserSelect: value,
  47329. msUserSelect: value,
  47330. WebkitUserSelect: value,
  47331. userSelect: value
  47332. };
  47333. },
  47334. flex: function flex(value) {
  47335. return {
  47336. WebkitBoxFlex: value,
  47337. MozBoxFlex: value,
  47338. WebkitFlex: value,
  47339. msFlex: value,
  47340. flex: value
  47341. };
  47342. },
  47343. flexBasis: function flexBasis(value) {
  47344. return {
  47345. WebkitFlexBasis: value,
  47346. flexBasis: value
  47347. };
  47348. },
  47349. justifyContent: function justifyContent(value) {
  47350. return {
  47351. WebkitJustifyContent: value,
  47352. justifyContent: value
  47353. };
  47354. },
  47355. transition: function transition(value) {
  47356. return {
  47357. msTransition: value,
  47358. MozTransition: value,
  47359. OTransition: value,
  47360. WebkitTransition: value,
  47361. transition: value
  47362. };
  47363. },
  47364. transform: function transform(value) {
  47365. return {
  47366. msTransform: value,
  47367. MozTransform: value,
  47368. OTransform: value,
  47369. WebkitTransform: value,
  47370. transform: value
  47371. };
  47372. },
  47373. absolute: function absolute(value) {
  47374. var direction = value && value.split(' ');
  47375. return {
  47376. position: 'absolute',
  47377. top: direction && direction[0],
  47378. right: direction && direction[1],
  47379. bottom: direction && direction[2],
  47380. left: direction && direction[3]
  47381. };
  47382. },
  47383. extend: function extend(name, otherElementStyles) {
  47384. var otherStyle = otherElementStyles[name];
  47385. if (otherStyle) {
  47386. return otherStyle;
  47387. }
  47388. return {
  47389. 'extend': name
  47390. };
  47391. }
  47392. };
  47393. var autoprefix = exports.autoprefix = function autoprefix(elements) {
  47394. var prefixed = {};
  47395. (0, _forOwn3.default)(elements, function (styles, element) {
  47396. var expanded = {};
  47397. (0, _forOwn3.default)(styles, function (value, key) {
  47398. var transform = transforms[key];
  47399. if (transform) {
  47400. expanded = _extends({}, expanded, transform(value));
  47401. } else {
  47402. expanded[key] = value;
  47403. }
  47404. });
  47405. prefixed[element] = expanded;
  47406. });
  47407. return prefixed;
  47408. };
  47409. exports.default = autoprefix;
  47410. /***/ }),
  47411. /***/ "../../node_modules/reactcss/lib/components/active.js":
  47412. /*!**************************************************************************!*\
  47413. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/components/active.js ***!
  47414. \**************************************************************************/
  47415. /*! no static exports found */
  47416. /***/ (function(module, exports, __webpack_require__) {
  47417. "use strict";
  47418. Object.defineProperty(exports, "__esModule", {
  47419. value: true
  47420. });
  47421. exports.active = undefined;
  47422. 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; };
  47423. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47424. var _react2 = _interopRequireDefault(_react);
  47425. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47426. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47427. 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; }
  47428. 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; }
  47429. var active = exports.active = function active(Component) {
  47430. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  47431. return function (_React$Component) {
  47432. _inherits(Active, _React$Component);
  47433. function Active() {
  47434. var _ref;
  47435. var _temp, _this, _ret;
  47436. _classCallCheck(this, Active);
  47437. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  47438. args[_key] = arguments[_key];
  47439. }
  47440. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply(_ref, [this].concat(args))), _this), _this.state = { active: false }, _this.handleMouseDown = function () {
  47441. return _this.setState({ active: true });
  47442. }, _this.handleMouseUp = function () {
  47443. return _this.setState({ active: false });
  47444. }, _this.render = function () {
  47445. return _react2.default.createElement(
  47446. Span,
  47447. { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp },
  47448. _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
  47449. );
  47450. }, _temp), _possibleConstructorReturn(_this, _ret);
  47451. }
  47452. return Active;
  47453. }(_react2.default.Component);
  47454. };
  47455. exports.default = active;
  47456. /***/ }),
  47457. /***/ "../../node_modules/reactcss/lib/components/hover.js":
  47458. /*!*************************************************************************!*\
  47459. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/components/hover.js ***!
  47460. \*************************************************************************/
  47461. /*! no static exports found */
  47462. /***/ (function(module, exports, __webpack_require__) {
  47463. "use strict";
  47464. Object.defineProperty(exports, "__esModule", {
  47465. value: true
  47466. });
  47467. exports.hover = undefined;
  47468. 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; };
  47469. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47470. var _react2 = _interopRequireDefault(_react);
  47471. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47472. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47473. 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; }
  47474. 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; }
  47475. var hover = exports.hover = function hover(Component) {
  47476. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  47477. return function (_React$Component) {
  47478. _inherits(Hover, _React$Component);
  47479. function Hover() {
  47480. var _ref;
  47481. var _temp, _this, _ret;
  47482. _classCallCheck(this, Hover);
  47483. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  47484. args[_key] = arguments[_key];
  47485. }
  47486. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.handleMouseOver = function () {
  47487. return _this.setState({ hover: true });
  47488. }, _this.handleMouseOut = function () {
  47489. return _this.setState({ hover: false });
  47490. }, _this.render = function () {
  47491. return _react2.default.createElement(
  47492. Span,
  47493. { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut },
  47494. _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
  47495. );
  47496. }, _temp), _possibleConstructorReturn(_this, _ret);
  47497. }
  47498. return Hover;
  47499. }(_react2.default.Component);
  47500. };
  47501. exports.default = hover;
  47502. /***/ }),
  47503. /***/ "../../node_modules/reactcss/lib/flattenNames.js":
  47504. /*!*********************************************************************!*\
  47505. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/flattenNames.js ***!
  47506. \*********************************************************************/
  47507. /*! no static exports found */
  47508. /***/ (function(module, exports, __webpack_require__) {
  47509. "use strict";
  47510. Object.defineProperty(exports, "__esModule", {
  47511. value: true
  47512. });
  47513. exports.flattenNames = undefined;
  47514. var _isString2 = __webpack_require__(/*! lodash/isString */ "../../node_modules/lodash/isString.js");
  47515. var _isString3 = _interopRequireDefault(_isString2);
  47516. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  47517. var _forOwn3 = _interopRequireDefault(_forOwn2);
  47518. var _isPlainObject2 = __webpack_require__(/*! lodash/isPlainObject */ "../../node_modules/lodash/isPlainObject.js");
  47519. var _isPlainObject3 = _interopRequireDefault(_isPlainObject2);
  47520. var _map2 = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  47521. var _map3 = _interopRequireDefault(_map2);
  47522. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47523. var flattenNames = exports.flattenNames = function flattenNames() {
  47524. var things = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  47525. var names = [];
  47526. (0, _map3.default)(things, function (thing) {
  47527. if (Array.isArray(thing)) {
  47528. flattenNames(thing).map(function (name) {
  47529. return names.push(name);
  47530. });
  47531. } else if ((0, _isPlainObject3.default)(thing)) {
  47532. (0, _forOwn3.default)(thing, function (value, key) {
  47533. value === true && names.push(key);
  47534. names.push(key + '-' + value);
  47535. });
  47536. } else if ((0, _isString3.default)(thing)) {
  47537. names.push(thing);
  47538. }
  47539. });
  47540. return names;
  47541. };
  47542. exports.default = flattenNames;
  47543. /***/ }),
  47544. /***/ "../../node_modules/reactcss/lib/index.js":
  47545. /*!**************************************************************!*\
  47546. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/index.js ***!
  47547. \**************************************************************/
  47548. /*! no static exports found */
  47549. /***/ (function(module, exports, __webpack_require__) {
  47550. "use strict";
  47551. Object.defineProperty(exports, "__esModule", {
  47552. value: true
  47553. });
  47554. exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
  47555. var _flattenNames = __webpack_require__(/*! ./flattenNames */ "../../node_modules/reactcss/lib/flattenNames.js");
  47556. var _flattenNames2 = _interopRequireDefault(_flattenNames);
  47557. var _mergeClasses = __webpack_require__(/*! ./mergeClasses */ "../../node_modules/reactcss/lib/mergeClasses.js");
  47558. var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
  47559. var _autoprefix = __webpack_require__(/*! ./autoprefix */ "../../node_modules/reactcss/lib/autoprefix.js");
  47560. var _autoprefix2 = _interopRequireDefault(_autoprefix);
  47561. var _hover2 = __webpack_require__(/*! ./components/hover */ "../../node_modules/reactcss/lib/components/hover.js");
  47562. var _hover3 = _interopRequireDefault(_hover2);
  47563. var _active = __webpack_require__(/*! ./components/active */ "../../node_modules/reactcss/lib/components/active.js");
  47564. var _active2 = _interopRequireDefault(_active);
  47565. var _loop2 = __webpack_require__(/*! ./loop */ "../../node_modules/reactcss/lib/loop.js");
  47566. var _loop3 = _interopRequireDefault(_loop2);
  47567. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47568. exports.hover = _hover3.default;
  47569. exports.handleHover = _hover3.default;
  47570. exports.handleActive = _active2.default;
  47571. exports.loop = _loop3.default;
  47572. var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
  47573. for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  47574. activations[_key - 1] = arguments[_key];
  47575. }
  47576. var activeNames = (0, _flattenNames2.default)(activations);
  47577. var merged = (0, _mergeClasses2.default)(classes, activeNames);
  47578. return (0, _autoprefix2.default)(merged);
  47579. };
  47580. exports.default = ReactCSS;
  47581. /***/ }),
  47582. /***/ "../../node_modules/reactcss/lib/loop.js":
  47583. /*!*************************************************************!*\
  47584. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/loop.js ***!
  47585. \*************************************************************/
  47586. /*! no static exports found */
  47587. /***/ (function(module, exports, __webpack_require__) {
  47588. "use strict";
  47589. Object.defineProperty(exports, "__esModule", {
  47590. value: true
  47591. });
  47592. var loopable = function loopable(i, length) {
  47593. var props = {};
  47594. var setProp = function setProp(name) {
  47595. var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  47596. props[name] = value;
  47597. };
  47598. i === 0 && setProp('first-child');
  47599. i === length - 1 && setProp('last-child');
  47600. (i === 0 || i % 2 === 0) && setProp('even');
  47601. Math.abs(i % 2) === 1 && setProp('odd');
  47602. setProp('nth-child', i);
  47603. return props;
  47604. };
  47605. exports.default = loopable;
  47606. /***/ }),
  47607. /***/ "../../node_modules/reactcss/lib/mergeClasses.js":
  47608. /*!*********************************************************************!*\
  47609. !*** D:/Repos/Babylon.js/node_modules/reactcss/lib/mergeClasses.js ***!
  47610. \*********************************************************************/
  47611. /*! no static exports found */
  47612. /***/ (function(module, exports, __webpack_require__) {
  47613. "use strict";
  47614. Object.defineProperty(exports, "__esModule", {
  47615. value: true
  47616. });
  47617. exports.mergeClasses = undefined;
  47618. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  47619. var _forOwn3 = _interopRequireDefault(_forOwn2);
  47620. var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js");
  47621. var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);
  47622. 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; };
  47623. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47624. var mergeClasses = exports.mergeClasses = function mergeClasses(classes) {
  47625. var activeNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  47626. var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};
  47627. activeNames.map(function (name) {
  47628. var toMerge = classes[name];
  47629. if (toMerge) {
  47630. (0, _forOwn3.default)(toMerge, function (value, key) {
  47631. if (!styles[key]) {
  47632. styles[key] = {};
  47633. }
  47634. styles[key] = _extends({}, styles[key], toMerge[key]);
  47635. });
  47636. }
  47637. return name;
  47638. });
  47639. return styles;
  47640. };
  47641. exports.default = mergeClasses;
  47642. /***/ }),
  47643. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  47644. /*!***************************************************************************************!*\
  47645. !*** D:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  47646. \***************************************************************************************/
  47647. /*! no static exports found */
  47648. /***/ (function(module, exports, __webpack_require__) {
  47649. "use strict";
  47650. /** @license React v0.19.1
  47651. * scheduler-tracing.development.js
  47652. *
  47653. * Copyright (c) Facebook, Inc. and its affiliates.
  47654. *
  47655. * This source code is licensed under the MIT license found in the
  47656. * LICENSE file in the root directory of this source tree.
  47657. */
  47658. if (true) {
  47659. (function() {
  47660. 'use strict';
  47661. var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
  47662. var interactionIDCounter = 0;
  47663. var threadIDCounter = 0; // Set of currently traced interactions.
  47664. // Interactions "stack"–
  47665. // Meaning that newly traced interactions are appended to the previously active set.
  47666. // When an interaction goes out of scope, the previous set (if any) is restored.
  47667. exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.
  47668. exports.__subscriberRef = null;
  47669. {
  47670. exports.__interactionsRef = {
  47671. current: new Set()
  47672. };
  47673. exports.__subscriberRef = {
  47674. current: null
  47675. };
  47676. }
  47677. function unstable_clear(callback) {
  47678. var prevInteractions = exports.__interactionsRef.current;
  47679. exports.__interactionsRef.current = new Set();
  47680. try {
  47681. return callback();
  47682. } finally {
  47683. exports.__interactionsRef.current = prevInteractions;
  47684. }
  47685. }
  47686. function unstable_getCurrent() {
  47687. {
  47688. return exports.__interactionsRef.current;
  47689. }
  47690. }
  47691. function unstable_getThreadID() {
  47692. return ++threadIDCounter;
  47693. }
  47694. function unstable_trace(name, timestamp, callback) {
  47695. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  47696. var interaction = {
  47697. __count: 1,
  47698. id: interactionIDCounter++,
  47699. name: name,
  47700. timestamp: timestamp
  47701. };
  47702. var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
  47703. // To do that, clone the current interactions.
  47704. // The previous set will be restored upon completion.
  47705. var interactions = new Set(prevInteractions);
  47706. interactions.add(interaction);
  47707. exports.__interactionsRef.current = interactions;
  47708. var subscriber = exports.__subscriberRef.current;
  47709. var returnValue;
  47710. try {
  47711. if (subscriber !== null) {
  47712. subscriber.onInteractionTraced(interaction);
  47713. }
  47714. } finally {
  47715. try {
  47716. if (subscriber !== null) {
  47717. subscriber.onWorkStarted(interactions, threadID);
  47718. }
  47719. } finally {
  47720. try {
  47721. returnValue = callback();
  47722. } finally {
  47723. exports.__interactionsRef.current = prevInteractions;
  47724. try {
  47725. if (subscriber !== null) {
  47726. subscriber.onWorkStopped(interactions, threadID);
  47727. }
  47728. } finally {
  47729. interaction.__count--; // If no async work was scheduled for this interaction,
  47730. // Notify subscribers that it's completed.
  47731. if (subscriber !== null && interaction.__count === 0) {
  47732. subscriber.onInteractionScheduledWorkCompleted(interaction);
  47733. }
  47734. }
  47735. }
  47736. }
  47737. }
  47738. return returnValue;
  47739. }
  47740. function unstable_wrap(callback) {
  47741. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  47742. var wrappedInteractions = exports.__interactionsRef.current;
  47743. var subscriber = exports.__subscriberRef.current;
  47744. if (subscriber !== null) {
  47745. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  47746. } // Update the pending async work count for the current interactions.
  47747. // Update after calling subscribers in case of error.
  47748. wrappedInteractions.forEach(function (interaction) {
  47749. interaction.__count++;
  47750. });
  47751. var hasRun = false;
  47752. function wrapped() {
  47753. var prevInteractions = exports.__interactionsRef.current;
  47754. exports.__interactionsRef.current = wrappedInteractions;
  47755. subscriber = exports.__subscriberRef.current;
  47756. try {
  47757. var returnValue;
  47758. try {
  47759. if (subscriber !== null) {
  47760. subscriber.onWorkStarted(wrappedInteractions, threadID);
  47761. }
  47762. } finally {
  47763. try {
  47764. returnValue = callback.apply(undefined, arguments);
  47765. } finally {
  47766. exports.__interactionsRef.current = prevInteractions;
  47767. if (subscriber !== null) {
  47768. subscriber.onWorkStopped(wrappedInteractions, threadID);
  47769. }
  47770. }
  47771. }
  47772. return returnValue;
  47773. } finally {
  47774. if (!hasRun) {
  47775. // We only expect a wrapped function to be executed once,
  47776. // But in the event that it's executed more than once–
  47777. // Only decrement the outstanding interaction counts once.
  47778. hasRun = true; // Update pending async counts for all wrapped interactions.
  47779. // If this was the last scheduled async work for any of them,
  47780. // Mark them as completed.
  47781. wrappedInteractions.forEach(function (interaction) {
  47782. interaction.__count--;
  47783. if (subscriber !== null && interaction.__count === 0) {
  47784. subscriber.onInteractionScheduledWorkCompleted(interaction);
  47785. }
  47786. });
  47787. }
  47788. }
  47789. }
  47790. wrapped.cancel = function cancel() {
  47791. subscriber = exports.__subscriberRef.current;
  47792. try {
  47793. if (subscriber !== null) {
  47794. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  47795. }
  47796. } finally {
  47797. // Update pending async counts for all wrapped interactions.
  47798. // If this was the last scheduled async work for any of them,
  47799. // Mark them as completed.
  47800. wrappedInteractions.forEach(function (interaction) {
  47801. interaction.__count--;
  47802. if (subscriber && interaction.__count === 0) {
  47803. subscriber.onInteractionScheduledWorkCompleted(interaction);
  47804. }
  47805. });
  47806. }
  47807. };
  47808. return wrapped;
  47809. }
  47810. var subscribers = null;
  47811. {
  47812. subscribers = new Set();
  47813. }
  47814. function unstable_subscribe(subscriber) {
  47815. {
  47816. subscribers.add(subscriber);
  47817. if (subscribers.size === 1) {
  47818. exports.__subscriberRef.current = {
  47819. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  47820. onInteractionTraced: onInteractionTraced,
  47821. onWorkCanceled: onWorkCanceled,
  47822. onWorkScheduled: onWorkScheduled,
  47823. onWorkStarted: onWorkStarted,
  47824. onWorkStopped: onWorkStopped
  47825. };
  47826. }
  47827. }
  47828. }
  47829. function unstable_unsubscribe(subscriber) {
  47830. {
  47831. subscribers.delete(subscriber);
  47832. if (subscribers.size === 0) {
  47833. exports.__subscriberRef.current = null;
  47834. }
  47835. }
  47836. }
  47837. function onInteractionTraced(interaction) {
  47838. var didCatchError = false;
  47839. var caughtError = null;
  47840. subscribers.forEach(function (subscriber) {
  47841. try {
  47842. subscriber.onInteractionTraced(interaction);
  47843. } catch (error) {
  47844. if (!didCatchError) {
  47845. didCatchError = true;
  47846. caughtError = error;
  47847. }
  47848. }
  47849. });
  47850. if (didCatchError) {
  47851. throw caughtError;
  47852. }
  47853. }
  47854. function onInteractionScheduledWorkCompleted(interaction) {
  47855. var didCatchError = false;
  47856. var caughtError = null;
  47857. subscribers.forEach(function (subscriber) {
  47858. try {
  47859. subscriber.onInteractionScheduledWorkCompleted(interaction);
  47860. } catch (error) {
  47861. if (!didCatchError) {
  47862. didCatchError = true;
  47863. caughtError = error;
  47864. }
  47865. }
  47866. });
  47867. if (didCatchError) {
  47868. throw caughtError;
  47869. }
  47870. }
  47871. function onWorkScheduled(interactions, threadID) {
  47872. var didCatchError = false;
  47873. var caughtError = null;
  47874. subscribers.forEach(function (subscriber) {
  47875. try {
  47876. subscriber.onWorkScheduled(interactions, threadID);
  47877. } catch (error) {
  47878. if (!didCatchError) {
  47879. didCatchError = true;
  47880. caughtError = error;
  47881. }
  47882. }
  47883. });
  47884. if (didCatchError) {
  47885. throw caughtError;
  47886. }
  47887. }
  47888. function onWorkStarted(interactions, threadID) {
  47889. var didCatchError = false;
  47890. var caughtError = null;
  47891. subscribers.forEach(function (subscriber) {
  47892. try {
  47893. subscriber.onWorkStarted(interactions, threadID);
  47894. } catch (error) {
  47895. if (!didCatchError) {
  47896. didCatchError = true;
  47897. caughtError = error;
  47898. }
  47899. }
  47900. });
  47901. if (didCatchError) {
  47902. throw caughtError;
  47903. }
  47904. }
  47905. function onWorkStopped(interactions, threadID) {
  47906. var didCatchError = false;
  47907. var caughtError = null;
  47908. subscribers.forEach(function (subscriber) {
  47909. try {
  47910. subscriber.onWorkStopped(interactions, threadID);
  47911. } catch (error) {
  47912. if (!didCatchError) {
  47913. didCatchError = true;
  47914. caughtError = error;
  47915. }
  47916. }
  47917. });
  47918. if (didCatchError) {
  47919. throw caughtError;
  47920. }
  47921. }
  47922. function onWorkCanceled(interactions, threadID) {
  47923. var didCatchError = false;
  47924. var caughtError = null;
  47925. subscribers.forEach(function (subscriber) {
  47926. try {
  47927. subscriber.onWorkCanceled(interactions, threadID);
  47928. } catch (error) {
  47929. if (!didCatchError) {
  47930. didCatchError = true;
  47931. caughtError = error;
  47932. }
  47933. }
  47934. });
  47935. if (didCatchError) {
  47936. throw caughtError;
  47937. }
  47938. }
  47939. exports.unstable_clear = unstable_clear;
  47940. exports.unstable_getCurrent = unstable_getCurrent;
  47941. exports.unstable_getThreadID = unstable_getThreadID;
  47942. exports.unstable_subscribe = unstable_subscribe;
  47943. exports.unstable_trace = unstable_trace;
  47944. exports.unstable_unsubscribe = unstable_unsubscribe;
  47945. exports.unstable_wrap = unstable_wrap;
  47946. })();
  47947. }
  47948. /***/ }),
  47949. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  47950. /*!*******************************************************************************!*\
  47951. !*** D:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  47952. \*******************************************************************************/
  47953. /*! no static exports found */
  47954. /***/ (function(module, exports, __webpack_require__) {
  47955. "use strict";
  47956. /** @license React v0.19.1
  47957. * scheduler.development.js
  47958. *
  47959. * Copyright (c) Facebook, Inc. and its affiliates.
  47960. *
  47961. * This source code is licensed under the MIT license found in the
  47962. * LICENSE file in the root directory of this source tree.
  47963. */
  47964. if (true) {
  47965. (function() {
  47966. 'use strict';
  47967. var enableSchedulerDebugging = false;
  47968. var enableProfiling = true;
  47969. var requestHostCallback;
  47970. var requestHostTimeout;
  47971. var cancelHostTimeout;
  47972. var shouldYieldToHost;
  47973. var requestPaint;
  47974. if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
  47975. // implementation using setTimeout.
  47976. typeof window === 'undefined' || // Check if MessageChannel is supported, too.
  47977. typeof MessageChannel !== 'function') {
  47978. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  47979. // fallback to a naive implementation.
  47980. var _callback = null;
  47981. var _timeoutID = null;
  47982. var _flushCallback = function () {
  47983. if (_callback !== null) {
  47984. try {
  47985. var currentTime = exports.unstable_now();
  47986. var hasRemainingTime = true;
  47987. _callback(hasRemainingTime, currentTime);
  47988. _callback = null;
  47989. } catch (e) {
  47990. setTimeout(_flushCallback, 0);
  47991. throw e;
  47992. }
  47993. }
  47994. };
  47995. var initialTime = Date.now();
  47996. exports.unstable_now = function () {
  47997. return Date.now() - initialTime;
  47998. };
  47999. requestHostCallback = function (cb) {
  48000. if (_callback !== null) {
  48001. // Protect against re-entrancy.
  48002. setTimeout(requestHostCallback, 0, cb);
  48003. } else {
  48004. _callback = cb;
  48005. setTimeout(_flushCallback, 0);
  48006. }
  48007. };
  48008. requestHostTimeout = function (cb, ms) {
  48009. _timeoutID = setTimeout(cb, ms);
  48010. };
  48011. cancelHostTimeout = function () {
  48012. clearTimeout(_timeoutID);
  48013. };
  48014. shouldYieldToHost = function () {
  48015. return false;
  48016. };
  48017. requestPaint = exports.unstable_forceFrameRate = function () {};
  48018. } else {
  48019. // Capture local references to native APIs, in case a polyfill overrides them.
  48020. var performance = window.performance;
  48021. var _Date = window.Date;
  48022. var _setTimeout = window.setTimeout;
  48023. var _clearTimeout = window.clearTimeout;
  48024. if (typeof console !== 'undefined') {
  48025. // TODO: Scheduler no longer requires these methods to be polyfilled. But
  48026. // maybe we want to continue warning if they don't exist, to preserve the
  48027. // option to rely on it in the future?
  48028. var requestAnimationFrame = window.requestAnimationFrame;
  48029. var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link
  48030. if (typeof requestAnimationFrame !== 'function') {
  48031. // Using console['error'] to evade Babel and ESLint
  48032. console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  48033. }
  48034. if (typeof cancelAnimationFrame !== 'function') {
  48035. // Using console['error'] to evade Babel and ESLint
  48036. console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  48037. }
  48038. }
  48039. if (typeof performance === 'object' && typeof performance.now === 'function') {
  48040. exports.unstable_now = function () {
  48041. return performance.now();
  48042. };
  48043. } else {
  48044. var _initialTime = _Date.now();
  48045. exports.unstable_now = function () {
  48046. return _Date.now() - _initialTime;
  48047. };
  48048. }
  48049. var isMessageLoopRunning = false;
  48050. var scheduledHostCallback = null;
  48051. var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
  48052. // thread, like user events. By default, it yields multiple times per frame.
  48053. // It does not attempt to align with frame boundaries, since most tasks don't
  48054. // need to be frame aligned; for those that do, use requestAnimationFrame.
  48055. var yieldInterval = 5;
  48056. var deadline = 0; // TODO: Make this configurable
  48057. {
  48058. // `isInputPending` is not available. Since we have no way of knowing if
  48059. // there's pending input, always yield at the end of the frame.
  48060. shouldYieldToHost = function () {
  48061. return exports.unstable_now() >= deadline;
  48062. }; // Since we yield every frame regardless, `requestPaint` has no effect.
  48063. requestPaint = function () {};
  48064. }
  48065. exports.unstable_forceFrameRate = function (fps) {
  48066. if (fps < 0 || fps > 125) {
  48067. // Using console['error'] to evade Babel and ESLint
  48068. console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  48069. return;
  48070. }
  48071. if (fps > 0) {
  48072. yieldInterval = Math.floor(1000 / fps);
  48073. } else {
  48074. // reset the framerate
  48075. yieldInterval = 5;
  48076. }
  48077. };
  48078. var performWorkUntilDeadline = function () {
  48079. if (scheduledHostCallback !== null) {
  48080. var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
  48081. // cycle. This means there's always time remaining at the beginning of
  48082. // the message event.
  48083. deadline = currentTime + yieldInterval;
  48084. var hasTimeRemaining = true;
  48085. try {
  48086. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  48087. if (!hasMoreWork) {
  48088. isMessageLoopRunning = false;
  48089. scheduledHostCallback = null;
  48090. } else {
  48091. // If there's more work, schedule the next message event at the end
  48092. // of the preceding one.
  48093. port.postMessage(null);
  48094. }
  48095. } catch (error) {
  48096. // If a scheduler task throws, exit the current browser task so the
  48097. // error can be observed.
  48098. port.postMessage(null);
  48099. throw error;
  48100. }
  48101. } else {
  48102. isMessageLoopRunning = false;
  48103. } // Yielding to the browser will give it a chance to paint, so we can
  48104. };
  48105. var channel = new MessageChannel();
  48106. var port = channel.port2;
  48107. channel.port1.onmessage = performWorkUntilDeadline;
  48108. requestHostCallback = function (callback) {
  48109. scheduledHostCallback = callback;
  48110. if (!isMessageLoopRunning) {
  48111. isMessageLoopRunning = true;
  48112. port.postMessage(null);
  48113. }
  48114. };
  48115. requestHostTimeout = function (callback, ms) {
  48116. taskTimeoutID = _setTimeout(function () {
  48117. callback(exports.unstable_now());
  48118. }, ms);
  48119. };
  48120. cancelHostTimeout = function () {
  48121. _clearTimeout(taskTimeoutID);
  48122. taskTimeoutID = -1;
  48123. };
  48124. }
  48125. function push(heap, node) {
  48126. var index = heap.length;
  48127. heap.push(node);
  48128. siftUp(heap, node, index);
  48129. }
  48130. function peek(heap) {
  48131. var first = heap[0];
  48132. return first === undefined ? null : first;
  48133. }
  48134. function pop(heap) {
  48135. var first = heap[0];
  48136. if (first !== undefined) {
  48137. var last = heap.pop();
  48138. if (last !== first) {
  48139. heap[0] = last;
  48140. siftDown(heap, last, 0);
  48141. }
  48142. return first;
  48143. } else {
  48144. return null;
  48145. }
  48146. }
  48147. function siftUp(heap, node, i) {
  48148. var index = i;
  48149. while (true) {
  48150. var parentIndex = index - 1 >>> 1;
  48151. var parent = heap[parentIndex];
  48152. if (parent !== undefined && compare(parent, node) > 0) {
  48153. // The parent is larger. Swap positions.
  48154. heap[parentIndex] = node;
  48155. heap[index] = parent;
  48156. index = parentIndex;
  48157. } else {
  48158. // The parent is smaller. Exit.
  48159. return;
  48160. }
  48161. }
  48162. }
  48163. function siftDown(heap, node, i) {
  48164. var index = i;
  48165. var length = heap.length;
  48166. while (index < length) {
  48167. var leftIndex = (index + 1) * 2 - 1;
  48168. var left = heap[leftIndex];
  48169. var rightIndex = leftIndex + 1;
  48170. var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
  48171. if (left !== undefined && compare(left, node) < 0) {
  48172. if (right !== undefined && compare(right, left) < 0) {
  48173. heap[index] = right;
  48174. heap[rightIndex] = node;
  48175. index = rightIndex;
  48176. } else {
  48177. heap[index] = left;
  48178. heap[leftIndex] = node;
  48179. index = leftIndex;
  48180. }
  48181. } else if (right !== undefined && compare(right, node) < 0) {
  48182. heap[index] = right;
  48183. heap[rightIndex] = node;
  48184. index = rightIndex;
  48185. } else {
  48186. // Neither child is smaller. Exit.
  48187. return;
  48188. }
  48189. }
  48190. }
  48191. function compare(a, b) {
  48192. // Compare sort index first, then task id.
  48193. var diff = a.sortIndex - b.sortIndex;
  48194. return diff !== 0 ? diff : a.id - b.id;
  48195. }
  48196. // TODO: Use symbols?
  48197. var NoPriority = 0;
  48198. var ImmediatePriority = 1;
  48199. var UserBlockingPriority = 2;
  48200. var NormalPriority = 3;
  48201. var LowPriority = 4;
  48202. var IdlePriority = 5;
  48203. var runIdCounter = 0;
  48204. var mainThreadIdCounter = 0;
  48205. var profilingStateSize = 4;
  48206. var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer
  48207. typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
  48208. typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
  48209. ;
  48210. var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
  48211. var PRIORITY = 0;
  48212. var CURRENT_TASK_ID = 1;
  48213. var CURRENT_RUN_ID = 2;
  48214. var QUEUE_SIZE = 3;
  48215. {
  48216. profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
  48217. // array might include canceled tasks.
  48218. profilingState[QUEUE_SIZE] = 0;
  48219. profilingState[CURRENT_TASK_ID] = 0;
  48220. } // Bytes per element is 4
  48221. var INITIAL_EVENT_LOG_SIZE = 131072;
  48222. var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes
  48223. var eventLogSize = 0;
  48224. var eventLogBuffer = null;
  48225. var eventLog = null;
  48226. var eventLogIndex = 0;
  48227. var TaskStartEvent = 1;
  48228. var TaskCompleteEvent = 2;
  48229. var TaskErrorEvent = 3;
  48230. var TaskCancelEvent = 4;
  48231. var TaskRunEvent = 5;
  48232. var TaskYieldEvent = 6;
  48233. var SchedulerSuspendEvent = 7;
  48234. var SchedulerResumeEvent = 8;
  48235. function logEvent(entries) {
  48236. if (eventLog !== null) {
  48237. var offset = eventLogIndex;
  48238. eventLogIndex += entries.length;
  48239. if (eventLogIndex + 1 > eventLogSize) {
  48240. eventLogSize *= 2;
  48241. if (eventLogSize > MAX_EVENT_LOG_SIZE) {
  48242. // Using console['error'] to evade Babel and ESLint
  48243. console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
  48244. stopLoggingProfilingEvents();
  48245. return;
  48246. }
  48247. var newEventLog = new Int32Array(eventLogSize * 4);
  48248. newEventLog.set(eventLog);
  48249. eventLogBuffer = newEventLog.buffer;
  48250. eventLog = newEventLog;
  48251. }
  48252. eventLog.set(entries, offset);
  48253. }
  48254. }
  48255. function startLoggingProfilingEvents() {
  48256. eventLogSize = INITIAL_EVENT_LOG_SIZE;
  48257. eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
  48258. eventLog = new Int32Array(eventLogBuffer);
  48259. eventLogIndex = 0;
  48260. }
  48261. function stopLoggingProfilingEvents() {
  48262. var buffer = eventLogBuffer;
  48263. eventLogSize = 0;
  48264. eventLogBuffer = null;
  48265. eventLog = null;
  48266. eventLogIndex = 0;
  48267. return buffer;
  48268. }
  48269. function markTaskStart(task, ms) {
  48270. {
  48271. profilingState[QUEUE_SIZE]++;
  48272. if (eventLog !== null) {
  48273. // performance.now returns a float, representing milliseconds. When the
  48274. // event is logged, it's coerced to an int. Convert to microseconds to
  48275. // maintain extra degrees of precision.
  48276. logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
  48277. }
  48278. }
  48279. }
  48280. function markTaskCompleted(task, ms) {
  48281. {
  48282. profilingState[PRIORITY] = NoPriority;
  48283. profilingState[CURRENT_TASK_ID] = 0;
  48284. profilingState[QUEUE_SIZE]--;
  48285. if (eventLog !== null) {
  48286. logEvent([TaskCompleteEvent, ms * 1000, task.id]);
  48287. }
  48288. }
  48289. }
  48290. function markTaskCanceled(task, ms) {
  48291. {
  48292. profilingState[QUEUE_SIZE]--;
  48293. if (eventLog !== null) {
  48294. logEvent([TaskCancelEvent, ms * 1000, task.id]);
  48295. }
  48296. }
  48297. }
  48298. function markTaskErrored(task, ms) {
  48299. {
  48300. profilingState[PRIORITY] = NoPriority;
  48301. profilingState[CURRENT_TASK_ID] = 0;
  48302. profilingState[QUEUE_SIZE]--;
  48303. if (eventLog !== null) {
  48304. logEvent([TaskErrorEvent, ms * 1000, task.id]);
  48305. }
  48306. }
  48307. }
  48308. function markTaskRun(task, ms) {
  48309. {
  48310. runIdCounter++;
  48311. profilingState[PRIORITY] = task.priorityLevel;
  48312. profilingState[CURRENT_TASK_ID] = task.id;
  48313. profilingState[CURRENT_RUN_ID] = runIdCounter;
  48314. if (eventLog !== null) {
  48315. logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
  48316. }
  48317. }
  48318. }
  48319. function markTaskYield(task, ms) {
  48320. {
  48321. profilingState[PRIORITY] = NoPriority;
  48322. profilingState[CURRENT_TASK_ID] = 0;
  48323. profilingState[CURRENT_RUN_ID] = 0;
  48324. if (eventLog !== null) {
  48325. logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
  48326. }
  48327. }
  48328. }
  48329. function markSchedulerSuspended(ms) {
  48330. {
  48331. mainThreadIdCounter++;
  48332. if (eventLog !== null) {
  48333. logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
  48334. }
  48335. }
  48336. }
  48337. function markSchedulerUnsuspended(ms) {
  48338. {
  48339. if (eventLog !== null) {
  48340. logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
  48341. }
  48342. }
  48343. }
  48344. /* eslint-disable no-var */
  48345. // Math.pow(2, 30) - 1
  48346. // 0b111111111111111111111111111111
  48347. var maxSigned31BitInt = 1073741823; // Times out immediately
  48348. var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
  48349. var USER_BLOCKING_PRIORITY = 250;
  48350. var NORMAL_PRIORITY_TIMEOUT = 5000;
  48351. var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
  48352. var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap
  48353. var taskQueue = [];
  48354. var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
  48355. var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
  48356. var currentTask = null;
  48357. var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
  48358. var isPerformingWork = false;
  48359. var isHostCallbackScheduled = false;
  48360. var isHostTimeoutScheduled = false;
  48361. function advanceTimers(currentTime) {
  48362. // Check for tasks that are no longer delayed and add them to the queue.
  48363. var timer = peek(timerQueue);
  48364. while (timer !== null) {
  48365. if (timer.callback === null) {
  48366. // Timer was cancelled.
  48367. pop(timerQueue);
  48368. } else if (timer.startTime <= currentTime) {
  48369. // Timer fired. Transfer to the task queue.
  48370. pop(timerQueue);
  48371. timer.sortIndex = timer.expirationTime;
  48372. push(taskQueue, timer);
  48373. {
  48374. markTaskStart(timer, currentTime);
  48375. timer.isQueued = true;
  48376. }
  48377. } else {
  48378. // Remaining timers are pending.
  48379. return;
  48380. }
  48381. timer = peek(timerQueue);
  48382. }
  48383. }
  48384. function handleTimeout(currentTime) {
  48385. isHostTimeoutScheduled = false;
  48386. advanceTimers(currentTime);
  48387. if (!isHostCallbackScheduled) {
  48388. if (peek(taskQueue) !== null) {
  48389. isHostCallbackScheduled = true;
  48390. requestHostCallback(flushWork);
  48391. } else {
  48392. var firstTimer = peek(timerQueue);
  48393. if (firstTimer !== null) {
  48394. requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
  48395. }
  48396. }
  48397. }
  48398. }
  48399. function flushWork(hasTimeRemaining, initialTime) {
  48400. {
  48401. markSchedulerUnsuspended(initialTime);
  48402. } // We'll need a host callback the next time work is scheduled.
  48403. isHostCallbackScheduled = false;
  48404. if (isHostTimeoutScheduled) {
  48405. // We scheduled a timeout but it's no longer needed. Cancel it.
  48406. isHostTimeoutScheduled = false;
  48407. cancelHostTimeout();
  48408. }
  48409. isPerformingWork = true;
  48410. var previousPriorityLevel = currentPriorityLevel;
  48411. try {
  48412. if (enableProfiling) {
  48413. try {
  48414. return workLoop(hasTimeRemaining, initialTime);
  48415. } catch (error) {
  48416. if (currentTask !== null) {
  48417. var currentTime = exports.unstable_now();
  48418. markTaskErrored(currentTask, currentTime);
  48419. currentTask.isQueued = false;
  48420. }
  48421. throw error;
  48422. }
  48423. } else {
  48424. // No catch in prod codepath.
  48425. return workLoop(hasTimeRemaining, initialTime);
  48426. }
  48427. } finally {
  48428. currentTask = null;
  48429. currentPriorityLevel = previousPriorityLevel;
  48430. isPerformingWork = false;
  48431. {
  48432. var _currentTime = exports.unstable_now();
  48433. markSchedulerSuspended(_currentTime);
  48434. }
  48435. }
  48436. }
  48437. function workLoop(hasTimeRemaining, initialTime) {
  48438. var currentTime = initialTime;
  48439. advanceTimers(currentTime);
  48440. currentTask = peek(taskQueue);
  48441. while (currentTask !== null && !(enableSchedulerDebugging )) {
  48442. if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
  48443. // This currentTask hasn't expired, and we've reached the deadline.
  48444. break;
  48445. }
  48446. var callback = currentTask.callback;
  48447. if (callback !== null) {
  48448. currentTask.callback = null;
  48449. currentPriorityLevel = currentTask.priorityLevel;
  48450. var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
  48451. markTaskRun(currentTask, currentTime);
  48452. var continuationCallback = callback(didUserCallbackTimeout);
  48453. currentTime = exports.unstable_now();
  48454. if (typeof continuationCallback === 'function') {
  48455. currentTask.callback = continuationCallback;
  48456. markTaskYield(currentTask, currentTime);
  48457. } else {
  48458. {
  48459. markTaskCompleted(currentTask, currentTime);
  48460. currentTask.isQueued = false;
  48461. }
  48462. if (currentTask === peek(taskQueue)) {
  48463. pop(taskQueue);
  48464. }
  48465. }
  48466. advanceTimers(currentTime);
  48467. } else {
  48468. pop(taskQueue);
  48469. }
  48470. currentTask = peek(taskQueue);
  48471. } // Return whether there's additional work
  48472. if (currentTask !== null) {
  48473. return true;
  48474. } else {
  48475. var firstTimer = peek(timerQueue);
  48476. if (firstTimer !== null) {
  48477. requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
  48478. }
  48479. return false;
  48480. }
  48481. }
  48482. function unstable_runWithPriority(priorityLevel, eventHandler) {
  48483. switch (priorityLevel) {
  48484. case ImmediatePriority:
  48485. case UserBlockingPriority:
  48486. case NormalPriority:
  48487. case LowPriority:
  48488. case IdlePriority:
  48489. break;
  48490. default:
  48491. priorityLevel = NormalPriority;
  48492. }
  48493. var previousPriorityLevel = currentPriorityLevel;
  48494. currentPriorityLevel = priorityLevel;
  48495. try {
  48496. return eventHandler();
  48497. } finally {
  48498. currentPriorityLevel = previousPriorityLevel;
  48499. }
  48500. }
  48501. function unstable_next(eventHandler) {
  48502. var priorityLevel;
  48503. switch (currentPriorityLevel) {
  48504. case ImmediatePriority:
  48505. case UserBlockingPriority:
  48506. case NormalPriority:
  48507. // Shift down to normal priority
  48508. priorityLevel = NormalPriority;
  48509. break;
  48510. default:
  48511. // Anything lower than normal priority should remain at the current level.
  48512. priorityLevel = currentPriorityLevel;
  48513. break;
  48514. }
  48515. var previousPriorityLevel = currentPriorityLevel;
  48516. currentPriorityLevel = priorityLevel;
  48517. try {
  48518. return eventHandler();
  48519. } finally {
  48520. currentPriorityLevel = previousPriorityLevel;
  48521. }
  48522. }
  48523. function unstable_wrapCallback(callback) {
  48524. var parentPriorityLevel = currentPriorityLevel;
  48525. return function () {
  48526. // This is a fork of runWithPriority, inlined for performance.
  48527. var previousPriorityLevel = currentPriorityLevel;
  48528. currentPriorityLevel = parentPriorityLevel;
  48529. try {
  48530. return callback.apply(this, arguments);
  48531. } finally {
  48532. currentPriorityLevel = previousPriorityLevel;
  48533. }
  48534. };
  48535. }
  48536. function timeoutForPriorityLevel(priorityLevel) {
  48537. switch (priorityLevel) {
  48538. case ImmediatePriority:
  48539. return IMMEDIATE_PRIORITY_TIMEOUT;
  48540. case UserBlockingPriority:
  48541. return USER_BLOCKING_PRIORITY;
  48542. case IdlePriority:
  48543. return IDLE_PRIORITY;
  48544. case LowPriority:
  48545. return LOW_PRIORITY_TIMEOUT;
  48546. case NormalPriority:
  48547. default:
  48548. return NORMAL_PRIORITY_TIMEOUT;
  48549. }
  48550. }
  48551. function unstable_scheduleCallback(priorityLevel, callback, options) {
  48552. var currentTime = exports.unstable_now();
  48553. var startTime;
  48554. var timeout;
  48555. if (typeof options === 'object' && options !== null) {
  48556. var delay = options.delay;
  48557. if (typeof delay === 'number' && delay > 0) {
  48558. startTime = currentTime + delay;
  48559. } else {
  48560. startTime = currentTime;
  48561. }
  48562. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  48563. } else {
  48564. timeout = timeoutForPriorityLevel(priorityLevel);
  48565. startTime = currentTime;
  48566. }
  48567. var expirationTime = startTime + timeout;
  48568. var newTask = {
  48569. id: taskIdCounter++,
  48570. callback: callback,
  48571. priorityLevel: priorityLevel,
  48572. startTime: startTime,
  48573. expirationTime: expirationTime,
  48574. sortIndex: -1
  48575. };
  48576. {
  48577. newTask.isQueued = false;
  48578. }
  48579. if (startTime > currentTime) {
  48580. // This is a delayed task.
  48581. newTask.sortIndex = startTime;
  48582. push(timerQueue, newTask);
  48583. if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
  48584. // All tasks are delayed, and this is the task with the earliest delay.
  48585. if (isHostTimeoutScheduled) {
  48586. // Cancel an existing timeout.
  48587. cancelHostTimeout();
  48588. } else {
  48589. isHostTimeoutScheduled = true;
  48590. } // Schedule a timeout.
  48591. requestHostTimeout(handleTimeout, startTime - currentTime);
  48592. }
  48593. } else {
  48594. newTask.sortIndex = expirationTime;
  48595. push(taskQueue, newTask);
  48596. {
  48597. markTaskStart(newTask, currentTime);
  48598. newTask.isQueued = true;
  48599. } // Schedule a host callback, if needed. If we're already performing work,
  48600. // wait until the next time we yield.
  48601. if (!isHostCallbackScheduled && !isPerformingWork) {
  48602. isHostCallbackScheduled = true;
  48603. requestHostCallback(flushWork);
  48604. }
  48605. }
  48606. return newTask;
  48607. }
  48608. function unstable_pauseExecution() {
  48609. }
  48610. function unstable_continueExecution() {
  48611. if (!isHostCallbackScheduled && !isPerformingWork) {
  48612. isHostCallbackScheduled = true;
  48613. requestHostCallback(flushWork);
  48614. }
  48615. }
  48616. function unstable_getFirstCallbackNode() {
  48617. return peek(taskQueue);
  48618. }
  48619. function unstable_cancelCallback(task) {
  48620. {
  48621. if (task.isQueued) {
  48622. var currentTime = exports.unstable_now();
  48623. markTaskCanceled(task, currentTime);
  48624. task.isQueued = false;
  48625. }
  48626. } // Null out the callback to indicate the task has been canceled. (Can't
  48627. // remove from the queue because you can't remove arbitrary nodes from an
  48628. // array based heap, only the first one.)
  48629. task.callback = null;
  48630. }
  48631. function unstable_getCurrentPriorityLevel() {
  48632. return currentPriorityLevel;
  48633. }
  48634. function unstable_shouldYield() {
  48635. var currentTime = exports.unstable_now();
  48636. advanceTimers(currentTime);
  48637. var firstTask = peek(taskQueue);
  48638. return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  48639. }
  48640. var unstable_requestPaint = requestPaint;
  48641. var unstable_Profiling = {
  48642. startLoggingProfilingEvents: startLoggingProfilingEvents,
  48643. stopLoggingProfilingEvents: stopLoggingProfilingEvents,
  48644. sharedProfilingBuffer: sharedProfilingBuffer
  48645. } ;
  48646. exports.unstable_IdlePriority = IdlePriority;
  48647. exports.unstable_ImmediatePriority = ImmediatePriority;
  48648. exports.unstable_LowPriority = LowPriority;
  48649. exports.unstable_NormalPriority = NormalPriority;
  48650. exports.unstable_Profiling = unstable_Profiling;
  48651. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  48652. exports.unstable_cancelCallback = unstable_cancelCallback;
  48653. exports.unstable_continueExecution = unstable_continueExecution;
  48654. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  48655. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  48656. exports.unstable_next = unstable_next;
  48657. exports.unstable_pauseExecution = unstable_pauseExecution;
  48658. exports.unstable_requestPaint = unstable_requestPaint;
  48659. exports.unstable_runWithPriority = unstable_runWithPriority;
  48660. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  48661. exports.unstable_shouldYield = unstable_shouldYield;
  48662. exports.unstable_wrapCallback = unstable_wrapCallback;
  48663. })();
  48664. }
  48665. /***/ }),
  48666. /***/ "../../node_modules/scheduler/index.js":
  48667. /*!***********************************************************!*\
  48668. !*** D:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  48669. \***********************************************************/
  48670. /*! no static exports found */
  48671. /***/ (function(module, exports, __webpack_require__) {
  48672. "use strict";
  48673. if (false) {} else {
  48674. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  48675. }
  48676. /***/ }),
  48677. /***/ "../../node_modules/scheduler/tracing.js":
  48678. /*!*************************************************************!*\
  48679. !*** D:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  48680. \*************************************************************/
  48681. /*! no static exports found */
  48682. /***/ (function(module, exports, __webpack_require__) {
  48683. "use strict";
  48684. if (false) {} else {
  48685. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  48686. }
  48687. /***/ }),
  48688. /***/ "../../node_modules/setimmediate/setImmediate.js":
  48689. /*!*********************************************************************!*\
  48690. !*** D:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  48691. \*********************************************************************/
  48692. /*! no static exports found */
  48693. /***/ (function(module, exports, __webpack_require__) {
  48694. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  48695. "use strict";
  48696. if (global.setImmediate) {
  48697. return;
  48698. }
  48699. var nextHandle = 1; // Spec says greater than zero
  48700. var tasksByHandle = {};
  48701. var currentlyRunningATask = false;
  48702. var doc = global.document;
  48703. var registerImmediate;
  48704. function setImmediate(callback) {
  48705. // Callback can either be a function or a string
  48706. if (typeof callback !== "function") {
  48707. callback = new Function("" + callback);
  48708. }
  48709. // Copy function arguments
  48710. var args = new Array(arguments.length - 1);
  48711. for (var i = 0; i < args.length; i++) {
  48712. args[i] = arguments[i + 1];
  48713. }
  48714. // Store and register the task
  48715. var task = { callback: callback, args: args };
  48716. tasksByHandle[nextHandle] = task;
  48717. registerImmediate(nextHandle);
  48718. return nextHandle++;
  48719. }
  48720. function clearImmediate(handle) {
  48721. delete tasksByHandle[handle];
  48722. }
  48723. function run(task) {
  48724. var callback = task.callback;
  48725. var args = task.args;
  48726. switch (args.length) {
  48727. case 0:
  48728. callback();
  48729. break;
  48730. case 1:
  48731. callback(args[0]);
  48732. break;
  48733. case 2:
  48734. callback(args[0], args[1]);
  48735. break;
  48736. case 3:
  48737. callback(args[0], args[1], args[2]);
  48738. break;
  48739. default:
  48740. callback.apply(undefined, args);
  48741. break;
  48742. }
  48743. }
  48744. function runIfPresent(handle) {
  48745. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  48746. // So if we're currently running a task, we'll need to delay this invocation.
  48747. if (currentlyRunningATask) {
  48748. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  48749. // "too much recursion" error.
  48750. setTimeout(runIfPresent, 0, handle);
  48751. } else {
  48752. var task = tasksByHandle[handle];
  48753. if (task) {
  48754. currentlyRunningATask = true;
  48755. try {
  48756. run(task);
  48757. } finally {
  48758. clearImmediate(handle);
  48759. currentlyRunningATask = false;
  48760. }
  48761. }
  48762. }
  48763. }
  48764. function installNextTickImplementation() {
  48765. registerImmediate = function(handle) {
  48766. process.nextTick(function () { runIfPresent(handle); });
  48767. };
  48768. }
  48769. function canUsePostMessage() {
  48770. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  48771. // where `global.postMessage` means something completely different and can't be used for this purpose.
  48772. if (global.postMessage && !global.importScripts) {
  48773. var postMessageIsAsynchronous = true;
  48774. var oldOnMessage = global.onmessage;
  48775. global.onmessage = function() {
  48776. postMessageIsAsynchronous = false;
  48777. };
  48778. global.postMessage("", "*");
  48779. global.onmessage = oldOnMessage;
  48780. return postMessageIsAsynchronous;
  48781. }
  48782. }
  48783. function installPostMessageImplementation() {
  48784. // Installs an event handler on `global` for the `message` event: see
  48785. // * https://developer.mozilla.org/en/DOM/window.postMessage
  48786. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  48787. var messagePrefix = "setImmediate$" + Math.random() + "$";
  48788. var onGlobalMessage = function(event) {
  48789. if (event.source === global &&
  48790. typeof event.data === "string" &&
  48791. event.data.indexOf(messagePrefix) === 0) {
  48792. runIfPresent(+event.data.slice(messagePrefix.length));
  48793. }
  48794. };
  48795. if (global.addEventListener) {
  48796. global.addEventListener("message", onGlobalMessage, false);
  48797. } else {
  48798. global.attachEvent("onmessage", onGlobalMessage);
  48799. }
  48800. registerImmediate = function(handle) {
  48801. global.postMessage(messagePrefix + handle, "*");
  48802. };
  48803. }
  48804. function installMessageChannelImplementation() {
  48805. var channel = new MessageChannel();
  48806. channel.port1.onmessage = function(event) {
  48807. var handle = event.data;
  48808. runIfPresent(handle);
  48809. };
  48810. registerImmediate = function(handle) {
  48811. channel.port2.postMessage(handle);
  48812. };
  48813. }
  48814. function installReadyStateChangeImplementation() {
  48815. var html = doc.documentElement;
  48816. registerImmediate = function(handle) {
  48817. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  48818. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  48819. var script = doc.createElement("script");
  48820. script.onreadystatechange = function () {
  48821. runIfPresent(handle);
  48822. script.onreadystatechange = null;
  48823. html.removeChild(script);
  48824. script = null;
  48825. };
  48826. html.appendChild(script);
  48827. };
  48828. }
  48829. function installSetTimeoutImplementation() {
  48830. registerImmediate = function(handle) {
  48831. setTimeout(runIfPresent, 0, handle);
  48832. };
  48833. }
  48834. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  48835. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  48836. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  48837. // Don't get fooled by e.g. browserify environments.
  48838. if ({}.toString.call(global.process) === "[object process]") {
  48839. // For Node.js before 0.9
  48840. installNextTickImplementation();
  48841. } else if (canUsePostMessage()) {
  48842. // For non-IE10 modern browsers
  48843. installPostMessageImplementation();
  48844. } else if (global.MessageChannel) {
  48845. // For web workers, where supported
  48846. installMessageChannelImplementation();
  48847. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  48848. // For IE 6–8
  48849. installReadyStateChangeImplementation();
  48850. } else {
  48851. // For older browsers
  48852. installSetTimeoutImplementation();
  48853. }
  48854. attachTo.setImmediate = setImmediate;
  48855. attachTo.clearImmediate = clearImmediate;
  48856. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  48857. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../process/browser.js */ "../../node_modules/process/browser.js")))
  48858. /***/ }),
  48859. /***/ "../../node_modules/split.js/dist/split.es.js":
  48860. /*!******************************************************************!*\
  48861. !*** D:/Repos/Babylon.js/node_modules/split.js/dist/split.es.js ***!
  48862. \******************************************************************/
  48863. /*! exports provided: default */
  48864. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48865. "use strict";
  48866. __webpack_require__.r(__webpack_exports__);
  48867. // The programming goals of Split.js are to deliver readable, understandable and
  48868. // maintainable code, while at the same time manually optimizing for tiny minified file size,
  48869. // browser compatibility without additional requirements
  48870. // and very few assumptions about the user's page layout.
  48871. var global = typeof window !== 'undefined' ? window : null;
  48872. var ssr = global === null;
  48873. var document = !ssr ? global.document : undefined;
  48874. // Save a couple long function names that are used frequently.
  48875. // This optimization saves around 400 bytes.
  48876. var addEventListener = 'addEventListener';
  48877. var removeEventListener = 'removeEventListener';
  48878. var getBoundingClientRect = 'getBoundingClientRect';
  48879. var gutterStartDragging = '_a';
  48880. var aGutterSize = '_b';
  48881. var bGutterSize = '_c';
  48882. var HORIZONTAL = 'horizontal';
  48883. var NOOP = function () { return false; };
  48884. // Helper function determines which prefixes of CSS calc we need.
  48885. // We only need to do this once on startup, when this anonymous function is called.
  48886. //
  48887. // Tests -webkit, -moz and -o prefixes. Modified from StackOverflow:
  48888. // http://stackoverflow.com/questions/16625140/js-feature-detection-to-detect-the-usage-of-webkit-calc-over-calc/16625167#16625167
  48889. var calc = ssr
  48890. ? 'calc'
  48891. : ((['', '-webkit-', '-moz-', '-o-']
  48892. .filter(function (prefix) {
  48893. var el = document.createElement('div');
  48894. el.style.cssText = "width:" + prefix + "calc(9px)";
  48895. return !!el.style.length
  48896. })
  48897. .shift()) + "calc");
  48898. // Helper function checks if its argument is a string-like type
  48899. var isString = function (v) { return typeof v === 'string' || v instanceof String; };
  48900. // Helper function allows elements and string selectors to be used
  48901. // interchangeably. In either case an element is returned. This allows us to
  48902. // do `Split([elem1, elem2])` as well as `Split(['#id1', '#id2'])`.
  48903. var elementOrSelector = function (el) {
  48904. if (isString(el)) {
  48905. var ele = document.querySelector(el);
  48906. if (!ele) {
  48907. throw new Error(("Selector " + el + " did not match a DOM element"))
  48908. }
  48909. return ele
  48910. }
  48911. return el
  48912. };
  48913. // Helper function gets a property from the properties object, with a default fallback
  48914. var getOption = function (options, propName, def) {
  48915. var value = options[propName];
  48916. if (value !== undefined) {
  48917. return value
  48918. }
  48919. return def
  48920. };
  48921. var getGutterSize = function (gutterSize, isFirst, isLast, gutterAlign) {
  48922. if (isFirst) {
  48923. if (gutterAlign === 'end') {
  48924. return 0
  48925. }
  48926. if (gutterAlign === 'center') {
  48927. return gutterSize / 2
  48928. }
  48929. } else if (isLast) {
  48930. if (gutterAlign === 'start') {
  48931. return 0
  48932. }
  48933. if (gutterAlign === 'center') {
  48934. return gutterSize / 2
  48935. }
  48936. }
  48937. return gutterSize
  48938. };
  48939. // Default options
  48940. var defaultGutterFn = function (i, gutterDirection) {
  48941. var gut = document.createElement('div');
  48942. gut.className = "gutter gutter-" + gutterDirection;
  48943. return gut
  48944. };
  48945. var defaultElementStyleFn = function (dim, size, gutSize) {
  48946. var style = {};
  48947. if (!isString(size)) {
  48948. style[dim] = calc + "(" + size + "% - " + gutSize + "px)";
  48949. } else {
  48950. style[dim] = size;
  48951. }
  48952. return style
  48953. };
  48954. var defaultGutterStyleFn = function (dim, gutSize) {
  48955. var obj;
  48956. return (( obj = {}, obj[dim] = (gutSize + "px"), obj ));
  48957. };
  48958. // The main function to initialize a split. Split.js thinks about each pair
  48959. // of elements as an independant pair. Dragging the gutter between two elements
  48960. // only changes the dimensions of elements in that pair. This is key to understanding
  48961. // how the following functions operate, since each function is bound to a pair.
  48962. //
  48963. // A pair object is shaped like this:
  48964. //
  48965. // {
  48966. // a: DOM element,
  48967. // b: DOM element,
  48968. // aMin: Number,
  48969. // bMin: Number,
  48970. // dragging: Boolean,
  48971. // parent: DOM element,
  48972. // direction: 'horizontal' | 'vertical'
  48973. // }
  48974. //
  48975. // The basic sequence:
  48976. //
  48977. // 1. Set defaults to something sane. `options` doesn't have to be passed at all.
  48978. // 2. Initialize a bunch of strings based on the direction we're splitting.
  48979. // A lot of the behavior in the rest of the library is paramatized down to
  48980. // rely on CSS strings and classes.
  48981. // 3. Define the dragging helper functions, and a few helpers to go with them.
  48982. // 4. Loop through the elements while pairing them off. Every pair gets an
  48983. // `pair` object and a gutter.
  48984. // 5. Actually size the pair elements, insert gutters and attach event listeners.
  48985. var Split = function (idsOption, options) {
  48986. if ( options === void 0 ) options = {};
  48987. if (ssr) { return {} }
  48988. var ids = idsOption;
  48989. var dimension;
  48990. var clientAxis;
  48991. var position;
  48992. var positionEnd;
  48993. var clientSize;
  48994. var elements;
  48995. // Allow HTMLCollection to be used as an argument when supported
  48996. if (Array.from) {
  48997. ids = Array.from(ids);
  48998. }
  48999. // All DOM elements in the split should have a common parent. We can grab
  49000. // the first elements parent and hope users read the docs because the
  49001. // behavior will be whacky otherwise.
  49002. var firstElement = elementOrSelector(ids[0]);
  49003. var parent = firstElement.parentNode;
  49004. var parentStyle = getComputedStyle ? getComputedStyle(parent) : null;
  49005. var parentFlexDirection = parentStyle ? parentStyle.flexDirection : null;
  49006. // Set default options.sizes to equal percentages of the parent element.
  49007. var sizes = getOption(options, 'sizes') || ids.map(function () { return 100 / ids.length; });
  49008. // Standardize minSize to an array if it isn't already. This allows minSize
  49009. // to be passed as a number.
  49010. var minSize = getOption(options, 'minSize', 100);
  49011. var minSizes = Array.isArray(minSize) ? minSize : ids.map(function () { return minSize; });
  49012. // Get other options
  49013. var expandToMin = getOption(options, 'expandToMin', false);
  49014. var gutterSize = getOption(options, 'gutterSize', 10);
  49015. var gutterAlign = getOption(options, 'gutterAlign', 'center');
  49016. var snapOffset = getOption(options, 'snapOffset', 30);
  49017. var dragInterval = getOption(options, 'dragInterval', 1);
  49018. var direction = getOption(options, 'direction', HORIZONTAL);
  49019. var cursor = getOption(
  49020. options,
  49021. 'cursor',
  49022. direction === HORIZONTAL ? 'col-resize' : 'row-resize'
  49023. );
  49024. var gutter = getOption(options, 'gutter', defaultGutterFn);
  49025. var elementStyle = getOption(
  49026. options,
  49027. 'elementStyle',
  49028. defaultElementStyleFn
  49029. );
  49030. var gutterStyle = getOption(options, 'gutterStyle', defaultGutterStyleFn);
  49031. // 2. Initialize a bunch of strings based on the direction we're splitting.
  49032. // A lot of the behavior in the rest of the library is paramatized down to
  49033. // rely on CSS strings and classes.
  49034. if (direction === HORIZONTAL) {
  49035. dimension = 'width';
  49036. clientAxis = 'clientX';
  49037. position = 'left';
  49038. positionEnd = 'right';
  49039. clientSize = 'clientWidth';
  49040. } else if (direction === 'vertical') {
  49041. dimension = 'height';
  49042. clientAxis = 'clientY';
  49043. position = 'top';
  49044. positionEnd = 'bottom';
  49045. clientSize = 'clientHeight';
  49046. }
  49047. // 3. Define the dragging helper functions, and a few helpers to go with them.
  49048. // Each helper is bound to a pair object that contains its metadata. This
  49049. // also makes it easy to store references to listeners that that will be
  49050. // added and removed.
  49051. //
  49052. // Even though there are no other functions contained in them, aliasing
  49053. // this to self saves 50 bytes or so since it's used so frequently.
  49054. //
  49055. // The pair object saves metadata like dragging state, position and
  49056. // event listener references.
  49057. function setElementSize(el, size, gutSize, i) {
  49058. // Split.js allows setting sizes via numbers (ideally), or if you must,
  49059. // by string, like '300px'. This is less than ideal, because it breaks
  49060. // the fluid layout that `calc(% - px)` provides. You're on your own if you do that,
  49061. // make sure you calculate the gutter size by hand.
  49062. var style = elementStyle(dimension, size, gutSize, i);
  49063. Object.keys(style).forEach(function (prop) {
  49064. // eslint-disable-next-line no-param-reassign
  49065. el.style[prop] = style[prop];
  49066. });
  49067. }
  49068. function setGutterSize(gutterElement, gutSize, i) {
  49069. var style = gutterStyle(dimension, gutSize, i);
  49070. Object.keys(style).forEach(function (prop) {
  49071. // eslint-disable-next-line no-param-reassign
  49072. gutterElement.style[prop] = style[prop];
  49073. });
  49074. }
  49075. function getSizes() {
  49076. return elements.map(function (element) { return element.size; })
  49077. }
  49078. // Supports touch events, but not multitouch, so only the first
  49079. // finger `touches[0]` is counted.
  49080. function getMousePosition(e) {
  49081. if ('touches' in e) { return e.touches[0][clientAxis] }
  49082. return e[clientAxis]
  49083. }
  49084. // Actually adjust the size of elements `a` and `b` to `offset` while dragging.
  49085. // calc is used to allow calc(percentage + gutterpx) on the whole split instance,
  49086. // which allows the viewport to be resized without additional logic.
  49087. // Element a's size is the same as offset. b's size is total size - a size.
  49088. // Both sizes are calculated from the initial parent percentage,
  49089. // then the gutter size is subtracted.
  49090. function adjust(offset) {
  49091. var a = elements[this.a];
  49092. var b = elements[this.b];
  49093. var percentage = a.size + b.size;
  49094. a.size = (offset / this.size) * percentage;
  49095. b.size = percentage - (offset / this.size) * percentage;
  49096. setElementSize(a.element, a.size, this[aGutterSize], a.i);
  49097. setElementSize(b.element, b.size, this[bGutterSize], b.i);
  49098. }
  49099. // drag, where all the magic happens. The logic is really quite simple:
  49100. //
  49101. // 1. Ignore if the pair is not dragging.
  49102. // 2. Get the offset of the event.
  49103. // 3. Snap offset to min if within snappable range (within min + snapOffset).
  49104. // 4. Actually adjust each element in the pair to offset.
  49105. //
  49106. // ---------------------------------------------------------------------
  49107. // | | <- a.minSize || b.minSize -> | |
  49108. // | | | <- this.snapOffset || this.snapOffset -> | | |
  49109. // | | | || | | |
  49110. // | | | || | | |
  49111. // ---------------------------------------------------------------------
  49112. // | <- this.start this.size -> |
  49113. function drag(e) {
  49114. var offset;
  49115. var a = elements[this.a];
  49116. var b = elements[this.b];
  49117. if (!this.dragging) { return }
  49118. // Get the offset of the event from the first side of the
  49119. // pair `this.start`. Then offset by the initial position of the
  49120. // mouse compared to the gutter size.
  49121. offset =
  49122. getMousePosition(e) -
  49123. this.start +
  49124. (this[aGutterSize] - this.dragOffset);
  49125. if (dragInterval > 1) {
  49126. offset = Math.round(offset / dragInterval) * dragInterval;
  49127. }
  49128. // If within snapOffset of min or max, set offset to min or max.
  49129. // snapOffset buffers a.minSize and b.minSize, so logic is opposite for both.
  49130. // Include the appropriate gutter sizes to prevent overflows.
  49131. if (offset <= a.minSize + snapOffset + this[aGutterSize]) {
  49132. offset = a.minSize + this[aGutterSize];
  49133. } else if (
  49134. offset >=
  49135. this.size - (b.minSize + snapOffset + this[bGutterSize])
  49136. ) {
  49137. offset = this.size - (b.minSize + this[bGutterSize]);
  49138. }
  49139. // Actually adjust the size.
  49140. adjust.call(this, offset);
  49141. // Call the drag callback continously. Don't do anything too intensive
  49142. // in this callback.
  49143. getOption(options, 'onDrag', NOOP)();
  49144. }
  49145. // Cache some important sizes when drag starts, so we don't have to do that
  49146. // continously:
  49147. //
  49148. // `size`: The total size of the pair. First + second + first gutter + second gutter.
  49149. // `start`: The leading side of the first element.
  49150. //
  49151. // ------------------------------------------------
  49152. // | aGutterSize -> ||| |
  49153. // | ||| |
  49154. // | ||| |
  49155. // | ||| <- bGutterSize |
  49156. // ------------------------------------------------
  49157. // | <- start size -> |
  49158. function calculateSizes() {
  49159. // Figure out the parent size minus padding.
  49160. var a = elements[this.a].element;
  49161. var b = elements[this.b].element;
  49162. var aBounds = a[getBoundingClientRect]();
  49163. var bBounds = b[getBoundingClientRect]();
  49164. this.size =
  49165. aBounds[dimension] +
  49166. bBounds[dimension] +
  49167. this[aGutterSize] +
  49168. this[bGutterSize];
  49169. this.start = aBounds[position];
  49170. this.end = aBounds[positionEnd];
  49171. }
  49172. function innerSize(element) {
  49173. // Return nothing if getComputedStyle is not supported (< IE9)
  49174. // Or if parent element has no layout yet
  49175. if (!getComputedStyle) { return null }
  49176. var computedStyle = getComputedStyle(element);
  49177. if (!computedStyle) { return null }
  49178. var size = element[clientSize];
  49179. if (size === 0) { return null }
  49180. if (direction === HORIZONTAL) {
  49181. size -=
  49182. parseFloat(computedStyle.paddingLeft) +
  49183. parseFloat(computedStyle.paddingRight);
  49184. } else {
  49185. size -=
  49186. parseFloat(computedStyle.paddingTop) +
  49187. parseFloat(computedStyle.paddingBottom);
  49188. }
  49189. return size
  49190. }
  49191. // When specifying percentage sizes that are less than the computed
  49192. // size of the element minus the gutter, the lesser percentages must be increased
  49193. // (and decreased from the other elements) to make space for the pixels
  49194. // subtracted by the gutters.
  49195. function trimToMin(sizesToTrim) {
  49196. // Try to get inner size of parent element.
  49197. // If it's no supported, return original sizes.
  49198. var parentSize = innerSize(parent);
  49199. if (parentSize === null) {
  49200. return sizesToTrim
  49201. }
  49202. if (minSizes.reduce(function (a, b) { return a + b; }, 0) > parentSize) {
  49203. return sizesToTrim
  49204. }
  49205. // Keep track of the excess pixels, the amount of pixels over the desired percentage
  49206. // Also keep track of the elements with pixels to spare, to decrease after if needed
  49207. var excessPixels = 0;
  49208. var toSpare = [];
  49209. var pixelSizes = sizesToTrim.map(function (size, i) {
  49210. // Convert requested percentages to pixel sizes
  49211. var pixelSize = (parentSize * size) / 100;
  49212. var elementGutterSize = getGutterSize(
  49213. gutterSize,
  49214. i === 0,
  49215. i === sizesToTrim.length - 1,
  49216. gutterAlign
  49217. );
  49218. var elementMinSize = minSizes[i] + elementGutterSize;
  49219. // If element is too smal, increase excess pixels by the difference
  49220. // and mark that it has no pixels to spare
  49221. if (pixelSize < elementMinSize) {
  49222. excessPixels += elementMinSize - pixelSize;
  49223. toSpare.push(0);
  49224. return elementMinSize
  49225. }
  49226. // Otherwise, mark the pixels it has to spare and return it's original size
  49227. toSpare.push(pixelSize - elementMinSize);
  49228. return pixelSize
  49229. });
  49230. // If nothing was adjusted, return the original sizes
  49231. if (excessPixels === 0) {
  49232. return sizesToTrim
  49233. }
  49234. return pixelSizes.map(function (pixelSize, i) {
  49235. var newPixelSize = pixelSize;
  49236. // While there's still pixels to take, and there's enough pixels to spare,
  49237. // take as many as possible up to the total excess pixels
  49238. if (excessPixels > 0 && toSpare[i] - excessPixels > 0) {
  49239. var takenPixels = Math.min(
  49240. excessPixels,
  49241. toSpare[i] - excessPixels
  49242. );
  49243. // Subtract the amount taken for the next iteration
  49244. excessPixels -= takenPixels;
  49245. newPixelSize = pixelSize - takenPixels;
  49246. }
  49247. // Return the pixel size adjusted as a percentage
  49248. return (newPixelSize / parentSize) * 100
  49249. })
  49250. }
  49251. // stopDragging is very similar to startDragging in reverse.
  49252. function stopDragging() {
  49253. var self = this;
  49254. var a = elements[self.a].element;
  49255. var b = elements[self.b].element;
  49256. if (self.dragging) {
  49257. getOption(options, 'onDragEnd', NOOP)(getSizes());
  49258. }
  49259. self.dragging = false;
  49260. // Remove the stored event listeners. This is why we store them.
  49261. global[removeEventListener]('mouseup', self.stop);
  49262. global[removeEventListener]('touchend', self.stop);
  49263. global[removeEventListener]('touchcancel', self.stop);
  49264. global[removeEventListener]('mousemove', self.move);
  49265. global[removeEventListener]('touchmove', self.move);
  49266. // Clear bound function references
  49267. self.stop = null;
  49268. self.move = null;
  49269. a[removeEventListener]('selectstart', NOOP);
  49270. a[removeEventListener]('dragstart', NOOP);
  49271. b[removeEventListener]('selectstart', NOOP);
  49272. b[removeEventListener]('dragstart', NOOP);
  49273. a.style.userSelect = '';
  49274. a.style.webkitUserSelect = '';
  49275. a.style.MozUserSelect = '';
  49276. a.style.pointerEvents = '';
  49277. b.style.userSelect = '';
  49278. b.style.webkitUserSelect = '';
  49279. b.style.MozUserSelect = '';
  49280. b.style.pointerEvents = '';
  49281. self.gutter.style.cursor = '';
  49282. self.parent.style.cursor = '';
  49283. document.body.style.cursor = '';
  49284. }
  49285. // startDragging calls `calculateSizes` to store the inital size in the pair object.
  49286. // It also adds event listeners for mouse/touch events,
  49287. // and prevents selection while dragging so avoid the selecting text.
  49288. function startDragging(e) {
  49289. // Right-clicking can't start dragging.
  49290. if ('button' in e && e.button !== 0) {
  49291. return
  49292. }
  49293. // Alias frequently used variables to save space. 200 bytes.
  49294. var self = this;
  49295. var a = elements[self.a].element;
  49296. var b = elements[self.b].element;
  49297. // Call the onDragStart callback.
  49298. if (!self.dragging) {
  49299. getOption(options, 'onDragStart', NOOP)(getSizes());
  49300. }
  49301. // Don't actually drag the element. We emulate that in the drag function.
  49302. e.preventDefault();
  49303. // Set the dragging property of the pair object.
  49304. self.dragging = true;
  49305. // Create two event listeners bound to the same pair object and store
  49306. // them in the pair object.
  49307. self.move = drag.bind(self);
  49308. self.stop = stopDragging.bind(self);
  49309. // All the binding. `window` gets the stop events in case we drag out of the elements.
  49310. global[addEventListener]('mouseup', self.stop);
  49311. global[addEventListener]('touchend', self.stop);
  49312. global[addEventListener]('touchcancel', self.stop);
  49313. global[addEventListener]('mousemove', self.move);
  49314. global[addEventListener]('touchmove', self.move);
  49315. // Disable selection. Disable!
  49316. a[addEventListener]('selectstart', NOOP);
  49317. a[addEventListener]('dragstart', NOOP);
  49318. b[addEventListener]('selectstart', NOOP);
  49319. b[addEventListener]('dragstart', NOOP);
  49320. a.style.userSelect = 'none';
  49321. a.style.webkitUserSelect = 'none';
  49322. a.style.MozUserSelect = 'none';
  49323. a.style.pointerEvents = 'none';
  49324. b.style.userSelect = 'none';
  49325. b.style.webkitUserSelect = 'none';
  49326. b.style.MozUserSelect = 'none';
  49327. b.style.pointerEvents = 'none';
  49328. // Set the cursor at multiple levels
  49329. self.gutter.style.cursor = cursor;
  49330. self.parent.style.cursor = cursor;
  49331. document.body.style.cursor = cursor;
  49332. // Cache the initial sizes of the pair.
  49333. calculateSizes.call(self);
  49334. // Determine the position of the mouse compared to the gutter
  49335. self.dragOffset = getMousePosition(e) - self.end;
  49336. }
  49337. // adjust sizes to ensure percentage is within min size and gutter.
  49338. sizes = trimToMin(sizes);
  49339. // 5. Create pair and element objects. Each pair has an index reference to
  49340. // elements `a` and `b` of the pair (first and second elements).
  49341. // Loop through the elements while pairing them off. Every pair gets a
  49342. // `pair` object and a gutter.
  49343. //
  49344. // Basic logic:
  49345. //
  49346. // - Starting with the second element `i > 0`, create `pair` objects with
  49347. // `a = i - 1` and `b = i`
  49348. // - Set gutter sizes based on the _pair_ being first/last. The first and last
  49349. // pair have gutterSize / 2, since they only have one half gutter, and not two.
  49350. // - Create gutter elements and add event listeners.
  49351. // - Set the size of the elements, minus the gutter sizes.
  49352. //
  49353. // -----------------------------------------------------------------------
  49354. // | i=0 | i=1 | i=2 | i=3 |
  49355. // | | | | |
  49356. // | pair 0 pair 1 pair 2 |
  49357. // | | | | |
  49358. // -----------------------------------------------------------------------
  49359. var pairs = [];
  49360. elements = ids.map(function (id, i) {
  49361. // Create the element object.
  49362. var element = {
  49363. element: elementOrSelector(id),
  49364. size: sizes[i],
  49365. minSize: minSizes[i],
  49366. i: i,
  49367. };
  49368. var pair;
  49369. if (i > 0) {
  49370. // Create the pair object with its metadata.
  49371. pair = {
  49372. a: i - 1,
  49373. b: i,
  49374. dragging: false,
  49375. direction: direction,
  49376. parent: parent,
  49377. };
  49378. pair[aGutterSize] = getGutterSize(
  49379. gutterSize,
  49380. i - 1 === 0,
  49381. false,
  49382. gutterAlign
  49383. );
  49384. pair[bGutterSize] = getGutterSize(
  49385. gutterSize,
  49386. false,
  49387. i === ids.length - 1,
  49388. gutterAlign
  49389. );
  49390. // if the parent has a reverse flex-direction, switch the pair elements.
  49391. if (
  49392. parentFlexDirection === 'row-reverse' ||
  49393. parentFlexDirection === 'column-reverse'
  49394. ) {
  49395. var temp = pair.a;
  49396. pair.a = pair.b;
  49397. pair.b = temp;
  49398. }
  49399. }
  49400. // Determine the size of the current element. IE8 is supported by
  49401. // staticly assigning sizes without draggable gutters. Assigns a string
  49402. // to `size`.
  49403. //
  49404. // Create gutter elements for each pair.
  49405. if (i > 0) {
  49406. var gutterElement = gutter(i, direction, element.element);
  49407. setGutterSize(gutterElement, gutterSize, i);
  49408. // Save bound event listener for removal later
  49409. pair[gutterStartDragging] = startDragging.bind(pair);
  49410. // Attach bound event listener
  49411. gutterElement[addEventListener](
  49412. 'mousedown',
  49413. pair[gutterStartDragging]
  49414. );
  49415. gutterElement[addEventListener](
  49416. 'touchstart',
  49417. pair[gutterStartDragging]
  49418. );
  49419. parent.insertBefore(gutterElement, element.element);
  49420. pair.gutter = gutterElement;
  49421. }
  49422. setElementSize(
  49423. element.element,
  49424. element.size,
  49425. getGutterSize(
  49426. gutterSize,
  49427. i === 0,
  49428. i === ids.length - 1,
  49429. gutterAlign
  49430. ),
  49431. i
  49432. );
  49433. // After the first iteration, and we have a pair object, append it to the
  49434. // list of pairs.
  49435. if (i > 0) {
  49436. pairs.push(pair);
  49437. }
  49438. return element
  49439. });
  49440. function adjustToMin(element) {
  49441. var isLast = element.i === pairs.length;
  49442. var pair = isLast ? pairs[element.i - 1] : pairs[element.i];
  49443. calculateSizes.call(pair);
  49444. var size = isLast
  49445. ? pair.size - element.minSize - pair[bGutterSize]
  49446. : element.minSize + pair[aGutterSize];
  49447. adjust.call(pair, size);
  49448. }
  49449. elements.forEach(function (element) {
  49450. var computedSize = element.element[getBoundingClientRect]()[dimension];
  49451. if (computedSize < element.minSize) {
  49452. if (expandToMin) {
  49453. adjustToMin(element);
  49454. } else {
  49455. // eslint-disable-next-line no-param-reassign
  49456. element.minSize = computedSize;
  49457. }
  49458. }
  49459. });
  49460. function setSizes(newSizes) {
  49461. var trimmed = trimToMin(newSizes);
  49462. trimmed.forEach(function (newSize, i) {
  49463. if (i > 0) {
  49464. var pair = pairs[i - 1];
  49465. var a = elements[pair.a];
  49466. var b = elements[pair.b];
  49467. a.size = trimmed[i - 1];
  49468. b.size = newSize;
  49469. setElementSize(a.element, a.size, pair[aGutterSize], a.i);
  49470. setElementSize(b.element, b.size, pair[bGutterSize], b.i);
  49471. }
  49472. });
  49473. }
  49474. function destroy(preserveStyles, preserveGutter) {
  49475. pairs.forEach(function (pair) {
  49476. if (preserveGutter !== true) {
  49477. pair.parent.removeChild(pair.gutter);
  49478. } else {
  49479. pair.gutter[removeEventListener](
  49480. 'mousedown',
  49481. pair[gutterStartDragging]
  49482. );
  49483. pair.gutter[removeEventListener](
  49484. 'touchstart',
  49485. pair[gutterStartDragging]
  49486. );
  49487. }
  49488. if (preserveStyles !== true) {
  49489. var style = elementStyle(
  49490. dimension,
  49491. pair.a.size,
  49492. pair[aGutterSize]
  49493. );
  49494. Object.keys(style).forEach(function (prop) {
  49495. elements[pair.a].element.style[prop] = '';
  49496. elements[pair.b].element.style[prop] = '';
  49497. });
  49498. }
  49499. });
  49500. }
  49501. return {
  49502. setSizes: setSizes,
  49503. getSizes: getSizes,
  49504. collapse: function collapse(i) {
  49505. adjustToMin(elements[i]);
  49506. },
  49507. destroy: destroy,
  49508. parent: parent,
  49509. pairs: pairs,
  49510. }
  49511. };
  49512. /* harmony default export */ __webpack_exports__["default"] = (Split);
  49513. /***/ }),
  49514. /***/ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  49515. /*!**********************************************************************************************!*\
  49516. !*** D:/Repos/Babylon.js/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  49517. \**********************************************************************************************/
  49518. /*! no static exports found */
  49519. /***/ (function(module, exports, __webpack_require__) {
  49520. "use strict";
  49521. var isOldIE = function isOldIE() {
  49522. var memo;
  49523. return function memorize() {
  49524. if (typeof memo === 'undefined') {
  49525. // Test for IE <= 9 as proposed by Browserhacks
  49526. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  49527. // Tests for existence of standard globals is to allow style-loader
  49528. // to operate correctly into non-standard environments
  49529. // @see https://github.com/webpack-contrib/style-loader/issues/177
  49530. memo = Boolean(window && document && document.all && !window.atob);
  49531. }
  49532. return memo;
  49533. };
  49534. }();
  49535. var getTarget = function getTarget() {
  49536. var memo = {};
  49537. return function memorize(target) {
  49538. if (typeof memo[target] === 'undefined') {
  49539. var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
  49540. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  49541. try {
  49542. // This will throw an exception if access to iframe is blocked
  49543. // due to cross-origin restrictions
  49544. styleTarget = styleTarget.contentDocument.head;
  49545. } catch (e) {
  49546. // istanbul ignore next
  49547. styleTarget = null;
  49548. }
  49549. }
  49550. memo[target] = styleTarget;
  49551. }
  49552. return memo[target];
  49553. };
  49554. }();
  49555. var stylesInDom = [];
  49556. function getIndexByIdentifier(identifier) {
  49557. var result = -1;
  49558. for (var i = 0; i < stylesInDom.length; i++) {
  49559. if (stylesInDom[i].identifier === identifier) {
  49560. result = i;
  49561. break;
  49562. }
  49563. }
  49564. return result;
  49565. }
  49566. function modulesToDom(list, options) {
  49567. var idCountMap = {};
  49568. var identifiers = [];
  49569. for (var i = 0; i < list.length; i++) {
  49570. var item = list[i];
  49571. var id = options.base ? item[0] + options.base : item[0];
  49572. var count = idCountMap[id] || 0;
  49573. var identifier = "".concat(id, " ").concat(count);
  49574. idCountMap[id] = count + 1;
  49575. var index = getIndexByIdentifier(identifier);
  49576. var obj = {
  49577. css: item[1],
  49578. media: item[2],
  49579. sourceMap: item[3]
  49580. };
  49581. if (index !== -1) {
  49582. stylesInDom[index].references++;
  49583. stylesInDom[index].updater(obj);
  49584. } else {
  49585. stylesInDom.push({
  49586. identifier: identifier,
  49587. updater: addStyle(obj, options),
  49588. references: 1
  49589. });
  49590. }
  49591. identifiers.push(identifier);
  49592. }
  49593. return identifiers;
  49594. }
  49595. function insertStyleElement(options) {
  49596. var style = document.createElement('style');
  49597. var attributes = options.attributes || {};
  49598. if (typeof attributes.nonce === 'undefined') {
  49599. var nonce = true ? __webpack_require__.nc : undefined;
  49600. if (nonce) {
  49601. attributes.nonce = nonce;
  49602. }
  49603. }
  49604. Object.keys(attributes).forEach(function (key) {
  49605. style.setAttribute(key, attributes[key]);
  49606. });
  49607. if (typeof options.insert === 'function') {
  49608. options.insert(style);
  49609. } else {
  49610. var target = getTarget(options.insert || 'head');
  49611. if (!target) {
  49612. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  49613. }
  49614. target.appendChild(style);
  49615. }
  49616. return style;
  49617. }
  49618. function removeStyleElement(style) {
  49619. // istanbul ignore if
  49620. if (style.parentNode === null) {
  49621. return false;
  49622. }
  49623. style.parentNode.removeChild(style);
  49624. }
  49625. /* istanbul ignore next */
  49626. var replaceText = function replaceText() {
  49627. var textStore = [];
  49628. return function replace(index, replacement) {
  49629. textStore[index] = replacement;
  49630. return textStore.filter(Boolean).join('\n');
  49631. };
  49632. }();
  49633. function applyToSingletonTag(style, index, remove, obj) {
  49634. var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
  49635. /* istanbul ignore if */
  49636. if (style.styleSheet) {
  49637. style.styleSheet.cssText = replaceText(index, css);
  49638. } else {
  49639. var cssNode = document.createTextNode(css);
  49640. var childNodes = style.childNodes;
  49641. if (childNodes[index]) {
  49642. style.removeChild(childNodes[index]);
  49643. }
  49644. if (childNodes.length) {
  49645. style.insertBefore(cssNode, childNodes[index]);
  49646. } else {
  49647. style.appendChild(cssNode);
  49648. }
  49649. }
  49650. }
  49651. function applyToTag(style, options, obj) {
  49652. var css = obj.css;
  49653. var media = obj.media;
  49654. var sourceMap = obj.sourceMap;
  49655. if (media) {
  49656. style.setAttribute('media', media);
  49657. } else {
  49658. style.removeAttribute('media');
  49659. }
  49660. if (sourceMap && btoa) {
  49661. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  49662. } // For old IE
  49663. /* istanbul ignore if */
  49664. if (style.styleSheet) {
  49665. style.styleSheet.cssText = css;
  49666. } else {
  49667. while (style.firstChild) {
  49668. style.removeChild(style.firstChild);
  49669. }
  49670. style.appendChild(document.createTextNode(css));
  49671. }
  49672. }
  49673. var singleton = null;
  49674. var singletonCounter = 0;
  49675. function addStyle(obj, options) {
  49676. var style;
  49677. var update;
  49678. var remove;
  49679. if (options.singleton) {
  49680. var styleIndex = singletonCounter++;
  49681. style = singleton || (singleton = insertStyleElement(options));
  49682. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  49683. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  49684. } else {
  49685. style = insertStyleElement(options);
  49686. update = applyToTag.bind(null, style, options);
  49687. remove = function remove() {
  49688. removeStyleElement(style);
  49689. };
  49690. }
  49691. update(obj);
  49692. return function updateStyle(newObj) {
  49693. if (newObj) {
  49694. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
  49695. return;
  49696. }
  49697. update(obj = newObj);
  49698. } else {
  49699. remove();
  49700. }
  49701. };
  49702. }
  49703. module.exports = function (list, options) {
  49704. options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  49705. // tags it will allow on a page
  49706. if (!options.singleton && typeof options.singleton !== 'boolean') {
  49707. options.singleton = isOldIE();
  49708. }
  49709. list = list || [];
  49710. var lastIdentifiers = modulesToDom(list, options);
  49711. return function update(newList) {
  49712. newList = newList || [];
  49713. if (Object.prototype.toString.call(newList) !== '[object Array]') {
  49714. return;
  49715. }
  49716. for (var i = 0; i < lastIdentifiers.length; i++) {
  49717. var identifier = lastIdentifiers[i];
  49718. var index = getIndexByIdentifier(identifier);
  49719. stylesInDom[index].references--;
  49720. }
  49721. var newLastIdentifiers = modulesToDom(newList, options);
  49722. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  49723. var _identifier = lastIdentifiers[_i];
  49724. var _index = getIndexByIdentifier(_identifier);
  49725. if (stylesInDom[_index].references === 0) {
  49726. stylesInDom[_index].updater();
  49727. stylesInDom.splice(_index, 1);
  49728. }
  49729. }
  49730. lastIdentifiers = newLastIdentifiers;
  49731. };
  49732. };
  49733. /***/ }),
  49734. /***/ "../../node_modules/timers-browserify/main.js":
  49735. /*!******************************************************************!*\
  49736. !*** D:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  49737. \******************************************************************/
  49738. /*! no static exports found */
  49739. /***/ (function(module, exports, __webpack_require__) {
  49740. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  49741. (typeof self !== "undefined" && self) ||
  49742. window;
  49743. var apply = Function.prototype.apply;
  49744. // DOM APIs, for completeness
  49745. exports.setTimeout = function() {
  49746. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  49747. };
  49748. exports.setInterval = function() {
  49749. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  49750. };
  49751. exports.clearTimeout =
  49752. exports.clearInterval = function(timeout) {
  49753. if (timeout) {
  49754. timeout.close();
  49755. }
  49756. };
  49757. function Timeout(id, clearFn) {
  49758. this._id = id;
  49759. this._clearFn = clearFn;
  49760. }
  49761. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  49762. Timeout.prototype.close = function() {
  49763. this._clearFn.call(scope, this._id);
  49764. };
  49765. // Does not start the time, just sets up the members needed.
  49766. exports.enroll = function(item, msecs) {
  49767. clearTimeout(item._idleTimeoutId);
  49768. item._idleTimeout = msecs;
  49769. };
  49770. exports.unenroll = function(item) {
  49771. clearTimeout(item._idleTimeoutId);
  49772. item._idleTimeout = -1;
  49773. };
  49774. exports._unrefActive = exports.active = function(item) {
  49775. clearTimeout(item._idleTimeoutId);
  49776. var msecs = item._idleTimeout;
  49777. if (msecs >= 0) {
  49778. item._idleTimeoutId = setTimeout(function onTimeout() {
  49779. if (item._onTimeout)
  49780. item._onTimeout();
  49781. }, msecs);
  49782. }
  49783. };
  49784. // setimmediate attaches itself to the global object
  49785. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  49786. // On some exotic environments, it's not clear which object `setimmediate` was
  49787. // able to install onto. Search each possibility in the same order as the
  49788. // `setimmediate` library.
  49789. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  49790. (typeof global !== "undefined" && global.setImmediate) ||
  49791. (this && this.setImmediate);
  49792. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  49793. (typeof global !== "undefined" && global.clearImmediate) ||
  49794. (this && this.clearImmediate);
  49795. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  49796. /***/ }),
  49797. /***/ "../../node_modules/tinycolor2/tinycolor.js":
  49798. /*!****************************************************************!*\
  49799. !*** D:/Repos/Babylon.js/node_modules/tinycolor2/tinycolor.js ***!
  49800. \****************************************************************/
  49801. /*! no static exports found */
  49802. /***/ (function(module, exports, __webpack_require__) {
  49803. var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
  49804. // https://github.com/bgrins/TinyColor
  49805. // Brian Grinstead, MIT License
  49806. (function(Math) {
  49807. var trimLeft = /^\s+/,
  49808. trimRight = /\s+$/,
  49809. tinyCounter = 0,
  49810. mathRound = Math.round,
  49811. mathMin = Math.min,
  49812. mathMax = Math.max,
  49813. mathRandom = Math.random;
  49814. function tinycolor (color, opts) {
  49815. color = (color) ? color : '';
  49816. opts = opts || { };
  49817. // If input is already a tinycolor, return itself
  49818. if (color instanceof tinycolor) {
  49819. return color;
  49820. }
  49821. // If we are called as a function, call using new instead
  49822. if (!(this instanceof tinycolor)) {
  49823. return new tinycolor(color, opts);
  49824. }
  49825. var rgb = inputToRGB(color);
  49826. this._originalInput = color,
  49827. this._r = rgb.r,
  49828. this._g = rgb.g,
  49829. this._b = rgb.b,
  49830. this._a = rgb.a,
  49831. this._roundA = mathRound(100*this._a) / 100,
  49832. this._format = opts.format || rgb.format;
  49833. this._gradientType = opts.gradientType;
  49834. // Don't let the range of [0,255] come back in [0,1].
  49835. // Potentially lose a little bit of precision here, but will fix issues where
  49836. // .5 gets interpreted as half of the total, instead of half of 1
  49837. // If it was supposed to be 128, this was already taken care of by `inputToRgb`
  49838. if (this._r < 1) { this._r = mathRound(this._r); }
  49839. if (this._g < 1) { this._g = mathRound(this._g); }
  49840. if (this._b < 1) { this._b = mathRound(this._b); }
  49841. this._ok = rgb.ok;
  49842. this._tc_id = tinyCounter++;
  49843. }
  49844. tinycolor.prototype = {
  49845. isDark: function() {
  49846. return this.getBrightness() < 128;
  49847. },
  49848. isLight: function() {
  49849. return !this.isDark();
  49850. },
  49851. isValid: function() {
  49852. return this._ok;
  49853. },
  49854. getOriginalInput: function() {
  49855. return this._originalInput;
  49856. },
  49857. getFormat: function() {
  49858. return this._format;
  49859. },
  49860. getAlpha: function() {
  49861. return this._a;
  49862. },
  49863. getBrightness: function() {
  49864. //http://www.w3.org/TR/AERT#color-contrast
  49865. var rgb = this.toRgb();
  49866. return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
  49867. },
  49868. getLuminance: function() {
  49869. //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
  49870. var rgb = this.toRgb();
  49871. var RsRGB, GsRGB, BsRGB, R, G, B;
  49872. RsRGB = rgb.r/255;
  49873. GsRGB = rgb.g/255;
  49874. BsRGB = rgb.b/255;
  49875. if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
  49876. if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
  49877. if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
  49878. return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
  49879. },
  49880. setAlpha: function(value) {
  49881. this._a = boundAlpha(value);
  49882. this._roundA = mathRound(100*this._a) / 100;
  49883. return this;
  49884. },
  49885. toHsv: function() {
  49886. var hsv = rgbToHsv(this._r, this._g, this._b);
  49887. return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
  49888. },
  49889. toHsvString: function() {
  49890. var hsv = rgbToHsv(this._r, this._g, this._b);
  49891. var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
  49892. return (this._a == 1) ?
  49893. "hsv(" + h + ", " + s + "%, " + v + "%)" :
  49894. "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
  49895. },
  49896. toHsl: function() {
  49897. var hsl = rgbToHsl(this._r, this._g, this._b);
  49898. return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
  49899. },
  49900. toHslString: function() {
  49901. var hsl = rgbToHsl(this._r, this._g, this._b);
  49902. var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
  49903. return (this._a == 1) ?
  49904. "hsl(" + h + ", " + s + "%, " + l + "%)" :
  49905. "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
  49906. },
  49907. toHex: function(allow3Char) {
  49908. return rgbToHex(this._r, this._g, this._b, allow3Char);
  49909. },
  49910. toHexString: function(allow3Char) {
  49911. return '#' + this.toHex(allow3Char);
  49912. },
  49913. toHex8: function(allow4Char) {
  49914. return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
  49915. },
  49916. toHex8String: function(allow4Char) {
  49917. return '#' + this.toHex8(allow4Char);
  49918. },
  49919. toRgb: function() {
  49920. return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
  49921. },
  49922. toRgbString: function() {
  49923. return (this._a == 1) ?
  49924. "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
  49925. "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
  49926. },
  49927. toPercentageRgb: function() {
  49928. return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };
  49929. },
  49930. toPercentageRgbString: function() {
  49931. return (this._a == 1) ?
  49932. "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
  49933. "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
  49934. },
  49935. toName: function() {
  49936. if (this._a === 0) {
  49937. return "transparent";
  49938. }
  49939. if (this._a < 1) {
  49940. return false;
  49941. }
  49942. return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
  49943. },
  49944. toFilter: function(secondColor) {
  49945. var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
  49946. var secondHex8String = hex8String;
  49947. var gradientType = this._gradientType ? "GradientType = 1, " : "";
  49948. if (secondColor) {
  49949. var s = tinycolor(secondColor);
  49950. secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
  49951. }
  49952. return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
  49953. },
  49954. toString: function(format) {
  49955. var formatSet = !!format;
  49956. format = format || this._format;
  49957. var formattedString = false;
  49958. var hasAlpha = this._a < 1 && this._a >= 0;
  49959. var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
  49960. if (needsAlphaFormat) {
  49961. // Special case for "transparent", all other non-alpha formats
  49962. // will return rgba when there is transparency.
  49963. if (format === "name" && this._a === 0) {
  49964. return this.toName();
  49965. }
  49966. return this.toRgbString();
  49967. }
  49968. if (format === "rgb") {
  49969. formattedString = this.toRgbString();
  49970. }
  49971. if (format === "prgb") {
  49972. formattedString = this.toPercentageRgbString();
  49973. }
  49974. if (format === "hex" || format === "hex6") {
  49975. formattedString = this.toHexString();
  49976. }
  49977. if (format === "hex3") {
  49978. formattedString = this.toHexString(true);
  49979. }
  49980. if (format === "hex4") {
  49981. formattedString = this.toHex8String(true);
  49982. }
  49983. if (format === "hex8") {
  49984. formattedString = this.toHex8String();
  49985. }
  49986. if (format === "name") {
  49987. formattedString = this.toName();
  49988. }
  49989. if (format === "hsl") {
  49990. formattedString = this.toHslString();
  49991. }
  49992. if (format === "hsv") {
  49993. formattedString = this.toHsvString();
  49994. }
  49995. return formattedString || this.toHexString();
  49996. },
  49997. clone: function() {
  49998. return tinycolor(this.toString());
  49999. },
  50000. _applyModification: function(fn, args) {
  50001. var color = fn.apply(null, [this].concat([].slice.call(args)));
  50002. this._r = color._r;
  50003. this._g = color._g;
  50004. this._b = color._b;
  50005. this.setAlpha(color._a);
  50006. return this;
  50007. },
  50008. lighten: function() {
  50009. return this._applyModification(lighten, arguments);
  50010. },
  50011. brighten: function() {
  50012. return this._applyModification(brighten, arguments);
  50013. },
  50014. darken: function() {
  50015. return this._applyModification(darken, arguments);
  50016. },
  50017. desaturate: function() {
  50018. return this._applyModification(desaturate, arguments);
  50019. },
  50020. saturate: function() {
  50021. return this._applyModification(saturate, arguments);
  50022. },
  50023. greyscale: function() {
  50024. return this._applyModification(greyscale, arguments);
  50025. },
  50026. spin: function() {
  50027. return this._applyModification(spin, arguments);
  50028. },
  50029. _applyCombination: function(fn, args) {
  50030. return fn.apply(null, [this].concat([].slice.call(args)));
  50031. },
  50032. analogous: function() {
  50033. return this._applyCombination(analogous, arguments);
  50034. },
  50035. complement: function() {
  50036. return this._applyCombination(complement, arguments);
  50037. },
  50038. monochromatic: function() {
  50039. return this._applyCombination(monochromatic, arguments);
  50040. },
  50041. splitcomplement: function() {
  50042. return this._applyCombination(splitcomplement, arguments);
  50043. },
  50044. triad: function() {
  50045. return this._applyCombination(triad, arguments);
  50046. },
  50047. tetrad: function() {
  50048. return this._applyCombination(tetrad, arguments);
  50049. }
  50050. };
  50051. // If input is an object, force 1 into "1.0" to handle ratios properly
  50052. // String input requires "1.0" as input, so 1 will be treated as 1
  50053. tinycolor.fromRatio = function(color, opts) {
  50054. if (typeof color == "object") {
  50055. var newColor = {};
  50056. for (var i in color) {
  50057. if (color.hasOwnProperty(i)) {
  50058. if (i === "a") {
  50059. newColor[i] = color[i];
  50060. }
  50061. else {
  50062. newColor[i] = convertToPercentage(color[i]);
  50063. }
  50064. }
  50065. }
  50066. color = newColor;
  50067. }
  50068. return tinycolor(color, opts);
  50069. };
  50070. // Given a string or object, convert that input to RGB
  50071. // Possible string inputs:
  50072. //
  50073. // "red"
  50074. // "#f00" or "f00"
  50075. // "#ff0000" or "ff0000"
  50076. // "#ff000000" or "ff000000"
  50077. // "rgb 255 0 0" or "rgb (255, 0, 0)"
  50078. // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
  50079. // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
  50080. // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
  50081. // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
  50082. // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
  50083. // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
  50084. //
  50085. function inputToRGB(color) {
  50086. var rgb = { r: 0, g: 0, b: 0 };
  50087. var a = 1;
  50088. var s = null;
  50089. var v = null;
  50090. var l = null;
  50091. var ok = false;
  50092. var format = false;
  50093. if (typeof color == "string") {
  50094. color = stringInputToObject(color);
  50095. }
  50096. if (typeof color == "object") {
  50097. if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
  50098. rgb = rgbToRgb(color.r, color.g, color.b);
  50099. ok = true;
  50100. format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
  50101. }
  50102. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
  50103. s = convertToPercentage(color.s);
  50104. v = convertToPercentage(color.v);
  50105. rgb = hsvToRgb(color.h, s, v);
  50106. ok = true;
  50107. format = "hsv";
  50108. }
  50109. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
  50110. s = convertToPercentage(color.s);
  50111. l = convertToPercentage(color.l);
  50112. rgb = hslToRgb(color.h, s, l);
  50113. ok = true;
  50114. format = "hsl";
  50115. }
  50116. if (color.hasOwnProperty("a")) {
  50117. a = color.a;
  50118. }
  50119. }
  50120. a = boundAlpha(a);
  50121. return {
  50122. ok: ok,
  50123. format: color.format || format,
  50124. r: mathMin(255, mathMax(rgb.r, 0)),
  50125. g: mathMin(255, mathMax(rgb.g, 0)),
  50126. b: mathMin(255, mathMax(rgb.b, 0)),
  50127. a: a
  50128. };
  50129. }
  50130. // Conversion Functions
  50131. // --------------------
  50132. // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
  50133. // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
  50134. // `rgbToRgb`
  50135. // Handle bounds / percentage checking to conform to CSS color spec
  50136. // <http://www.w3.org/TR/css3-color/>
  50137. // *Assumes:* r, g, b in [0, 255] or [0, 1]
  50138. // *Returns:* { r, g, b } in [0, 255]
  50139. function rgbToRgb(r, g, b){
  50140. return {
  50141. r: bound01(r, 255) * 255,
  50142. g: bound01(g, 255) * 255,
  50143. b: bound01(b, 255) * 255
  50144. };
  50145. }
  50146. // `rgbToHsl`
  50147. // Converts an RGB color value to HSL.
  50148. // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
  50149. // *Returns:* { h, s, l } in [0,1]
  50150. function rgbToHsl(r, g, b) {
  50151. r = bound01(r, 255);
  50152. g = bound01(g, 255);
  50153. b = bound01(b, 255);
  50154. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  50155. var h, s, l = (max + min) / 2;
  50156. if(max == min) {
  50157. h = s = 0; // achromatic
  50158. }
  50159. else {
  50160. var d = max - min;
  50161. s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
  50162. switch(max) {
  50163. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  50164. case g: h = (b - r) / d + 2; break;
  50165. case b: h = (r - g) / d + 4; break;
  50166. }
  50167. h /= 6;
  50168. }
  50169. return { h: h, s: s, l: l };
  50170. }
  50171. // `hslToRgb`
  50172. // Converts an HSL color value to RGB.
  50173. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
  50174. // *Returns:* { r, g, b } in the set [0, 255]
  50175. function hslToRgb(h, s, l) {
  50176. var r, g, b;
  50177. h = bound01(h, 360);
  50178. s = bound01(s, 100);
  50179. l = bound01(l, 100);
  50180. function hue2rgb(p, q, t) {
  50181. if(t < 0) t += 1;
  50182. if(t > 1) t -= 1;
  50183. if(t < 1/6) return p + (q - p) * 6 * t;
  50184. if(t < 1/2) return q;
  50185. if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
  50186. return p;
  50187. }
  50188. if(s === 0) {
  50189. r = g = b = l; // achromatic
  50190. }
  50191. else {
  50192. var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
  50193. var p = 2 * l - q;
  50194. r = hue2rgb(p, q, h + 1/3);
  50195. g = hue2rgb(p, q, h);
  50196. b = hue2rgb(p, q, h - 1/3);
  50197. }
  50198. return { r: r * 255, g: g * 255, b: b * 255 };
  50199. }
  50200. // `rgbToHsv`
  50201. // Converts an RGB color value to HSV
  50202. // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
  50203. // *Returns:* { h, s, v } in [0,1]
  50204. function rgbToHsv(r, g, b) {
  50205. r = bound01(r, 255);
  50206. g = bound01(g, 255);
  50207. b = bound01(b, 255);
  50208. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  50209. var h, s, v = max;
  50210. var d = max - min;
  50211. s = max === 0 ? 0 : d / max;
  50212. if(max == min) {
  50213. h = 0; // achromatic
  50214. }
  50215. else {
  50216. switch(max) {
  50217. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  50218. case g: h = (b - r) / d + 2; break;
  50219. case b: h = (r - g) / d + 4; break;
  50220. }
  50221. h /= 6;
  50222. }
  50223. return { h: h, s: s, v: v };
  50224. }
  50225. // `hsvToRgb`
  50226. // Converts an HSV color value to RGB.
  50227. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
  50228. // *Returns:* { r, g, b } in the set [0, 255]
  50229. function hsvToRgb(h, s, v) {
  50230. h = bound01(h, 360) * 6;
  50231. s = bound01(s, 100);
  50232. v = bound01(v, 100);
  50233. var i = Math.floor(h),
  50234. f = h - i,
  50235. p = v * (1 - s),
  50236. q = v * (1 - f * s),
  50237. t = v * (1 - (1 - f) * s),
  50238. mod = i % 6,
  50239. r = [v, q, p, p, t, v][mod],
  50240. g = [t, v, v, q, p, p][mod],
  50241. b = [p, p, t, v, v, q][mod];
  50242. return { r: r * 255, g: g * 255, b: b * 255 };
  50243. }
  50244. // `rgbToHex`
  50245. // Converts an RGB color to hex
  50246. // Assumes r, g, and b are contained in the set [0, 255]
  50247. // Returns a 3 or 6 character hex
  50248. function rgbToHex(r, g, b, allow3Char) {
  50249. var hex = [
  50250. pad2(mathRound(r).toString(16)),
  50251. pad2(mathRound(g).toString(16)),
  50252. pad2(mathRound(b).toString(16))
  50253. ];
  50254. // Return a 3 character hex if possible
  50255. if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
  50256. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
  50257. }
  50258. return hex.join("");
  50259. }
  50260. // `rgbaToHex`
  50261. // Converts an RGBA color plus alpha transparency to hex
  50262. // Assumes r, g, b are contained in the set [0, 255] and
  50263. // a in [0, 1]. Returns a 4 or 8 character rgba hex
  50264. function rgbaToHex(r, g, b, a, allow4Char) {
  50265. var hex = [
  50266. pad2(mathRound(r).toString(16)),
  50267. pad2(mathRound(g).toString(16)),
  50268. pad2(mathRound(b).toString(16)),
  50269. pad2(convertDecimalToHex(a))
  50270. ];
  50271. // Return a 4 character hex if possible
  50272. if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
  50273. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
  50274. }
  50275. return hex.join("");
  50276. }
  50277. // `rgbaToArgbHex`
  50278. // Converts an RGBA color to an ARGB Hex8 string
  50279. // Rarely used, but required for "toFilter()"
  50280. function rgbaToArgbHex(r, g, b, a) {
  50281. var hex = [
  50282. pad2(convertDecimalToHex(a)),
  50283. pad2(mathRound(r).toString(16)),
  50284. pad2(mathRound(g).toString(16)),
  50285. pad2(mathRound(b).toString(16))
  50286. ];
  50287. return hex.join("");
  50288. }
  50289. // `equals`
  50290. // Can be called with any tinycolor input
  50291. tinycolor.equals = function (color1, color2) {
  50292. if (!color1 || !color2) { return false; }
  50293. return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
  50294. };
  50295. tinycolor.random = function() {
  50296. return tinycolor.fromRatio({
  50297. r: mathRandom(),
  50298. g: mathRandom(),
  50299. b: mathRandom()
  50300. });
  50301. };
  50302. // Modification Functions
  50303. // ----------------------
  50304. // Thanks to less.js for some of the basics here
  50305. // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
  50306. function desaturate(color, amount) {
  50307. amount = (amount === 0) ? 0 : (amount || 10);
  50308. var hsl = tinycolor(color).toHsl();
  50309. hsl.s -= amount / 100;
  50310. hsl.s = clamp01(hsl.s);
  50311. return tinycolor(hsl);
  50312. }
  50313. function saturate(color, amount) {
  50314. amount = (amount === 0) ? 0 : (amount || 10);
  50315. var hsl = tinycolor(color).toHsl();
  50316. hsl.s += amount / 100;
  50317. hsl.s = clamp01(hsl.s);
  50318. return tinycolor(hsl);
  50319. }
  50320. function greyscale(color) {
  50321. return tinycolor(color).desaturate(100);
  50322. }
  50323. function lighten (color, amount) {
  50324. amount = (amount === 0) ? 0 : (amount || 10);
  50325. var hsl = tinycolor(color).toHsl();
  50326. hsl.l += amount / 100;
  50327. hsl.l = clamp01(hsl.l);
  50328. return tinycolor(hsl);
  50329. }
  50330. function brighten(color, amount) {
  50331. amount = (amount === 0) ? 0 : (amount || 10);
  50332. var rgb = tinycolor(color).toRgb();
  50333. rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
  50334. rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
  50335. rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
  50336. return tinycolor(rgb);
  50337. }
  50338. function darken (color, amount) {
  50339. amount = (amount === 0) ? 0 : (amount || 10);
  50340. var hsl = tinycolor(color).toHsl();
  50341. hsl.l -= amount / 100;
  50342. hsl.l = clamp01(hsl.l);
  50343. return tinycolor(hsl);
  50344. }
  50345. // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
  50346. // Values outside of this range will be wrapped into this range.
  50347. function spin(color, amount) {
  50348. var hsl = tinycolor(color).toHsl();
  50349. var hue = (hsl.h + amount) % 360;
  50350. hsl.h = hue < 0 ? 360 + hue : hue;
  50351. return tinycolor(hsl);
  50352. }
  50353. // Combination Functions
  50354. // ---------------------
  50355. // Thanks to jQuery xColor for some of the ideas behind these
  50356. // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
  50357. function complement(color) {
  50358. var hsl = tinycolor(color).toHsl();
  50359. hsl.h = (hsl.h + 180) % 360;
  50360. return tinycolor(hsl);
  50361. }
  50362. function triad(color) {
  50363. var hsl = tinycolor(color).toHsl();
  50364. var h = hsl.h;
  50365. return [
  50366. tinycolor(color),
  50367. tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
  50368. tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
  50369. ];
  50370. }
  50371. function tetrad(color) {
  50372. var hsl = tinycolor(color).toHsl();
  50373. var h = hsl.h;
  50374. return [
  50375. tinycolor(color),
  50376. tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
  50377. tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
  50378. tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
  50379. ];
  50380. }
  50381. function splitcomplement(color) {
  50382. var hsl = tinycolor(color).toHsl();
  50383. var h = hsl.h;
  50384. return [
  50385. tinycolor(color),
  50386. tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
  50387. tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
  50388. ];
  50389. }
  50390. function analogous(color, results, slices) {
  50391. results = results || 6;
  50392. slices = slices || 30;
  50393. var hsl = tinycolor(color).toHsl();
  50394. var part = 360 / slices;
  50395. var ret = [tinycolor(color)];
  50396. for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
  50397. hsl.h = (hsl.h + part) % 360;
  50398. ret.push(tinycolor(hsl));
  50399. }
  50400. return ret;
  50401. }
  50402. function monochromatic(color, results) {
  50403. results = results || 6;
  50404. var hsv = tinycolor(color).toHsv();
  50405. var h = hsv.h, s = hsv.s, v = hsv.v;
  50406. var ret = [];
  50407. var modification = 1 / results;
  50408. while (results--) {
  50409. ret.push(tinycolor({ h: h, s: s, v: v}));
  50410. v = (v + modification) % 1;
  50411. }
  50412. return ret;
  50413. }
  50414. // Utility Functions
  50415. // ---------------------
  50416. tinycolor.mix = function(color1, color2, amount) {
  50417. amount = (amount === 0) ? 0 : (amount || 50);
  50418. var rgb1 = tinycolor(color1).toRgb();
  50419. var rgb2 = tinycolor(color2).toRgb();
  50420. var p = amount / 100;
  50421. var rgba = {
  50422. r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
  50423. g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
  50424. b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
  50425. a: ((rgb2.a - rgb1.a) * p) + rgb1.a
  50426. };
  50427. return tinycolor(rgba);
  50428. };
  50429. // Readability Functions
  50430. // ---------------------
  50431. // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
  50432. // `contrast`
  50433. // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
  50434. tinycolor.readability = function(color1, color2) {
  50435. var c1 = tinycolor(color1);
  50436. var c2 = tinycolor(color2);
  50437. return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
  50438. };
  50439. // `isReadable`
  50440. // Ensure that foreground and background color combinations meet WCAG2 guidelines.
  50441. // The third argument is an optional Object.
  50442. // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
  50443. // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
  50444. // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
  50445. // *Example*
  50446. // tinycolor.isReadable("#000", "#111") => false
  50447. // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
  50448. tinycolor.isReadable = function(color1, color2, wcag2) {
  50449. var readability = tinycolor.readability(color1, color2);
  50450. var wcag2Parms, out;
  50451. out = false;
  50452. wcag2Parms = validateWCAG2Parms(wcag2);
  50453. switch (wcag2Parms.level + wcag2Parms.size) {
  50454. case "AAsmall":
  50455. case "AAAlarge":
  50456. out = readability >= 4.5;
  50457. break;
  50458. case "AAlarge":
  50459. out = readability >= 3;
  50460. break;
  50461. case "AAAsmall":
  50462. out = readability >= 7;
  50463. break;
  50464. }
  50465. return out;
  50466. };
  50467. // `mostReadable`
  50468. // Given a base color and a list of possible foreground or background
  50469. // colors for that base, returns the most readable color.
  50470. // Optionally returns Black or White if the most readable color is unreadable.
  50471. // *Example*
  50472. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
  50473. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
  50474. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
  50475. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
  50476. tinycolor.mostReadable = function(baseColor, colorList, args) {
  50477. var bestColor = null;
  50478. var bestScore = 0;
  50479. var readability;
  50480. var includeFallbackColors, level, size ;
  50481. args = args || {};
  50482. includeFallbackColors = args.includeFallbackColors ;
  50483. level = args.level;
  50484. size = args.size;
  50485. for (var i= 0; i < colorList.length ; i++) {
  50486. readability = tinycolor.readability(baseColor, colorList[i]);
  50487. if (readability > bestScore) {
  50488. bestScore = readability;
  50489. bestColor = tinycolor(colorList[i]);
  50490. }
  50491. }
  50492. if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
  50493. return bestColor;
  50494. }
  50495. else {
  50496. args.includeFallbackColors=false;
  50497. return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
  50498. }
  50499. };
  50500. // Big List of Colors
  50501. // ------------------
  50502. // <http://www.w3.org/TR/css3-color/#svg-color>
  50503. var names = tinycolor.names = {
  50504. aliceblue: "f0f8ff",
  50505. antiquewhite: "faebd7",
  50506. aqua: "0ff",
  50507. aquamarine: "7fffd4",
  50508. azure: "f0ffff",
  50509. beige: "f5f5dc",
  50510. bisque: "ffe4c4",
  50511. black: "000",
  50512. blanchedalmond: "ffebcd",
  50513. blue: "00f",
  50514. blueviolet: "8a2be2",
  50515. brown: "a52a2a",
  50516. burlywood: "deb887",
  50517. burntsienna: "ea7e5d",
  50518. cadetblue: "5f9ea0",
  50519. chartreuse: "7fff00",
  50520. chocolate: "d2691e",
  50521. coral: "ff7f50",
  50522. cornflowerblue: "6495ed",
  50523. cornsilk: "fff8dc",
  50524. crimson: "dc143c",
  50525. cyan: "0ff",
  50526. darkblue: "00008b",
  50527. darkcyan: "008b8b",
  50528. darkgoldenrod: "b8860b",
  50529. darkgray: "a9a9a9",
  50530. darkgreen: "006400",
  50531. darkgrey: "a9a9a9",
  50532. darkkhaki: "bdb76b",
  50533. darkmagenta: "8b008b",
  50534. darkolivegreen: "556b2f",
  50535. darkorange: "ff8c00",
  50536. darkorchid: "9932cc",
  50537. darkred: "8b0000",
  50538. darksalmon: "e9967a",
  50539. darkseagreen: "8fbc8f",
  50540. darkslateblue: "483d8b",
  50541. darkslategray: "2f4f4f",
  50542. darkslategrey: "2f4f4f",
  50543. darkturquoise: "00ced1",
  50544. darkviolet: "9400d3",
  50545. deeppink: "ff1493",
  50546. deepskyblue: "00bfff",
  50547. dimgray: "696969",
  50548. dimgrey: "696969",
  50549. dodgerblue: "1e90ff",
  50550. firebrick: "b22222",
  50551. floralwhite: "fffaf0",
  50552. forestgreen: "228b22",
  50553. fuchsia: "f0f",
  50554. gainsboro: "dcdcdc",
  50555. ghostwhite: "f8f8ff",
  50556. gold: "ffd700",
  50557. goldenrod: "daa520",
  50558. gray: "808080",
  50559. green: "008000",
  50560. greenyellow: "adff2f",
  50561. grey: "808080",
  50562. honeydew: "f0fff0",
  50563. hotpink: "ff69b4",
  50564. indianred: "cd5c5c",
  50565. indigo: "4b0082",
  50566. ivory: "fffff0",
  50567. khaki: "f0e68c",
  50568. lavender: "e6e6fa",
  50569. lavenderblush: "fff0f5",
  50570. lawngreen: "7cfc00",
  50571. lemonchiffon: "fffacd",
  50572. lightblue: "add8e6",
  50573. lightcoral: "f08080",
  50574. lightcyan: "e0ffff",
  50575. lightgoldenrodyellow: "fafad2",
  50576. lightgray: "d3d3d3",
  50577. lightgreen: "90ee90",
  50578. lightgrey: "d3d3d3",
  50579. lightpink: "ffb6c1",
  50580. lightsalmon: "ffa07a",
  50581. lightseagreen: "20b2aa",
  50582. lightskyblue: "87cefa",
  50583. lightslategray: "789",
  50584. lightslategrey: "789",
  50585. lightsteelblue: "b0c4de",
  50586. lightyellow: "ffffe0",
  50587. lime: "0f0",
  50588. limegreen: "32cd32",
  50589. linen: "faf0e6",
  50590. magenta: "f0f",
  50591. maroon: "800000",
  50592. mediumaquamarine: "66cdaa",
  50593. mediumblue: "0000cd",
  50594. mediumorchid: "ba55d3",
  50595. mediumpurple: "9370db",
  50596. mediumseagreen: "3cb371",
  50597. mediumslateblue: "7b68ee",
  50598. mediumspringgreen: "00fa9a",
  50599. mediumturquoise: "48d1cc",
  50600. mediumvioletred: "c71585",
  50601. midnightblue: "191970",
  50602. mintcream: "f5fffa",
  50603. mistyrose: "ffe4e1",
  50604. moccasin: "ffe4b5",
  50605. navajowhite: "ffdead",
  50606. navy: "000080",
  50607. oldlace: "fdf5e6",
  50608. olive: "808000",
  50609. olivedrab: "6b8e23",
  50610. orange: "ffa500",
  50611. orangered: "ff4500",
  50612. orchid: "da70d6",
  50613. palegoldenrod: "eee8aa",
  50614. palegreen: "98fb98",
  50615. paleturquoise: "afeeee",
  50616. palevioletred: "db7093",
  50617. papayawhip: "ffefd5",
  50618. peachpuff: "ffdab9",
  50619. peru: "cd853f",
  50620. pink: "ffc0cb",
  50621. plum: "dda0dd",
  50622. powderblue: "b0e0e6",
  50623. purple: "800080",
  50624. rebeccapurple: "663399",
  50625. red: "f00",
  50626. rosybrown: "bc8f8f",
  50627. royalblue: "4169e1",
  50628. saddlebrown: "8b4513",
  50629. salmon: "fa8072",
  50630. sandybrown: "f4a460",
  50631. seagreen: "2e8b57",
  50632. seashell: "fff5ee",
  50633. sienna: "a0522d",
  50634. silver: "c0c0c0",
  50635. skyblue: "87ceeb",
  50636. slateblue: "6a5acd",
  50637. slategray: "708090",
  50638. slategrey: "708090",
  50639. snow: "fffafa",
  50640. springgreen: "00ff7f",
  50641. steelblue: "4682b4",
  50642. tan: "d2b48c",
  50643. teal: "008080",
  50644. thistle: "d8bfd8",
  50645. tomato: "ff6347",
  50646. turquoise: "40e0d0",
  50647. violet: "ee82ee",
  50648. wheat: "f5deb3",
  50649. white: "fff",
  50650. whitesmoke: "f5f5f5",
  50651. yellow: "ff0",
  50652. yellowgreen: "9acd32"
  50653. };
  50654. // Make it easy to access colors via `hexNames[hex]`
  50655. var hexNames = tinycolor.hexNames = flip(names);
  50656. // Utilities
  50657. // ---------
  50658. // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
  50659. function flip(o) {
  50660. var flipped = { };
  50661. for (var i in o) {
  50662. if (o.hasOwnProperty(i)) {
  50663. flipped[o[i]] = i;
  50664. }
  50665. }
  50666. return flipped;
  50667. }
  50668. // Return a valid alpha value [0,1] with all invalid values being set to 1
  50669. function boundAlpha(a) {
  50670. a = parseFloat(a);
  50671. if (isNaN(a) || a < 0 || a > 1) {
  50672. a = 1;
  50673. }
  50674. return a;
  50675. }
  50676. // Take input from [0, n] and return it as [0, 1]
  50677. function bound01(n, max) {
  50678. if (isOnePointZero(n)) { n = "100%"; }
  50679. var processPercent = isPercentage(n);
  50680. n = mathMin(max, mathMax(0, parseFloat(n)));
  50681. // Automatically convert percentage into number
  50682. if (processPercent) {
  50683. n = parseInt(n * max, 10) / 100;
  50684. }
  50685. // Handle floating point rounding errors
  50686. if ((Math.abs(n - max) < 0.000001)) {
  50687. return 1;
  50688. }
  50689. // Convert into [0, 1] range if it isn't already
  50690. return (n % max) / parseFloat(max);
  50691. }
  50692. // Force a number between 0 and 1
  50693. function clamp01(val) {
  50694. return mathMin(1, mathMax(0, val));
  50695. }
  50696. // Parse a base-16 hex value into a base-10 integer
  50697. function parseIntFromHex(val) {
  50698. return parseInt(val, 16);
  50699. }
  50700. // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
  50701. // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
  50702. function isOnePointZero(n) {
  50703. return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
  50704. }
  50705. // Check to see if string passed in is a percentage
  50706. function isPercentage(n) {
  50707. return typeof n === "string" && n.indexOf('%') != -1;
  50708. }
  50709. // Force a hex value to have 2 characters
  50710. function pad2(c) {
  50711. return c.length == 1 ? '0' + c : '' + c;
  50712. }
  50713. // Replace a decimal with it's percentage value
  50714. function convertToPercentage(n) {
  50715. if (n <= 1) {
  50716. n = (n * 100) + "%";
  50717. }
  50718. return n;
  50719. }
  50720. // Converts a decimal to a hex value
  50721. function convertDecimalToHex(d) {
  50722. return Math.round(parseFloat(d) * 255).toString(16);
  50723. }
  50724. // Converts a hex value to a decimal
  50725. function convertHexToDecimal(h) {
  50726. return (parseIntFromHex(h) / 255);
  50727. }
  50728. var matchers = (function() {
  50729. // <http://www.w3.org/TR/css3-values/#integers>
  50730. var CSS_INTEGER = "[-\\+]?\\d+%?";
  50731. // <http://www.w3.org/TR/css3-values/#number-value>
  50732. var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
  50733. // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
  50734. var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
  50735. // Actual matching.
  50736. // Parentheses and commas are optional, but not required.
  50737. // Whitespace can take the place of commas or opening paren
  50738. var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  50739. var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  50740. return {
  50741. CSS_UNIT: new RegExp(CSS_UNIT),
  50742. rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
  50743. rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
  50744. hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
  50745. hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
  50746. hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
  50747. hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
  50748. hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  50749. hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  50750. hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  50751. hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
  50752. };
  50753. })();
  50754. // `isValidCSSUnit`
  50755. // Take in a single string / number and check to see if it looks like a CSS unit
  50756. // (see `matchers` above for definition).
  50757. function isValidCSSUnit(color) {
  50758. return !!matchers.CSS_UNIT.exec(color);
  50759. }
  50760. // `stringInputToObject`
  50761. // Permissive string parsing. Take in a number of formats, and output an object
  50762. // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
  50763. function stringInputToObject(color) {
  50764. color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
  50765. var named = false;
  50766. if (names[color]) {
  50767. color = names[color];
  50768. named = true;
  50769. }
  50770. else if (color == 'transparent') {
  50771. return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  50772. }
  50773. // Try to match string input using regular expressions.
  50774. // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
  50775. // Just return an object and let the conversion functions handle that.
  50776. // This way the result will be the same whether the tinycolor is initialized with string or object.
  50777. var match;
  50778. if ((match = matchers.rgb.exec(color))) {
  50779. return { r: match[1], g: match[2], b: match[3] };
  50780. }
  50781. if ((match = matchers.rgba.exec(color))) {
  50782. return { r: match[1], g: match[2], b: match[3], a: match[4] };
  50783. }
  50784. if ((match = matchers.hsl.exec(color))) {
  50785. return { h: match[1], s: match[2], l: match[3] };
  50786. }
  50787. if ((match = matchers.hsla.exec(color))) {
  50788. return { h: match[1], s: match[2], l: match[3], a: match[4] };
  50789. }
  50790. if ((match = matchers.hsv.exec(color))) {
  50791. return { h: match[1], s: match[2], v: match[3] };
  50792. }
  50793. if ((match = matchers.hsva.exec(color))) {
  50794. return { h: match[1], s: match[2], v: match[3], a: match[4] };
  50795. }
  50796. if ((match = matchers.hex8.exec(color))) {
  50797. return {
  50798. r: parseIntFromHex(match[1]),
  50799. g: parseIntFromHex(match[2]),
  50800. b: parseIntFromHex(match[3]),
  50801. a: convertHexToDecimal(match[4]),
  50802. format: named ? "name" : "hex8"
  50803. };
  50804. }
  50805. if ((match = matchers.hex6.exec(color))) {
  50806. return {
  50807. r: parseIntFromHex(match[1]),
  50808. g: parseIntFromHex(match[2]),
  50809. b: parseIntFromHex(match[3]),
  50810. format: named ? "name" : "hex"
  50811. };
  50812. }
  50813. if ((match = matchers.hex4.exec(color))) {
  50814. return {
  50815. r: parseIntFromHex(match[1] + '' + match[1]),
  50816. g: parseIntFromHex(match[2] + '' + match[2]),
  50817. b: parseIntFromHex(match[3] + '' + match[3]),
  50818. a: convertHexToDecimal(match[4] + '' + match[4]),
  50819. format: named ? "name" : "hex8"
  50820. };
  50821. }
  50822. if ((match = matchers.hex3.exec(color))) {
  50823. return {
  50824. r: parseIntFromHex(match[1] + '' + match[1]),
  50825. g: parseIntFromHex(match[2] + '' + match[2]),
  50826. b: parseIntFromHex(match[3] + '' + match[3]),
  50827. format: named ? "name" : "hex"
  50828. };
  50829. }
  50830. return false;
  50831. }
  50832. function validateWCAG2Parms(parms) {
  50833. // return valid WCAG2 parms for isReadable.
  50834. // If input parms are invalid, return {"level":"AA", "size":"small"}
  50835. var level, size;
  50836. parms = parms || {"level":"AA", "size":"small"};
  50837. level = (parms.level || "AA").toUpperCase();
  50838. size = (parms.size || "small").toLowerCase();
  50839. if (level !== "AA" && level !== "AAA") {
  50840. level = "AA";
  50841. }
  50842. if (size !== "small" && size !== "large") {
  50843. size = "small";
  50844. }
  50845. return {"level":level, "size":size};
  50846. }
  50847. // Node: Export function
  50848. if ( true && module.exports) {
  50849. module.exports = tinycolor;
  50850. }
  50851. // AMD/requirejs: Define the module
  50852. else if (true) {
  50853. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
  50854. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  50855. }
  50856. // Browser: Expose to window
  50857. else {}
  50858. })(Math);
  50859. /***/ }),
  50860. /***/ "../../node_modules/tslib/tslib.es6.js":
  50861. /*!***********************************************************!*\
  50862. !*** D:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  50863. \***********************************************************/
  50864. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
  50865. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50866. "use strict";
  50867. __webpack_require__.r(__webpack_exports__);
  50868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  50869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  50870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  50871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  50872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  50873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  50874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  50875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  50876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
  50877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  50878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  50879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  50880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  50881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  50882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  50883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  50884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  50885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  50886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  50887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  50888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  50889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
  50890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
  50891. /*! *****************************************************************************
  50892. Copyright (c) Microsoft Corporation.
  50893. Permission to use, copy, modify, and/or distribute this software for any
  50894. purpose with or without fee is hereby granted.
  50895. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  50896. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  50897. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  50898. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  50899. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  50900. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  50901. PERFORMANCE OF THIS SOFTWARE.
  50902. ***************************************************************************** */
  50903. /* global Reflect, Promise */
  50904. var extendStatics = function(d, b) {
  50905. extendStatics = Object.setPrototypeOf ||
  50906. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  50907. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  50908. return extendStatics(d, b);
  50909. };
  50910. function __extends(d, b) {
  50911. extendStatics(d, b);
  50912. function __() { this.constructor = d; }
  50913. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  50914. }
  50915. var __assign = function() {
  50916. __assign = Object.assign || function __assign(t) {
  50917. for (var s, i = 1, n = arguments.length; i < n; i++) {
  50918. s = arguments[i];
  50919. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  50920. }
  50921. return t;
  50922. }
  50923. return __assign.apply(this, arguments);
  50924. }
  50925. function __rest(s, e) {
  50926. var t = {};
  50927. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  50928. t[p] = s[p];
  50929. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  50930. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  50931. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  50932. t[p[i]] = s[p[i]];
  50933. }
  50934. return t;
  50935. }
  50936. function __decorate(decorators, target, key, desc) {
  50937. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  50938. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  50939. 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;
  50940. return c > 3 && r && Object.defineProperty(target, key, r), r;
  50941. }
  50942. function __param(paramIndex, decorator) {
  50943. return function (target, key) { decorator(target, key, paramIndex); }
  50944. }
  50945. function __metadata(metadataKey, metadataValue) {
  50946. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  50947. }
  50948. function __awaiter(thisArg, _arguments, P, generator) {
  50949. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  50950. return new (P || (P = Promise))(function (resolve, reject) {
  50951. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  50952. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  50953. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  50954. step((generator = generator.apply(thisArg, _arguments || [])).next());
  50955. });
  50956. }
  50957. function __generator(thisArg, body) {
  50958. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  50959. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  50960. function verb(n) { return function (v) { return step([n, v]); }; }
  50961. function step(op) {
  50962. if (f) throw new TypeError("Generator is already executing.");
  50963. while (_) try {
  50964. 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;
  50965. if (y = 0, t) op = [op[0] & 2, t.value];
  50966. switch (op[0]) {
  50967. case 0: case 1: t = op; break;
  50968. case 4: _.label++; return { value: op[1], done: false };
  50969. case 5: _.label++; y = op[1]; op = [0]; continue;
  50970. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  50971. default:
  50972. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  50973. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  50974. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  50975. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  50976. if (t[2]) _.ops.pop();
  50977. _.trys.pop(); continue;
  50978. }
  50979. op = body.call(thisArg, _);
  50980. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  50981. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  50982. }
  50983. }
  50984. var __createBinding = Object.create ? (function(o, m, k, k2) {
  50985. if (k2 === undefined) k2 = k;
  50986. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  50987. }) : (function(o, m, k, k2) {
  50988. if (k2 === undefined) k2 = k;
  50989. o[k2] = m[k];
  50990. });
  50991. function __exportStar(m, exports) {
  50992. for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
  50993. }
  50994. function __values(o) {
  50995. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  50996. if (m) return m.call(o);
  50997. if (o && typeof o.length === "number") return {
  50998. next: function () {
  50999. if (o && i >= o.length) o = void 0;
  51000. return { value: o && o[i++], done: !o };
  51001. }
  51002. };
  51003. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  51004. }
  51005. function __read(o, n) {
  51006. var m = typeof Symbol === "function" && o[Symbol.iterator];
  51007. if (!m) return o;
  51008. var i = m.call(o), r, ar = [], e;
  51009. try {
  51010. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  51011. }
  51012. catch (error) { e = { error: error }; }
  51013. finally {
  51014. try {
  51015. if (r && !r.done && (m = i["return"])) m.call(i);
  51016. }
  51017. finally { if (e) throw e.error; }
  51018. }
  51019. return ar;
  51020. }
  51021. function __spread() {
  51022. for (var ar = [], i = 0; i < arguments.length; i++)
  51023. ar = ar.concat(__read(arguments[i]));
  51024. return ar;
  51025. }
  51026. function __spreadArrays() {
  51027. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  51028. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  51029. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  51030. r[k] = a[j];
  51031. return r;
  51032. };
  51033. function __await(v) {
  51034. return this instanceof __await ? (this.v = v, this) : new __await(v);
  51035. }
  51036. function __asyncGenerator(thisArg, _arguments, generator) {
  51037. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  51038. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  51039. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  51040. 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); }); }; }
  51041. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  51042. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  51043. function fulfill(value) { resume("next", value); }
  51044. function reject(value) { resume("throw", value); }
  51045. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  51046. }
  51047. function __asyncDelegator(o) {
  51048. var i, p;
  51049. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  51050. 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; }
  51051. }
  51052. function __asyncValues(o) {
  51053. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  51054. var m = o[Symbol.asyncIterator], i;
  51055. 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);
  51056. 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); }); }; }
  51057. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  51058. }
  51059. function __makeTemplateObject(cooked, raw) {
  51060. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  51061. return cooked;
  51062. };
  51063. var __setModuleDefault = Object.create ? (function(o, v) {
  51064. Object.defineProperty(o, "default", { enumerable: true, value: v });
  51065. }) : function(o, v) {
  51066. o["default"] = v;
  51067. };
  51068. function __importStar(mod) {
  51069. if (mod && mod.__esModule) return mod;
  51070. var result = {};
  51071. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  51072. __setModuleDefault(result, mod);
  51073. return result;
  51074. }
  51075. function __importDefault(mod) {
  51076. return (mod && mod.__esModule) ? mod : { default: mod };
  51077. }
  51078. function __classPrivateFieldGet(receiver, privateMap) {
  51079. if (!privateMap.has(receiver)) {
  51080. throw new TypeError("attempted to get private field on non-instance");
  51081. }
  51082. return privateMap.get(receiver);
  51083. }
  51084. function __classPrivateFieldSet(receiver, privateMap, value) {
  51085. if (!privateMap.has(receiver)) {
  51086. throw new TypeError("attempted to set private field on non-instance");
  51087. }
  51088. privateMap.set(receiver, value);
  51089. return value;
  51090. }
  51091. /***/ }),
  51092. /***/ "../../node_modules/webpack/buildin/global.js":
  51093. /*!***********************************!*\
  51094. !*** (webpack)/buildin/global.js ***!
  51095. \***********************************/
  51096. /*! no static exports found */
  51097. /***/ (function(module, exports) {
  51098. var g;
  51099. // This works in non-strict mode
  51100. g = (function() {
  51101. return this;
  51102. })();
  51103. try {
  51104. // This works if eval is allowed (see CSP)
  51105. g = g || new Function("return this")();
  51106. } catch (e) {
  51107. // This works if the window reference is available
  51108. if (typeof window === "object") g = window;
  51109. }
  51110. // g can still be undefined, but nothing to do about it...
  51111. // We return undefined, instead of nothing here, so it's
  51112. // easier to handle this case. if(!global) { ...}
  51113. module.exports = g;
  51114. /***/ }),
  51115. /***/ "../../node_modules/webpack/buildin/module.js":
  51116. /*!***********************************!*\
  51117. !*** (webpack)/buildin/module.js ***!
  51118. \***********************************/
  51119. /*! no static exports found */
  51120. /***/ (function(module, exports) {
  51121. module.exports = function(module) {
  51122. if (!module.webpackPolyfill) {
  51123. module.deprecate = function() {};
  51124. module.paths = [];
  51125. // module.parent = undefined by default
  51126. if (!module.children) module.children = [];
  51127. Object.defineProperty(module, "loaded", {
  51128. enumerable: true,
  51129. get: function() {
  51130. return module.l;
  51131. }
  51132. });
  51133. Object.defineProperty(module, "id", {
  51134. enumerable: true,
  51135. get: function() {
  51136. return module.i;
  51137. }
  51138. });
  51139. module.webpackPolyfill = 1;
  51140. }
  51141. return module;
  51142. };
  51143. /***/ }),
  51144. /***/ "./components/actionTabs/actionTabs.scss":
  51145. /*!***********************************************!*\
  51146. !*** ./components/actionTabs/actionTabs.scss ***!
  51147. \***********************************************/
  51148. /*! no static exports found */
  51149. /***/ (function(module, exports, __webpack_require__) {
  51150. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51151. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./actionTabs.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/actionTabs/actionTabs.scss");
  51152. content = content.__esModule ? content.default : content;
  51153. if (typeof content === 'string') {
  51154. content = [[module.i, content, '']];
  51155. }
  51156. var options = {};
  51157. options.insert = "head";
  51158. options.singleton = false;
  51159. var update = api(content, options);
  51160. module.exports = content.locals || {};
  51161. /***/ }),
  51162. /***/ "./components/actionTabs/actionTabsComponent.tsx":
  51163. /*!*******************************************************!*\
  51164. !*** ./components/actionTabs/actionTabsComponent.tsx ***!
  51165. \*******************************************************/
  51166. /*! exports provided: ActionTabsComponent */
  51167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51168. "use strict";
  51169. __webpack_require__.r(__webpack_exports__);
  51170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActionTabsComponent", function() { return ActionTabsComponent; });
  51171. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51172. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51173. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51174. /* harmony import */ var babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Debug/debugLayer */ "babylonjs/Misc/observable");
  51175. /* harmony import */ var babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__);
  51176. /* harmony import */ var _tabsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabsComponent */ "./components/actionTabs/tabsComponent.tsx");
  51177. /* 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");
  51178. /* harmony import */ var _tabs_statisticsTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tabs/statisticsTabComponent */ "./components/actionTabs/tabs/statisticsTabComponent.tsx");
  51179. /* harmony import */ var _tabs_debugTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tabs/debugTabComponent */ "./components/actionTabs/tabs/debugTabComponent.tsx");
  51180. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! re-resizable */ "../../node_modules/re-resizable/lib/index.es5.js");
  51181. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(re_resizable__WEBPACK_IMPORTED_MODULE_7__);
  51182. /* harmony import */ var _tabs_propertyGridTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tabs/propertyGridTabComponent */ "./components/actionTabs/tabs/propertyGridTabComponent.tsx");
  51183. /* harmony import */ var _headerComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../headerComponent */ "./components/headerComponent.tsx");
  51184. /* harmony import */ var _tabs_toolsTabComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tabs/toolsTabComponent */ "./components/actionTabs/tabs/toolsTabComponent.tsx");
  51185. /* harmony import */ var _tabs_settingsTabComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./tabs/settingsTabComponent */ "./components/actionTabs/tabs/settingsTabComponent.tsx");
  51186. __webpack_require__(/*! ./actionTabs.scss */ "./components/actionTabs/actionTabs.scss");
  51187. var ActionTabsComponent = /** @class */ (function (_super) {
  51188. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ActionTabsComponent, _super);
  51189. function ActionTabsComponent(props) {
  51190. var _this = _super.call(this, props) || this;
  51191. _this._once = true;
  51192. var initialIndex = props.initialTab === undefined
  51193. ? babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__["DebugLayerTab"].Properties
  51194. : props.initialTab;
  51195. if (_this.props.globalState) {
  51196. var validationResults = _this.props.globalState.validationResults;
  51197. if (validationResults) {
  51198. if (validationResults.issues.numErrors || validationResults.issues.numWarnings) {
  51199. initialIndex = babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__["DebugLayerTab"].Tools;
  51200. }
  51201. }
  51202. }
  51203. _this.state = { selectedEntity: null, selectedIndex: initialIndex };
  51204. return _this;
  51205. }
  51206. ActionTabsComponent.prototype.componentDidMount = function () {
  51207. var _this = this;
  51208. if (this.props.globalState) {
  51209. this._onSelectionChangeObserver = this.props.globalState.onSelectionChangedObservable.add(function (entity) {
  51210. _this.setState({ selectedEntity: entity, selectedIndex: babylonjs_Debug_debugLayer__WEBPACK_IMPORTED_MODULE_2__["DebugLayerTab"].Properties });
  51211. });
  51212. this._onTabChangedObserver = this.props.globalState.onTabChangedObservable.add(function (index) {
  51213. _this.setState({ selectedIndex: index });
  51214. });
  51215. }
  51216. };
  51217. ActionTabsComponent.prototype.componentWillUnmount = function () {
  51218. if (this.props.globalState) {
  51219. if (this._onSelectionChangeObserver) {
  51220. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  51221. }
  51222. if (this._onTabChangedObserver) {
  51223. this.props.globalState.onTabChangedObservable.remove(this._onTabChangedObserver);
  51224. }
  51225. }
  51226. };
  51227. ActionTabsComponent.prototype.changeSelectedTab = function (index) {
  51228. if (this.props.globalState) {
  51229. this.props.globalState.onTabChangedObservable.notifyObservers(index);
  51230. }
  51231. };
  51232. ActionTabsComponent.prototype.renderContent = function () {
  51233. var _this = this;
  51234. if (this.props.globalState && this.props.scene) {
  51235. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tabsComponent__WEBPACK_IMPORTED_MODULE_3__["TabsComponent"], { selectedIndex: this.state.selectedIndex, onSelectedIndexChange: function (value) { return _this.changeSelectedTab(value); } },
  51236. 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 }),
  51237. 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 }),
  51238. 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 }),
  51239. 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 }),
  51240. 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 })));
  51241. }
  51242. else {
  51243. return null;
  51244. }
  51245. };
  51246. ActionTabsComponent.prototype.onClose = function () {
  51247. if (!this.props.onClose) {
  51248. return;
  51249. }
  51250. this.props.onClose();
  51251. };
  51252. ActionTabsComponent.prototype.onPopup = function () {
  51253. if (!this.props.onPopup) {
  51254. return;
  51255. }
  51256. this.props.onPopup();
  51257. };
  51258. ActionTabsComponent.prototype.render = function () {
  51259. var _this = this;
  51260. if (this.props.popupMode) {
  51261. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "actionTabs" },
  51262. !this.props.noHeader &&
  51263. 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 }),
  51264. this.renderContent()));
  51265. }
  51266. if (this._once) {
  51267. this._once = false;
  51268. // A bit hacky but no other way to force the initial width to 300px and not auto
  51269. setTimeout(function () {
  51270. var element = document.getElementById("actionTabs");
  51271. if (!element) {
  51272. return;
  51273. }
  51274. element.style.width = "300px";
  51275. }, 150);
  51276. }
  51277. 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 } },
  51278. !this.props.noHeader &&
  51279. 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 }),
  51280. this.renderContent()));
  51281. };
  51282. return ActionTabsComponent;
  51283. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51284. /***/ }),
  51285. /***/ "./components/actionTabs/lineContainerComponent.tsx":
  51286. /*!**********************************************************!*\
  51287. !*** ./components/actionTabs/lineContainerComponent.tsx ***!
  51288. \**********************************************************/
  51289. /*! exports provided: LineContainerComponent */
  51290. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51291. "use strict";
  51292. __webpack_require__.r(__webpack_exports__);
  51293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  51294. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51295. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51296. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51297. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  51298. /* 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");
  51299. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/observable");
  51300. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__);
  51301. var LineContainerComponent = /** @class */ (function (_super) {
  51302. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineContainerComponent, _super);
  51303. function LineContainerComponent(props) {
  51304. var _this = _super.call(this, props) || this;
  51305. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  51306. _this.state = { isExpanded: initialState, isHighlighted: false };
  51307. return _this;
  51308. }
  51309. LineContainerComponent.prototype.switchExpandedState = function () {
  51310. var newState = !this.state.isExpanded;
  51311. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].WriteBoolean(this.props.title, newState);
  51312. this.setState({ isExpanded: newState });
  51313. };
  51314. LineContainerComponent.prototype.componentDidMount = function () {
  51315. var _this = this;
  51316. if (!this.props.globalState) {
  51317. return;
  51318. }
  51319. if (this.props.globalState.selectedLineContainerTitles.length === 0 && this.props.globalState.selectedLineContainerTitlesNoFocus.length === 0) {
  51320. return;
  51321. }
  51322. if (this.props.globalState.selectedLineContainerTitles.indexOf(this.props.title) > -1) {
  51323. setTimeout(function () {
  51324. _this.props.globalState.selectedLineContainerTitles = [];
  51325. });
  51326. this.setState({ isExpanded: true, isHighlighted: true });
  51327. window.setTimeout(function () {
  51328. _this.setState({ isHighlighted: false });
  51329. }, 5000);
  51330. }
  51331. else if (this.props.globalState.selectedLineContainerTitlesNoFocus.indexOf(this.props.title) > -1) {
  51332. this.setState({ isExpanded: true, isHighlighted: false });
  51333. }
  51334. else {
  51335. this.setState({ isExpanded: false });
  51336. }
  51337. };
  51338. LineContainerComponent.prototype.renderHeader = function () {
  51339. var _this = this;
  51340. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  51341. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  51342. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  51343. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  51344. 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"] }))));
  51345. };
  51346. LineContainerComponent.prototype.render = function () {
  51347. if (!this.state.isExpanded) {
  51348. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  51349. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  51350. }
  51351. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  51352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  51353. this.renderHeader(),
  51354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children)),
  51355. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-highlight-border" + (!this.state.isHighlighted ? " transparent" : "") })));
  51356. };
  51357. return LineContainerComponent;
  51358. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51359. /***/ }),
  51360. /***/ "./components/actionTabs/lines/booleanLineComponent.tsx":
  51361. /*!**************************************************************!*\
  51362. !*** ./components/actionTabs/lines/booleanLineComponent.tsx ***!
  51363. \**************************************************************/
  51364. /*! exports provided: BooleanLineComponent */
  51365. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51366. "use strict";
  51367. __webpack_require__.r(__webpack_exports__);
  51368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BooleanLineComponent", function() { return BooleanLineComponent; });
  51369. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51370. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51371. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51372. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  51373. /* 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");
  51374. var BooleanLineComponent = /** @class */ (function (_super) {
  51375. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BooleanLineComponent, _super);
  51376. function BooleanLineComponent(props) {
  51377. return _super.call(this, props) || this;
  51378. }
  51379. BooleanLineComponent.prototype.render = function () {
  51380. 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"] });
  51381. var className = this.props.value ? "value check" : "value uncheck";
  51382. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textLine" },
  51383. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  51384. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className }, check)));
  51385. };
  51386. return BooleanLineComponent;
  51387. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51388. /***/ }),
  51389. /***/ "./components/actionTabs/lines/buttonLineComponent.tsx":
  51390. /*!*************************************************************!*\
  51391. !*** ./components/actionTabs/lines/buttonLineComponent.tsx ***!
  51392. \*************************************************************/
  51393. /*! exports provided: ButtonLineComponent */
  51394. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51395. "use strict";
  51396. __webpack_require__.r(__webpack_exports__);
  51397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  51398. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51399. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51400. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51401. var ButtonLineComponent = /** @class */ (function (_super) {
  51402. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ButtonLineComponent, _super);
  51403. function ButtonLineComponent(props) {
  51404. return _super.call(this, props) || this;
  51405. }
  51406. ButtonLineComponent.prototype.render = function () {
  51407. var _this = this;
  51408. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  51409. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  51410. };
  51411. return ButtonLineComponent;
  51412. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51413. /***/ }),
  51414. /***/ "./components/actionTabs/lines/checkBoxLineComponent.tsx":
  51415. /*!***************************************************************!*\
  51416. !*** ./components/actionTabs/lines/checkBoxLineComponent.tsx ***!
  51417. \***************************************************************/
  51418. /*! exports provided: CheckBoxLineComponent */
  51419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51420. "use strict";
  51421. __webpack_require__.r(__webpack_exports__);
  51422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  51423. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51425. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51426. var CheckBoxLineComponent = /** @class */ (function (_super) {
  51427. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckBoxLineComponent, _super);
  51428. function CheckBoxLineComponent(props) {
  51429. var _this = _super.call(this, props) || this;
  51430. _this._localChange = false;
  51431. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  51432. if (_this.props.isSelected) {
  51433. _this.state = { isSelected: _this.props.isSelected() };
  51434. }
  51435. else {
  51436. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  51437. }
  51438. return _this;
  51439. }
  51440. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  51441. var currentState;
  51442. if (this.props.isSelected) {
  51443. currentState = nextProps.isSelected();
  51444. }
  51445. else {
  51446. currentState = nextProps.target[nextProps.propertyName] == true;
  51447. }
  51448. if (currentState !== nextState.isSelected || this._localChange || this.props.label !== nextProps.label) {
  51449. nextState.isSelected = currentState;
  51450. this._localChange = false;
  51451. return true;
  51452. }
  51453. return false;
  51454. };
  51455. CheckBoxLineComponent.prototype.onChange = function () {
  51456. this._localChange = true;
  51457. if (this.props.onSelect) {
  51458. this.props.onSelect(!this.state.isSelected);
  51459. }
  51460. else {
  51461. if (this.props.onPropertyChangedObservable) {
  51462. this.props.onPropertyChangedObservable.notifyObservers({
  51463. object: this.props.target,
  51464. property: this.props.propertyName,
  51465. value: !this.state.isSelected,
  51466. initialValue: this.state.isSelected
  51467. });
  51468. }
  51469. this.props.target[this.props.propertyName] = !this.state.isSelected;
  51470. }
  51471. if (this.props.onValueChanged) {
  51472. this.props.onValueChanged();
  51473. }
  51474. this.setState({ isSelected: !this.state.isSelected });
  51475. };
  51476. CheckBoxLineComponent.prototype.render = function () {
  51477. var _this = this;
  51478. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  51479. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  51480. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  51481. 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(); } }),
  51482. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  51483. };
  51484. CheckBoxLineComponent._UniqueIdSeed = 0;
  51485. return CheckBoxLineComponent;
  51486. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51487. /***/ }),
  51488. /***/ "./components/actionTabs/lines/color3LineComponent.tsx":
  51489. /*!*************************************************************!*\
  51490. !*** ./components/actionTabs/lines/color3LineComponent.tsx ***!
  51491. \*************************************************************/
  51492. /*! exports provided: Color3LineComponent */
  51493. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51494. "use strict";
  51495. __webpack_require__.r(__webpack_exports__);
  51496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  51497. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51498. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51499. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51500. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  51501. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  51502. /* 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");
  51503. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  51504. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__);
  51505. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./colorPickerComponent */ "./components/actionTabs/lines/colorPickerComponent.tsx");
  51506. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./components/actionTabs/lines/copy.svg");
  51507. var Color3LineComponent = /** @class */ (function (_super) {
  51508. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3LineComponent, _super);
  51509. function Color3LineComponent(props) {
  51510. var _this = _super.call(this, props) || this;
  51511. _this._localChange = false;
  51512. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  51513. if (props.isLinear) {
  51514. _this.state.color.toGammaSpaceToRef(_this.state.color);
  51515. }
  51516. props.target._isLinearColor = props.isLinear; // so that replayRecorder can append toLinearSpace() as appropriate
  51517. return _this;
  51518. }
  51519. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  51520. var currentState = this.props.isLinear ? nextProps.target[nextProps.propertyName].toGammaSpace() : nextProps.target[nextProps.propertyName];
  51521. if (!currentState.equals(nextState.color) || this._localChange) {
  51522. nextState.color = currentState.clone();
  51523. this._localChange = false;
  51524. return true;
  51525. }
  51526. return false;
  51527. };
  51528. Color3LineComponent.prototype.setPropertyValue = function (newColor) {
  51529. this.props.target[this.props.propertyName] = newColor;
  51530. if (this.props.isLinear) {
  51531. this.props.target[this.props.propertyName] = newColor.toLinearSpace();
  51532. }
  51533. };
  51534. Color3LineComponent.prototype.onChange = function (newValue) {
  51535. this._localChange = true;
  51536. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_5__["Color3"].FromHexString(newValue);
  51537. if (this.props.onPropertyChangedObservable) {
  51538. this.props.onPropertyChangedObservable.notifyObservers({
  51539. object: this.props.target,
  51540. property: this.props.propertyName,
  51541. value: newColor,
  51542. initialValue: this.state.color,
  51543. });
  51544. }
  51545. this.setPropertyValue(newColor);
  51546. this.setState({ color: newColor });
  51547. };
  51548. Color3LineComponent.prototype.switchExpandState = function () {
  51549. this._localChange = true;
  51550. this.setState({ isExpanded: !this.state.isExpanded });
  51551. };
  51552. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  51553. if (!this.props.onPropertyChangedObservable) {
  51554. return;
  51555. }
  51556. this.props.onPropertyChangedObservable.notifyObservers({
  51557. object: this.props.target,
  51558. property: this.props.propertyName,
  51559. value: this.state.color,
  51560. initialValue: previousValue,
  51561. });
  51562. };
  51563. Color3LineComponent.prototype.updateStateR = function (value) {
  51564. this._localChange = true;
  51565. var store = this.state.color.clone();
  51566. this.state.color.r = value;
  51567. this.setPropertyValue(this.state.color);
  51568. this.setState({ color: this.state.color });
  51569. this.raiseOnPropertyChanged(store);
  51570. };
  51571. Color3LineComponent.prototype.updateStateG = function (value) {
  51572. this._localChange = true;
  51573. var store = this.state.color.clone();
  51574. this.state.color.g = value;
  51575. this.setPropertyValue(this.state.color);
  51576. this.setState({ color: this.state.color });
  51577. this.raiseOnPropertyChanged(store);
  51578. };
  51579. Color3LineComponent.prototype.updateStateB = function (value) {
  51580. this._localChange = true;
  51581. var store = this.state.color.clone();
  51582. this.state.color.b = value;
  51583. this.setPropertyValue(this.state.color);
  51584. this.setState({ color: this.state.color });
  51585. this.raiseOnPropertyChanged(store);
  51586. };
  51587. Color3LineComponent.prototype.copyToClipboard = function () {
  51588. var element = document.createElement('div');
  51589. element.textContent = this.state.color.toHexString();
  51590. document.body.appendChild(element);
  51591. if (window.getSelection) {
  51592. var range = document.createRange();
  51593. range.selectNode(element);
  51594. window.getSelection().removeAllRanges();
  51595. window.getSelection().addRange(range);
  51596. }
  51597. document.execCommand('copy');
  51598. element.remove();
  51599. };
  51600. Color3LineComponent.prototype.render = function () {
  51601. var _this = this;
  51602. 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"] });
  51603. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  51604. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  51605. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  51606. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  51607. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__["ColorPickerLineComponent"], { value: this.state.color, disableAlpha: true, onColorChanged: function (color) {
  51608. _this.onChange(color);
  51609. } })),
  51610. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  51611. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  51612. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  51613. this.state.isExpanded &&
  51614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  51615. 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); } }),
  51616. 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); } }),
  51617. 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); } }))));
  51618. };
  51619. return Color3LineComponent;
  51620. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51621. /***/ }),
  51622. /***/ "./components/actionTabs/lines/color4LineComponent.tsx":
  51623. /*!*************************************************************!*\
  51624. !*** ./components/actionTabs/lines/color4LineComponent.tsx ***!
  51625. \*************************************************************/
  51626. /*! exports provided: Color4LineComponent */
  51627. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51628. "use strict";
  51629. __webpack_require__.r(__webpack_exports__);
  51630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4LineComponent", function() { return Color4LineComponent; });
  51631. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51632. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51633. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51634. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  51635. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  51636. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  51637. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  51638. /* 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");
  51639. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./colorPickerComponent */ "./components/actionTabs/lines/colorPickerComponent.tsx");
  51640. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./components/actionTabs/lines/copy.svg");
  51641. var Color4LineComponent = /** @class */ (function (_super) {
  51642. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4LineComponent, _super);
  51643. function Color4LineComponent(props) {
  51644. var _this = _super.call(this, props) || this;
  51645. _this._localChange = false;
  51646. var value = _this.props.target[_this.props.propertyName];
  51647. 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);
  51648. _this.state = { isExpanded: false, color: currentColor };
  51649. if (props.isLinear) {
  51650. _this.state.color.toGammaSpaceToRef(_this.state.color);
  51651. }
  51652. props.target._isLinearColor = props.isLinear; // so that replayRecorder can append toLinearSpace() as appropriate
  51653. return _this;
  51654. }
  51655. Color4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  51656. var value = this.props.target[this.props.propertyName];
  51657. var currentColor = value.getClassName() === "Color4" ? value : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](value.r, value.g, value.b, 1.0);
  51658. if (this.props.isLinear) {
  51659. currentColor.toGammaSpaceRef(currentColor);
  51660. }
  51661. if (!currentColor.equals(nextState.color) || this._localChange) {
  51662. nextState.color = currentColor.clone();
  51663. this._localChange = false;
  51664. return true;
  51665. }
  51666. return false;
  51667. };
  51668. Color4LineComponent.prototype.setPropertyValue = function (newColor) {
  51669. this.props.target[this.props.propertyName] = newColor;
  51670. if (this.props.isLinear) {
  51671. this.props.target[this.props.propertyName] = newColor.toLinearSpace();
  51672. }
  51673. };
  51674. Color4LineComponent.prototype.onChange = function (newValue) {
  51675. this._localChange = true;
  51676. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromHexString(newValue);
  51677. if (this.props.onPropertyChangedObservable) {
  51678. this.props.onPropertyChangedObservable.notifyObservers({
  51679. object: this.props.target,
  51680. property: this.props.propertyName,
  51681. value: newColor,
  51682. initialValue: this.state.color,
  51683. });
  51684. }
  51685. this.setPropertyValue(newColor);
  51686. this.setState({ color: newColor });
  51687. if (this.props.onChange) {
  51688. this.props.onChange();
  51689. }
  51690. };
  51691. Color4LineComponent.prototype.switchExpandState = function () {
  51692. this._localChange = true;
  51693. this.setState({ isExpanded: !this.state.isExpanded });
  51694. };
  51695. Color4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  51696. if (!this.props.onPropertyChangedObservable) {
  51697. return;
  51698. }
  51699. this.props.onPropertyChangedObservable.notifyObservers({
  51700. object: this.props.target,
  51701. property: this.props.propertyName,
  51702. value: this.state.color,
  51703. initialValue: previousValue,
  51704. });
  51705. };
  51706. Color4LineComponent.prototype.updateStateR = function (value) {
  51707. this._localChange = true;
  51708. var store = this.state.color.clone();
  51709. this.state.color.r = value;
  51710. this.setPropertyValue(this.state.color);
  51711. this.setState({ color: this.state.color });
  51712. this.raiseOnPropertyChanged(store);
  51713. };
  51714. Color4LineComponent.prototype.updateStateG = function (value) {
  51715. this._localChange = true;
  51716. var store = this.state.color.clone();
  51717. this.state.color.g = value;
  51718. this.setPropertyValue(this.state.color);
  51719. this.setState({ color: this.state.color });
  51720. this.raiseOnPropertyChanged(store);
  51721. };
  51722. Color4LineComponent.prototype.updateStateB = function (value) {
  51723. this._localChange = true;
  51724. var store = this.state.color.clone();
  51725. this.state.color.b = value;
  51726. this.setPropertyValue(this.state.color);
  51727. this.setState({ color: this.state.color });
  51728. this.raiseOnPropertyChanged(store);
  51729. };
  51730. Color4LineComponent.prototype.updateStateA = function (value) {
  51731. this._localChange = true;
  51732. var store = this.state.color.clone();
  51733. this.props.target[this.props.propertyName].a = value;
  51734. this.state.color.a = value;
  51735. this.props.target[this.props.propertyName] = this.state.color;
  51736. this.setState({ color: this.state.color });
  51737. this.raiseOnPropertyChanged(store);
  51738. };
  51739. Color4LineComponent.prototype.copyToClipboard = function () {
  51740. var element = document.createElement('div');
  51741. element.textContent = this.state.color.toHexString();
  51742. document.body.appendChild(element);
  51743. if (window.getSelection) {
  51744. var range = document.createRange();
  51745. range.selectNode(element);
  51746. window.getSelection().removeAllRanges();
  51747. window.getSelection().addRange(range);
  51748. }
  51749. document.execCommand('copy');
  51750. element.remove();
  51751. };
  51752. Color4LineComponent.prototype.render = function () {
  51753. var _this = this;
  51754. 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"] });
  51755. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  51756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  51757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  51758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  51759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__["ColorPickerLineComponent"], { value: this.state.color, onColorChanged: function (color) {
  51760. _this.onChange(color);
  51761. } })),
  51762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  51763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  51764. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  51765. this.state.isExpanded &&
  51766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  51767. 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); } }),
  51768. 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); } }),
  51769. 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); } }),
  51770. 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); } }))));
  51771. };
  51772. return Color4LineComponent;
  51773. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51774. /***/ }),
  51775. /***/ "./components/actionTabs/lines/colorPickerComponent.tsx":
  51776. /*!**************************************************************!*\
  51777. !*** ./components/actionTabs/lines/colorPickerComponent.tsx ***!
  51778. \**************************************************************/
  51779. /*! exports provided: ColorPickerLineComponent */
  51780. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51781. "use strict";
  51782. __webpack_require__.r(__webpack_exports__);
  51783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerLineComponent", function() { return ColorPickerLineComponent; });
  51784. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51785. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51786. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51787. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  51788. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  51789. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-color */ "../../node_modules/react-color/lib/index.js");
  51790. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_color__WEBPACK_IMPORTED_MODULE_3__);
  51791. var ColorPickerLineComponent = /** @class */ (function (_super) {
  51792. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerLineComponent, _super);
  51793. function ColorPickerLineComponent(props) {
  51794. var _this = _super.call(this, props) || this;
  51795. _this.state = { pickerEnabled: false, color: {
  51796. r: _this.props.value.r * 255,
  51797. g: _this.props.value.g * 255,
  51798. b: _this.props.value.b * 255,
  51799. a: _this.props.value instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"] ? _this.props.value.a * 100 : 100,
  51800. }, hex: _this.props.value.toHexString() };
  51801. _this._floatRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  51802. _this._floatHostRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  51803. return _this;
  51804. }
  51805. ColorPickerLineComponent.prototype.syncPositions = function () {
  51806. var div = this._floatRef.current;
  51807. var host = this._floatHostRef.current;
  51808. if (!div || !host) {
  51809. return;
  51810. }
  51811. var top = host.getBoundingClientRect().top;
  51812. var height = div.getBoundingClientRect().height;
  51813. if (top + height + 10 > window.innerHeight) {
  51814. top = window.innerHeight - height - 10;
  51815. }
  51816. div.style.top = top + "px";
  51817. div.style.left = host.getBoundingClientRect().left - div.getBoundingClientRect().width + "px";
  51818. };
  51819. ColorPickerLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  51820. var diffProps = nextProps.value.toHexString() !== this.props.value.toHexString();
  51821. if (diffProps) {
  51822. nextState.color = {
  51823. r: nextProps.value.r * 255,
  51824. g: nextProps.value.g * 255,
  51825. b: nextProps.value.b * 255,
  51826. a: nextProps.value instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"] ? nextProps.value.a : 1,
  51827. };
  51828. nextState.hex = nextProps.value.toHexString();
  51829. }
  51830. return diffProps
  51831. || nextProps.disableAlpha !== this.props.disableAlpha
  51832. || nextState.hex !== this.state.hex
  51833. || nextState.pickerEnabled !== this.state.pickerEnabled;
  51834. };
  51835. ColorPickerLineComponent.prototype.componentDidUpdate = function () {
  51836. this.syncPositions();
  51837. };
  51838. ColorPickerLineComponent.prototype.componentDidMount = function () {
  51839. this.syncPositions();
  51840. };
  51841. ColorPickerLineComponent.prototype.render = function () {
  51842. var _this = this;
  51843. var color = this.state.color;
  51844. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker" },
  51845. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-rect", ref: this._floatHostRef, style: { background: this.state.hex }, onClick: function () { return _this.setState({ pickerEnabled: true }); } }),
  51846. this.state.pickerEnabled &&
  51847. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  51848. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-cover", onClick: function (evt) {
  51849. var _a, _b;
  51850. if (evt.target !== ((_b = (_a = _this._floatRef.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.querySelector(".color-picker-cover"))) {
  51851. return;
  51852. }
  51853. _this.setState({ pickerEnabled: false });
  51854. } },
  51855. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-float", ref: this._floatRef },
  51856. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_color__WEBPACK_IMPORTED_MODULE_3__["SketchPicker"], { color: color, disableAlpha: this.props.disableAlpha, onChange: function (color) {
  51857. var hex;
  51858. if (_this.props.disableAlpha) {
  51859. var newColor3 = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromInts(color.rgb.r, color.rgb.g, color.rgb.b);
  51860. hex = newColor3.toHexString();
  51861. }
  51862. else {
  51863. var newColor4 = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromInts(color.rgb.r, color.rgb.g, color.rgb.b, 255 * (color.rgb.a || 0));
  51864. hex = newColor4.toHexString();
  51865. }
  51866. _this.setState({ hex: hex, color: color.rgb });
  51867. _this.props.onColorChanged(hex);
  51868. } }))))));
  51869. };
  51870. return ColorPickerLineComponent;
  51871. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51872. /***/ }),
  51873. /***/ "./components/actionTabs/lines/copy.svg":
  51874. /*!**********************************************!*\
  51875. !*** ./components/actionTabs/lines/copy.svg ***!
  51876. \**********************************************/
  51877. /*! no static exports found */
  51878. /***/ (function(module, exports) {
  51879. 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"
  51880. /***/ }),
  51881. /***/ "./components/actionTabs/lines/fileButtonLineComponent.tsx":
  51882. /*!*****************************************************************!*\
  51883. !*** ./components/actionTabs/lines/fileButtonLineComponent.tsx ***!
  51884. \*****************************************************************/
  51885. /*! exports provided: FileButtonLineComponent */
  51886. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51887. "use strict";
  51888. __webpack_require__.r(__webpack_exports__);
  51889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  51890. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51891. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51892. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51893. var FileButtonLineComponent = /** @class */ (function (_super) {
  51894. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileButtonLineComponent, _super);
  51895. function FileButtonLineComponent(props) {
  51896. var _this = _super.call(this, props) || this;
  51897. _this._id = FileButtonLineComponent._IDGenerator++;
  51898. _this.uploadInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  51899. return _this;
  51900. }
  51901. FileButtonLineComponent.prototype.onChange = function (evt) {
  51902. var files = evt.target.files;
  51903. if (files && files.length) {
  51904. this.props.onClick(files[0]);
  51905. }
  51906. evt.target.value = "";
  51907. };
  51908. FileButtonLineComponent.prototype.render = function () {
  51909. var _this = this;
  51910. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  51911. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload" + this._id, className: "file-upload" }, this.props.label),
  51912. 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); } })));
  51913. };
  51914. FileButtonLineComponent._IDGenerator = 0;
  51915. return FileButtonLineComponent;
  51916. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51917. /***/ }),
  51918. /***/ "./components/actionTabs/lines/fileMultipleButtonLineComponent.tsx":
  51919. /*!*************************************************************************!*\
  51920. !*** ./components/actionTabs/lines/fileMultipleButtonLineComponent.tsx ***!
  51921. \*************************************************************************/
  51922. /*! exports provided: FileMultipleButtonLineComponent */
  51923. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51924. "use strict";
  51925. __webpack_require__.r(__webpack_exports__);
  51926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileMultipleButtonLineComponent", function() { return FileMultipleButtonLineComponent; });
  51927. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51928. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51929. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51930. var FileMultipleButtonLineComponent = /** @class */ (function (_super) {
  51931. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileMultipleButtonLineComponent, _super);
  51932. function FileMultipleButtonLineComponent(props) {
  51933. var _this = _super.call(this, props) || this;
  51934. _this._id = FileMultipleButtonLineComponent._IDGenerator++;
  51935. _this.uploadInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  51936. return _this;
  51937. }
  51938. FileMultipleButtonLineComponent.prototype.onChange = function (evt) {
  51939. var files = evt.target.files;
  51940. if (files && files.length) {
  51941. this.props.onClick(evt);
  51942. }
  51943. evt.target.value = "";
  51944. };
  51945. FileMultipleButtonLineComponent.prototype.render = function () {
  51946. var _this = this;
  51947. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  51948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload" + this._id, className: "file-upload" }, this.props.label),
  51949. 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 })));
  51950. };
  51951. FileMultipleButtonLineComponent._IDGenerator = 0;
  51952. return FileMultipleButtonLineComponent;
  51953. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  51954. /***/ }),
  51955. /***/ "./components/actionTabs/lines/floatLineComponent.tsx":
  51956. /*!************************************************************!*\
  51957. !*** ./components/actionTabs/lines/floatLineComponent.tsx ***!
  51958. \************************************************************/
  51959. /*! exports provided: FloatLineComponent */
  51960. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51961. "use strict";
  51962. __webpack_require__.r(__webpack_exports__);
  51963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  51964. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  51965. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51966. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51967. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  51968. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  51969. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  51970. var FloatLineComponent = /** @class */ (function (_super) {
  51971. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatLineComponent, _super);
  51972. function FloatLineComponent(props) {
  51973. var _this = _super.call(this, props) || this;
  51974. _this._localChange = false;
  51975. var currentValue = _this.props.target[_this.props.propertyName];
  51976. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  51977. _this._store = currentValue;
  51978. return _this;
  51979. }
  51980. FloatLineComponent.prototype.componentWillUnmount = function () {
  51981. this.unlock();
  51982. };
  51983. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  51984. if (this._localChange) {
  51985. this._localChange = false;
  51986. return true;
  51987. }
  51988. var newValue = nextProps.target[nextProps.propertyName];
  51989. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  51990. if (newValueString !== nextState.value) {
  51991. nextState.value = newValueString;
  51992. return true;
  51993. }
  51994. return false;
  51995. };
  51996. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  51997. if (this.props.onChange) {
  51998. this.props.onChange(newValue);
  51999. }
  52000. if (!this.props.onPropertyChangedObservable) {
  52001. return;
  52002. }
  52003. this.props.onPropertyChangedObservable.notifyObservers({
  52004. object: this.props.target,
  52005. property: this.props.propertyName,
  52006. value: newValue,
  52007. initialValue: previousValue
  52008. });
  52009. };
  52010. FloatLineComponent.prototype.updateValue = function (valueString) {
  52011. if (/[^0-9\.\-]/g.test(valueString)) {
  52012. return;
  52013. }
  52014. var valueAsNumber;
  52015. if (this.props.isInteger) {
  52016. valueAsNumber = parseInt(valueString);
  52017. }
  52018. else {
  52019. valueAsNumber = parseFloat(valueString);
  52020. }
  52021. if (!isNaN(valueAsNumber) && this.props.min !== undefined) {
  52022. if (valueAsNumber < this.props.min) {
  52023. valueAsNumber = this.props.min;
  52024. valueString = valueAsNumber.toString();
  52025. }
  52026. }
  52027. this._localChange = true;
  52028. this.setState({ value: valueString });
  52029. if (isNaN(valueAsNumber)) {
  52030. return;
  52031. }
  52032. this.props.target[this.props.propertyName] = valueAsNumber;
  52033. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  52034. this._store = valueAsNumber;
  52035. };
  52036. FloatLineComponent.prototype.lock = function () {
  52037. if (this.props.lockObject) {
  52038. this.props.lockObject.lock = true;
  52039. }
  52040. };
  52041. FloatLineComponent.prototype.unlock = function () {
  52042. if (this.props.lockObject) {
  52043. this.props.lockObject.lock = false;
  52044. }
  52045. };
  52046. FloatLineComponent.prototype.render = function () {
  52047. var _this = this;
  52048. var valueAsNumber;
  52049. if (this.props.isInteger) {
  52050. valueAsNumber = parseInt(this.state.value);
  52051. }
  52052. else {
  52053. valueAsNumber = parseFloat(this.state.value);
  52054. }
  52055. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  52056. !this.props.useEuler &&
  52057. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  52058. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52059. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  52060. 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); } }))),
  52061. this.props.useEuler &&
  52062. 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()); } })));
  52063. };
  52064. return FloatLineComponent;
  52065. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52066. /***/ }),
  52067. /***/ "./components/actionTabs/lines/hexLineComponent.tsx":
  52068. /*!**********************************************************!*\
  52069. !*** ./components/actionTabs/lines/hexLineComponent.tsx ***!
  52070. \**********************************************************/
  52071. /*! exports provided: HexLineComponent */
  52072. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52073. "use strict";
  52074. __webpack_require__.r(__webpack_exports__);
  52075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HexLineComponent", function() { return HexLineComponent; });
  52076. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52077. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52078. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52079. var HexLineComponent = /** @class */ (function (_super) {
  52080. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HexLineComponent, _super);
  52081. function HexLineComponent(props) {
  52082. var _this = _super.call(this, props) || this;
  52083. _this._localChange = false;
  52084. _this._propertyChange = true;
  52085. var currentValue = _this.props.target[_this.props.propertyName];
  52086. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  52087. _this._store = currentValue;
  52088. return _this;
  52089. }
  52090. HexLineComponent.prototype.componentWillUnmount = function () {
  52091. this.unlock();
  52092. };
  52093. HexLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52094. if (this._localChange) {
  52095. this._localChange = false;
  52096. return true;
  52097. }
  52098. var newValue = nextProps.target[nextProps.propertyName];
  52099. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  52100. if (newValueString !== nextState.value) {
  52101. nextState.value = newValueString;
  52102. return true;
  52103. }
  52104. return false;
  52105. };
  52106. HexLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  52107. var _a;
  52108. if (this.props.onChange) {
  52109. this.props.onChange(newValue);
  52110. }
  52111. if (!this.props.onPropertyChangedObservable) {
  52112. return;
  52113. }
  52114. this.props.onPropertyChangedObservable.notifyObservers({
  52115. object: (_a = this.props.replaySourceReplacement) !== null && _a !== void 0 ? _a : this.props.target,
  52116. property: this.props.propertyName,
  52117. value: newValue,
  52118. initialValue: previousValue
  52119. });
  52120. };
  52121. HexLineComponent.prototype.convertToHexString = function (valueString) {
  52122. while (valueString.length < 10) {
  52123. valueString += "0";
  52124. }
  52125. return valueString;
  52126. };
  52127. HexLineComponent.prototype.updateValue = function (valueString, raisePropertyChanged) {
  52128. if (valueString.substr(0, 2) != "0x") {
  52129. if (valueString.substr(0, 1) != "0") {
  52130. valueString = "0x" + valueString;
  52131. }
  52132. else {
  52133. valueString = "0x" + valueString.substr(1);
  52134. }
  52135. }
  52136. var valueSubstr = valueString.substr(2);
  52137. if (valueSubstr != "" && /^[0-9A-Fa-f]+$/g.test(valueSubstr) == false) {
  52138. return;
  52139. }
  52140. if (valueString.length > 10) {
  52141. return;
  52142. }
  52143. var valueStringAsHex = this.convertToHexString(valueString);
  52144. var valueAsNumber;
  52145. valueAsNumber = parseInt(valueStringAsHex);
  52146. if (!isNaN(valueAsNumber) && this.props.min !== undefined) {
  52147. if (valueAsNumber < this.props.min) {
  52148. valueAsNumber = this.props.min;
  52149. valueString = valueAsNumber.toString();
  52150. }
  52151. }
  52152. this._localChange = true;
  52153. if (isNaN(valueAsNumber)) {
  52154. return;
  52155. }
  52156. this.setState({ value: valueString });
  52157. if (raisePropertyChanged) {
  52158. this._propertyChange = true;
  52159. this.props.target[this.props.propertyName] = valueAsNumber;
  52160. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  52161. }
  52162. else {
  52163. this._propertyChange = false;
  52164. }
  52165. this._store = valueAsNumber;
  52166. };
  52167. HexLineComponent.prototype.lock = function () {
  52168. if (this.props.lockObject) {
  52169. this.props.lockObject.lock = true;
  52170. }
  52171. };
  52172. HexLineComponent.prototype.unlock = function () {
  52173. if (this.props.lockObject) {
  52174. this.props.lockObject.lock = false;
  52175. }
  52176. };
  52177. HexLineComponent.prototype.render = function () {
  52178. var _this = this;
  52179. var valueAsHex;
  52180. if (this._propertyChange) {
  52181. var valueAsNumber = parseInt(this.state.value);
  52182. valueAsHex = valueAsNumber.toString(16);
  52183. var hex0String = "";
  52184. for (var i = 0; i < 8 - valueAsHex.length; i++) { //padding the '0's
  52185. hex0String += "0";
  52186. }
  52187. valueAsHex = "0x" + valueAsHex.toUpperCase() + hex0String;
  52188. }
  52189. else {
  52190. valueAsHex = this.state.value;
  52191. }
  52192. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, !this.props.useEuler &&
  52193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  52194. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52195. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  52196. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "string", className: "hex-input", value: valueAsHex, onBlur: function () { return _this.unlock(); }, onFocus: function () { return _this.lock(); }, onChange: function (evt) { return _this.updateValue(evt.target.value, false); }, onKeyDown: function (evt) {
  52197. if (evt.keyCode !== 13) {
  52198. return;
  52199. }
  52200. _this.updateValue(_this.state.value, true);
  52201. } })))));
  52202. };
  52203. return HexLineComponent;
  52204. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52205. /***/ }),
  52206. /***/ "./components/actionTabs/lines/iconButtonLineComponent.tsx":
  52207. /*!*****************************************************************!*\
  52208. !*** ./components/actionTabs/lines/iconButtonLineComponent.tsx ***!
  52209. \*****************************************************************/
  52210. /*! exports provided: IconButtonLineComponent */
  52211. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52212. "use strict";
  52213. __webpack_require__.r(__webpack_exports__);
  52214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconButtonLineComponent", function() { return IconButtonLineComponent; });
  52215. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52216. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52217. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52218. var IconButtonLineComponent = /** @class */ (function (_super) {
  52219. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IconButtonLineComponent, _super);
  52220. function IconButtonLineComponent(props) {
  52221. return _super.call(this, props) || this;
  52222. }
  52223. IconButtonLineComponent.prototype.render = function () {
  52224. var _this = this;
  52225. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { style: { backgroundColor: this.props.active ? '#111111' : '' }, title: this.props.tooltip, className: "icon " + this.props.icon, onClick: function () { return _this.props.onClick(); } }));
  52226. };
  52227. return IconButtonLineComponent;
  52228. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52229. /***/ }),
  52230. /***/ "./components/actionTabs/lines/indentedTextLineComponent.tsx":
  52231. /*!*******************************************************************!*\
  52232. !*** ./components/actionTabs/lines/indentedTextLineComponent.tsx ***!
  52233. \*******************************************************************/
  52234. /*! exports provided: IndentedTextLineComponent */
  52235. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52236. "use strict";
  52237. __webpack_require__.r(__webpack_exports__);
  52238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndentedTextLineComponent", function() { return IndentedTextLineComponent; });
  52239. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52240. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52241. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52242. var IndentedTextLineComponent = /** @class */ (function (_super) {
  52243. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IndentedTextLineComponent, _super);
  52244. function IndentedTextLineComponent(props) {
  52245. return _super.call(this, props) || this;
  52246. }
  52247. IndentedTextLineComponent.prototype.onLink = function () {
  52248. if (this.props.url) {
  52249. window.open(this.props.url, '_blank');
  52250. return;
  52251. }
  52252. if (!this.props.onLink) {
  52253. return;
  52254. }
  52255. this.props.onLink();
  52256. };
  52257. IndentedTextLineComponent.prototype.renderContent = function () {
  52258. var _this = this;
  52259. if (this.props.onLink || this.props.url) {
  52260. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-value", title: this.props.value, onClick: function () { return _this.onLink(); } }, this.props.url ? "doc" : (this.props.value || "no name")));
  52261. }
  52262. 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"));
  52263. };
  52264. IndentedTextLineComponent.prototype.render = function () {
  52265. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "indented " + (this.props.underline ? "textLine underline" : "textLine" + (this.props.additionalClass ? " " + this.props.additionalClass : "")) }, this.renderContent()));
  52266. };
  52267. return IndentedTextLineComponent;
  52268. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52269. /***/ }),
  52270. /***/ "./components/actionTabs/lines/linkButtonComponent.tsx":
  52271. /*!*************************************************************!*\
  52272. !*** ./components/actionTabs/lines/linkButtonComponent.tsx ***!
  52273. \*************************************************************/
  52274. /*! exports provided: LinkButtonComponent */
  52275. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52276. "use strict";
  52277. __webpack_require__.r(__webpack_exports__);
  52278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinkButtonComponent", function() { return LinkButtonComponent; });
  52279. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52280. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52281. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52282. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  52283. var LinkButtonComponent = /** @class */ (function (_super) {
  52284. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LinkButtonComponent, _super);
  52285. function LinkButtonComponent(props) {
  52286. return _super.call(this, props) || this;
  52287. }
  52288. LinkButtonComponent.prototype.onLink = function () {
  52289. if (this.props.url) {
  52290. window.open(this.props.url, '_blank');
  52291. }
  52292. };
  52293. LinkButtonComponent.prototype.render = function () {
  52294. var _this = this;
  52295. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "linkButtonLine" },
  52296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link", title: this.props.label, onClick: function () { return _this.onLink(); } }, this.props.label),
  52297. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-button" },
  52298. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.buttonLabel)),
  52299. this.props.icon &&
  52300. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-icon hoverIcon", onClick: function () {
  52301. if (_this.props.onIconClick) {
  52302. _this.props.onIconClick();
  52303. }
  52304. } },
  52305. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.icon }))));
  52306. };
  52307. return LinkButtonComponent;
  52308. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52309. /***/ }),
  52310. /***/ "./components/actionTabs/lines/meshPickerComponent.tsx":
  52311. /*!*************************************************************!*\
  52312. !*** ./components/actionTabs/lines/meshPickerComponent.tsx ***!
  52313. \*************************************************************/
  52314. /*! exports provided: MeshPickerComponent */
  52315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52316. "use strict";
  52317. __webpack_require__.r(__webpack_exports__);
  52318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshPickerComponent", function() { return MeshPickerComponent; });
  52319. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52320. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52321. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52322. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  52323. var MeshPickerComponent = /** @class */ (function (_super) {
  52324. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshPickerComponent, _super);
  52325. function MeshPickerComponent(props) {
  52326. return _super.call(this, props) || this;
  52327. }
  52328. MeshPickerComponent.prototype.render = function () {
  52329. var _this = this;
  52330. var meshEmitters = this.props.scene.meshes.filter(function (m) { return !!m.name; });
  52331. meshEmitters.sort(function (a, b) { return a.name.localeCompare(b.name); });
  52332. var emitterOptions = [
  52333. { label: "None", value: -1 },
  52334. ];
  52335. meshEmitters.sort(function (a, b) { return a.name.localeCompare(b.name); });
  52336. emitterOptions.push.apply(emitterOptions, meshEmitters.map(function (v, i) {
  52337. return { label: v.name, value: i };
  52338. }));
  52339. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  52340. 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) {
  52341. var currentState = _this.props.target[_this.props.property];
  52342. switch (value) {
  52343. case -1:
  52344. _this.props.target[_this.props.property] = null;
  52345. break;
  52346. default:
  52347. _this.props.target[_this.props.property] = meshEmitters[value];
  52348. }
  52349. if (_this.props.onPropertyChangedObservable) {
  52350. _this.props.onPropertyChangedObservable.notifyObservers({
  52351. object: _this.props.target,
  52352. property: _this.props.property,
  52353. value: _this.props.target[_this.props.property],
  52354. initialValue: currentState
  52355. });
  52356. }
  52357. _this.forceUpdate();
  52358. }, extractValue: function () {
  52359. if (!_this.props.target[_this.props.property]) {
  52360. return -1;
  52361. }
  52362. var meshIndex = meshEmitters.indexOf(_this.props.target[_this.props.property]);
  52363. if (meshIndex > -1) {
  52364. return meshIndex;
  52365. }
  52366. return -1;
  52367. } })));
  52368. };
  52369. return MeshPickerComponent;
  52370. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52371. /***/ }),
  52372. /***/ "./components/actionTabs/lines/messageLineComponent.tsx":
  52373. /*!**************************************************************!*\
  52374. !*** ./components/actionTabs/lines/messageLineComponent.tsx ***!
  52375. \**************************************************************/
  52376. /*! exports provided: MessageLineComponent */
  52377. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52378. "use strict";
  52379. __webpack_require__.r(__webpack_exports__);
  52380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageLineComponent", function() { return MessageLineComponent; });
  52381. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52382. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52383. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52384. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  52385. var MessageLineComponent = /** @class */ (function (_super) {
  52386. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageLineComponent, _super);
  52387. function MessageLineComponent(props) {
  52388. return _super.call(this, props) || this;
  52389. }
  52390. MessageLineComponent.prototype.render = function () {
  52391. if (this.props.icon) {
  52392. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "iconMessageLine" },
  52393. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "icon", style: { color: this.props.color ? this.props.color : "" } },
  52394. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.icon })),
  52395. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.text }, this.props.text)));
  52396. }
  52397. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "messageLine" },
  52398. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.text, style: { color: this.props.color ? this.props.color : "" } }, this.props.text)));
  52399. };
  52400. return MessageLineComponent;
  52401. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52402. /***/ }),
  52403. /***/ "./components/actionTabs/lines/numericInputComponent.tsx":
  52404. /*!***************************************************************!*\
  52405. !*** ./components/actionTabs/lines/numericInputComponent.tsx ***!
  52406. \***************************************************************/
  52407. /*! exports provided: NumericInputComponent */
  52408. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52409. "use strict";
  52410. __webpack_require__.r(__webpack_exports__);
  52411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  52412. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52413. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52414. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52415. var NumericInputComponent = /** @class */ (function (_super) {
  52416. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NumericInputComponent, _super);
  52417. function NumericInputComponent(props) {
  52418. var _this = _super.call(this, props) || this;
  52419. _this._localChange = false;
  52420. _this.state = { value: _this.props.value.toFixed(_this.props.precision !== undefined ? _this.props.precision : 3) };
  52421. return _this;
  52422. }
  52423. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52424. if (this._localChange) {
  52425. return true;
  52426. }
  52427. if (nextProps.value.toString() !== nextState.value) {
  52428. nextState.value = nextProps.value.toFixed(this.props.precision !== undefined ? this.props.precision : 3);
  52429. return true;
  52430. }
  52431. return false;
  52432. };
  52433. NumericInputComponent.prototype.updateValue = function (evt) {
  52434. var value = evt.target.value;
  52435. if (/[^0-9\.\-]/g.test(value)) {
  52436. return;
  52437. }
  52438. var valueAsNumber = parseFloat(value);
  52439. this._localChange = true;
  52440. this.setState({ value: value });
  52441. if (isNaN(valueAsNumber)) {
  52442. return;
  52443. }
  52444. this.props.onChange(valueAsNumber);
  52445. };
  52446. NumericInputComponent.prototype.onBlur = function () {
  52447. this._localChange = false;
  52448. var valueAsNumber = parseFloat(this.state.value);
  52449. if (isNaN(valueAsNumber)) {
  52450. this.props.onChange(this.props.value);
  52451. return;
  52452. }
  52453. this.props.onChange(valueAsNumber);
  52454. };
  52455. NumericInputComponent.prototype.render = function () {
  52456. var _this = this;
  52457. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  52458. this.props.label &&
  52459. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  52460. 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); }, onBlur: function () { return _this.onBlur(); } })));
  52461. };
  52462. NumericInputComponent.defaultProps = {
  52463. step: 1,
  52464. };
  52465. return NumericInputComponent;
  52466. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52467. /***/ }),
  52468. /***/ "./components/actionTabs/lines/optionsLineComponent.tsx":
  52469. /*!**************************************************************!*\
  52470. !*** ./components/actionTabs/lines/optionsLineComponent.tsx ***!
  52471. \**************************************************************/
  52472. /*! exports provided: Null_Value, OptionsLineComponent */
  52473. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52474. "use strict";
  52475. __webpack_require__.r(__webpack_exports__);
  52476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Null_Value", function() { return Null_Value; });
  52477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  52478. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52479. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52480. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52481. var Null_Value = Number.MAX_SAFE_INTEGER;
  52482. var ListLineOption = /** @class */ (function () {
  52483. function ListLineOption() {
  52484. }
  52485. return ListLineOption;
  52486. }());
  52487. var OptionsLineComponent = /** @class */ (function (_super) {
  52488. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OptionsLineComponent, _super);
  52489. function OptionsLineComponent(props) {
  52490. var _this = _super.call(this, props) || this;
  52491. _this._localChange = false;
  52492. _this.state = { value: _this.remapValueIn(_this.props.extractValue ? _this.props.extractValue() : props.target[props.propertyName]) };
  52493. return _this;
  52494. }
  52495. OptionsLineComponent.prototype.remapValueIn = function (value) {
  52496. return this.props.allowNullValue && value === null ? Null_Value : value;
  52497. };
  52498. OptionsLineComponent.prototype.remapValueOut = function (value) {
  52499. return this.props.allowNullValue && value === Null_Value ? null : value;
  52500. };
  52501. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52502. if (this._localChange) {
  52503. this._localChange = false;
  52504. return true;
  52505. }
  52506. var newValue = this.remapValueIn(nextProps.extractValue ? nextProps.extractValue() : nextProps.target[nextProps.propertyName]);
  52507. if (newValue != null && newValue !== nextState.value) {
  52508. nextState.value = newValue;
  52509. return true;
  52510. }
  52511. return false;
  52512. };
  52513. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  52514. if (!this.props.onPropertyChangedObservable) {
  52515. return;
  52516. }
  52517. this.props.onPropertyChangedObservable.notifyObservers({
  52518. object: this.props.target,
  52519. property: this.props.propertyName,
  52520. value: newValue,
  52521. initialValue: previousValue,
  52522. allowNullValue: this.props.allowNullValue,
  52523. });
  52524. };
  52525. OptionsLineComponent.prototype.updateValue = function (valueString) {
  52526. var value = parseInt(valueString);
  52527. this._localChange = true;
  52528. var store = this.props.extractValue ? this.props.extractValue() : this.props.target[this.props.propertyName];
  52529. if (!this.props.noDirectUpdate) {
  52530. this.props.target[this.props.propertyName] = this.remapValueOut(value);
  52531. }
  52532. this.setState({ value: value });
  52533. if (this.props.onSelect) {
  52534. this.props.onSelect(value);
  52535. }
  52536. var newValue = this.props.extractValue ? this.props.extractValue() : this.props.target[this.props.propertyName];
  52537. this.raiseOnPropertyChanged(newValue, store);
  52538. };
  52539. OptionsLineComponent.prototype.render = function () {
  52540. var _this = this;
  52541. var _a;
  52542. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  52543. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52544. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" },
  52545. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (evt) { return _this.updateValue(evt.target.value); }, value: (_a = this.state.value) !== null && _a !== void 0 ? _a : "" }, this.props.options.map(function (option, i) {
  52546. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label + i, value: option.value }, option.label));
  52547. })))));
  52548. };
  52549. return OptionsLineComponent;
  52550. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52551. /***/ }),
  52552. /***/ "./components/actionTabs/lines/quaternionLineComponent.tsx":
  52553. /*!*****************************************************************!*\
  52554. !*** ./components/actionTabs/lines/quaternionLineComponent.tsx ***!
  52555. \*****************************************************************/
  52556. /*! exports provided: QuaternionLineComponent */
  52557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52558. "use strict";
  52559. __webpack_require__.r(__webpack_exports__);
  52560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuaternionLineComponent", function() { return QuaternionLineComponent; });
  52561. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52562. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52563. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52564. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  52565. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  52566. /* 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");
  52567. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  52568. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__);
  52569. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  52570. var QuaternionLineComponent = /** @class */ (function (_super) {
  52571. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(QuaternionLineComponent, _super);
  52572. function QuaternionLineComponent(props) {
  52573. var _this = _super.call(this, props) || this;
  52574. _this._localChange = false;
  52575. var quat = _this.props.target[_this.props.propertyName].clone();
  52576. _this.state = { isExpanded: false, value: quat, eulerValue: quat.toEulerAngles() };
  52577. return _this;
  52578. }
  52579. QuaternionLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52580. var nextPropsValue = nextProps.target[nextProps.propertyName];
  52581. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  52582. nextState.value = nextPropsValue.clone();
  52583. nextState.eulerValue = nextPropsValue.toEulerAngles();
  52584. this._localChange = false;
  52585. return true;
  52586. }
  52587. return false;
  52588. };
  52589. QuaternionLineComponent.prototype.switchExpandState = function () {
  52590. this._localChange = true;
  52591. this.setState({ isExpanded: !this.state.isExpanded });
  52592. };
  52593. QuaternionLineComponent.prototype.raiseOnPropertyChanged = function (currentValue, previousValue) {
  52594. if (!this.props.onPropertyChangedObservable) {
  52595. return;
  52596. }
  52597. this.props.onPropertyChangedObservable.notifyObservers({
  52598. object: this.props.target,
  52599. property: this.props.propertyName,
  52600. value: currentValue,
  52601. initialValue: previousValue
  52602. });
  52603. };
  52604. QuaternionLineComponent.prototype.updateQuaternion = function () {
  52605. var store = this.props.target[this.props.propertyName].clone();
  52606. this.props.target[this.props.propertyName] = this.state.value;
  52607. this.setState({ value: store });
  52608. this.raiseOnPropertyChanged(this.state.value, store);
  52609. };
  52610. QuaternionLineComponent.prototype.updateStateX = function (value) {
  52611. this._localChange = true;
  52612. this.state.value.x = value;
  52613. this.updateQuaternion();
  52614. };
  52615. QuaternionLineComponent.prototype.updateStateY = function (value) {
  52616. this._localChange = true;
  52617. this.state.value.y = value;
  52618. this.updateQuaternion();
  52619. };
  52620. QuaternionLineComponent.prototype.updateStateZ = function (value) {
  52621. this._localChange = true;
  52622. this.state.value.z = value;
  52623. this.updateQuaternion();
  52624. };
  52625. QuaternionLineComponent.prototype.updateStateW = function (value) {
  52626. this._localChange = true;
  52627. this.state.value.w = value;
  52628. this.updateQuaternion();
  52629. };
  52630. QuaternionLineComponent.prototype.updateQuaternionFromEuler = function () {
  52631. var quat = this.state.eulerValue.toQuaternion();
  52632. this.state.value.x = quat.x;
  52633. this.state.value.y = quat.y;
  52634. this.state.value.z = quat.z;
  52635. this.state.value.w = quat.w;
  52636. this.updateQuaternion();
  52637. };
  52638. QuaternionLineComponent.prototype.updateStateEulerX = function (value) {
  52639. this._localChange = true;
  52640. this.state.eulerValue.x = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToRadians(value);
  52641. this.updateQuaternionFromEuler();
  52642. };
  52643. QuaternionLineComponent.prototype.updateStateEulerY = function (value) {
  52644. this._localChange = true;
  52645. this.state.eulerValue.y = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToRadians(value);
  52646. this.updateQuaternionFromEuler();
  52647. };
  52648. QuaternionLineComponent.prototype.updateStateEulerZ = function (value) {
  52649. this._localChange = true;
  52650. this.state.eulerValue.z = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].ToRadians(value);
  52651. this.updateQuaternionFromEuler();
  52652. };
  52653. QuaternionLineComponent.prototype.render = function () {
  52654. var _this = this;
  52655. 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"] });
  52656. var quat = this.state.value;
  52657. var euler = this.state.eulerValue;
  52658. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  52659. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  52660. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52661. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" },
  52662. !this.props.useEuler &&
  52663. "X: " + quat.x.toFixed(1) + ", Y: " + quat.y.toFixed(1) + ", Z: " + quat.z.toFixed(1) + ", W: " + quat.w.toFixed(1),
  52664. this.props.useEuler &&
  52665. "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)),
  52666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand", onClick: function () { return _this.switchExpandState(); } }, chevron)),
  52667. this.state.isExpanded && !this.props.useEuler &&
  52668. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  52669. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", value: quat.x, onChange: function (value) { return _this.updateStateX(value); } }),
  52670. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", value: quat.y, onChange: function (value) { return _this.updateStateY(value); } }),
  52671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", value: quat.z, onChange: function (value) { return _this.updateStateZ(value); } }),
  52672. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "w", value: quat.w, onChange: function (value) { return _this.updateStateW(value); } })),
  52673. this.state.isExpanded && this.props.useEuler &&
  52674. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  52675. 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); } }),
  52676. 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); } }),
  52677. 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); } }))));
  52678. };
  52679. return QuaternionLineComponent;
  52680. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52681. /***/ }),
  52682. /***/ "./components/actionTabs/lines/radioLineComponent.tsx":
  52683. /*!************************************************************!*\
  52684. !*** ./components/actionTabs/lines/radioLineComponent.tsx ***!
  52685. \************************************************************/
  52686. /*! exports provided: RadioButtonLineComponent */
  52687. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52688. "use strict";
  52689. __webpack_require__.r(__webpack_exports__);
  52690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadioButtonLineComponent", function() { return RadioButtonLineComponent; });
  52691. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52692. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52693. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52694. var RadioButtonLineComponent = /** @class */ (function (_super) {
  52695. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadioButtonLineComponent, _super);
  52696. function RadioButtonLineComponent(props) {
  52697. var _this = _super.call(this, props) || this;
  52698. _this.state = { isSelected: _this.props.isSelected() };
  52699. return _this;
  52700. }
  52701. RadioButtonLineComponent.prototype.componentDidMount = function () {
  52702. var _this = this;
  52703. this._onSelectionChangedObserver = this.props.onSelectionChangedObservable.add(function (value) {
  52704. _this.setState({ isSelected: value === _this });
  52705. });
  52706. };
  52707. RadioButtonLineComponent.prototype.componentWillUnmount = function () {
  52708. if (this._onSelectionChangedObserver) {
  52709. this.props.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  52710. this._onSelectionChangedObserver = null;
  52711. }
  52712. };
  52713. RadioButtonLineComponent.prototype.onChange = function () {
  52714. this.props.onSelect();
  52715. this.props.onSelectionChangedObservable.notifyObservers(this);
  52716. };
  52717. RadioButtonLineComponent.prototype.render = function () {
  52718. var _this = this;
  52719. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "radioLine" },
  52720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "radioContainer" },
  52722. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: this.props.label, className: "radio", type: "radio", checked: this.state.isSelected, onChange: function () { return _this.onChange(); } }),
  52723. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: this.props.label, className: "labelForRadio" }))));
  52724. };
  52725. return RadioButtonLineComponent;
  52726. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52727. /***/ }),
  52728. /***/ "./components/actionTabs/lines/sliderLineComponent.tsx":
  52729. /*!*************************************************************!*\
  52730. !*** ./components/actionTabs/lines/sliderLineComponent.tsx ***!
  52731. \*************************************************************/
  52732. /*! exports provided: SliderLineComponent */
  52733. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52734. "use strict";
  52735. __webpack_require__.r(__webpack_exports__);
  52736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  52737. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52738. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52739. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52740. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  52741. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  52742. var SliderLineComponent = /** @class */ (function (_super) {
  52743. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderLineComponent, _super);
  52744. function SliderLineComponent(props) {
  52745. var _this = _super.call(this, props) || this;
  52746. _this._localChange = false;
  52747. if (_this.props.directValue !== undefined) {
  52748. _this.state = {
  52749. value: _this.props.directValue
  52750. };
  52751. }
  52752. else {
  52753. var value = _this.props.target[_this.props.propertyName];
  52754. if (value === undefined) {
  52755. value = _this.props.maximum;
  52756. }
  52757. _this.state = { value: value };
  52758. }
  52759. return _this;
  52760. }
  52761. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52762. if (nextProps.directValue !== undefined) {
  52763. nextState.value = nextProps.directValue;
  52764. return true;
  52765. }
  52766. var currentState = nextProps.target[nextProps.propertyName];
  52767. if (currentState === undefined) {
  52768. currentState = nextProps.maximum;
  52769. }
  52770. if (currentState !== nextState.value || this._localChange || nextProps.maximum !== this.props.maximum || nextProps.minimum !== this.props.minimum) {
  52771. nextState.value = currentState;
  52772. this._localChange = false;
  52773. return true;
  52774. }
  52775. return false;
  52776. };
  52777. SliderLineComponent.prototype.onChange = function (newValueString) {
  52778. this._localChange = true;
  52779. var newValue = parseFloat(newValueString);
  52780. if (this.props.useEuler) {
  52781. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  52782. }
  52783. if (this.props.target) {
  52784. if (this.props.onPropertyChangedObservable) {
  52785. this.props.onPropertyChangedObservable.notifyObservers({
  52786. object: this.props.target,
  52787. property: this.props.propertyName,
  52788. value: newValue,
  52789. initialValue: this.state.value
  52790. });
  52791. }
  52792. this.props.target[this.props.propertyName] = newValue;
  52793. }
  52794. if (this.props.onChange) {
  52795. this.props.onChange(newValue);
  52796. }
  52797. this.setState({ value: newValue });
  52798. };
  52799. SliderLineComponent.prototype.onInput = function (newValueString) {
  52800. var newValue = parseFloat(newValueString);
  52801. if (this.props.onInput) {
  52802. this.props.onInput(newValue);
  52803. }
  52804. };
  52805. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  52806. if (value === null) {
  52807. value = 0;
  52808. }
  52809. if (this.props.useEuler) {
  52810. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  52811. }
  52812. return value;
  52813. };
  52814. SliderLineComponent.prototype.render = function () {
  52815. var _this = this;
  52816. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  52817. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  52818. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52819. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  52820. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  52821. "\u00A0",
  52822. 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); } }))));
  52823. };
  52824. return SliderLineComponent;
  52825. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52826. /***/ }),
  52827. /***/ "./components/actionTabs/lines/textInputLineComponent.tsx":
  52828. /*!****************************************************************!*\
  52829. !*** ./components/actionTabs/lines/textInputLineComponent.tsx ***!
  52830. \****************************************************************/
  52831. /*! exports provided: TextInputLineComponent */
  52832. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52833. "use strict";
  52834. __webpack_require__.r(__webpack_exports__);
  52835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  52836. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52837. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52838. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52839. var TextInputLineComponent = /** @class */ (function (_super) {
  52840. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextInputLineComponent, _super);
  52841. function TextInputLineComponent(props) {
  52842. var _this = _super.call(this, props) || this;
  52843. _this._localChange = false;
  52844. _this.state = { value: (_this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName]) || "" };
  52845. return _this;
  52846. }
  52847. TextInputLineComponent.prototype.componentWillUnmount = function () {
  52848. this.props.lockObject.lock = false;
  52849. };
  52850. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52851. if (this._localChange) {
  52852. this._localChange = false;
  52853. return true;
  52854. }
  52855. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  52856. if (newValue !== nextState.value) {
  52857. nextState.value = newValue || "";
  52858. return true;
  52859. }
  52860. return false;
  52861. };
  52862. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  52863. if (this.props.onChange) {
  52864. this.props.onChange(newValue);
  52865. return;
  52866. }
  52867. if (!this.props.onPropertyChangedObservable) {
  52868. return;
  52869. }
  52870. this.props.onPropertyChangedObservable.notifyObservers({
  52871. object: this.props.target,
  52872. property: this.props.propertyName,
  52873. value: newValue,
  52874. initialValue: previousValue
  52875. });
  52876. };
  52877. TextInputLineComponent.prototype.updateValue = function (value) {
  52878. this._localChange = true;
  52879. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  52880. this.setState({ value: value });
  52881. this.raiseOnPropertyChanged(value, store);
  52882. if (this.props.propertyName) {
  52883. this.props.target[this.props.propertyName] = value;
  52884. }
  52885. };
  52886. TextInputLineComponent.prototype.render = function () {
  52887. var _this = this;
  52888. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  52889. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  52890. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  52891. 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); } }))));
  52892. };
  52893. return TextInputLineComponent;
  52894. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52895. /***/ }),
  52896. /***/ "./components/actionTabs/lines/textLineComponent.tsx":
  52897. /*!***********************************************************!*\
  52898. !*** ./components/actionTabs/lines/textLineComponent.tsx ***!
  52899. \***********************************************************/
  52900. /*! exports provided: TextLineComponent */
  52901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52902. "use strict";
  52903. __webpack_require__.r(__webpack_exports__);
  52904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  52905. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52906. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52907. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52908. var TextLineComponent = /** @class */ (function (_super) {
  52909. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextLineComponent, _super);
  52910. function TextLineComponent(props) {
  52911. return _super.call(this, props) || this;
  52912. }
  52913. TextLineComponent.prototype.onLink = function () {
  52914. if (this.props.url) {
  52915. window.open(this.props.url, '_blank');
  52916. return;
  52917. }
  52918. if (!this.props.onLink) {
  52919. return;
  52920. }
  52921. this.props.onLink();
  52922. };
  52923. TextLineComponent.prototype.renderContent = function () {
  52924. var _this = this;
  52925. if (this.props.ignoreValue) {
  52926. return null;
  52927. }
  52928. if (this.props.onLink || this.props.url) {
  52929. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-value", title: this.props.value, onClick: function () { return _this.onLink(); } }, this.props.url ? "doc" : (this.props.value || "no name")));
  52930. }
  52931. 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"));
  52932. };
  52933. TextLineComponent.prototype.render = function () {
  52934. var _a;
  52935. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" + (this.props.additionalClass ? " " + this.props.additionalClass : "") },
  52936. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, (_a = this.props.label) !== null && _a !== void 0 ? _a : ""),
  52937. this.renderContent()));
  52938. };
  52939. return TextLineComponent;
  52940. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52941. /***/ }),
  52942. /***/ "./components/actionTabs/lines/textureLineComponent.tsx":
  52943. /*!**************************************************************!*\
  52944. !*** ./components/actionTabs/lines/textureLineComponent.tsx ***!
  52945. \**************************************************************/
  52946. /*! exports provided: TextureLineComponent */
  52947. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52948. "use strict";
  52949. __webpack_require__.r(__webpack_exports__);
  52950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  52951. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52952. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52953. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52954. /* harmony import */ var _buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  52955. /* harmony import */ var _textureHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../textureHelper */ "./textureHelper.ts");
  52956. var TextureLineComponent = /** @class */ (function (_super) {
  52957. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLineComponent, _super);
  52958. function TextureLineComponent(props) {
  52959. var _this = _super.call(this, props) || this;
  52960. _this.state = {
  52961. channels: TextureLineComponent.TextureChannelStates.ALL,
  52962. face: 0
  52963. };
  52964. _this.canvasRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  52965. return _this;
  52966. }
  52967. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  52968. return (nextProps.texture !== this.props.texture || nextState.channels !== this.state.channels || nextState.face !== this.state.face);
  52969. };
  52970. TextureLineComponent.prototype.componentDidMount = function () {
  52971. this.updatePreview();
  52972. };
  52973. TextureLineComponent.prototype.componentDidUpdate = function () {
  52974. this.updatePreview();
  52975. };
  52976. TextureLineComponent.prototype.updatePreview = function () {
  52977. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
  52978. var previewCanvas, texture, size, ratio, width, height, data, context, imageData, castData;
  52979. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  52980. switch (_a.label) {
  52981. case 0:
  52982. previewCanvas = this.canvasRef.current;
  52983. texture = this.props.texture;
  52984. size = texture.getSize();
  52985. ratio = size.width / size.height;
  52986. width = this.props.width;
  52987. height = (width / ratio) | 1;
  52988. return [4 /*yield*/, _textureHelper__WEBPACK_IMPORTED_MODULE_3__["TextureHelper"].GetTextureDataAsync(texture, width, height, this.state.face, this.state.channels, this.props.globalState)];
  52989. case 1:
  52990. data = _a.sent();
  52991. previewCanvas.width = width;
  52992. previewCanvas.height = height;
  52993. context = previewCanvas.getContext('2d');
  52994. if (context) {
  52995. imageData = context.createImageData(width, height);
  52996. castData = imageData.data;
  52997. castData.set(data);
  52998. context.putImageData(imageData, 0, 0);
  52999. }
  53000. previewCanvas.style.height = height + "px";
  53001. return [2 /*return*/];
  53002. }
  53003. });
  53004. });
  53005. };
  53006. TextureLineComponent.prototype.render = function () {
  53007. var _this = this;
  53008. var texture = this.props.texture;
  53009. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53010. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  53011. !this.props.hideChannelSelect && texture.isCube &&
  53012. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  53013. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 0 ? "px command selected" : "px command", onClick: function () { return _this.setState({ face: 0 }); } }, "+X"),
  53014. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 1 ? "nx command selected" : "nx command", onClick: function () { return _this.setState({ face: 1 }); } }, "-X"),
  53015. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 2 ? "py command selected" : "py command", onClick: function () { return _this.setState({ face: 2 }); } }, "+Y"),
  53016. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 3 ? "ny command selected" : "ny command", onClick: function () { return _this.setState({ face: 3 }); } }, "-Y"),
  53017. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 4 ? "pz command selected" : "pz command", onClick: function () { return _this.setState({ face: 4 }); } }, "+Z"),
  53018. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 5 ? "nz command selected" : "nz command", onClick: function () { return _this.setState({ face: 5 }); } }, "-Z")),
  53019. !this.props.hideChannelSelect && !texture.isCube &&
  53020. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  53021. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channels === TextureLineComponent.TextureChannelStates.R ? "red command selected" : "red command", onClick: function () { return _this.setState({ channels: TextureLineComponent.TextureChannelStates.R }); } }, "R"),
  53022. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channels === TextureLineComponent.TextureChannelStates.G ? "green command selected" : "green command", onClick: function () { return _this.setState({ channels: TextureLineComponent.TextureChannelStates.G }); } }, "G"),
  53023. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channels === TextureLineComponent.TextureChannelStates.B ? "blue command selected" : "blue command", onClick: function () { return _this.setState({ channels: TextureLineComponent.TextureChannelStates.B }); } }, "B"),
  53024. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channels === TextureLineComponent.TextureChannelStates.A ? "alpha command selected" : "alpha command", onClick: function () { return _this.setState({ channels: TextureLineComponent.TextureChannelStates.A }); } }, "A"),
  53025. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.channels === TextureLineComponent.TextureChannelStates.ALL ? "all command selected" : "all command", onClick: function () { return _this.setState({ channels: TextureLineComponent.TextureChannelStates.ALL }); } }, "ALL")),
  53026. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: this.canvasRef, className: "preview" })),
  53027. texture.isRenderTarget &&
  53028. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Refresh", onClick: function () {
  53029. _this.updatePreview();
  53030. } })));
  53031. };
  53032. TextureLineComponent.TextureChannelStates = {
  53033. R: { R: true, G: false, B: false, A: false },
  53034. G: { R: false, G: true, B: false, A: false },
  53035. B: { R: false, G: false, B: true, A: false },
  53036. A: { R: false, G: false, B: false, A: true },
  53037. ALL: { R: true, G: true, B: true, A: true }
  53038. };
  53039. return TextureLineComponent;
  53040. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53041. /***/ }),
  53042. /***/ "./components/actionTabs/lines/textureLinkLineComponent.tsx":
  53043. /*!******************************************************************!*\
  53044. !*** ./components/actionTabs/lines/textureLinkLineComponent.tsx ***!
  53045. \******************************************************************/
  53046. /*! exports provided: TextureLinkLineComponent */
  53047. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53048. "use strict";
  53049. __webpack_require__.r(__webpack_exports__);
  53050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLinkLineComponent", function() { return TextureLinkLineComponent; });
  53051. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53052. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53053. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53054. /* harmony import */ var babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/standardMaterial */ "babylonjs/Misc/observable");
  53055. /* harmony import */ var babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__);
  53056. /* harmony import */ var _textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  53057. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  53058. /* 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");
  53059. /* harmony import */ var _fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  53060. var TextureLinkLineComponent = /** @class */ (function (_super) {
  53061. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLinkLineComponent, _super);
  53062. function TextureLinkLineComponent(props) {
  53063. var _this = _super.call(this, props) || this;
  53064. var material = _this.props.material;
  53065. var texture = _this.props.texture;
  53066. _this.state = { isDebugSelected: material && material.reservedDataStore && material.reservedDataStore.debugTexture === texture };
  53067. return _this;
  53068. }
  53069. TextureLinkLineComponent.prototype.componentDidMount = function () {
  53070. var _this = this;
  53071. if (!this.props.onDebugSelectionChangeObservable) {
  53072. return;
  53073. }
  53074. this._onDebugSelectionChangeObserver = this.props.onDebugSelectionChangeObservable.add(function (line) {
  53075. if (line !== _this) {
  53076. _this.setState({ isDebugSelected: false });
  53077. }
  53078. });
  53079. };
  53080. TextureLinkLineComponent.prototype.componentWillUnmount = function () {
  53081. if (this.props.onDebugSelectionChangeObservable && this._onDebugSelectionChangeObserver) {
  53082. this.props.onDebugSelectionChangeObservable.remove(this._onDebugSelectionChangeObserver);
  53083. }
  53084. };
  53085. TextureLinkLineComponent.prototype.debugTexture = function () {
  53086. if (this.props.customDebugAction) {
  53087. var newState = !this.state.isDebugSelected;
  53088. this.props.customDebugAction(newState);
  53089. this.setState({ isDebugSelected: newState });
  53090. if (this.props.onDebugSelectionChangeObservable) {
  53091. this.props.onDebugSelectionChangeObservable.notifyObservers(this);
  53092. }
  53093. return;
  53094. }
  53095. var texture = this.props.texture;
  53096. var material = this.props.material;
  53097. if (!material || !texture) {
  53098. return;
  53099. }
  53100. var scene = material.getScene();
  53101. if (material.reservedDataStore && material.reservedDataStore.debugTexture === texture) {
  53102. var debugMaterial_1 = material.reservedDataStore.debugMaterial;
  53103. texture.level = material.reservedDataStore.level;
  53104. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  53105. var mesh = _a[_i];
  53106. if (mesh.material === debugMaterial_1) {
  53107. mesh.material = material;
  53108. }
  53109. }
  53110. debugMaterial_1.dispose();
  53111. material.reservedDataStore.debugTexture = null;
  53112. material.reservedDataStore.debugMaterial = null;
  53113. this.setState({ isDebugSelected: false });
  53114. return;
  53115. }
  53116. var checkMaterial = material;
  53117. var needToDisposeCheckMaterial = false;
  53118. if (material.reservedDataStore && material.reservedDataStore.debugTexture) {
  53119. checkMaterial = material.reservedDataStore.debugMaterial;
  53120. needToDisposeCheckMaterial = true;
  53121. }
  53122. var debugMaterial = new babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("debugMaterial", scene);
  53123. debugMaterial.disableLighting = true;
  53124. debugMaterial.sideOrientation = material.sideOrientation;
  53125. debugMaterial.emissiveTexture = texture;
  53126. debugMaterial.forceDepthWrite = true;
  53127. debugMaterial.reservedDataStore = { hidden: true };
  53128. for (var _b = 0, _c = scene.meshes; _b < _c.length; _b++) {
  53129. var mesh = _c[_b];
  53130. if (mesh.material === checkMaterial) {
  53131. mesh.material = debugMaterial;
  53132. }
  53133. }
  53134. if (!material.reservedDataStore) {
  53135. material.reservedDataStore = {};
  53136. }
  53137. material.reservedDataStore.debugTexture = texture;
  53138. material.reservedDataStore.debugMaterial = debugMaterial;
  53139. material.reservedDataStore.level = texture.level;
  53140. texture.level = 1.0;
  53141. if (this.props.onDebugSelectionChangeObservable) {
  53142. this.props.onDebugSelectionChangeObservable.notifyObservers(this);
  53143. }
  53144. if (needToDisposeCheckMaterial) {
  53145. checkMaterial.dispose();
  53146. }
  53147. this.setState({ isDebugSelected: true });
  53148. };
  53149. TextureLinkLineComponent.prototype.onLink = function () {
  53150. if (!this.props.onSelectionChangedObservable) {
  53151. return;
  53152. }
  53153. var texture = this.props.texture;
  53154. this.props.onSelectionChangedObservable.notifyObservers(texture);
  53155. };
  53156. TextureLinkLineComponent.prototype.updateTexture = function (file) {
  53157. var _this = this;
  53158. var material = this.props.material;
  53159. babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  53160. var blob = new Blob([data], { type: "octet/stream" });
  53161. var url = URL.createObjectURL(blob);
  53162. var texture = new babylonjs_Materials_standardMaterial__WEBPACK_IMPORTED_MODULE_2__["Texture"](url, material.getScene(), false, false);
  53163. if (_this.props.propertyName) {
  53164. material[_this.props.propertyName] = texture;
  53165. }
  53166. else if (_this.props.onTextureCreated) {
  53167. _this.props.onTextureCreated(texture);
  53168. }
  53169. _this.forceUpdate();
  53170. }, undefined, true);
  53171. };
  53172. TextureLinkLineComponent.prototype.removeTexture = function () {
  53173. var material = this.props.material;
  53174. if (this.props.propertyName) {
  53175. material[this.props.propertyName] = null;
  53176. }
  53177. else if (this.props.onTextureRemoved) {
  53178. this.props.onTextureRemoved();
  53179. }
  53180. this.forceUpdate();
  53181. };
  53182. TextureLinkLineComponent.prototype.render = function () {
  53183. var _this = this;
  53184. var texture = this.props.texture;
  53185. if (!texture) {
  53186. if (this.props.propertyName || this.props.onTextureCreated) {
  53187. 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" }));
  53188. }
  53189. return null;
  53190. }
  53191. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLinkLine" },
  53192. !texture.isCube && this.props.material &&
  53193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53194. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.state.isDebugSelected ? "debug selected" : "debug" },
  53195. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: "actionIcon", onClick: function () { return _this.debugTexture(); }, title: "Render as main texture" },
  53196. 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"] })),
  53197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: "actionIcon", onClick: function () { return _this.removeTexture(); }, title: "Remove texture" },
  53198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faTrash"] })))),
  53199. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: this.props.label, value: texture.name, onLink: function () { return _this.onLink(); } })));
  53200. };
  53201. return TextureLinkLineComponent;
  53202. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53203. /***/ }),
  53204. /***/ "./components/actionTabs/lines/valueLineComponent.tsx":
  53205. /*!************************************************************!*\
  53206. !*** ./components/actionTabs/lines/valueLineComponent.tsx ***!
  53207. \************************************************************/
  53208. /*! exports provided: ValueLineComponent */
  53209. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53210. "use strict";
  53211. __webpack_require__.r(__webpack_exports__);
  53212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueLineComponent", function() { return ValueLineComponent; });
  53213. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53214. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53215. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53216. var ValueLineComponent = /** @class */ (function (_super) {
  53217. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ValueLineComponent, _super);
  53218. function ValueLineComponent(props) {
  53219. return _super.call(this, props) || this;
  53220. }
  53221. ValueLineComponent.prototype.render = function () {
  53222. var digits = this.props.fractionDigits !== undefined ? this.props.fractionDigits : 2;
  53223. var value = this.props.value.toFixed(digits) + (this.props.units ? " " + this.props.units : "");
  53224. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textLine" },
  53225. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  53226. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", style: { color: this.props.color ? this.props.color : "" } }, value)));
  53227. };
  53228. return ValueLineComponent;
  53229. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53230. /***/ }),
  53231. /***/ "./components/actionTabs/lines/vector2LineComponent.tsx":
  53232. /*!**************************************************************!*\
  53233. !*** ./components/actionTabs/lines/vector2LineComponent.tsx ***!
  53234. \**************************************************************/
  53235. /*! exports provided: Vector2LineComponent */
  53236. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53237. "use strict";
  53238. __webpack_require__.r(__webpack_exports__);
  53239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  53240. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53241. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53242. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53243. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  53244. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  53245. /* 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");
  53246. var Vector2LineComponent = /** @class */ (function (_super) {
  53247. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2LineComponent, _super);
  53248. function Vector2LineComponent(props) {
  53249. var _this = _super.call(this, props) || this;
  53250. _this._localChange = false;
  53251. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  53252. return _this;
  53253. }
  53254. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  53255. var nextPropsValue = nextProps.target[nextProps.propertyName];
  53256. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  53257. nextState.value = nextPropsValue.clone();
  53258. this._localChange = false;
  53259. return true;
  53260. }
  53261. return false;
  53262. };
  53263. Vector2LineComponent.prototype.switchExpandState = function () {
  53264. this._localChange = true;
  53265. this.setState({ isExpanded: !this.state.isExpanded });
  53266. };
  53267. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  53268. if (this.props.onChange) {
  53269. this.props.onChange(this.state.value);
  53270. }
  53271. if (!this.props.onPropertyChangedObservable) {
  53272. return;
  53273. }
  53274. this.props.onPropertyChangedObservable.notifyObservers({
  53275. object: this.props.target,
  53276. property: this.props.propertyName,
  53277. value: this.state.value,
  53278. initialValue: previousValue
  53279. });
  53280. };
  53281. Vector2LineComponent.prototype.updateStateX = function (value) {
  53282. this._localChange = true;
  53283. var store = this.state.value.clone();
  53284. this.props.target[this.props.propertyName].x = value;
  53285. this.state.value.x = value;
  53286. this.setState({ value: this.state.value });
  53287. this.raiseOnPropertyChanged(store);
  53288. };
  53289. Vector2LineComponent.prototype.updateStateY = function (value) {
  53290. this._localChange = true;
  53291. var store = this.state.value.clone();
  53292. this.props.target[this.props.propertyName].y = value;
  53293. this.state.value.y = value;
  53294. this.setState({ value: this.state.value });
  53295. this.raiseOnPropertyChanged(store);
  53296. };
  53297. Vector2LineComponent.prototype.render = function () {
  53298. var _this = this;
  53299. 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"] });
  53300. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  53301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  53302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  53303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  53304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  53305. this.state.isExpanded &&
  53306. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  53307. 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); } }),
  53308. 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); } }))));
  53309. };
  53310. Vector2LineComponent.defaultProps = {
  53311. step: 0.001,
  53312. };
  53313. return Vector2LineComponent;
  53314. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53315. /***/ }),
  53316. /***/ "./components/actionTabs/lines/vector3LineComponent.tsx":
  53317. /*!**************************************************************!*\
  53318. !*** ./components/actionTabs/lines/vector3LineComponent.tsx ***!
  53319. \**************************************************************/
  53320. /*! exports provided: Vector3LineComponent */
  53321. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53322. "use strict";
  53323. __webpack_require__.r(__webpack_exports__);
  53324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  53325. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53326. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53327. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53328. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  53329. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  53330. /* 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");
  53331. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  53332. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  53333. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  53334. var Vector3LineComponent = /** @class */ (function (_super) {
  53335. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3LineComponent, _super);
  53336. function Vector3LineComponent(props) {
  53337. var _this = _super.call(this, props) || this;
  53338. _this._localChange = false;
  53339. _this.state = { isExpanded: false, value: _this.getCurrentValue().clone() };
  53340. return _this;
  53341. }
  53342. Vector3LineComponent.prototype.getCurrentValue = function () {
  53343. return this.props.target[this.props.propertyName];
  53344. };
  53345. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  53346. var nextPropsValue = this.getCurrentValue();
  53347. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  53348. nextState.value = nextPropsValue.clone();
  53349. this._localChange = false;
  53350. return true;
  53351. }
  53352. return false;
  53353. };
  53354. Vector3LineComponent.prototype.switchExpandState = function () {
  53355. this._localChange = true;
  53356. this.setState({ isExpanded: !this.state.isExpanded });
  53357. };
  53358. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  53359. if (this.props.onChange) {
  53360. this.props.onChange(this.state.value);
  53361. }
  53362. if (!this.props.onPropertyChangedObservable) {
  53363. return;
  53364. }
  53365. this.props.onPropertyChangedObservable.notifyObservers({
  53366. object: this.props.target,
  53367. property: this.props.propertyName,
  53368. value: this.state.value,
  53369. initialValue: previousValue
  53370. });
  53371. };
  53372. Vector3LineComponent.prototype.updateVector3 = function () {
  53373. var store = this.props.target[this.props.propertyName].clone();
  53374. this.props.target[this.props.propertyName] = this.state.value;
  53375. this.setState({ value: store });
  53376. this.raiseOnPropertyChanged(store);
  53377. };
  53378. Vector3LineComponent.prototype.updateStateX = function (value) {
  53379. this._localChange = true;
  53380. this.state.value.x = value;
  53381. this.updateVector3();
  53382. };
  53383. Vector3LineComponent.prototype.updateStateY = function (value) {
  53384. this._localChange = true;
  53385. this.state.value.y = value;
  53386. this.updateVector3();
  53387. };
  53388. Vector3LineComponent.prototype.updateStateZ = function (value) {
  53389. this._localChange = true;
  53390. this.state.value.z = value;
  53391. this.updateVector3();
  53392. };
  53393. Vector3LineComponent.prototype.render = function () {
  53394. var _this = this;
  53395. 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"] });
  53396. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  53397. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  53398. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  53399. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" },
  53400. !this.props.useEuler &&
  53401. "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2) + ", Z: " + this.state.value.z.toFixed(2),
  53402. this.props.useEuler &&
  53403. "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)),
  53404. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  53405. this.state.isExpanded && !this.props.useEuler &&
  53406. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  53407. 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); } }),
  53408. 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); } }),
  53409. 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); } })),
  53410. this.state.isExpanded && this.props.useEuler && !this.props.noSlider &&
  53411. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  53412. 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)); } }),
  53413. 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)); } }),
  53414. 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)); } })),
  53415. this.state.isExpanded && this.props.useEuler && this.props.noSlider &&
  53416. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  53417. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: 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)); } }),
  53418. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: 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)); } }),
  53419. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", step: this.props.step, value: 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)); } }))));
  53420. };
  53421. Vector3LineComponent.defaultProps = {
  53422. step: 0.001,
  53423. };
  53424. return Vector3LineComponent;
  53425. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53426. /***/ }),
  53427. /***/ "./components/actionTabs/lines/vector4LineComponent.tsx":
  53428. /*!**************************************************************!*\
  53429. !*** ./components/actionTabs/lines/vector4LineComponent.tsx ***!
  53430. \**************************************************************/
  53431. /*! exports provided: Vector4LineComponent */
  53432. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53433. "use strict";
  53434. __webpack_require__.r(__webpack_exports__);
  53435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  53436. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53437. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53438. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53439. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  53440. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  53441. /* 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");
  53442. var Vector4LineComponent = /** @class */ (function (_super) {
  53443. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4LineComponent, _super);
  53444. function Vector4LineComponent(props) {
  53445. var _this = _super.call(this, props) || this;
  53446. _this._localChange = false;
  53447. _this.state = { isExpanded: false, value: _this.getCurrentValue().clone() };
  53448. return _this;
  53449. }
  53450. Vector4LineComponent.prototype.getCurrentValue = function () {
  53451. return this.props.target[this.props.propertyName];
  53452. };
  53453. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  53454. var nextPropsValue = this.getCurrentValue();
  53455. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  53456. nextState.value = nextPropsValue.clone();
  53457. this._localChange = false;
  53458. return true;
  53459. }
  53460. return false;
  53461. };
  53462. Vector4LineComponent.prototype.switchExpandState = function () {
  53463. this._localChange = true;
  53464. this.setState({ isExpanded: !this.state.isExpanded });
  53465. };
  53466. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  53467. if (this.props.onChange) {
  53468. this.props.onChange(this.state.value);
  53469. }
  53470. if (!this.props.onPropertyChangedObservable) {
  53471. return;
  53472. }
  53473. this.props.onPropertyChangedObservable.notifyObservers({
  53474. object: this.props.target,
  53475. property: this.props.propertyName,
  53476. value: this.state.value,
  53477. initialValue: previousValue
  53478. });
  53479. };
  53480. Vector4LineComponent.prototype.updateVector4 = function () {
  53481. var store = this.props.target[this.props.propertyName].clone();
  53482. this.props.target[this.props.propertyName] = this.state.value;
  53483. this.setState({ value: store });
  53484. this.raiseOnPropertyChanged(store);
  53485. };
  53486. Vector4LineComponent.prototype.updateStateX = function (value) {
  53487. this._localChange = true;
  53488. this.state.value.x = value;
  53489. this.updateVector4();
  53490. };
  53491. Vector4LineComponent.prototype.updateStateY = function (value) {
  53492. this._localChange = true;
  53493. this.state.value.y = value;
  53494. this.updateVector4();
  53495. };
  53496. Vector4LineComponent.prototype.updateStateZ = function (value) {
  53497. this._localChange = true;
  53498. this.state.value.z = value;
  53499. this.updateVector4();
  53500. };
  53501. Vector4LineComponent.prototype.updateStateW = function (value) {
  53502. this._localChange = true;
  53503. this.state.value.w = value;
  53504. this.updateVector4();
  53505. };
  53506. Vector4LineComponent.prototype.render = function () {
  53507. var _this = this;
  53508. 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"] });
  53509. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  53510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  53511. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  53512. 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)),
  53513. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  53514. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  53515. 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); } }),
  53516. 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); } }),
  53517. 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); } }),
  53518. 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); } }))));
  53519. };
  53520. Vector4LineComponent.defaultProps = {
  53521. step: 0.001,
  53522. };
  53523. return Vector4LineComponent;
  53524. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53525. /***/ }),
  53526. /***/ "./components/actionTabs/paneComponent.tsx":
  53527. /*!*************************************************!*\
  53528. !*** ./components/actionTabs/paneComponent.tsx ***!
  53529. \*************************************************/
  53530. /*! exports provided: PaneComponent */
  53531. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53532. "use strict";
  53533. __webpack_require__.r(__webpack_exports__);
  53534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaneComponent", function() { return PaneComponent; });
  53535. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53536. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53537. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53538. var PaneComponent = /** @class */ (function (_super) {
  53539. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PaneComponent, _super);
  53540. function PaneComponent(props) {
  53541. return _super.call(this, props) || this;
  53542. }
  53543. PaneComponent.prototype.render = function () {
  53544. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" }));
  53545. };
  53546. return PaneComponent;
  53547. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53548. /***/ }),
  53549. /***/ "./components/actionTabs/tabs/debugTabComponent.tsx":
  53550. /*!**********************************************************!*\
  53551. !*** ./components/actionTabs/tabs/debugTabComponent.tsx ***!
  53552. \**********************************************************/
  53553. /*! exports provided: DebugTabComponent */
  53554. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53555. "use strict";
  53556. __webpack_require__.r(__webpack_exports__);
  53557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugTabComponent", function() { return DebugTabComponent; });
  53558. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53559. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53560. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53561. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  53562. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  53563. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  53564. /* harmony import */ var _propertyGrids_renderGridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./propertyGrids/renderGridPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent.tsx");
  53565. /* harmony import */ var babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Debug/physicsViewer */ "babylonjs/Misc/observable");
  53566. /* harmony import */ var babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__);
  53567. var DebugTabComponent = /** @class */ (function (_super) {
  53568. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DebugTabComponent, _super);
  53569. function DebugTabComponent(props) {
  53570. var _this = _super.call(this, props) || this;
  53571. _this._physicsViewersEnabled = false;
  53572. var scene = _this.props.scene;
  53573. if (!scene) {
  53574. return _this;
  53575. }
  53576. if (!scene.reservedDataStore) {
  53577. scene.reservedDataStore = {};
  53578. }
  53579. _this._physicsViewersEnabled = scene.reservedDataStore.physicsViewer != null;
  53580. return _this;
  53581. }
  53582. DebugTabComponent.prototype.switchPhysicsViewers = function () {
  53583. this._physicsViewersEnabled = !this._physicsViewersEnabled;
  53584. var scene = this.props.scene;
  53585. if (this._physicsViewersEnabled) {
  53586. var physicsViewer = new babylonjs_Debug_physicsViewer__WEBPACK_IMPORTED_MODULE_6__["PhysicsViewer"](scene);
  53587. scene.reservedDataStore.physicsViewer = physicsViewer;
  53588. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  53589. var mesh = _a[_i];
  53590. if (mesh.physicsImpostor) {
  53591. var debugMesh = physicsViewer.showImpostor(mesh.physicsImpostor, mesh);
  53592. if (debugMesh) {
  53593. debugMesh.reservedDataStore = { hidden: true };
  53594. debugMesh.material.reservedDataStore = { hidden: true };
  53595. }
  53596. }
  53597. }
  53598. }
  53599. else {
  53600. scene.reservedDataStore.physicsViewer.dispose();
  53601. scene.reservedDataStore.physicsViewer = null;
  53602. }
  53603. };
  53604. DebugTabComponent.prototype.render = function () {
  53605. var _this = this;
  53606. var scene = this.props.scene;
  53607. if (!scene) {
  53608. return null;
  53609. }
  53610. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  53611. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "HELPERS" },
  53612. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_renderGridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__["RenderGridPropertyGridComponent"], { globalState: this.props.globalState, scene: scene }),
  53613. 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(); } })),
  53614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CORE TEXTURE CHANNELS" },
  53615. 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; } }),
  53616. 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; } }),
  53617. 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; } }),
  53618. 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; } }),
  53619. 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; } }),
  53620. 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; } }),
  53621. 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; } }),
  53622. 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; } }),
  53623. 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; } }),
  53624. 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; } }),
  53625. 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; } })),
  53626. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "FEATURES" },
  53627. 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; } }),
  53628. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Physics", isSelected: function () { return scene.physicsEnabled; }, onSelect: function () { return scene.physicsEnabled = !scene.physicsEnabled; } }),
  53629. 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; } }),
  53630. 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; } }),
  53631. 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; } }),
  53632. 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; } }),
  53633. 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; } }),
  53634. 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; } }),
  53635. 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; } }),
  53636. 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; } }),
  53637. 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; } }),
  53638. 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; } }),
  53639. 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; } }),
  53640. 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; } }),
  53641. 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; } }))));
  53642. };
  53643. return DebugTabComponent;
  53644. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  53645. /***/ }),
  53646. /***/ "./components/actionTabs/tabs/gradientNodePropertyComponent.tsx":
  53647. /*!**********************************************************************!*\
  53648. !*** ./components/actionTabs/tabs/gradientNodePropertyComponent.tsx ***!
  53649. \**********************************************************************/
  53650. /*! exports provided: GradientPropertyTabComponent */
  53651. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53652. "use strict";
  53653. __webpack_require__.r(__webpack_exports__);
  53654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientPropertyTabComponent", function() { return GradientPropertyTabComponent; });
  53655. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53656. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53657. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53658. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/gradientBlock */ "babylonjs/Misc/observable");
  53659. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_2__);
  53660. /* harmony import */ var _gradientStepComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./gradientStepComponent */ "./components/actionTabs/tabs/gradientStepComponent.tsx");
  53661. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  53662. var GradientPropertyTabComponent = /** @class */ (function (_super) {
  53663. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientPropertyTabComponent, _super);
  53664. function GradientPropertyTabComponent(props) {
  53665. var _this = _super.call(this, props) || this;
  53666. _this._gradientBlock = _this.props.block;
  53667. return _this;
  53668. }
  53669. GradientPropertyTabComponent.prototype.forceRebuild = function () {
  53670. this._gradientBlock.colorStepsUpdated();
  53671. this.forceUpdate();
  53672. };
  53673. GradientPropertyTabComponent.prototype.deleteStep = function (step) {
  53674. var index = this._gradientBlock.colorSteps.indexOf(step);
  53675. if (index > -1) {
  53676. this._gradientBlock.colorSteps.splice(index, 1);
  53677. this.forceRebuild();
  53678. }
  53679. };
  53680. GradientPropertyTabComponent.prototype.addNewStep = function () {
  53681. var newStep = new babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_2__["GradientBlockColorStep"](1.0, babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_2__["Color3"].White());
  53682. this._gradientBlock.colorSteps.push(newStep);
  53683. this.forceRebuild();
  53684. };
  53685. GradientPropertyTabComponent.prototype.checkForReOrder = function () {
  53686. this._gradientBlock.colorSteps.sort(function (a, b) {
  53687. return a.step - b.step;
  53688. });
  53689. this.forceRebuild();
  53690. };
  53691. GradientPropertyTabComponent.prototype.render = function () {
  53692. var _this = this;
  53693. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53694. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Add new step", onClick: function () { return _this.addNewStep(); } }),
  53695. this._gradientBlock.colorSteps.map(function (c, i) {
  53696. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_gradientStepComponent__WEBPACK_IMPORTED_MODULE_3__["GradientStepComponent"], { globalState: _this.props.globalState, onCheckForReOrder: function () { return _this.checkForReOrder(); }, onUpdateStep: function () { return _this.forceRebuild(); }, key: "step-" + i, lineIndex: i, step: c, onDelete: function () { return _this.deleteStep(c); } }));
  53697. })));
  53698. };
  53699. return GradientPropertyTabComponent;
  53700. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53701. /***/ }),
  53702. /***/ "./components/actionTabs/tabs/gradientStepComponent.tsx":
  53703. /*!**************************************************************!*\
  53704. !*** ./components/actionTabs/tabs/gradientStepComponent.tsx ***!
  53705. \**************************************************************/
  53706. /*! exports provided: GradientStepComponent */
  53707. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53708. "use strict";
  53709. __webpack_require__.r(__webpack_exports__);
  53710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientStepComponent", function() { return GradientStepComponent; });
  53711. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53712. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53713. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53714. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  53715. /* 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");
  53716. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  53717. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  53718. /* harmony import */ var _lines_colorPickerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../lines/colorPickerComponent */ "./components/actionTabs/lines/colorPickerComponent.tsx");
  53719. var GradientStepComponent = /** @class */ (function (_super) {
  53720. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientStepComponent, _super);
  53721. function GradientStepComponent(props) {
  53722. var _this = _super.call(this, props) || this;
  53723. _this.state = { gradient: props.step.step };
  53724. return _this;
  53725. }
  53726. GradientStepComponent.prototype.updateColor = function (color) {
  53727. this.props.step.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(color);
  53728. this.props.onUpdateStep();
  53729. this.forceUpdate();
  53730. };
  53731. GradientStepComponent.prototype.updateStep = function (gradient) {
  53732. this.props.step.step = gradient;
  53733. this.setState({ gradient: gradient });
  53734. this.props.onUpdateStep();
  53735. };
  53736. GradientStepComponent.prototype.onPointerUp = function () {
  53737. this.props.onCheckForReOrder();
  53738. };
  53739. GradientStepComponent.prototype.render = function () {
  53740. var _this = this;
  53741. var step = this.props.step;
  53742. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  53743. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  53744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color" },
  53745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_colorPickerComponent__WEBPACK_IMPORTED_MODULE_5__["ColorPickerLineComponent"], { value: step.color, disableAlpha: true, onColorChanged: function (color) {
  53746. _this.updateColor(color);
  53747. } })),
  53748. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" }, step.step.toFixed(2)),
  53749. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider slider" },
  53750. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: 0.01, min: 0, max: 1.0, value: step.step, onPointerUp: function (evt) { return _this.onPointerUp(); }, onChange: function (evt) { return _this.updateStep(parseFloat(evt.target.value)); } })),
  53751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete", onClick: function () { return _this.props.onDelete(); } },
  53752. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faTrash"] }))));
  53753. };
  53754. return GradientStepComponent;
  53755. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53756. /***/ }),
  53757. /***/ "./components/actionTabs/tabs/propertyGridTabComponent.tsx":
  53758. /*!*****************************************************************!*\
  53759. !*** ./components/actionTabs/tabs/propertyGridTabComponent.tsx ***!
  53760. \*****************************************************************/
  53761. /*! exports provided: PropertyGridTabComponent */
  53762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53763. "use strict";
  53764. __webpack_require__.r(__webpack_exports__);
  53765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTabComponent", function() { return PropertyGridTabComponent; });
  53766. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53767. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53768. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53769. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  53770. /* harmony import */ var _propertyGrids_materials_materialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./propertyGrids/materials/materialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent.tsx");
  53771. /* harmony import */ var _propertyGrids_materials_standardMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./propertyGrids/materials/standardMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent.tsx");
  53772. /* harmony import */ var _propertyGrids_materials_texturePropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./propertyGrids/materials/texturePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent.tsx");
  53773. /* harmony import */ var _propertyGrids_materials_pbrMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./propertyGrids/materials/pbrMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx");
  53774. /* harmony import */ var _propertyGrids_scenePropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./propertyGrids/scenePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent.tsx");
  53775. /* harmony import */ var _propertyGrids_lights_hemisphericLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./propertyGrids/lights/hemisphericLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent.tsx");
  53776. /* harmony import */ var _propertyGrids_lights_pointLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./propertyGrids/lights/pointLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent.tsx");
  53777. /* harmony import */ var _propertyGrids_cameras_freeCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./propertyGrids/cameras/freeCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent.tsx");
  53778. /* harmony import */ var _propertyGrids_cameras_arcRotateCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./propertyGrids/cameras/arcRotateCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent.tsx");
  53779. /* harmony import */ var _propertyGrids_meshes_meshPropertyGridComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./propertyGrids/meshes/meshPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx");
  53780. /* harmony import */ var _propertyGrids_meshes_transformNodePropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./propertyGrids/meshes/transformNodePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent.tsx");
  53781. /* harmony import */ var _propertyGrids_materials_backgroundMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./propertyGrids/materials/backgroundMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent.tsx");
  53782. /* harmony import */ var _propertyGrids_gui_controlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./propertyGrids/gui/controlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent.tsx");
  53783. /* harmony import */ var _propertyGrids_gui_textBlockPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./propertyGrids/gui/textBlockPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent.tsx");
  53784. /* harmony import */ var _propertyGrids_gui_inputTextPropertyGridComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./propertyGrids/gui/inputTextPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent.tsx");
  53785. /* harmony import */ var _propertyGrids_gui_colorPickerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./propertyGrids/gui/colorPickerPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.tsx");
  53786. /* harmony import */ var _propertyGrids_animations_animationGroupPropertyGridComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./propertyGrids/animations/animationGroupPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationGroupPropertyGridComponent.tsx");
  53787. /* harmony import */ var _propertyGrids_lockObject__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./propertyGrids/lockObject */ "./components/actionTabs/tabs/propertyGrids/lockObject.ts");
  53788. /* harmony import */ var _propertyGrids_gui_imagePropertyGridComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./propertyGrids/gui/imagePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent.tsx");
  53789. /* harmony import */ var _propertyGrids_gui_sliderPropertyGridComponent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./propertyGrids/gui/sliderPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent.tsx");
  53790. /* harmony import */ var _propertyGrids_gui_imageBasedSliderPropertyGridComponent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./propertyGrids/gui/imageBasedSliderPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.tsx");
  53791. /* harmony import */ var _propertyGrids_gui_rectanglePropertyGridComponent__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./propertyGrids/gui/rectanglePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent.tsx");
  53792. /* harmony import */ var _propertyGrids_gui_ellipsePropertyGridComponent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./propertyGrids/gui/ellipsePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent.tsx");
  53793. /* harmony import */ var _propertyGrids_gui_checkboxPropertyGridComponent__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./propertyGrids/gui/checkboxPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent.tsx");
  53794. /* harmony import */ var _propertyGrids_gui_radioButtonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./propertyGrids/gui/radioButtonPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.tsx");
  53795. /* harmony import */ var _propertyGrids_gui_linePropertyGridComponent__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./propertyGrids/gui/linePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent.tsx");
  53796. /* harmony import */ var _propertyGrids_gui_scrollViewerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./propertyGrids/gui/scrollViewerPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.tsx");
  53797. /* harmony import */ var _propertyGrids_gui_gridPropertyGridComponent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./propertyGrids/gui/gridPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent.tsx");
  53798. /* harmony import */ var _propertyGrids_materials_pbrMetallicRoughnessMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent.tsx");
  53799. /* harmony import */ var _propertyGrids_materials_pbrSpecularGlossinessMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent.tsx");
  53800. /* harmony import */ var _propertyGrids_gui_stackPanelPropertyGridComponent__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./propertyGrids/gui/stackPanelPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.tsx");
  53801. /* harmony import */ var _propertyGrids_postProcesses_postProcessPropertyGridComponent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./propertyGrids/postProcesses/postProcessPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent.tsx");
  53802. /* harmony import */ var _propertyGrids_postProcesses_renderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./propertyGrids/postProcesses/renderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent.tsx");
  53803. /* harmony import */ var _propertyGrids_postProcesses_defaultRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx");
  53804. /* harmony import */ var _propertyGrids_postProcesses_ssaoRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent.tsx");
  53805. /* harmony import */ var _propertyGrids_postProcesses_ssao2RenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent.tsx");
  53806. /* harmony import */ var _propertyGrids_meshes_skeletonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./propertyGrids/meshes/skeletonPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent.tsx");
  53807. /* harmony import */ var _propertyGrids_meshes_bonePropertyGridComponent__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./propertyGrids/meshes/bonePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent.tsx");
  53808. /* harmony import */ var _propertyGrids_lights_directionalLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./propertyGrids/lights/directionalLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent.tsx");
  53809. /* harmony import */ var _propertyGrids_lights_spotLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./propertyGrids/lights/spotLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx");
  53810. /* harmony import */ var _propertyGrids_postProcesses_lensRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent.tsx");
  53811. /* harmony import */ var _propertyGrids_materials_nodeMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./propertyGrids/materials/nodeMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx");
  53812. /* harmony import */ var _propertyGrids_materials_multiMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./propertyGrids/materials/multiMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent.tsx");
  53813. /* harmony import */ var _propertyGrids_particleSystems_particleSystemPropertyGridComponent__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./propertyGrids/particleSystems/particleSystemPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent.tsx");
  53814. /* harmony import */ var _propertyGrids_sprites_spriteManagerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./propertyGrids/sprites/spriteManagerPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/sprites/spriteManagerPropertyGridComponent.tsx");
  53815. /* harmony import */ var _propertyGrids_sprites_spritePropertyGridComponent__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./propertyGrids/sprites/spritePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/sprites/spritePropertyGridComponent.tsx");
  53816. /* harmony import */ var _propertyGrids_animations_targetedAnimationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./propertyGrids/animations/targetedAnimationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/targetedAnimationPropertyGridComponent.tsx");
  53817. /* harmony import */ var _propertyGrids_cameras_followCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./propertyGrids/cameras/followCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/followCameraPropertyGridComponent.tsx");
  53818. var PropertyGridTabComponent = /** @class */ (function (_super) {
  53819. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridTabComponent, _super);
  53820. function PropertyGridTabComponent(props) {
  53821. var _this = _super.call(this, props) || this;
  53822. _this._lockObject = new _propertyGrids_lockObject__WEBPACK_IMPORTED_MODULE_20__["LockObject"]();
  53823. return _this;
  53824. }
  53825. PropertyGridTabComponent.prototype.timerRefresh = function () {
  53826. if (!this._lockObject.lock) {
  53827. this.forceUpdate();
  53828. }
  53829. };
  53830. PropertyGridTabComponent.prototype.componentDidMount = function () {
  53831. var _this = this;
  53832. this._timerIntervalId = window.setInterval(function () { return _this.timerRefresh(); }, 500);
  53833. };
  53834. PropertyGridTabComponent.prototype.componentWillUnmount = function () {
  53835. window.clearInterval(this._timerIntervalId);
  53836. };
  53837. PropertyGridTabComponent.prototype.render = function () {
  53838. var entity = this.props.selectedEntity;
  53839. if (!entity) {
  53840. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "infoMessage" }, "Please select an entity in the scene explorer."));
  53841. }
  53842. if (entity.getClassName) {
  53843. var className = entity.getClassName();
  53844. if (className === "Scene") {
  53845. var scene = entity;
  53846. 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 }));
  53847. }
  53848. if (className === "Sprite") {
  53849. var sprite = entity;
  53850. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_sprites_spritePropertyGridComponent__WEBPACK_IMPORTED_MODULE_48__["SpritePropertyGridComponent"], { sprite: sprite, globalState: this.props.globalState, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  53851. }
  53852. if (className === "SpriteManager") {
  53853. var spriteManager = entity;
  53854. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_sprites_spriteManagerPropertyGridComponent__WEBPACK_IMPORTED_MODULE_47__["SpriteManagerPropertyGridComponent"], { spriteManager: spriteManager, globalState: this.props.globalState, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  53855. }
  53856. if (className.indexOf("Mesh") !== -1) {
  53857. var mesh = entity;
  53858. if (mesh.getTotalVertices() > 0) {
  53859. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53860. 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 })));
  53861. }
  53862. }
  53863. if (className.indexOf("ParticleSystem") !== -1) {
  53864. var particleSystem = entity;
  53865. 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 }));
  53866. }
  53867. if (className.indexOf("FreeCamera") !== -1 || className.indexOf("UniversalCamera") !== -1
  53868. || className.indexOf("WebXRCamera") !== -1 || className.indexOf("DeviceOrientationCamera") !== -1) {
  53869. var freeCamera = entity;
  53870. 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 }));
  53871. }
  53872. if (className.indexOf("ArcRotateCamera") !== -1) {
  53873. var arcRotateCamera = entity;
  53874. 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 }));
  53875. }
  53876. if (className.indexOf("FollowCamera") !== -1) {
  53877. var followCamera = entity;
  53878. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_cameras_followCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_50__["FollowCameraPropertyGridComponent"], { globalState: this.props.globalState, camera: followCamera, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  53879. }
  53880. if (className === "HemisphericLight") {
  53881. var hemisphericLight = entity;
  53882. 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 }));
  53883. }
  53884. if (className === "PointLight") {
  53885. var pointLight = entity;
  53886. 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 }));
  53887. }
  53888. if (className === "DirectionalLight") {
  53889. var pointLight = entity;
  53890. 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 }));
  53891. }
  53892. if (className === "SpotLight") {
  53893. var pointLight = entity;
  53894. 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 }));
  53895. }
  53896. if (className.indexOf("TransformNode") !== -1 || className.indexOf("Mesh") !== -1) {
  53897. var transformNode = entity;
  53898. 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 }));
  53899. }
  53900. if (className === "MultiMaterial") {
  53901. var material = entity;
  53902. 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 }));
  53903. }
  53904. if (className === "StandardMaterial") {
  53905. var material = entity;
  53906. 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 }));
  53907. }
  53908. if (className === "NodeMaterial") {
  53909. var material = entity;
  53910. 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 }));
  53911. }
  53912. if (className === "PBRMaterial") {
  53913. var material = entity;
  53914. 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 }));
  53915. }
  53916. if (className === "PBRMetallicRoughnessMaterial") {
  53917. var material = entity;
  53918. 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 }));
  53919. }
  53920. if (className === "PBRSpecularGlossinessMaterial") {
  53921. var material = entity;
  53922. 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 }));
  53923. }
  53924. if (className === "BackgroundMaterial") {
  53925. var material = entity;
  53926. 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 }));
  53927. }
  53928. if (className === "AnimationGroup") {
  53929. var animationGroup = entity;
  53930. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_animations_animationGroupPropertyGridComponent__WEBPACK_IMPORTED_MODULE_19__["AnimationGroupGridComponent"], { globalState: this.props.globalState, animationGroup: animationGroup, scene: this.props.scene, lockObject: this._lockObject, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  53931. }
  53932. if (className === "TargetedAnimation") {
  53933. var targetedAnimation = entity;
  53934. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyGrids_animations_targetedAnimationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_49__["TargetedAnimationGridComponent"], { globalState: this.props.globalState, targetedAnimation: targetedAnimation, scene: this.props.scene, lockObject: this._lockObject, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  53935. }
  53936. if (className.indexOf("Material") !== -1) {
  53937. var material = entity;
  53938. 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 }));
  53939. }
  53940. if (className.indexOf("DefaultRenderingPipeline") !== -1) {
  53941. var renderPipeline = entity;
  53942. 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 }));
  53943. }
  53944. if (className.indexOf("LensRenderingPipeline") !== -1) {
  53945. var renderPipeline = entity;
  53946. 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 }));
  53947. }
  53948. if (className.indexOf("SSAORenderingPipeline") !== -1) {
  53949. var renderPipeline = entity;
  53950. 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 }));
  53951. }
  53952. if (className.indexOf("SSAO2RenderingPipeline") !== -1) {
  53953. var renderPipeline = entity;
  53954. 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 }));
  53955. }
  53956. if (className.indexOf("RenderingPipeline") !== -1) {
  53957. var renderPipeline = entity;
  53958. 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 }));
  53959. }
  53960. if (className.indexOf("PostProcess") !== -1) {
  53961. var postProcess = entity;
  53962. 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 }));
  53963. }
  53964. if (className.indexOf("Texture") !== -1) {
  53965. var texture = entity;
  53966. 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 }));
  53967. }
  53968. if (className.indexOf("Skeleton") !== -1) {
  53969. var skeleton = entity;
  53970. 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 }));
  53971. }
  53972. if (className.indexOf("Bone") !== -1) {
  53973. var bone = entity;
  53974. 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 }));
  53975. }
  53976. if (className === "TextBlock") {
  53977. var textBlock = entity;
  53978. 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 }));
  53979. }
  53980. if (className === "InputText") {
  53981. var inputText = entity;
  53982. 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 }));
  53983. }
  53984. if (className === "ColorPicker") {
  53985. var colorPicker = entity;
  53986. 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 }));
  53987. }
  53988. if (className === "Image") {
  53989. var image = entity;
  53990. 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 }));
  53991. }
  53992. if (className === "Slider") {
  53993. var slider = entity;
  53994. 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 }));
  53995. }
  53996. if (className === "ImageBasedSlider") {
  53997. var imageBasedSlider = entity;
  53998. 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 }));
  53999. }
  54000. if (className === "Rectangle") {
  54001. var rectangle = entity;
  54002. 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 }));
  54003. }
  54004. if (className === "StackPanel") {
  54005. var stackPanel = entity;
  54006. 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 }));
  54007. }
  54008. if (className === "Grid") {
  54009. var grid = entity;
  54010. 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 }));
  54011. }
  54012. if (className === "ScrollViewer") {
  54013. var scrollViewer = entity;
  54014. 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 }));
  54015. }
  54016. if (className === "Ellipse") {
  54017. var ellipse = entity;
  54018. 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 }));
  54019. }
  54020. if (className === "Checkbox") {
  54021. var checkbox = entity;
  54022. 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 }));
  54023. }
  54024. if (className === "RadioButton") {
  54025. var radioButton = entity;
  54026. 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 }));
  54027. }
  54028. if (className === "Line") {
  54029. var line = entity;
  54030. 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 }));
  54031. }
  54032. if (entity._host) {
  54033. var control = entity;
  54034. 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 }));
  54035. }
  54036. }
  54037. return null;
  54038. };
  54039. return PropertyGridTabComponent;
  54040. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  54041. /***/ }),
  54042. /***/ "./components/actionTabs/tabs/propertyGrids/animations/addAnimation.tsx":
  54043. /*!******************************************************************************!*\
  54044. !*** ./components/actionTabs/tabs/propertyGrids/animations/addAnimation.tsx ***!
  54045. \******************************************************************************/
  54046. /*! exports provided: AddAnimation */
  54047. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54048. "use strict";
  54049. __webpack_require__.r(__webpack_exports__);
  54050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddAnimation", function() { return AddAnimation; });
  54051. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54052. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54053. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54054. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  54055. /* harmony import */ var babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Animations/animation */ "babylonjs/Misc/observable");
  54056. /* harmony import */ var babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__);
  54057. var AddAnimation = /** @class */ (function (_super) {
  54058. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AddAnimation, _super);
  54059. function AddAnimation(props) {
  54060. var _this = _super.call(this, props) || this;
  54061. _this.state = _this.setInitialState(_this.props.selectedToUpdate);
  54062. return _this;
  54063. }
  54064. AddAnimation.prototype.setInitialState = function (editingAnimation) {
  54065. var _a;
  54066. return {
  54067. animationName: editingAnimation ? editingAnimation.name : "",
  54068. animationTargetPath: "",
  54069. animationType: editingAnimation ? editingAnimation.dataType : babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_FLOAT,
  54070. loopMode: editingAnimation ? (_a = editingAnimation.loopMode) !== null && _a !== void 0 ? _a : babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONLOOPMODE_CYCLE : babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONLOOPMODE_CYCLE,
  54071. animationTargetProperty: editingAnimation ? editingAnimation.targetProperty : "",
  54072. isUpdating: editingAnimation ? true : false,
  54073. };
  54074. };
  54075. AddAnimation.prototype.componentWillReceiveProps = function (nextProps) {
  54076. if (nextProps.selectedToUpdate !== undefined && nextProps.selectedToUpdate !== this.props.selectedToUpdate) {
  54077. this.setState(this.setInitialState(nextProps.selectedToUpdate));
  54078. }
  54079. else {
  54080. if (nextProps.isOpen === true && nextProps.isOpen !== this.props.isOpen) {
  54081. this.setState(this.setInitialState());
  54082. }
  54083. }
  54084. };
  54085. AddAnimation.prototype.updateAnimation = function () {
  54086. if (this.props.selectedToUpdate !== undefined) {
  54087. var oldNameValue = this.props.selectedToUpdate.name;
  54088. this.props.selectedToUpdate.name = this.state.animationName;
  54089. this.raiseOnPropertyUpdated(oldNameValue, this.state.animationName, "name");
  54090. var oldLoopModeValue = this.props.selectedToUpdate.loopMode;
  54091. this.props.selectedToUpdate.loopMode = this.state.loopMode;
  54092. this.raiseOnPropertyUpdated(oldLoopModeValue, this.state.loopMode, "loopMode");
  54093. var oldTargetPropertyValue = this.props.selectedToUpdate.targetProperty;
  54094. this.props.selectedToUpdate.targetProperty = this.state.animationTargetProperty;
  54095. this.raiseOnPropertyUpdated(oldTargetPropertyValue, this.state.animationTargetProperty, "targetProperty");
  54096. this.props.finishedUpdate();
  54097. }
  54098. };
  54099. AddAnimation.prototype.getTypeAsString = function (type) {
  54100. switch (type) {
  54101. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_FLOAT:
  54102. return "Float";
  54103. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_QUATERNION:
  54104. return "Quaternion";
  54105. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_VECTOR3:
  54106. return "Vector3";
  54107. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_VECTOR2:
  54108. return "Vector2";
  54109. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_SIZE:
  54110. return "Size";
  54111. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_COLOR3:
  54112. return "Color3";
  54113. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_COLOR4:
  54114. return "Color4";
  54115. default:
  54116. return "Float";
  54117. }
  54118. };
  54119. AddAnimation.prototype.addAnimation = function () {
  54120. var _this = this;
  54121. var _a, _b;
  54122. if (this.state.animationName != "" && this.state.animationTargetProperty != "") {
  54123. var matchTypeTargetProperty = this.state.animationTargetProperty.split(".");
  54124. var animationDataType = this.state.animationType;
  54125. var matched = false;
  54126. if (matchTypeTargetProperty.length === 1) {
  54127. var match = this.props.entity[matchTypeTargetProperty[0]];
  54128. if (match) {
  54129. switch (match.constructor.name) {
  54130. case "Vector2":
  54131. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_VECTOR2 ? (matched = true) : (matched = false);
  54132. break;
  54133. case "Vector3":
  54134. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_VECTOR3 ? (matched = true) : (matched = false);
  54135. break;
  54136. case "Quaternion":
  54137. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_QUATERNION ? (matched = true) : (matched = false);
  54138. break;
  54139. case "Color3":
  54140. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_COLOR3 ? (matched = true) : (matched = false);
  54141. break;
  54142. case "Color4":
  54143. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_COLOR4 ? (matched = true) : (matched = false);
  54144. break;
  54145. case "Size":
  54146. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_SIZE ? (matched = true) : (matched = false);
  54147. break;
  54148. }
  54149. }
  54150. else {
  54151. this.props.setNotificationMessage("The selected entity doesn't have a " + matchTypeTargetProperty[0] + " property");
  54152. }
  54153. }
  54154. else if (matchTypeTargetProperty.length > 1) {
  54155. var matchProp = this.props.entity[matchTypeTargetProperty[0]];
  54156. if (matchProp) {
  54157. var match = matchProp[matchTypeTargetProperty[1]];
  54158. if (typeof match === "number") {
  54159. animationDataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_FLOAT ? (matched = true) : (matched = false);
  54160. }
  54161. }
  54162. }
  54163. if (matched) {
  54164. var alreadyAnimatedProperty = (_a = this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.find(function (anim) { return anim.targetProperty === _this.state.animationTargetProperty; }, this);
  54165. var alreadyAnimationName = (_b = this.props.entity.animations) === null || _b === void 0 ? void 0 : _b.find(function (anim) { return anim.name === _this.state.animationName; }, this);
  54166. if (alreadyAnimatedProperty) {
  54167. this.props.setNotificationMessage("The property \"" + this.state.animationTargetProperty + "\" already has an animation");
  54168. }
  54169. else if (alreadyAnimationName) {
  54170. this.props.setNotificationMessage("There is already an animation with the name: \"" + this.state.animationName + "\"");
  54171. }
  54172. else {
  54173. var animation = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"](this.state.animationName, this.state.animationTargetProperty, this.props.fps, animationDataType);
  54174. // Start with two keyframes
  54175. var keys = [];
  54176. animation.setKeys(keys);
  54177. if (this.props.entity.animations) {
  54178. var store = this.props.entity.animations;
  54179. var updatedCollection = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(this.props.entity.animations, [animation]);
  54180. this.raiseOnPropertyChanged(updatedCollection, store);
  54181. this.props.entity.animations = updatedCollection;
  54182. this.props.addedNewAnimation();
  54183. //Cleaning form fields
  54184. this.setState({
  54185. animationName: "",
  54186. animationTargetPath: "",
  54187. animationType: animationDataType,
  54188. loopMode: this.state.loopMode,
  54189. animationTargetProperty: "",
  54190. });
  54191. }
  54192. }
  54193. }
  54194. else {
  54195. this.props.setNotificationMessage("The property \"" + this.state.animationTargetProperty + "\" is not a \"" + this.getTypeAsString(this.state.animationType) + "\" type");
  54196. }
  54197. }
  54198. else {
  54199. this.props.setNotificationMessage("You need to provide a name and target property.");
  54200. }
  54201. };
  54202. AddAnimation.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  54203. if (!this.props.onPropertyChangedObservable) {
  54204. return;
  54205. }
  54206. this.props.onPropertyChangedObservable.notifyObservers({
  54207. object: this.props.entity,
  54208. property: "animations",
  54209. value: newValue,
  54210. initialValue: previousValue,
  54211. });
  54212. };
  54213. AddAnimation.prototype.raiseOnPropertyUpdated = function (newValue, previousValue, property) {
  54214. if (!this.props.onPropertyChangedObservable) {
  54215. return;
  54216. }
  54217. this.props.onPropertyChangedObservable.notifyObservers({
  54218. object: this.props.selectedToUpdate,
  54219. property: property,
  54220. value: newValue,
  54221. initialValue: previousValue,
  54222. });
  54223. };
  54224. AddAnimation.prototype.handleNameChange = function (event) {
  54225. event.preventDefault();
  54226. this.setState({ animationName: event.target.value.trim() });
  54227. };
  54228. AddAnimation.prototype.handlePathChange = function (event) {
  54229. event.preventDefault();
  54230. this.setState({ animationTargetPath: event.target.value.trim() });
  54231. };
  54232. AddAnimation.prototype.handleTypeChange = function (event) {
  54233. event.preventDefault();
  54234. this.setState({ animationType: parseInt(event.target.value) });
  54235. };
  54236. AddAnimation.prototype.handlePropertyChange = function (event) {
  54237. event.preventDefault();
  54238. this.setState({ animationTargetProperty: event.target.value });
  54239. };
  54240. AddAnimation.prototype.handleLoopModeChange = function (event) {
  54241. event.preventDefault();
  54242. this.setState({ loopMode: parseInt(event.target.value) });
  54243. };
  54244. AddAnimation.prototype.render = function () {
  54245. var _this = this;
  54246. var _a;
  54247. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "new-animation", style: { display: this.props.isOpen ? "block" : "none" } },
  54248. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sub-content" },
  54249. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label-input" },
  54250. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", null, "Display Name"),
  54251. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", value: this.state.animationName, onChange: function (e) { return _this.handleNameChange(e); } })),
  54252. this.state.isUpdating ? null : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label-input" },
  54253. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", null, "Property"),
  54254. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", value: this.state.animationTargetProperty, onChange: function (e) { return _this.handlePropertyChange(e); } }))),
  54255. this.state.isUpdating ? null : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label-input" },
  54256. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", null, "Type"),
  54257. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (e) { return _this.handleTypeChange(e); }, value: this.state.animationType },
  54258. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { value: babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONTYPE_FLOAT }, "Float")))),
  54259. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label-input" },
  54260. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", null, "Loop Mode"),
  54261. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (e) { return _this.handleLoopModeChange(e); }, value: this.state.loopMode },
  54262. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { value: babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONLOOPMODE_CYCLE }, "Cycle"),
  54263. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { value: babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONLOOPMODE_RELATIVE }, "Relative"),
  54264. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { value: babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].ANIMATIONLOOPMODE_CONSTANT }, "Constant"))),
  54265. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "confirm-buttons" },
  54266. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.state.isUpdating ? "Update" : "Create", onClick: this.state.isUpdating ? function () { return _this.updateAnimation(); } : function () { return _this.addAnimation(); } }),
  54267. ((_a = this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.length) !== 0 ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Cancel", onClick: this.props.close }) : null))));
  54268. };
  54269. return AddAnimation;
  54270. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54271. /***/ }),
  54272. /***/ "./components/actionTabs/tabs/propertyGrids/animations/anchorSvgPoint.tsx":
  54273. /*!********************************************************************************!*\
  54274. !*** ./components/actionTabs/tabs/propertyGrids/animations/anchorSvgPoint.tsx ***!
  54275. \********************************************************************************/
  54276. /*! exports provided: AnchorSvgPoint */
  54277. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54278. "use strict";
  54279. __webpack_require__.r(__webpack_exports__);
  54280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorSvgPoint", function() { return AnchorSvgPoint; });
  54281. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54282. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54283. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54284. var AnchorSvgPoint = /** @class */ (function (_super) {
  54285. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnchorSvgPoint, _super);
  54286. function AnchorSvgPoint(props) {
  54287. return _super.call(this, props) || this;
  54288. }
  54289. AnchorSvgPoint.prototype.select = function () {
  54290. this.props.selectControlPoint(this.props.type);
  54291. };
  54292. AnchorSvgPoint.prototype.render = function () {
  54293. var _this = this;
  54294. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  54295. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { x: this.props.control.x, y: this.props.control.y, style: { overflow: 'visible' }, onClick: function () { return _this.select(); } },
  54296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("circle", { type: this.props.type, "data-id": this.props.index, className: "draggable control-point " + (this.props.active ? 'active' : ''), cx: '0', cy: '0', r: '0.7%', stroke: 'white', strokeWidth: this.props.selected ? 0 : 0, fill: this.props.active ? '#e9db1e' : 'white' })),
  54297. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { className: "control-point " + (this.props.active ? 'active' : ''), x1: this.props.anchor.x, y1: this.props.anchor.y, x2: this.props.control.x, y2: this.props.control.y, strokeWidth: '0.8%' })));
  54298. };
  54299. return AnchorSvgPoint;
  54300. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54301. /***/ }),
  54302. /***/ "./components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent.tsx":
  54303. /*!***********************************************************************************************!*\
  54304. !*** ./components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent.tsx ***!
  54305. \***********************************************************************************************/
  54306. /*! exports provided: CurveScale, AnimationCurveEditorComponent */
  54307. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54308. "use strict";
  54309. __webpack_require__.r(__webpack_exports__);
  54310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CurveScale", function() { return CurveScale; });
  54311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationCurveEditorComponent", function() { return AnimationCurveEditorComponent; });
  54312. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54313. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54314. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54315. /* harmony import */ var babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Animations/animation */ "babylonjs/Misc/observable");
  54316. /* harmony import */ var babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__);
  54317. /* harmony import */ var _svgDraggableArea__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./svgDraggableArea */ "./components/actionTabs/tabs/propertyGrids/animations/svgDraggableArea.tsx");
  54318. /* harmony import */ var _timeline__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./timeline */ "./components/actionTabs/tabs/propertyGrids/animations/timeline.tsx");
  54319. /* harmony import */ var _notification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./notification */ "./components/actionTabs/tabs/propertyGrids/animations/notification.tsx");
  54320. /* harmony import */ var _graphActionsBar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./graphActionsBar */ "./components/actionTabs/tabs/propertyGrids/animations/graphActionsBar.tsx");
  54321. /* harmony import */ var _editorControls__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./editorControls */ "./components/actionTabs/tabs/propertyGrids/animations/editorControls.tsx");
  54322. /* harmony import */ var _animationListTree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./animationListTree */ "./components/actionTabs/tabs/propertyGrids/animations/animationListTree.tsx");
  54323. /* harmony import */ var _scale_label__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./scale-label */ "./components/actionTabs/tabs/propertyGrids/animations/scale-label.tsx");
  54324. __webpack_require__(/*! ./curveEditor.scss */ "./components/actionTabs/tabs/propertyGrids/animations/curveEditor.scss");
  54325. var CurveScale;
  54326. (function (CurveScale) {
  54327. CurveScale[CurveScale["float"] = 0] = "float";
  54328. CurveScale[CurveScale["radians"] = 1] = "radians";
  54329. CurveScale[CurveScale["degrees"] = 2] = "degrees";
  54330. CurveScale[CurveScale["integers"] = 3] = "integers";
  54331. CurveScale[CurveScale["default"] = 4] = "default";
  54332. })(CurveScale || (CurveScale = {}));
  54333. var AnimationCurveEditorComponent = /** @class */ (function (_super) {
  54334. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationCurveEditorComponent, _super);
  54335. function AnimationCurveEditorComponent(props) {
  54336. var _this = _super.call(this, props) || this;
  54337. _this._snippetUrl = "https://snippet.babylonjs.com";
  54338. // Height scale *Review this functionaliy
  54339. _this._heightScale = 100;
  54340. _this._scaleFactor = 2;
  54341. _this._currentScale = 10;
  54342. //private _canvasLength: number;
  54343. _this._svgKeyframes = [];
  54344. _this._isPlaying = false;
  54345. _this._entityName = _this.props.entity.id;
  54346. _this._editor = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  54347. _this._graphCanvas = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  54348. _this._svgCanvas = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  54349. _this._pixelFrameUnit = 10;
  54350. var initialSelection;
  54351. var initialPathData;
  54352. var initialLerpMode;
  54353. if (_this.props.entity instanceof babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) {
  54354. _this._isTargetedAnimation = true;
  54355. initialSelection = _this.props.entity.animation;
  54356. initialLerpMode = initialSelection !== undefined ? _this.analizeAnimationForLerp(initialSelection) : false;
  54357. initialPathData = initialSelection !== undefined ? _this.getPathData(initialSelection) : undefined;
  54358. }
  54359. else {
  54360. _this._isTargetedAnimation = false;
  54361. var hasAnimations = _this.props.entity.animations !== undefined || _this.props.entity.animations !== null ? _this.props.entity.animations : false;
  54362. initialSelection = hasAnimations !== false ? hasAnimations && hasAnimations[0] : null;
  54363. initialLerpMode = initialSelection !== undefined ? _this.analizeAnimationForLerp(_this.props.entity.animations && initialSelection) : false;
  54364. initialPathData = initialSelection && _this.getPathData(initialSelection);
  54365. initialPathData = initialPathData === null || initialPathData === undefined ? undefined : initialPathData;
  54366. }
  54367. var _canvasLength = 240;
  54368. _this.stopAnimation();
  54369. // will update this until we have a top scroll/zoom feature
  54370. var valueInd = [2, 1.8, 1.6, 1.4, 1.2, 1, 0.8, 0.6, 0.4, 0.2, 0];
  54371. _this.state = {
  54372. selected: initialSelection,
  54373. isOpen: true,
  54374. svgKeyframes: _this._svgKeyframes,
  54375. currentFrame: 0,
  54376. currentValue: 1,
  54377. isFlatTangentMode: false,
  54378. isTangentMode: false,
  54379. isBrokenMode: false,
  54380. lerpMode: initialLerpMode,
  54381. playheadOffset: _this._graphCanvas.current ? _this._graphCanvas.current.children[0].clientWidth / (_canvasLength * 10) : 0,
  54382. frameAxisLength: _this.setFrameAxis(_canvasLength),
  54383. valueAxisLength: new Array(10).fill(0).map(function (s, i) {
  54384. return { value: i * 10, label: valueInd[i] };
  54385. }),
  54386. notification: "",
  54387. currentPoint: undefined,
  54388. scale: 1,
  54389. playheadPos: 0,
  54390. isPlaying: false,
  54391. selectedPathData: initialPathData,
  54392. selectedCoordinate: 0,
  54393. animationLimit: _canvasLength / 2,
  54394. canvasLength: _canvasLength,
  54395. fps: 60,
  54396. isLooping: true,
  54397. panningY: 0,
  54398. panningX: 0,
  54399. repositionCanvas: false,
  54400. actionableKeyframe: { frame: undefined, value: undefined },
  54401. valueScale: CurveScale.default,
  54402. };
  54403. return _this;
  54404. }
  54405. AnimationCurveEditorComponent.prototype.componentDidMount = function () {
  54406. this.state.selected && this.selectAnimation(this.state.selected);
  54407. };
  54408. AnimationCurveEditorComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
  54409. if (prevState.currentFrame !== this.state.currentFrame) {
  54410. this.onCurrentFrameChangeChangeScene(this.state.currentFrame);
  54411. }
  54412. };
  54413. AnimationCurveEditorComponent.prototype.onCurrentFrameChangeChangeScene = function (value) {
  54414. if (!this._mainAnimatable) {
  54415. return;
  54416. }
  54417. this._mainAnimatable.goToFrame(value);
  54418. };
  54419. /**
  54420. * Notifications
  54421. * To add notification we set the state and clear to make the notification bar hide.
  54422. */
  54423. AnimationCurveEditorComponent.prototype.clearNotification = function () {
  54424. this.setState({ notification: "" });
  54425. };
  54426. /**
  54427. * Zoom and Scroll
  54428. * This section handles zoom and scroll
  54429. * of the graph area.
  54430. */
  54431. AnimationCurveEditorComponent.prototype.zoom = function (e) {
  54432. e.nativeEvent.stopImmediatePropagation();
  54433. var scaleX = 1;
  54434. if (Math.sign(e.deltaY) === -1) {
  54435. scaleX = this.state.scale; //- 0.01; //+ 0.01;
  54436. }
  54437. this.setState({ scale: scaleX });
  54438. };
  54439. AnimationCurveEditorComponent.prototype.setFrameAxis = function (currentLength) {
  54440. var halfNegative = new Array(currentLength).fill(0).map(function (s, i) {
  54441. return { value: -i * 10, label: -i };
  54442. });
  54443. var halfPositive = new Array(currentLength).fill(0).map(function (s, i) {
  54444. return { value: i * 10, label: i };
  54445. });
  54446. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(halfNegative, halfPositive);
  54447. };
  54448. AnimationCurveEditorComponent.prototype.setValueLines = function (type) {
  54449. var _this = this;
  54450. switch (type) {
  54451. case CurveScale.default:
  54452. this._heightScale = 100;
  54453. this._scaleFactor = 2;
  54454. break;
  54455. case CurveScale.float:
  54456. this._scaleFactor = 2.5;
  54457. this._heightScale = 120;
  54458. break;
  54459. case CurveScale.degrees:
  54460. this._scaleFactor = 50;
  54461. this._heightScale = 200;
  54462. break;
  54463. case CurveScale.integers:
  54464. this._scaleFactor = 320;
  54465. break;
  54466. case CurveScale.radians:
  54467. this._scaleFactor = 0.8;
  54468. break;
  54469. }
  54470. var lineV = this._heightScale / 10;
  54471. var initialValues = new Array(this._currentScale).fill(0).map(function (_, i) {
  54472. return {
  54473. value: i * lineV,
  54474. label: (_this._scaleFactor * ((_this._currentScale - i) / _this._currentScale)).toFixed(2),
  54475. };
  54476. });
  54477. initialValues.shift();
  54478. var valueHeight = Math.abs(Math.round(this.state.panningY / this._currentScale));
  54479. var sign = Math.sign(this.state.panningY);
  54480. var pannedValues = new Array(valueHeight).fill(0).map(function (s, i) {
  54481. return sign === -1
  54482. ? {
  54483. value: -i * lineV,
  54484. label: (i + _this._currentScale) / (_this._currentScale / _this._scaleFactor),
  54485. }
  54486. : {
  54487. value: (i + lineV) * _this._currentScale,
  54488. label: (i * -1) / (_this._currentScale / _this._scaleFactor),
  54489. };
  54490. });
  54491. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(initialValues, pannedValues);
  54492. };
  54493. AnimationCurveEditorComponent.prototype.getValueLabel = function (i) {
  54494. // Need to update this when Y axis grows
  54495. var label = 0;
  54496. if (i === 0) {
  54497. label = 2;
  54498. }
  54499. if (i === 50) {
  54500. label = 1;
  54501. }
  54502. else {
  54503. label = (100 - i * 2) * 0.01 + 1;
  54504. }
  54505. return label;
  54506. };
  54507. AnimationCurveEditorComponent.prototype.resetPlayheadOffset = function () {
  54508. if (this._graphCanvas && this._graphCanvas.current) {
  54509. this.setState({
  54510. playheadOffset: this._graphCanvas.current.children[0].clientWidth / (this.state.canvasLength * 10 * this.state.scale),
  54511. });
  54512. }
  54513. };
  54514. AnimationCurveEditorComponent.prototype.encodeCurveId = function (animationName, coordinate) {
  54515. return animationName + "_" + coordinate;
  54516. };
  54517. AnimationCurveEditorComponent.prototype.decodeCurveId = function (id) {
  54518. var order = parseInt(id.split("_")[3]);
  54519. var coordinate = parseInt(id.split("_")[2]);
  54520. return { order: order, coordinate: coordinate };
  54521. };
  54522. AnimationCurveEditorComponent.prototype.getKeyframeValueFromAnimation = function (id) {
  54523. var animation = this.state.selected;
  54524. var _a = this.decodeCurveId(id), order = _a.order, coordinate = _a.coordinate;
  54525. var keys = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(animation.getKeys());
  54526. var key = keys.find(function (_, i) { return i === order; });
  54527. if (key) {
  54528. var valueAsArray = this.getValueAsArray(animation.dataType, key.value);
  54529. return { frame: key === null || key === void 0 ? void 0 : key.frame, value: valueAsArray[coordinate] };
  54530. }
  54531. else {
  54532. return undefined;
  54533. }
  54534. };
  54535. /**
  54536. * Keyframe Manipulation
  54537. * This section handles events from SvgDraggableArea.
  54538. */
  54539. AnimationCurveEditorComponent.prototype.selectKeyframe = function (id, multiselect) {
  54540. var _a, _b, _c;
  54541. var frameValue = this.getKeyframeValueFromAnimation(id);
  54542. var selectedKeyFrame = (_b = (_a = this.state.svgKeyframes) === null || _a === void 0 ? void 0 : _a.find(function (kf) { return kf.id === id; })) === null || _b === void 0 ? void 0 : _b.selected;
  54543. if (!multiselect) {
  54544. this.deselectKeyframes();
  54545. }
  54546. var updatedKeyframes = (_c = this.state.svgKeyframes) === null || _c === void 0 ? void 0 : _c.map(function (kf) {
  54547. if (kf.id === id) {
  54548. kf.selected = !selectedKeyFrame;
  54549. }
  54550. return kf;
  54551. });
  54552. this.setState({
  54553. svgKeyframes: updatedKeyframes,
  54554. actionableKeyframe: frameValue !== null && frameValue !== void 0 ? frameValue : this.state.actionableKeyframe,
  54555. });
  54556. };
  54557. AnimationCurveEditorComponent.prototype.resetActionableKeyframe = function () {
  54558. this.setState({
  54559. actionableKeyframe: { frame: undefined, value: undefined },
  54560. });
  54561. };
  54562. AnimationCurveEditorComponent.prototype.selectedControlPoint = function (type, id) {
  54563. var _this = this;
  54564. var _a;
  54565. var updatedKeyframes = (_a = this.state.svgKeyframes) === null || _a === void 0 ? void 0 : _a.map(function (kf) {
  54566. if (kf.id === id) {
  54567. _this.setState({ isFlatTangentMode: false });
  54568. if (type === "left") {
  54569. kf.isLeftActive = !kf.isLeftActive;
  54570. kf.isRightActive = false;
  54571. }
  54572. if (type === "right") {
  54573. kf.isRightActive = !kf.isRightActive;
  54574. kf.isLeftActive = false;
  54575. }
  54576. }
  54577. return kf;
  54578. });
  54579. this.setState({ svgKeyframes: updatedKeyframes });
  54580. };
  54581. AnimationCurveEditorComponent.prototype.deselectKeyframes = function () {
  54582. var _a;
  54583. var updatedKeyframes = (_a = this.state.svgKeyframes) === null || _a === void 0 ? void 0 : _a.map(function (kf) {
  54584. kf.isLeftActive = false;
  54585. kf.isRightActive = false;
  54586. kf.selected = false;
  54587. return kf;
  54588. });
  54589. this.setState({
  54590. svgKeyframes: updatedKeyframes,
  54591. actionableKeyframe: { frame: undefined, value: undefined },
  54592. });
  54593. };
  54594. AnimationCurveEditorComponent.prototype.updateValuePerCoordinate = function (dataType, value, newValue, coordinate) {
  54595. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT) {
  54596. value = newValue;
  54597. }
  54598. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR2) {
  54599. switch (coordinate) {
  54600. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].x:
  54601. value.x = newValue;
  54602. break;
  54603. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].y:
  54604. value.y = newValue;
  54605. break;
  54606. }
  54607. }
  54608. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR3) {
  54609. switch (coordinate) {
  54610. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].x:
  54611. value.x = newValue;
  54612. break;
  54613. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].y:
  54614. value.y = newValue;
  54615. break;
  54616. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].z:
  54617. value.z = newValue;
  54618. break;
  54619. }
  54620. }
  54621. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION) {
  54622. switch (coordinate) {
  54623. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].x:
  54624. value.x = newValue;
  54625. break;
  54626. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].y:
  54627. value.y = newValue;
  54628. break;
  54629. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].z:
  54630. value.z = newValue;
  54631. break;
  54632. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].w:
  54633. value.w = newValue;
  54634. break;
  54635. }
  54636. }
  54637. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR3) {
  54638. switch (coordinate) {
  54639. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].r:
  54640. value.r = newValue;
  54641. break;
  54642. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].g:
  54643. value.g = newValue;
  54644. break;
  54645. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].b:
  54646. value.b = newValue;
  54647. break;
  54648. }
  54649. }
  54650. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR4) {
  54651. switch (coordinate) {
  54652. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].r:
  54653. value.r = newValue;
  54654. break;
  54655. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].g:
  54656. value.g = newValue;
  54657. break;
  54658. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].b:
  54659. value.b = newValue;
  54660. break;
  54661. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].a:
  54662. value.a = newValue;
  54663. break;
  54664. }
  54665. }
  54666. if (dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_SIZE) {
  54667. switch (coordinate) {
  54668. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].width:
  54669. value.width = newValue;
  54670. break;
  54671. case _animationListTree__WEBPACK_IMPORTED_MODULE_8__["SelectedCoordinate"].g:
  54672. value.height = newValue;
  54673. break;
  54674. }
  54675. }
  54676. return value;
  54677. };
  54678. AnimationCurveEditorComponent.prototype.renderPoints = function (updatedSvgKeyFrame, id) {
  54679. var animation = this.state.selected;
  54680. var _a = this.decodeCurveId(id), index = _a.order, coordinate = _a.coordinate;
  54681. var keys = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(animation.getKeys());
  54682. var newFrame = 0;
  54683. if (updatedSvgKeyFrame.keyframePoint.x !== 0) {
  54684. if (updatedSvgKeyFrame.keyframePoint.x > 0 && updatedSvgKeyFrame.keyframePoint.x < 1) {
  54685. newFrame = 1;
  54686. }
  54687. else {
  54688. newFrame = Math.round(updatedSvgKeyFrame.keyframePoint.x / this._pixelFrameUnit);
  54689. }
  54690. }
  54691. if (newFrame > keys[index].frame) {
  54692. if (index === keys.length - 1) {
  54693. keys[index].frame = newFrame;
  54694. }
  54695. else {
  54696. var nextKf = keys[index + 1];
  54697. if (nextKf) {
  54698. if (nextKf.frame <= newFrame) {
  54699. keys[index].frame = keys[index].frame;
  54700. }
  54701. else {
  54702. keys[index].frame = newFrame;
  54703. }
  54704. }
  54705. }
  54706. }
  54707. if (newFrame < keys[index].frame) {
  54708. if (index === 0) {
  54709. keys[index].frame = newFrame;
  54710. }
  54711. else {
  54712. var prevKf = keys[index - 1];
  54713. if (prevKf) {
  54714. if (prevKf.frame >= newFrame) {
  54715. keys[index].frame = keys[index].frame;
  54716. }
  54717. else {
  54718. keys[index].frame = newFrame;
  54719. }
  54720. }
  54721. }
  54722. }
  54723. var updatedValue = ((this._heightScale - updatedSvgKeyFrame.keyframePoint.y) / this._heightScale) * this._scaleFactor;
  54724. var updatedValueInCoordinate = this.updateValuePerCoordinate(animation.dataType, keys[index].value, updatedValue, coordinate);
  54725. keys[index].value = updatedValueInCoordinate;
  54726. this.updateLeftControlPoint(updatedSvgKeyFrame, keys[index], animation.dataType, coordinate);
  54727. this.updateRightControlPoint(updatedSvgKeyFrame, keys[index], animation.dataType, coordinate);
  54728. animation.setKeys(keys);
  54729. this.setState({
  54730. actionableKeyframe: { frame: newFrame, value: updatedValueInCoordinate },
  54731. });
  54732. this.selectAnimation(animation, coordinate);
  54733. };
  54734. AnimationCurveEditorComponent.prototype.updateLeftControlPoint = function (updatedSvgKeyFrame, key, dataType, coordinate) {
  54735. if (updatedSvgKeyFrame.isLeftActive) {
  54736. if (updatedSvgKeyFrame.leftControlPoint !== null) {
  54737. // Rotate
  54738. var newValue = ((this._heightScale - updatedSvgKeyFrame.leftControlPoint.y) / this._heightScale) * 2;
  54739. var keyframeValue = ((this._heightScale - updatedSvgKeyFrame.keyframePoint.y) / this._heightScale) * 2;
  54740. var updatedValue = keyframeValue - newValue;
  54741. key.inTangent = this.updateValuePerCoordinate(dataType, key.inTangent, updatedValue, coordinate);
  54742. if (!this.state.isBrokenMode) {
  54743. // Right control point if exists
  54744. if (updatedSvgKeyFrame.rightControlPoint !== null) {
  54745. // Sets opposite value
  54746. key.outTangent = key.inTangent * -1;
  54747. }
  54748. }
  54749. }
  54750. }
  54751. };
  54752. AnimationCurveEditorComponent.prototype.updateRightControlPoint = function (updatedSvgKeyFrame, key, dataType, coordinate) {
  54753. if (updatedSvgKeyFrame.isRightActive) {
  54754. if (updatedSvgKeyFrame.rightControlPoint !== null) {
  54755. // Rotate
  54756. var newValue = ((this._heightScale - updatedSvgKeyFrame.rightControlPoint.y) / this._heightScale) * 2;
  54757. var keyframeValue = ((this._heightScale - updatedSvgKeyFrame.keyframePoint.y) / this._heightScale) * 2;
  54758. var updatedValue = keyframeValue - newValue;
  54759. key.outTangent = this.updateValuePerCoordinate(dataType, key.outTangent, updatedValue, coordinate);
  54760. if (!this.state.isBrokenMode) {
  54761. if (updatedSvgKeyFrame.leftControlPoint !== null) {
  54762. // Sets opposite value
  54763. key.inTangent = key.outTangent * -1;
  54764. }
  54765. }
  54766. }
  54767. }
  54768. };
  54769. AnimationCurveEditorComponent.prototype.handleFrameChange = function (event) {
  54770. event.preventDefault();
  54771. var frame;
  54772. if (event.target.value === "") {
  54773. frame = "";
  54774. }
  54775. else {
  54776. frame = parseInt(event.target.value);
  54777. }
  54778. this.setState({
  54779. actionableKeyframe: {
  54780. frame: frame,
  54781. value: this.state.actionableKeyframe.value,
  54782. },
  54783. });
  54784. };
  54785. AnimationCurveEditorComponent.prototype.handleValueChange = function (event) {
  54786. event.preventDefault();
  54787. var value;
  54788. if (event.target.value !== undefined) {
  54789. if (event.target.value !== "") {
  54790. value = parseFloat(event.target.value);
  54791. }
  54792. else {
  54793. value = "";
  54794. }
  54795. this.setState({
  54796. actionableKeyframe: {
  54797. frame: this.state.actionableKeyframe.frame,
  54798. value: value,
  54799. },
  54800. });
  54801. }
  54802. };
  54803. AnimationCurveEditorComponent.prototype.setKeyframeValue = function () {
  54804. var _this = this;
  54805. var _a;
  54806. if (this.state.actionableKeyframe.frame !== "" && this.state.actionableKeyframe.frame !== undefined && this.state.actionableKeyframe.value !== "" && this.state.actionableKeyframe.value !== undefined) {
  54807. if (this.state.selected !== null) {
  54808. var currentSelected = (_a = this.state.svgKeyframes) === null || _a === void 0 ? void 0 : _a.find(function (kf) { return kf.selected; });
  54809. if (currentSelected) {
  54810. var _b = this.decodeCurveId(currentSelected.id), order_1 = _b.order, coordinate_1 = _b.coordinate;
  54811. var animation_1 = this.state.selected;
  54812. var keys = animation_1.getKeys();
  54813. var isKeyframe = keys.find(function (_, i) { return i === order_1; });
  54814. if (isKeyframe) {
  54815. var updatedKeys = keys.map(function (k, i) {
  54816. if (i === order_1) {
  54817. k.frame = _this.state.actionableKeyframe.frame;
  54818. var currentValue = _this.getValueAsArray(animation_1.dataType, k.value);
  54819. currentValue[coordinate_1] = _this.state.actionableKeyframe.value;
  54820. k.value = currentValue.length === 1 ? currentValue[0] : currentValue;
  54821. }
  54822. return k;
  54823. });
  54824. this.state.selected.setKeys(updatedKeys);
  54825. this.selectAnimation(animation_1);
  54826. }
  54827. }
  54828. }
  54829. }
  54830. };
  54831. AnimationCurveEditorComponent.prototype.setFlatTangent = function () {
  54832. var _this = this;
  54833. var _a;
  54834. var keyframes = (_a = this.state.svgKeyframes) === null || _a === void 0 ? void 0 : _a.filter(function (kf) { return kf.selected; }).map(function (k) { return _this.decodeCurveId(k.id); });
  54835. if (this.state.selected !== null) {
  54836. var currentAnimation_1 = this.state.selected;
  54837. var keys_1 = currentAnimation_1.getKeys();
  54838. keyframes === null || keyframes === void 0 ? void 0 : keyframes.forEach(function (k) {
  54839. var keyframe = keys_1[k.order];
  54840. keyframe.inTangent = _this.returnZero(currentAnimation_1.dataType);
  54841. keyframe.outTangent = _this.returnZero(currentAnimation_1.dataType);
  54842. });
  54843. currentAnimation_1.setKeys(keys_1);
  54844. this.selectAnimation(currentAnimation_1, this.state.selectedCoordinate);
  54845. }
  54846. };
  54847. // Use this for Bezier curve mode
  54848. AnimationCurveEditorComponent.prototype.setTangentMode = function () {
  54849. var _this = this;
  54850. if (this.state.selected !== null) {
  54851. var animation_2 = this.state.selected;
  54852. this.setState({ isTangentMode: !this.state.isTangentMode }, function () { return _this.selectAnimation(animation_2); });
  54853. }
  54854. };
  54855. AnimationCurveEditorComponent.prototype.setBrokenMode = function () {
  54856. var _this = this;
  54857. if (this.state.selected !== null) {
  54858. var animation_3 = this.state.selected;
  54859. this.setState({ isBrokenMode: !this.state.isBrokenMode }, function () { return _this.selectAnimation(animation_3); });
  54860. }
  54861. };
  54862. AnimationCurveEditorComponent.prototype.setLerpMode = function () {
  54863. var _this = this;
  54864. if (this.state.selected !== null) {
  54865. var animation_4 = this.state.selected;
  54866. this.setState({ lerpMode: !this.state.lerpMode }, function () { return _this.selectAnimation(animation_4); });
  54867. }
  54868. };
  54869. AnimationCurveEditorComponent.prototype.addKeyframeClick = function () {
  54870. var _a;
  54871. if (this.state.selected !== null) {
  54872. var currentAnimation = this.state.selected;
  54873. var keys = currentAnimation.getKeys();
  54874. var x_1 = this.state.currentFrame;
  54875. var existValue = keys.find(function (k) { return k.frame === x_1; });
  54876. if (existValue === undefined) {
  54877. var y = (_a = this.state.actionableKeyframe.value) !== null && _a !== void 0 ? _a : 1;
  54878. // check if value exists...
  54879. var arrayValue = [];
  54880. var emptyValue = this.returnZero(currentAnimation.dataType);
  54881. if (emptyValue) {
  54882. arrayValue = this.getValueAsArray(currentAnimation.dataType, emptyValue);
  54883. }
  54884. // calculate point between prevkeyframe and nextkeyframe.
  54885. var previousKFs = keys.filter(function (kf) { return kf.frame < x_1; });
  54886. var nextKFs = keys.filter(function (kf) { return kf.frame > x_1; });
  54887. var prev = previousKFs.slice(-1)[0];
  54888. var next = nextKFs[0];
  54889. if (prev === undefined && next) {
  54890. y = next.value;
  54891. }
  54892. if (prev && next === undefined) {
  54893. y = prev.value;
  54894. }
  54895. if (prev && next) {
  54896. var value1 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](prev.frame, prev.value);
  54897. var tangent1 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](prev.outTangent, prev.outTangent);
  54898. var value2 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](next.frame, next.value);
  54899. var tangent2 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](next.inTangent, next.inTangent);
  54900. var amount = (x_1 - prev.frame) / (next.frame - prev.frame);
  54901. var newV = babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"].Hermite(value1, tangent1, value2, tangent2, amount);
  54902. y = newV.y;
  54903. }
  54904. arrayValue[this.state.selectedCoordinate] = y;
  54905. var actualValue = this.setValueAsType(currentAnimation.dataType, arrayValue);
  54906. keys.push({
  54907. frame: x_1,
  54908. value: actualValue,
  54909. inTangent: emptyValue,
  54910. outTangent: emptyValue,
  54911. });
  54912. keys.sort(function (a, b) { return a.frame - b.frame; });
  54913. currentAnimation.setKeys(keys);
  54914. this.selectAnimation(currentAnimation, this.state.selectedCoordinate);
  54915. }
  54916. }
  54917. };
  54918. AnimationCurveEditorComponent.prototype.removeKeyframeClick = function () {
  54919. if (this.state.selected !== null) {
  54920. var currentAnimation = this.state.selected;
  54921. if (currentAnimation.dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT) {
  54922. var keys = currentAnimation.getKeys();
  54923. var x_2 = this.state.currentFrame;
  54924. var filteredKeys = keys.filter(function (kf) { return kf.frame !== x_2; });
  54925. currentAnimation.setKeys(filteredKeys);
  54926. this.selectAnimation(currentAnimation, this.state.selectedCoordinate);
  54927. }
  54928. }
  54929. };
  54930. AnimationCurveEditorComponent.prototype.removeKeyframes = function (points) {
  54931. if (this.state.selected !== null) {
  54932. var currentAnimation = this.state.selected;
  54933. var indexesToRemove_1 = points.map(function (p) {
  54934. return {
  54935. index: parseInt(p.id.split("_")[3]),
  54936. coordinate: parseInt(p.id.split("_")[2]),
  54937. };
  54938. });
  54939. if (currentAnimation.dataType === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT) {
  54940. var keys = currentAnimation.getKeys();
  54941. var filteredKeys = keys.filter(function (_, i) {
  54942. return !indexesToRemove_1.find(function (x) { return x.index === i; });
  54943. });
  54944. currentAnimation.setKeys(filteredKeys);
  54945. this.deselectKeyframes();
  54946. this.selectAnimation(currentAnimation, this.state.selectedCoordinate);
  54947. }
  54948. }
  54949. };
  54950. AnimationCurveEditorComponent.prototype.addKeyFrame = function (event) {
  54951. var _a;
  54952. event.preventDefault();
  54953. if (this.state.selected !== null) {
  54954. var svg = event.target;
  54955. var pt = svg.createSVGPoint();
  54956. pt.x = event.clientX;
  54957. pt.y = event.clientY;
  54958. var inverse = (_a = svg.getScreenCTM()) === null || _a === void 0 ? void 0 : _a.inverse();
  54959. var cursorpt = pt.matrixTransform(inverse);
  54960. var currentAnimation = this.state.selected;
  54961. var keys = currentAnimation.getKeys();
  54962. var height = 100;
  54963. var middle = height / 2;
  54964. var keyValue;
  54965. if (cursorpt.y < middle) {
  54966. keyValue = 1 + (100 / cursorpt.y) * 0.1;
  54967. }
  54968. if (cursorpt.y > middle) {
  54969. keyValue = 1 - (100 / cursorpt.y) * 0.1;
  54970. }
  54971. keys.push({ frame: cursorpt.x, value: keyValue });
  54972. currentAnimation.setKeys(keys);
  54973. this.selectAnimation(currentAnimation);
  54974. }
  54975. };
  54976. /**
  54977. * Curve Rendering Functions
  54978. * This section handles how to render curves.
  54979. */
  54980. AnimationCurveEditorComponent.prototype.setKeyframePointLinear = function (point, index) {
  54981. // here set the ID to a unique id
  54982. var svgKeyframe = {
  54983. keyframePoint: point,
  54984. rightControlPoint: null,
  54985. leftControlPoint: null,
  54986. id: index.toString(),
  54987. selected: false,
  54988. isLeftActive: false,
  54989. isRightActive: false,
  54990. };
  54991. this._svgKeyframes.push(svgKeyframe);
  54992. };
  54993. AnimationCurveEditorComponent.prototype.flatTangents = function (keyframes, dataType) {
  54994. var _this = this;
  54995. // Checks if Flat Tangent is active (tangents are set to zero)
  54996. var flattened;
  54997. if (this.state && this.state.isFlatTangentMode) {
  54998. flattened = keyframes.map(function (kf) {
  54999. if (kf.inTangent !== undefined) {
  55000. kf.inTangent = _this.returnZero(dataType);
  55001. }
  55002. if (kf.outTangent !== undefined) {
  55003. kf.outTangent = _this.returnZero(dataType);
  55004. }
  55005. return kf;
  55006. });
  55007. }
  55008. else {
  55009. flattened = keyframes;
  55010. }
  55011. this.setState({ isFlatTangentMode: false });
  55012. return flattened;
  55013. };
  55014. AnimationCurveEditorComponent.prototype.returnZero = function (dataType) {
  55015. switch (dataType) {
  55016. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT:
  55017. return 0;
  55018. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR3:
  55019. return babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero();
  55020. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR2:
  55021. return babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"].Zero();
  55022. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION:
  55023. return babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Quaternion"].Zero();
  55024. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR3:
  55025. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Color3"](0, 0, 0);
  55026. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR4:
  55027. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Color4"](0, 0, 0, 0);
  55028. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_SIZE:
  55029. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Size"](0, 0);
  55030. default:
  55031. return 0;
  55032. }
  55033. };
  55034. AnimationCurveEditorComponent.prototype.getValueAsArray = function (valueType, value) {
  55035. switch (valueType) {
  55036. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT:
  55037. return [value];
  55038. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR3:
  55039. return value.asArray();
  55040. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR2:
  55041. return value.asArray();
  55042. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION:
  55043. return value.asArray();
  55044. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR3:
  55045. return value.asArray();
  55046. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR4:
  55047. return value.asArray();
  55048. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_SIZE:
  55049. return [value.width, value.height];
  55050. default:
  55051. return [];
  55052. }
  55053. };
  55054. AnimationCurveEditorComponent.prototype.setValueAsType = function (valueType, arrayValue) {
  55055. switch (valueType) {
  55056. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT:
  55057. return arrayValue[0];
  55058. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR3:
  55059. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector3"](arrayValue[0], arrayValue[1], arrayValue[2]);
  55060. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR2:
  55061. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](arrayValue[0], arrayValue[1]);
  55062. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION:
  55063. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Quaternion"](arrayValue[0], arrayValue[1], arrayValue[2], arrayValue[3]);
  55064. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR3:
  55065. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Color3"](arrayValue[0], arrayValue[1], arrayValue[2]);
  55066. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR4:
  55067. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Color4"](arrayValue[0], arrayValue[1], arrayValue[2], arrayValue[3]);
  55068. case babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_SIZE:
  55069. return new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Size"](arrayValue[0], arrayValue[1]);
  55070. default:
  55071. return arrayValue[0];
  55072. }
  55073. };
  55074. AnimationCurveEditorComponent.prototype.getPathData = function (animation) {
  55075. var _this = this;
  55076. if (animation === null) {
  55077. return undefined;
  55078. }
  55079. var keyframes = animation.getKeys();
  55080. if (keyframes === undefined || keyframes.length === 0) {
  55081. return undefined;
  55082. }
  55083. else {
  55084. var _a = this.getAnimationData(animation), easingMode = _a.easingMode, easingType = _a.easingType, usesTangents = _a.usesTangents, valueType_1 = _a.valueType, highestFrame = _a.highestFrame, name_1 = _a.name, targetProperty = _a.targetProperty;
  55085. keyframes = this.flatTangents(keyframes, valueType_1);
  55086. var startKey = keyframes[0];
  55087. var middle = this._heightScale / this._scaleFactor; //?
  55088. var collection = [];
  55089. var colors = ["red", "green", "blue", "white", "#7a4ece"];
  55090. var startValue = this.getValueAsArray(valueType_1, startKey.value);
  55091. for (var d = 0; d < startValue.length; d++) {
  55092. var id = name_1 + "_" + targetProperty + "_" + d;
  55093. var curveColor = valueType_1 === babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT ? colors[4] : colors[d];
  55094. // START OF LINE/CURVE
  55095. var data = "M" + startKey.frame * this._pixelFrameUnit + ", " + (this._heightScale - startValue[d] * middle); //
  55096. if (this.state) {
  55097. if (usesTangents) {
  55098. data = this.curvePathWithTangents(keyframes, data, middle, valueType_1, d, id);
  55099. }
  55100. else {
  55101. if (easingType !== undefined && easingMode !== undefined) {
  55102. var easingFunction = animation.getEasingFunction();
  55103. data = this.curvePath(keyframes, data, middle, easingFunction);
  55104. }
  55105. else {
  55106. if (this.state !== undefined) {
  55107. var emptyTangents = keyframes.map(function (kf, i) {
  55108. if (i === 0) {
  55109. kf.outTangent = _this.returnZero(valueType_1);
  55110. }
  55111. else if (i === keyframes.length - 1) {
  55112. kf.inTangent = _this.returnZero(valueType_1);
  55113. }
  55114. else {
  55115. kf.inTangent = _this.returnZero(valueType_1);
  55116. kf.outTangent = _this.returnZero(valueType_1);
  55117. }
  55118. return kf;
  55119. });
  55120. data = this.curvePathWithTangents(emptyTangents, data, middle, valueType_1, d, id);
  55121. }
  55122. }
  55123. }
  55124. }
  55125. collection.push({
  55126. pathData: data,
  55127. pathLength: highestFrame,
  55128. domCurve: react__WEBPACK_IMPORTED_MODULE_1__["createRef"](),
  55129. color: curveColor,
  55130. id: id,
  55131. });
  55132. }
  55133. return collection;
  55134. }
  55135. };
  55136. AnimationCurveEditorComponent.prototype.getAnimationData = function (animation) {
  55137. // General Props
  55138. var loopMode = animation.loopMode;
  55139. var name = animation.name;
  55140. var blendingSpeed = animation.blendingSpeed;
  55141. var targetProperty = animation.targetProperty;
  55142. var targetPropertyPath = animation.targetPropertyPath;
  55143. var framesPerSecond = animation.framePerSecond;
  55144. var highestFrame = animation.getHighestFrame();
  55145. //let serialized = animation.serialize();
  55146. var usesTangents = animation.getKeys().find(function (kf) { return kf.hasOwnProperty("inTangent") || kf.hasOwnProperty("outTangent"); }) !== undefined ? true : false;
  55147. var valueType = animation.dataType;
  55148. // easing properties
  55149. var easingType, easingMode;
  55150. var easingFunction = animation.getEasingFunction();
  55151. if (easingFunction === undefined) {
  55152. easingType = undefined;
  55153. easingMode = undefined;
  55154. }
  55155. else {
  55156. easingType = easingFunction.constructor.name;
  55157. easingMode = easingFunction.getEasingMode();
  55158. }
  55159. return {
  55160. loopMode: loopMode,
  55161. name: name,
  55162. blendingSpeed: blendingSpeed,
  55163. targetPropertyPath: targetPropertyPath,
  55164. targetProperty: targetProperty,
  55165. framesPerSecond: framesPerSecond,
  55166. highestFrame: highestFrame,
  55167. usesTangents: usesTangents,
  55168. easingType: easingType,
  55169. easingMode: easingMode,
  55170. valueType: valueType,
  55171. };
  55172. };
  55173. AnimationCurveEditorComponent.prototype.curvePathWithTangents = function (keyframes, data, middle, type, coordinate, animationName) {
  55174. var _this = this;
  55175. keyframes.forEach(function (key, i) {
  55176. var _a;
  55177. // Create a unique id for curve
  55178. var curveId = _this.encodeCurveId(animationName, i);
  55179. // identify type of value and split...
  55180. var keyframe_valueAsArray = _this.getValueAsArray(type, key.value)[coordinate];
  55181. var svgKeyframe;
  55182. var outTangent;
  55183. var inTangent;
  55184. var defaultWeight = 5;
  55185. var defaultTangent = null;
  55186. if (i !== 0 || i !== keyframes.length - 1) {
  55187. defaultTangent = 0;
  55188. }
  55189. var inT = key.inTangent === undefined ? defaultTangent : _this.getValueAsArray(type, key.inTangent)[coordinate];
  55190. var outT = key.outTangent === undefined ? defaultTangent : _this.getValueAsArray(type, key.outTangent)[coordinate];
  55191. var y = _this._heightScale - keyframe_valueAsArray * middle;
  55192. if (inT !== null) {
  55193. var valueIn = y * inT + y;
  55194. inTangent = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](key.frame * _this._pixelFrameUnit - defaultWeight, valueIn);
  55195. }
  55196. else {
  55197. inTangent = null;
  55198. }
  55199. if (outT !== null) {
  55200. var valueOut = y * outT + y;
  55201. outTangent = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](key.frame * _this._pixelFrameUnit + defaultWeight, valueOut);
  55202. }
  55203. else {
  55204. outTangent = null;
  55205. }
  55206. if (i === 0) {
  55207. svgKeyframe = {
  55208. keyframePoint: new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](key.frame * _this._pixelFrameUnit, _this._heightScale - keyframe_valueAsArray * middle),
  55209. rightControlPoint: outTangent,
  55210. leftControlPoint: null,
  55211. id: curveId,
  55212. selected: false,
  55213. isLeftActive: false,
  55214. isRightActive: false,
  55215. };
  55216. if (outTangent !== null) {
  55217. data += " C" + outTangent.x + " " + outTangent.y + " ";
  55218. }
  55219. }
  55220. else {
  55221. svgKeyframe = {
  55222. keyframePoint: new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](key.frame * _this._pixelFrameUnit, _this._heightScale - keyframe_valueAsArray * middle),
  55223. rightControlPoint: outTangent,
  55224. leftControlPoint: inTangent,
  55225. id: curveId,
  55226. selected: false,
  55227. isLeftActive: false,
  55228. isRightActive: false,
  55229. };
  55230. if (outTangent !== null && inTangent !== null) {
  55231. data += " " + inTangent.x + " " + inTangent.y + " " + svgKeyframe.keyframePoint.x + " " + svgKeyframe.keyframePoint.y + " C" + outTangent.x + " " + outTangent.y + " ";
  55232. }
  55233. else if (inTangent !== null) {
  55234. data += " " + inTangent.x + " " + inTangent.y + " " + svgKeyframe.keyframePoint.x + " " + svgKeyframe.keyframePoint.y + " ";
  55235. }
  55236. }
  55237. if (_this.state) {
  55238. var prev = (_a = _this.state.svgKeyframes) === null || _a === void 0 ? void 0 : _a.find(function (kf) { return kf.id === curveId; });
  55239. if (prev) {
  55240. svgKeyframe.isLeftActive = prev === null || prev === void 0 ? void 0 : prev.isLeftActive;
  55241. svgKeyframe.isRightActive = prev === null || prev === void 0 ? void 0 : prev.isRightActive;
  55242. svgKeyframe.selected = prev === null || prev === void 0 ? void 0 : prev.selected;
  55243. }
  55244. }
  55245. _this._svgKeyframes.push(svgKeyframe);
  55246. }, this);
  55247. return data;
  55248. };
  55249. AnimationCurveEditorComponent.prototype.curvePath = function (keyframes, data, middle, easingFunction) {
  55250. var _this = this;
  55251. // This will get 1/4 and 3/4 of points in eased curve
  55252. var u = 0.25;
  55253. var v = 0.75;
  55254. keyframes.forEach(function (key, i) {
  55255. // identify type of value and split...
  55256. // Gets previous initial point of curve segment
  55257. var pointA = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](0, 0);
  55258. if (i === 0) {
  55259. pointA.x = key.frame;
  55260. pointA.y = _this._heightScale - key.value * middle;
  55261. _this.setKeyframePoint([pointA], i, keyframes.length);
  55262. }
  55263. else {
  55264. pointA.x = keyframes[i - 1].frame;
  55265. pointA.y = _this._heightScale - keyframes[i - 1].value * middle;
  55266. // Gets the end point of this curve segment
  55267. var pointB = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"](key.frame, _this._heightScale - key.value * middle);
  55268. // Get easing value of percentage to get the bezier control points below
  55269. var du = easingFunction.easeInCore(u); // What to do here, when user edits the curve? Option 1: Modify the curve with the new control points as BezierEaseCurve(x,y,z,w)
  55270. var dv = easingFunction.easeInCore(v); // Option 2: Create a easeInCore function and adapt it with the new control points values... needs more revision.
  55271. // Direction of curve up/down
  55272. var yInt25 = 0;
  55273. if (pointB.y > pointA.y) {
  55274. // if pointB.y > pointA.y = goes down
  55275. yInt25 = (pointB.y - pointA.y) * du + pointA.y;
  55276. }
  55277. else if (pointB.y < pointA.y) {
  55278. // if pointB.y < pointA.y = goes up
  55279. yInt25 = pointA.y - (pointA.y - pointB.y) * du;
  55280. }
  55281. var yInt75 = 0;
  55282. if (pointB.y > pointA.y) {
  55283. yInt75 = (pointB.y - pointA.y) * dv + pointA.y;
  55284. }
  55285. else if (pointB.y < pointA.y) {
  55286. yInt75 = pointA.y - (pointA.y - pointB.y) * dv;
  55287. }
  55288. // Intermediate points in curve
  55289. var intermediatePoint25 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]((pointB.x - pointA.x) * u + pointA.x, yInt25);
  55290. var intermediatePoint75 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]((pointB.x - pointA.x) * v + pointA.x, yInt75);
  55291. // Gets the four control points of bezier curve
  55292. var controlPoints = _this.interpolateControlPoints(pointA, intermediatePoint25, u, intermediatePoint75, v, pointB);
  55293. if (controlPoints !== undefined) {
  55294. _this.setKeyframePoint(controlPoints, i, keyframes.length);
  55295. data += " C" + controlPoints[1].x + " " + controlPoints[1].y + " " + controlPoints[2].x + " " + controlPoints[2].y + " " + controlPoints[3].x + " " + controlPoints[3].y;
  55296. }
  55297. }
  55298. });
  55299. return data;
  55300. };
  55301. AnimationCurveEditorComponent.prototype.setKeyframePoint = function (controlPoints, index, keyframesCount) {
  55302. var svgKeyframe;
  55303. if (index === 0) {
  55304. svgKeyframe = {
  55305. keyframePoint: controlPoints[0],
  55306. rightControlPoint: null,
  55307. leftControlPoint: null,
  55308. id: index.toString(),
  55309. selected: false,
  55310. isLeftActive: false,
  55311. isRightActive: false,
  55312. };
  55313. }
  55314. else {
  55315. this._svgKeyframes[index - 1].rightControlPoint = controlPoints[1];
  55316. svgKeyframe = {
  55317. keyframePoint: controlPoints[3],
  55318. rightControlPoint: null,
  55319. leftControlPoint: controlPoints[2],
  55320. id: index.toString(),
  55321. selected: false,
  55322. isLeftActive: false,
  55323. isRightActive: false,
  55324. };
  55325. }
  55326. this._svgKeyframes.push(svgKeyframe);
  55327. };
  55328. AnimationCurveEditorComponent.prototype.interpolateControlPoints = function (p0, p1, u, p2, v, p3) {
  55329. var a = 0.0;
  55330. var b = 0.0;
  55331. var c = 0.0;
  55332. var d = 0.0;
  55333. var det = 0.0;
  55334. var q1 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]();
  55335. var q2 = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]();
  55336. var controlA = p0;
  55337. var controlB = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]();
  55338. var controlC = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]();
  55339. var controlD = p3;
  55340. if (u <= 0.0 || u >= 1.0 || v <= 0.0 || v >= 1.0 || u >= v) {
  55341. return undefined;
  55342. }
  55343. a = 3 * (1 - u) * (1 - u) * u;
  55344. b = 3 * (1 - u) * u * u;
  55345. c = 3 * (1 - v) * (1 - v) * v;
  55346. d = 3 * (1 - v) * v * v;
  55347. det = a * d - b * c;
  55348. if (det == 0.0)
  55349. return undefined;
  55350. q1.x = p1.x - ((1 - u) * (1 - u) * (1 - u) * p0.x + u * u * u * p3.x);
  55351. q1.y = p1.y - ((1 - u) * (1 - u) * (1 - u) * p0.y + u * u * u * p3.y);
  55352. q2.x = p2.x - ((1 - v) * (1 - v) * (1 - v) * p0.x + v * v * v * p3.x);
  55353. q2.y = p2.y - ((1 - v) * (1 - v) * (1 - v) * p0.y + v * v * v * p3.y);
  55354. controlB.x = (d * q1.x - b * q2.x) / det;
  55355. controlB.y = (d * q1.y - b * q2.y) / det;
  55356. controlC.x = (-c * q1.x + a * q2.x) / det;
  55357. controlC.y = (-c * q1.y + a * q2.y) / det;
  55358. return [controlA, controlB, controlC, controlD];
  55359. };
  55360. AnimationCurveEditorComponent.prototype.deselectAnimation = function () {
  55361. this.setState({
  55362. selected: null,
  55363. svgKeyframes: [],
  55364. selectedPathData: [],
  55365. selectedCoordinate: 0,
  55366. });
  55367. };
  55368. /**
  55369. * Core functions
  55370. * This section handles main Curve Editor Functions.
  55371. */
  55372. AnimationCurveEditorComponent.prototype.selectAnimation = function (animation, coordinate) {
  55373. var _this = this;
  55374. var _a;
  55375. this._svgKeyframes = [];
  55376. var updatedPath;
  55377. var filteredSvgKeys;
  55378. var selectedCurve = 0;
  55379. if (coordinate === undefined) {
  55380. this.stopAnimation();
  55381. updatedPath = this.getPathData(animation);
  55382. }
  55383. else {
  55384. var curves = this.getPathData(animation);
  55385. updatedPath = [];
  55386. filteredSvgKeys = (_a = this._svgKeyframes) === null || _a === void 0 ? void 0 : _a.filter(function (curve) {
  55387. var id = parseInt(curve.id.split("_")[2]);
  55388. if (id === coordinate) {
  55389. return true;
  55390. }
  55391. else {
  55392. return false;
  55393. }
  55394. });
  55395. curves === null || curves === void 0 ? void 0 : curves.map(function (curve) {
  55396. var id = parseInt(curve.id.split("_")[2]);
  55397. if (id === coordinate) {
  55398. updatedPath.push(curve);
  55399. }
  55400. });
  55401. selectedCurve = coordinate;
  55402. }
  55403. // check for empty svgKeyframes, lastframe, selected
  55404. this.setState({
  55405. selected: animation,
  55406. svgKeyframes: coordinate !== undefined ? filteredSvgKeys : this._svgKeyframes,
  55407. selectedPathData: updatedPath,
  55408. selectedCoordinate: selectedCurve,
  55409. fps: animation.framePerSecond,
  55410. }, function () { return _this.setMainAnimatable(); });
  55411. };
  55412. AnimationCurveEditorComponent.prototype.setMainAnimatable = function () {
  55413. var _a;
  55414. if (this.state.selected) {
  55415. var target = this.props.entity;
  55416. if (this.props.entity instanceof babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) {
  55417. target = this.props.entity.target;
  55418. }
  55419. this.props.scene.stopAllAnimations();
  55420. if (((_a = this._mainAnimatable) === null || _a === void 0 ? void 0 : _a.target) !== target) {
  55421. var keys = this.state.selected.getKeys();
  55422. if (keys.length !== 0) {
  55423. var firstFrame = keys[0].frame;
  55424. var LastFrame = this.state.selected.getHighestFrame();
  55425. this._mainAnimatable = this.props.scene.beginAnimation(target, firstFrame, LastFrame, this.state.isLooping);
  55426. this._mainAnimatable.pause();
  55427. }
  55428. }
  55429. }
  55430. };
  55431. AnimationCurveEditorComponent.prototype.isAnimationPlaying = function () {
  55432. var target = this.props.entity;
  55433. if (this.props.entity instanceof babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) {
  55434. target = this.props.entity.target;
  55435. }
  55436. return this.props.scene.getAllAnimatablesByTarget(target).length > 0;
  55437. };
  55438. AnimationCurveEditorComponent.prototype.stopAnimation = function () {
  55439. var target = this.props.entity;
  55440. if (this.props.entity instanceof babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) {
  55441. target = this.props.entity.target;
  55442. }
  55443. this._isPlaying = this.props.scene.getAllAnimatablesByTarget(target).length > 0;
  55444. if (this._isPlaying) {
  55445. this.props.playOrPause && this.props.playOrPause();
  55446. }
  55447. };
  55448. AnimationCurveEditorComponent.prototype.setIsLooping = function () {
  55449. var _this = this;
  55450. this.setState({ isLooping: !this.state.isLooping, isPlaying: false }, function () { return _this.stopAnimation(); });
  55451. };
  55452. AnimationCurveEditorComponent.prototype.setFramesPerSecond = function (fps) {
  55453. var _this = this;
  55454. this.setState({ fps: fps, isPlaying: false }, function () { return _this.stopAnimation(); });
  55455. };
  55456. AnimationCurveEditorComponent.prototype.analizeAnimationForLerp = function (animation) {
  55457. if (animation !== null) {
  55458. var _a = this.getAnimationData(animation), easingMode = _a.easingMode, easingType = _a.easingType, usesTangents = _a.usesTangents;
  55459. if (easingType === undefined && easingMode === undefined && !usesTangents) {
  55460. return true;
  55461. }
  55462. else {
  55463. return false;
  55464. }
  55465. }
  55466. else {
  55467. return false;
  55468. }
  55469. };
  55470. /**
  55471. * Timeline
  55472. * This section controls the timeline.
  55473. */
  55474. AnimationCurveEditorComponent.prototype.changeCurrentFrame = function (frame) {
  55475. var currentValue;
  55476. this.stopAnimation();
  55477. if (this.state.selectedPathData) {
  55478. var selectedCurve = this.state.selectedPathData[this.state.selectedCoordinate].domCurve.current;
  55479. if (selectedCurve) {
  55480. var curveLength = selectedCurve.getTotalLength();
  55481. var frameValue = (frame * curveLength) / 100;
  55482. var currentP = selectedCurve.getPointAtLength(frameValue);
  55483. var middle = this._heightScale / 2;
  55484. var offset = ((currentP === null || currentP === void 0 ? void 0 : currentP.y) * this._heightScale - Math.pow(this._heightScale, 2) / 2) / middle / this._heightScale;
  55485. var unit = Math.sign(offset);
  55486. currentValue = unit === -1 ? Math.abs(offset + unit) : unit - offset;
  55487. this.setState({
  55488. currentFrame: frame,
  55489. currentValue: currentValue,
  55490. currentPoint: currentP,
  55491. isPlaying: false,
  55492. });
  55493. }
  55494. }
  55495. };
  55496. AnimationCurveEditorComponent.prototype.setCanvasPosition = function (frame) {
  55497. this.setState({ panningX: (frame - 10) * 10, repositionCanvas: true });
  55498. };
  55499. AnimationCurveEditorComponent.prototype.setCurrentFrame = function (direction) {
  55500. this.setState({
  55501. currentFrame: this.state.currentFrame + direction,
  55502. });
  55503. };
  55504. AnimationCurveEditorComponent.prototype.changeAnimationLimit = function (limit) {
  55505. var doubleLimit = limit * 2;
  55506. this.setState({
  55507. animationLimit: limit,
  55508. canvasLength: doubleLimit,
  55509. frameAxisLength: this.setFrameAxis(doubleLimit),
  55510. });
  55511. };
  55512. AnimationCurveEditorComponent.prototype.updateFrameInKeyFrame = function (frame, index) {
  55513. if (this.state && this.state.selected) {
  55514. var animation = this.state.selected;
  55515. var keys = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(animation.getKeys());
  55516. keys[index].frame = frame;
  55517. animation.setKeys(keys);
  55518. this.selectAnimation(animation);
  55519. }
  55520. };
  55521. AnimationCurveEditorComponent.prototype.playPause = function (direction) {
  55522. this.registerObs();
  55523. if (this.state.selected) {
  55524. var target = this.props.entity;
  55525. if (this.props.entity instanceof babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) {
  55526. target = this.props.entity.target;
  55527. }
  55528. if (this.state.isPlaying && direction === 0) {
  55529. this.props.scene.stopAnimation(target);
  55530. this.setState({ isPlaying: false });
  55531. this._isPlaying = false;
  55532. this.forceUpdate();
  55533. }
  55534. else {
  55535. if (this.state.isPlaying) {
  55536. this.props.scene.stopAnimation(target);
  55537. }
  55538. var keys = this.state.selected.getKeys();
  55539. var firstFrame = keys[0].frame;
  55540. var LastFrame = this.state.selected.getHighestFrame();
  55541. if (direction === 1) {
  55542. this._mainAnimatable = this.props.scene.beginAnimation(target, firstFrame, LastFrame, this.state.isLooping);
  55543. }
  55544. if (direction === -1) {
  55545. this._mainAnimatable = this.props.scene.beginAnimation(target, LastFrame, firstFrame, this.state.isLooping);
  55546. }
  55547. this._isPlaying = true;
  55548. this.setState({ isPlaying: true });
  55549. this.forceUpdate();
  55550. }
  55551. }
  55552. };
  55553. AnimationCurveEditorComponent.prototype.moveFrameTo = function (e) {
  55554. this.stopAnimation();
  55555. var svg = e.currentTarget;
  55556. var CTM = svg.getScreenCTM();
  55557. var position;
  55558. if (CTM) {
  55559. position = new babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector2"]((e.clientX - CTM.e) / CTM.a, (e.clientY - CTM.f) / CTM.d);
  55560. var selectedFrame = Math.round(position.x / this._pixelFrameUnit);
  55561. this.setState({ currentFrame: selectedFrame, isPlaying: false });
  55562. }
  55563. };
  55564. AnimationCurveEditorComponent.prototype.registerObs = function () {
  55565. var _this = this;
  55566. this._onBeforeRenderObserver = this.props.scene.onBeforeRenderObservable.add(function () {
  55567. if (!_this._isPlaying || !_this._mainAnimatable) {
  55568. return;
  55569. }
  55570. _this.setState({
  55571. currentFrame: Math.round(_this._mainAnimatable.masterFrame),
  55572. });
  55573. });
  55574. };
  55575. AnimationCurveEditorComponent.prototype.componentWillUnmount = function () {
  55576. if (this._onBeforeRenderObserver) {
  55577. this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  55578. this._onBeforeRenderObserver = null;
  55579. }
  55580. };
  55581. AnimationCurveEditorComponent.prototype.isCurrentFrame = function (frame) {
  55582. return this.state.currentFrame === frame;
  55583. };
  55584. AnimationCurveEditorComponent.prototype.render = function () {
  55585. var _this = this;
  55586. var _a;
  55587. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this._editor, id: "animation-curve-editor" },
  55588. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_notification__WEBPACK_IMPORTED_MODULE_5__["Notification"], { message: this.state.notification, open: this.state.notification !== "" ? true : false, close: function () { return _this.clearNotification(); } }),
  55589. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_graphActionsBar__WEBPACK_IMPORTED_MODULE_6__["GraphActionsBar"], { setKeyframeValue: function () { return _this.setKeyframeValue(); }, enabled: this.state.selected === null || this.state.selected === undefined ? false : true, title: this._entityName, close: this.props.close, actionableKeyframe: this.state.actionableKeyframe, handleFrameChange: function (e) { return _this.handleFrameChange(e); }, handleValueChange: function (e) { return _this.handleValueChange(e); }, addKeyframe: function () { return _this.addKeyframeClick(); }, removeKeyframe: function () { return _this.removeKeyframeClick(); }, brokenMode: this.state.isBrokenMode, brokeTangents: function () { return _this.setBrokenMode(); }, lerpMode: this.state.lerpMode, setLerpMode: function () { return _this.setLerpMode(); }, flatTangent: function () { return _this.setFlatTangent(); } }),
  55590. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "content" },
  55591. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "row" },
  55592. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_editorControls__WEBPACK_IMPORTED_MODULE_7__["EditorControls"], { deselectAnimation: function () { return _this.deselectAnimation(); }, selectAnimation: function (animation, axis) { return _this.selectAnimation(animation, axis); }, isTargetedAnimation: this._isTargetedAnimation, entity: this.props.entity, selected: this.state.selected, lockObject: this.props.lockObject, setNotificationMessage: function (message) {
  55593. _this.setState({ notification: message });
  55594. }, globalState: this.props.globalState, snippetServer: this._snippetUrl, fps: this.state.fps, setFps: function (fps) { return _this.setFramesPerSecond(fps); }, setIsLooping: function () { return _this.setIsLooping(); } }),
  55595. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this._graphCanvas, className: "graph-chart", onWheel: function (e) { return _this.zoom(e); } },
  55596. this.state.svgKeyframes && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_svgDraggableArea__WEBPACK_IMPORTED_MODULE_3__["SvgDraggableArea"], { ref: this._svgCanvas, selectKeyframe: function (id, multiselect) { return _this.selectKeyframe(id, multiselect); }, viewBoxScale: this.state.frameAxisLength.length, scale: this.state.scale, keyframeSvgPoints: this.state.svgKeyframes, removeSelectedKeyframes: function (points) { return _this.removeKeyframes(points); }, selectedControlPoint: function (type, id) { return _this.selectedControlPoint(type, id); }, deselectKeyframes: function () { return _this.deselectKeyframes(); }, updatePosition: function (updatedSvgKeyFrame, id) { return _this.renderPoints(updatedSvgKeyFrame, id); }, panningY: function (panningY) {
  55597. _this.setState({ panningY: panningY });
  55598. }, panningX: function (panningX) {
  55599. _this.setState({ panningX: panningX });
  55600. }, setCurrentFrame: function (direction) { return _this.setCurrentFrame(direction); }, positionCanvas: this.state.panningX, repositionCanvas: this.state.repositionCanvas, canvasPositionEnded: function () { return _this.setState({ repositionCanvas: false }); }, resetActionableKeyframe: function () { return _this.resetActionableKeyframe(); } }, (_a = this.state.selectedPathData) === null || _a === void 0 ? void 0 :
  55601. _a.map(function (curve, i) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("path", { key: i, ref: curve.domCurve, pathLength: curve.pathLength, id: "curve", d: curve.pathData, style: {
  55602. stroke: curve.color,
  55603. fill: "none",
  55604. strokeWidth: "0.5",
  55605. } })); }),
  55606. this.setValueLines(this.state.valueScale).map(function (line, i) {
  55607. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("text", { key: "value_inline_" + i, x: _this.state.panningX - 5, y: line.value, dx: "2", textAnchor: "middle", dy: "-1", style: {
  55608. fontSize: 0.18 * _this.state.scale + "em",
  55609. fontWeight: "bold",
  55610. textAlign: "center",
  55611. } }, line.label));
  55612. }),
  55613. this.setValueLines(this.state.valueScale).map(function (line, i) {
  55614. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { key: i, x1: -((_this.state.frameAxisLength.length * 10) / 2), y1: line.value, x2: _this.state.frameAxisLength.length * 10, y2: line.value });
  55615. }),
  55616. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("rect", { onClick: function (e) { return _this.moveFrameTo(e); }, x: -((this.state.frameAxisLength.length * 10) / 2), y: 91 + this.state.panningY + "%", width: this.state.frameAxisLength.length * 10, height: "9%", fill: "#222", style: { cursor: "pointer" } }),
  55617. this.state.frameAxisLength.map(function (f, i) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { key: i, x: "0", y: 96 + _this.state.panningY + "%", className: "frame-contain" },
  55618. f.label < 10 && f.label > -10 ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("text", { x: f.value, y: "-1.5px", dx: "-0.5px", style: { fontSize: 0.17 * _this.state.scale + "em" } }, f.label)) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("text", { x: f.value, y: "-1.5px", dx: "-1px", style: { fontSize: 0.17 * _this.state.scale + "em" } }, f.label)),
  55619. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { x1: f.value, y1: "0", x2: f.value, y2: "5%" }),
  55620. f.value % _this.state.fps === 0 && f.value !== 0 ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { x1: f.value, y1: "-100%", x2: f.value, y2: "5%" }) : null,
  55621. _this.state.selected && _this.isCurrentFrame(f.label) ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", null,
  55622. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { x1: f.value, y1: "0", x2: f.value, y2: "-100%", style: {
  55623. stroke: "white",
  55624. strokeWidth: 0.4,
  55625. } }),
  55626. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { x: f.value, y: "-1" },
  55627. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("circle", { className: "svg-playhead", cx: "0", cy: "0", r: "2%", fill: "white" }),
  55628. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("text", { x: "0", y: "1%", textAnchor: "middle", style: {
  55629. fontSize: 0.17 * _this.state.scale + "em",
  55630. pointerEvents: "none",
  55631. fontWeight: 600,
  55632. } }, f.label)))) : null)); }))),
  55633. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_scale_label__WEBPACK_IMPORTED_MODULE_9__["ScaleLabel"], { current: this.state.valueScale }))),
  55634. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "row-bottom" },
  55635. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_timeline__WEBPACK_IMPORTED_MODULE_4__["Timeline"], { currentFrame: this.state.currentFrame, playPause: function (direction) { return _this.playPause(direction); }, isPlaying: this.state.isPlaying, dragKeyframe: function (frame, index) { return _this.updateFrameInKeyFrame(frame, index); }, onCurrentFrameChange: function (frame) { return _this.changeCurrentFrame(frame); }, onAnimationLimitChange: function (limit) { return _this.changeAnimationLimit(limit); }, animationLimit: this.state.animationLimit, keyframes: this.state.selected && this.state.selected.getKeys(), selected: this.state.selected && this.state.selected.getKeys()[0], fps: this.state.fps, repositionCanvas: function (frame) { return _this.setCanvasPosition(frame); } })))));
  55636. };
  55637. return AnimationCurveEditorComponent;
  55638. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55639. /***/ }),
  55640. /***/ "./components/actionTabs/tabs/propertyGrids/animations/animationGroupPropertyGridComponent.tsx":
  55641. /*!*****************************************************************************************************!*\
  55642. !*** ./components/actionTabs/tabs/propertyGrids/animations/animationGroupPropertyGridComponent.tsx ***!
  55643. \*****************************************************************************************************/
  55644. /*! exports provided: AnimationGroupGridComponent */
  55645. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55646. "use strict";
  55647. __webpack_require__.r(__webpack_exports__);
  55648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroupGridComponent", function() { return AnimationGroupGridComponent; });
  55649. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55650. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55651. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55652. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  55653. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  55654. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  55655. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  55656. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  55657. var AnimationGroupGridComponent = /** @class */ (function (_super) {
  55658. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationGroupGridComponent, _super);
  55659. function AnimationGroupGridComponent(props) {
  55660. var _this = _super.call(this, props) || this;
  55661. var animationGroup = _this.props.animationGroup;
  55662. _this.state = { playButtonText: animationGroup.isPlaying ? "Pause" : "Play", currentFrame: 0 };
  55663. _this.connect(_this.props.animationGroup);
  55664. _this._onBeforeRenderObserver = _this.props.scene.onBeforeRenderObservable.add(function () {
  55665. _this.updateCurrentFrame(_this.props.animationGroup);
  55666. });
  55667. _this.timelineRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55668. return _this;
  55669. }
  55670. AnimationGroupGridComponent.prototype.disconnect = function (animationGroup) {
  55671. if (this._onAnimationGroupPlayObserver) {
  55672. animationGroup.onAnimationGroupPlayObservable.remove(this._onAnimationGroupPlayObserver);
  55673. this._onAnimationGroupPlayObserver = null;
  55674. }
  55675. if (this._onAnimationGroupPauseObserver) {
  55676. animationGroup.onAnimationGroupPauseObservable.remove(this._onAnimationGroupPauseObserver);
  55677. this._onAnimationGroupPauseObserver = null;
  55678. }
  55679. };
  55680. AnimationGroupGridComponent.prototype.connect = function (animationGroup) {
  55681. var _this = this;
  55682. this._onAnimationGroupPlayObserver = animationGroup.onAnimationGroupPlayObservable.add(function () {
  55683. _this.forceUpdate();
  55684. });
  55685. this._onAnimationGroupPauseObserver = animationGroup.onAnimationGroupPauseObservable.add(function () {
  55686. _this.forceUpdate();
  55687. });
  55688. this.updateCurrentFrame(animationGroup);
  55689. };
  55690. AnimationGroupGridComponent.prototype.updateCurrentFrame = function (animationGroup) {
  55691. var targetedAnimations = animationGroup.targetedAnimations;
  55692. if (targetedAnimations.length > 0) {
  55693. var runtimeAnimations = animationGroup.targetedAnimations[0].animation.runtimeAnimations;
  55694. if (runtimeAnimations.length > 0) {
  55695. this.setState({ currentFrame: runtimeAnimations[0].currentFrame });
  55696. }
  55697. else {
  55698. this.setState({ currentFrame: 0 });
  55699. }
  55700. }
  55701. };
  55702. AnimationGroupGridComponent.prototype.shouldComponentUpdate = function (nextProps) {
  55703. if (this.props.animationGroup !== nextProps.animationGroup) {
  55704. this.disconnect(this.props.animationGroup);
  55705. this.connect(nextProps.animationGroup);
  55706. }
  55707. return true;
  55708. };
  55709. AnimationGroupGridComponent.prototype.componentWillUnmount = function () {
  55710. this.disconnect(this.props.animationGroup);
  55711. if (this._onBeforeRenderObserver) {
  55712. this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  55713. this._onBeforeRenderObserver = null;
  55714. }
  55715. };
  55716. AnimationGroupGridComponent.prototype.playOrPause = function () {
  55717. var animationGroup = this.props.animationGroup;
  55718. if (animationGroup.isPlaying) {
  55719. this.setState({ playButtonText: "Play" });
  55720. animationGroup.pause();
  55721. }
  55722. else {
  55723. this.setState({ playButtonText: "Pause" });
  55724. this.props.scene.animationGroups.forEach(function (grp) { return grp.pause(); });
  55725. animationGroup.play(true);
  55726. }
  55727. };
  55728. AnimationGroupGridComponent.prototype.onCurrentFrameChange = function (value) {
  55729. var animationGroup = this.props.animationGroup;
  55730. if (!animationGroup.isPlaying) {
  55731. animationGroup.play(true);
  55732. animationGroup.goToFrame(value);
  55733. animationGroup.pause();
  55734. }
  55735. else {
  55736. animationGroup.goToFrame(value);
  55737. }
  55738. this.setState({ currentFrame: value });
  55739. };
  55740. AnimationGroupGridComponent.prototype.render = function () {
  55741. var _this = this;
  55742. var animationGroup = this.props.animationGroup;
  55743. var playButtonText = animationGroup.isPlaying ? "Pause" : "Play";
  55744. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  55745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  55746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: animationGroup.getClassName() }),
  55747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: animationGroup, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  55748. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONTROLS" },
  55749. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: playButtonText, onClick: function () { return _this.playOrPause(); } }),
  55750. 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 }),
  55751. 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); } })),
  55752. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "INFOS" },
  55753. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Animation count", value: animationGroup.targetedAnimations.length.toString() }),
  55754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "From", value: animationGroup.from.toFixed(2) }),
  55755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "To", value: animationGroup.to.toFixed(2) }),
  55756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: animationGroup.uniqueId.toString() }))));
  55757. };
  55758. return AnimationGroupGridComponent;
  55759. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55760. /***/ }),
  55761. /***/ "./components/actionTabs/tabs/propertyGrids/animations/animationListTree.tsx":
  55762. /*!***********************************************************************************!*\
  55763. !*** ./components/actionTabs/tabs/propertyGrids/animations/animationListTree.tsx ***!
  55764. \***********************************************************************************/
  55765. /*! exports provided: SelectedCoordinate, AnimationListTree */
  55766. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55767. "use strict";
  55768. __webpack_require__.r(__webpack_exports__);
  55769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectedCoordinate", function() { return SelectedCoordinate; });
  55770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationListTree", function() { return AnimationListTree; });
  55771. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55772. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55773. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55774. /* harmony import */ var babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Animations/animationGroup */ "babylonjs/Misc/observable");
  55775. /* harmony import */ var babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__);
  55776. /* harmony import */ var _lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/iconButtonLineComponent */ "./components/actionTabs/lines/iconButtonLineComponent.tsx");
  55777. var SelectedCoordinate;
  55778. (function (SelectedCoordinate) {
  55779. SelectedCoordinate[SelectedCoordinate["x"] = 0] = "x";
  55780. SelectedCoordinate[SelectedCoordinate["y"] = 1] = "y";
  55781. SelectedCoordinate[SelectedCoordinate["z"] = 2] = "z";
  55782. SelectedCoordinate[SelectedCoordinate["w"] = 3] = "w";
  55783. SelectedCoordinate[SelectedCoordinate["r"] = 0] = "r";
  55784. SelectedCoordinate[SelectedCoordinate["g"] = 1] = "g";
  55785. SelectedCoordinate[SelectedCoordinate["b"] = 2] = "b";
  55786. SelectedCoordinate[SelectedCoordinate["a"] = 3] = "a";
  55787. SelectedCoordinate[SelectedCoordinate["width"] = 0] = "width";
  55788. SelectedCoordinate[SelectedCoordinate["height"] = 1] = "height";
  55789. })(SelectedCoordinate || (SelectedCoordinate = {}));
  55790. var AnimationListTree = /** @class */ (function (_super) {
  55791. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationListTree, _super);
  55792. function AnimationListTree(props) {
  55793. var _this = _super.call(this, props) || this;
  55794. _this.state = {
  55795. selectedCoordinate: 0,
  55796. selectedAnimation: 0,
  55797. animationList: _this.generateList(),
  55798. };
  55799. return _this;
  55800. }
  55801. AnimationListTree.prototype.deleteAnimation = function () {
  55802. var currentSelected = this.props.selected;
  55803. if (this.props.entity instanceof babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) {
  55804. console.log("no animation remove allowed");
  55805. }
  55806. else {
  55807. var animations = this.props.entity.animations;
  55808. if (animations) {
  55809. var updatedAnimations = animations.filter(function (anim) { return anim !== currentSelected; });
  55810. this.props.entity.animations = updatedAnimations;
  55811. this.props.deselectAnimation();
  55812. this.setState({ animationList: this.generateList() });
  55813. }
  55814. }
  55815. };
  55816. AnimationListTree.prototype.generateList = function () {
  55817. var _a;
  55818. var animationList = this.props.entity.animations && ((_a = this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.map(function (animation, i) {
  55819. return {
  55820. index: i,
  55821. name: animation.name,
  55822. property: animation.targetProperty,
  55823. selected: false,
  55824. open: false,
  55825. };
  55826. }));
  55827. if ((animationList === null || animationList === void 0 ? void 0 : animationList.length) === 0) {
  55828. this.props.empty();
  55829. }
  55830. return animationList !== null && animationList !== void 0 ? animationList : null;
  55831. };
  55832. AnimationListTree.prototype.toggleProperty = function (index) {
  55833. if (this.state.animationList) {
  55834. var updated = this.state.animationList.map(function (a) {
  55835. if (a.index === index) {
  55836. a.open = !a.open;
  55837. }
  55838. return a;
  55839. });
  55840. this.setState({ animationList: updated });
  55841. }
  55842. };
  55843. AnimationListTree.prototype.setSelectedCoordinate = function (animation, coordinate, index) {
  55844. this.setState({ selectedCoordinate: coordinate, selectedAnimation: index });
  55845. this.props.selectAnimation(animation, coordinate);
  55846. };
  55847. AnimationListTree.prototype.coordinateItem = function (i, animation, coordinate, color, selectedCoordinate) {
  55848. var _this = this;
  55849. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { key: i + "_" + coordinate, id: i + "_" + coordinate, className: "property", style: { color: color }, onClick: function () { return _this.setSelectedCoordinate(animation, selectedCoordinate, i); } },
  55850. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "handle-indicator " + (this.state.selectedCoordinate === selectedCoordinate && this.state.selectedAnimation === i ? "show" : "hide") }),
  55851. animation.targetProperty,
  55852. " ",
  55853. coordinate.toUpperCase()));
  55854. };
  55855. AnimationListTree.prototype.typeAnimationItem = function (animation, i, childrenElements) {
  55856. var _this = this;
  55857. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { className: this.props.selected && this.props.selected.name === animation.name ? "property sub active" : "property sub", key: i },
  55858. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "animation-arrow " + (this.state.animationList && this.state.animationList[i].open ? "" : "flip"), onClick: function () { return _this.toggleProperty(i); } }),
  55859. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", { onClick: function () { return _this.props.selectAnimation(animation); } }, animation.targetProperty),
  55860. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__["IconButtonLineComponent"], { tooltip: "Options", icon: "small animation-options", onClick: function () { return _this.props.editAnimation(animation); } }),
  55861. !(this.props.entity instanceof babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) ? this.props.selected && this.props.selected.name === animation.name ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__["IconButtonLineComponent"], { tooltip: "Remove", icon: "small animation-delete", onClick: function () { return _this.deleteAnimation(); } }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "spacer" }) : null,
  55862. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", { className: "sub-list " + (this.state.animationList && this.state.animationList[i].open ? "" : "hidden") }, childrenElements.map(function (c) { return _this.coordinateItem(i, animation, c.id, c.color, c.coordinate); }))));
  55863. };
  55864. AnimationListTree.prototype.setListItem = function (animation, i) {
  55865. var _this = this;
  55866. switch (animation.dataType) {
  55867. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_FLOAT:
  55868. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { className: this.props.selected && this.props.selected.name === animation.name ? "property active" : "property", key: i, onClick: function () { return _this.props.selectAnimation(animation, 0); } },
  55869. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "animation-bullet" }),
  55870. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null, animation.targetProperty),
  55871. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__["IconButtonLineComponent"], { tooltip: "Options", icon: "small animation-options", onClick: function () { return _this.props.editAnimation(animation); } }),
  55872. !(this.props.entity instanceof babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["TargetedAnimation"]) ? this.props.selected && this.props.selected.name === animation.name ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__["IconButtonLineComponent"], { tooltip: "Remove", icon: "small animation-delete", onClick: function () { return _this.deleteAnimation(); } }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "spacer" }) : null));
  55873. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR2:
  55874. return this.typeAnimationItem(animation, i, [
  55875. { id: "x", color: "#db3e3e", coordinate: SelectedCoordinate.x },
  55876. { id: "y", color: "#51e22d", coordinate: SelectedCoordinate.y },
  55877. ]);
  55878. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_VECTOR3:
  55879. return this.typeAnimationItem(animation, i, [
  55880. { id: "x", color: "#db3e3e", coordinate: SelectedCoordinate.x },
  55881. { id: "y", color: "#51e22d", coordinate: SelectedCoordinate.y },
  55882. { id: "z", color: "#00a3ff", coordinate: SelectedCoordinate.z },
  55883. ]);
  55884. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION:
  55885. return this.typeAnimationItem(animation, i, [
  55886. { id: "x", color: "#db3e3e", coordinate: SelectedCoordinate.x },
  55887. { id: "y", color: "#51e22d", coordinate: SelectedCoordinate.y },
  55888. { id: "z", color: "#00a3ff", coordinate: SelectedCoordinate.z },
  55889. { id: "w", color: "#7a4ece", coordinate: SelectedCoordinate.w },
  55890. ]);
  55891. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR3:
  55892. return this.typeAnimationItem(animation, i, [
  55893. { id: "r", color: "#db3e3e", coordinate: SelectedCoordinate.r },
  55894. { id: "g", color: "#51e22d", coordinate: SelectedCoordinate.g },
  55895. { id: "b", color: "#00a3ff", coordinate: SelectedCoordinate.b },
  55896. ]);
  55897. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR4:
  55898. return this.typeAnimationItem(animation, i, [
  55899. { id: "r", color: "#db3e3e", coordinate: SelectedCoordinate.r },
  55900. { id: "g", color: "#51e22d", coordinate: SelectedCoordinate.g },
  55901. { id: "b", color: "#00a3ff", coordinate: SelectedCoordinate.b },
  55902. { id: "a", color: "#7a4ece", coordinate: SelectedCoordinate.a },
  55903. ]);
  55904. case babylonjs_Animations_animationGroup__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_SIZE:
  55905. return this.typeAnimationItem(animation, i, [
  55906. {
  55907. id: "width",
  55908. color: "#db3e3e",
  55909. coordinate: SelectedCoordinate.width,
  55910. },
  55911. {
  55912. id: "height",
  55913. color: "#51e22d",
  55914. coordinate: SelectedCoordinate.height,
  55915. },
  55916. ]);
  55917. default:
  55918. return null;
  55919. }
  55920. };
  55921. AnimationListTree.prototype.render = function () {
  55922. var _this = this;
  55923. var _a;
  55924. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "object-tree" },
  55925. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", null, this.props.isTargetedAnimation
  55926. ? this.setListItem(this.props.entity.animation, 0)
  55927. : this.props.entity.animations && ((_a = this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.map(function (animation, i) {
  55928. return _this.setListItem(animation, i);
  55929. })))));
  55930. };
  55931. return AnimationListTree;
  55932. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55933. /***/ }),
  55934. /***/ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx":
  55935. /*!************************************************************************************************!*\
  55936. !*** ./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx ***!
  55937. \************************************************************************************************/
  55938. /*! exports provided: AnimationGridComponent */
  55939. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55940. "use strict";
  55941. __webpack_require__.r(__webpack_exports__);
  55942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGridComponent", function() { return AnimationGridComponent; });
  55943. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55944. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55945. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55946. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  55947. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  55948. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  55949. /* harmony import */ var babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Animations/animationPropertiesOverride */ "babylonjs/Misc/observable");
  55950. /* harmony import */ var babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5__);
  55951. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  55952. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  55953. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  55954. /* harmony import */ var _animations_animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../animations/animationCurveEditorComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent.tsx");
  55955. /* harmony import */ var _popupComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../popupComponent */ "./components/popupComponent.tsx");
  55956. var AnimationGridComponent = /** @class */ (function (_super) {
  55957. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationGridComponent, _super);
  55958. function AnimationGridComponent(props) {
  55959. var _a;
  55960. var _this = _super.call(this, props) || this;
  55961. _this._animations = null;
  55962. _this._isPlaying = false;
  55963. _this._isCurveEditorOpen = false;
  55964. _this._animationControl = {
  55965. from: 0,
  55966. to: 0,
  55967. loop: false,
  55968. };
  55969. _this.state = { currentFrame: 0 };
  55970. var animatableAsAny = _this.props.animatable;
  55971. _this._ranges = animatableAsAny.getAnimationRanges
  55972. ? animatableAsAny.getAnimationRanges()
  55973. : [];
  55974. if (animatableAsAny.getAnimatables) {
  55975. var animatables = animatableAsAny.getAnimatables();
  55976. _this._animations = new Array();
  55977. animatables.forEach(function (animatable) {
  55978. var _a;
  55979. if (animatable.animations) {
  55980. (_a = _this._animations).push.apply(_a, animatable.animations);
  55981. }
  55982. });
  55983. if (animatableAsAny.animations) {
  55984. (_a = _this._animations).push.apply(_a, animatableAsAny.animations);
  55985. }
  55986. // Extract from and to
  55987. if (_this._animations && _this._animations.length) {
  55988. _this._animations.forEach(function (animation) {
  55989. var keys = animation.getKeys();
  55990. if (keys && keys.length > 0) {
  55991. if (keys[0].frame < _this._animationControl.from) {
  55992. _this._animationControl.from = keys[0].frame;
  55993. }
  55994. var lastKeyIndex = keys.length - 1;
  55995. if (keys[lastKeyIndex].frame > _this._animationControl.to) {
  55996. _this._animationControl.to = keys[lastKeyIndex].frame;
  55997. }
  55998. }
  55999. });
  56000. }
  56001. }
  56002. _this.timelineRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  56003. return _this;
  56004. }
  56005. AnimationGridComponent.prototype.playOrPause = function () {
  56006. var animatable = this.props.animatable;
  56007. this._isPlaying =
  56008. this.props.scene.getAllAnimatablesByTarget(animatable).length > 0;
  56009. if (this._isPlaying) {
  56010. this.props.scene.stopAnimation(this.props.animatable);
  56011. this._mainAnimatable = null;
  56012. }
  56013. else {
  56014. this._mainAnimatable = this.props.scene.beginAnimation(this.props.animatable, this._animationControl.from, this._animationControl.to, this._animationControl.loop);
  56015. }
  56016. this.forceUpdate();
  56017. };
  56018. AnimationGridComponent.prototype.componentDidMount = function () {
  56019. var _this = this;
  56020. this._onBeforeRenderObserver = this.props.scene.onBeforeRenderObservable.add(function () {
  56021. if (!_this._isPlaying || !_this._mainAnimatable) {
  56022. return;
  56023. }
  56024. _this.setState({ currentFrame: _this._mainAnimatable.masterFrame });
  56025. });
  56026. };
  56027. AnimationGridComponent.prototype.componentWillUnmount = function () {
  56028. if (this._onBeforeRenderObserver) {
  56029. this.props.scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  56030. this._onBeforeRenderObserver = null;
  56031. }
  56032. };
  56033. AnimationGridComponent.prototype.onCurrentFrameChange = function (value) {
  56034. if (!this._mainAnimatable) {
  56035. return;
  56036. }
  56037. this._mainAnimatable.goToFrame(value);
  56038. this.setState({ currentFrame: value });
  56039. };
  56040. AnimationGridComponent.prototype.onChangeFromOrTo = function () {
  56041. this.playOrPause();
  56042. if (this._isPlaying) {
  56043. this.playOrPause();
  56044. }
  56045. };
  56046. AnimationGridComponent.prototype.onOpenAnimationCurveEditor = function () {
  56047. this._isCurveEditorOpen = true;
  56048. };
  56049. AnimationGridComponent.prototype.onCloseAnimationCurveEditor = function (window) {
  56050. this._isCurveEditorOpen = false;
  56051. if (window !== null) {
  56052. window.close();
  56053. }
  56054. };
  56055. AnimationGridComponent.prototype.render = function () {
  56056. var _this = this;
  56057. var animatable = this.props.animatable;
  56058. var animatableAsAny = this.props.animatable;
  56059. var animatablesForTarget = this.props.scene.getAllAnimatablesByTarget(animatable);
  56060. this._isPlaying = animatablesForTarget.length > 0;
  56061. if (this._isPlaying && !this._mainAnimatable) {
  56062. this._mainAnimatable = animatablesForTarget[0];
  56063. if (this._mainAnimatable) {
  56064. this._animationControl.from = this._mainAnimatable.fromFrame;
  56065. this._animationControl.to = this._mainAnimatable.toFrame;
  56066. this._animationControl.loop = this._mainAnimatable.loopAnimation;
  56067. }
  56068. }
  56069. var animations = animatable.animations;
  56070. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56071. this._ranges.length > 0 && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: 'ANIMATION RANGES' }, this._ranges.map(function (range, i) {
  56072. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { key: range.name + i, label: range.name, onClick: function () {
  56073. _this._mainAnimatable = null;
  56074. _this.props.scene.beginAnimation(animatable, range.from, range.to, true);
  56075. } }));
  56076. }))),
  56077. animations && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: 'ANIMATIONS' },
  56079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: 'Count', value: animations.length.toString() }),
  56080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: 'Edit', onClick: function () { return _this.onOpenAnimationCurveEditor(); } }),
  56081. animations.map(function (anim, i) {
  56082. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { key: anim.targetProperty + i, label: '#' + i + ' >', value: anim.targetProperty }));
  56083. }),
  56084. this._isCurveEditorOpen && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_popupComponent__WEBPACK_IMPORTED_MODULE_10__["PopupComponent"], { id: 'curve-editor', title: 'Curve Animation Editor', size: { width: 1024, height: 490 }, onOpen: function (window) { }, onClose: function (window) {
  56085. return _this.onCloseAnimationCurveEditor(window);
  56086. } },
  56087. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_9__["AnimationCurveEditorComponent"], { scene: this.props.scene, entity: animatableAsAny, close: function (event) {
  56088. return _this.onCloseAnimationCurveEditor(event.view);
  56089. }, lockObject: this.props.lockObject, playOrPause: function () { return _this.playOrPause(); }, globalState: this.props.globalState })))),
  56090. animations.length > 0 && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: 'ANIMATION GENERAL CONTROL' },
  56091. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { lockObject: this.props.lockObject, isInteger: true, label: 'From', target: this._animationControl, propertyName: 'from', onChange: function () { return _this.onChangeFromOrTo(); } }),
  56092. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { lockObject: this.props.lockObject, isInteger: true, label: 'To', target: this._animationControl, propertyName: 'to', onChange: function () { return _this.onChangeFromOrTo(); } }),
  56093. 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; } }),
  56094. this._isPlaying && (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 -
  56095. this._animationControl.from) /
  56096. 1000.0, directValue: this.state.currentFrame, onInput: function (value) { return _this.onCurrentFrameChange(value); } })),
  56097. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this._isPlaying ? 'Stop' : 'Play', onClick: function () { return _this.playOrPause(); } }),
  56098. (this._ranges.length > 0 ||
  56099. (this._animations && this._animations.length > 0)) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56100. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: 'Enable override', onSelect: function (value) {
  56101. if (value) {
  56102. animatableAsAny.animationPropertiesOverride = new babylonjs_Animations_animationPropertiesOverride__WEBPACK_IMPORTED_MODULE_5__["AnimationPropertiesOverride"]();
  56103. animatableAsAny.animationPropertiesOverride.blendingSpeed = 0.05;
  56104. }
  56105. else {
  56106. animatableAsAny.animationPropertiesOverride = null;
  56107. }
  56108. _this.forceUpdate();
  56109. }, isSelected: function () {
  56110. return animatableAsAny.animationPropertiesOverride != null;
  56111. }, onValueChanged: function () { return _this.forceUpdate(); } }),
  56112. animatableAsAny.animationPropertiesOverride != null && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56113. 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 }),
  56114. 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 })))))))))));
  56115. };
  56116. return AnimationGridComponent;
  56117. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56118. /***/ }),
  56119. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/addAnimationIcon.svg":
  56120. /*!*****************************************************************************************!*\
  56121. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/addAnimationIcon.svg ***!
  56122. \*****************************************************************************************/
  56123. /*! no static exports found */
  56124. /***/ (function(module, exports) {
  56125. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='30' height='30'/%3E%3Cpath class='cls-2' d='M23,14.5v1H15.5V23h-1V15.5H7v-1h7.5V7h1v7.5Z'/%3E%3C/g%3E%3C/svg%3E"
  56126. /***/ }),
  56127. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationBulletIcon.svg":
  56128. /*!********************************************************************************************!*\
  56129. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationBulletIcon.svg ***!
  56130. \********************************************************************************************/
  56131. /*! no static exports found */
  56132. /***/ (function(module, exports) {
  56133. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%237a4ece;%7D.cls-2%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Ccircle class='cls-1' cx='5' cy='5' r='2.89'/%3E%3Crect class='cls-2' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E"
  56134. /***/ }),
  56135. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationDeleteIcon.svg":
  56136. /*!********************************************************************************************!*\
  56137. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationDeleteIcon.svg ***!
  56138. \********************************************************************************************/
  56139. /*! no static exports found */
  56140. /***/ (function(module, exports) {
  56141. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='20' height='20'/%3E%3Cpath class='cls-2' d='M10.71,10,15,14.29l-.71.71L10,10.71,5.71,15,5,14.29,9.29,10,5,5.71,5.71,5,10,9.29,14.29,5l.71.71Z'/%3E%3C/g%3E%3C/svg%3E"
  56142. /***/ }),
  56143. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationEndIcon.svg":
  56144. /*!*****************************************************************************************!*\
  56145. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationEndIcon.svg ***!
  56146. \*****************************************************************************************/
  56147. /*! no static exports found */
  56148. /***/ (function(module, exports) {
  56149. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23888;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpath class='cls-2' d='M10.29,23,3.5,28.05V17.9Zm.21-5.07V28.05L17.29,23Zm9-.9h-2V29h2Z'/%3E%3C/g%3E%3C/svg%3E"
  56150. /***/ }),
  56151. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationLastKeyHoverIcon.svg":
  56152. /*!**************************************************************************************************!*\
  56153. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationLastKeyHoverIcon.svg ***!
  56154. \**************************************************************************************************/
  56155. /*! no static exports found */
  56156. /***/ (function(module, exports) {
  56157. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23ccc;%7D.cls-3%7Bfill:%23ffc017;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='8.07 22.86 18.21 28.71 18.21 17 8.07 22.86'/%3E%3Crect class='cls-3' x='4.79' y='17' width='3' height='12' transform='translate(12.58 46) rotate(-180)'/%3E%3Crect class='cls-2' x='5.79' y='14' width='1' height='3'/%3E%3Crect class='cls-2' x='5.79' y='29' width='1' height='3'/%3E%3C/g%3E%3C/svg%3E"
  56158. /***/ }),
  56159. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationLastKeyIcon.svg":
  56160. /*!*********************************************************************************************!*\
  56161. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationLastKeyIcon.svg ***!
  56162. \*********************************************************************************************/
  56163. /*! no static exports found */
  56164. /***/ (function(module, exports) {
  56165. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23888;%7D.cls-3%7Bfill:%23ffc017;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='8.07 22.86 18.21 28.71 18.21 17 8.07 22.86'/%3E%3Crect class='cls-3' x='4.79' y='17' width='3' height='12' transform='translate(12.58 46) rotate(-180)'/%3E%3Crect class='cls-2' x='5.79' y='14' width='1' height='3'/%3E%3Crect class='cls-2' x='5.79' y='29' width='1' height='3'/%3E%3C/g%3E%3C/svg%3E"
  56166. /***/ }),
  56167. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationNextKeyHoverIcon.svg":
  56168. /*!**************************************************************************************************!*\
  56169. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationNextKeyHoverIcon.svg ***!
  56170. \**************************************************************************************************/
  56171. /*! no static exports found */
  56172. /***/ (function(module, exports) {
  56173. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23ccc;%7D.cls-3%7Bfill:%23ffc017;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='14.93 22.86 4.79 28.71 4.79 17 14.93 22.86'/%3E%3Crect class='cls-3' x='15.21' y='17' width='3' height='12'/%3E%3Crect class='cls-2' x='16.21' y='14' width='1' height='3'/%3E%3Crect class='cls-2' x='16.21' y='29' width='1' height='3'/%3E%3C/g%3E%3C/svg%3E"
  56174. /***/ }),
  56175. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationNextKeyIcon.svg":
  56176. /*!*********************************************************************************************!*\
  56177. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationNextKeyIcon.svg ***!
  56178. \*********************************************************************************************/
  56179. /*! no static exports found */
  56180. /***/ (function(module, exports) {
  56181. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23888;%7D.cls-3%7Bfill:%23ffc017;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='14.93 22.86 4.79 28.71 4.79 17 14.93 22.86'/%3E%3Crect class='cls-3' x='15.21' y='17' width='3' height='12'/%3E%3Crect class='cls-2' x='16.21' y='14' width='1' height='3'/%3E%3Crect class='cls-2' x='16.21' y='29' width='1' height='3'/%3E%3C/g%3E%3C/svg%3E"
  56182. /***/ }),
  56183. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationOptionsIcon.svg":
  56184. /*!*********************************************************************************************!*\
  56185. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationOptionsIcon.svg ***!
  56186. \*********************************************************************************************/
  56187. /*! no static exports found */
  56188. /***/ (function(module, exports) {
  56189. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='20' height='20'/%3E%3Cpath class='cls-2' d='M13.73,9.82v.36L15,11l-.78,1.88-1.46-.34-.25.25.34,1.46L11,15l-.79-1.27H9.82L9,15l-1.88-.78.34-1.46-.25-.25-1.46.34L5,11l1.27-.79V9.82L5,9l.78-1.88,1.46.34.25-.25L7.15,5.78,9,5l.79,1.27h.36L11,5l1.88.78-.34,1.46.25.25,1.46-.34L15,9Zm-.58.64a1.79,1.79,0,0,0,0-.23,1.69,1.69,0,0,0,0-.23,1.93,1.93,0,0,0,0-.24,2,2,0,0,0,0-.23l1.16-.72-.42-1-1.33.31a3.49,3.49,0,0,0-.31-.34l-.35-.32.31-1.33-1-.42-.73,1.16-.23,0H9.77l-.24,0L8.81,5.69l-1,.42L8.1,7.44a3.49,3.49,0,0,0-.34.31c-.11.11-.21.22-.32.35L6.11,7.79l-.42,1,1.16.73a1.79,1.79,0,0,0,0,.23,1.69,1.69,0,0,0,0,.23,1.93,1.93,0,0,0,0,.24,2,2,0,0,0,0,.23l-1.16.72.42,1,1.33-.31a3.49,3.49,0,0,0,.31.34l.35.32-.31,1.33,1,.42.73-1.16.23,0h.46l.24,0,.72,1.16,1-.42-.31-1.33a3.49,3.49,0,0,0,.34-.31c.11-.11.21-.22.32-.35l1.33.31.42-1ZM10,8.15a1.75,1.75,0,0,1,.72.15,1.77,1.77,0,0,1,1,1,2.1,2.1,0,0,1,.15.72,1.75,1.75,0,0,1-.15.72,1.77,1.77,0,0,1-1,1,2.1,2.1,0,0,1-.72.15,1.75,1.75,0,0,1-.72-.15,1.77,1.77,0,0,1-1-1A2.1,2.1,0,0,1,8.15,10a1.75,1.75,0,0,1,.15-.72,1.77,1.77,0,0,1,1-1A2.1,2.1,0,0,1,10,8.15Zm0,3.15a1.45,1.45,0,0,0,.51-.1,1.42,1.42,0,0,0,.41-.28,1.22,1.22,0,0,0,.27-.41,1.29,1.29,0,0,0,0-1,1.42,1.42,0,0,0-.28-.41,1.22,1.22,0,0,0-.41-.27,1.29,1.29,0,0,0-1,0,1.42,1.42,0,0,0-.41.28,1.22,1.22,0,0,0-.27.41,1.29,1.29,0,0,0,0,1,1.42,1.42,0,0,0,.28.41,1.22,1.22,0,0,0,.41.27A1.45,1.45,0,0,0,10,11.3Z'/%3E%3C/g%3E%3C/svg%3E"
  56190. /***/ }),
  56191. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayFwdHoverIcon.svg":
  56192. /*!**************************************************************************************************!*\
  56193. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayFwdHoverIcon.svg ***!
  56194. \**************************************************************************************************/
  56195. /*! no static exports found */
  56196. /***/ (function(module, exports) {
  56197. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23ccc;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='18.19 23.39 4.81 31.12 4.81 15.66 18.19 23.39'/%3E%3C/g%3E%3C/svg%3E"
  56198. /***/ }),
  56199. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayFwdIcon.svg":
  56200. /*!*********************************************************************************************!*\
  56201. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayFwdIcon.svg ***!
  56202. \*********************************************************************************************/
  56203. /*! no static exports found */
  56204. /***/ (function(module, exports) {
  56205. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23888;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='18.19 23.39 4.81 31.12 4.81 15.66 18.19 23.39'/%3E%3C/g%3E%3C/svg%3E"
  56206. /***/ }),
  56207. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayRevHoverIcon.svg":
  56208. /*!**************************************************************************************************!*\
  56209. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayRevHoverIcon.svg ***!
  56210. \**************************************************************************************************/
  56211. /*! no static exports found */
  56212. /***/ (function(module, exports) {
  56213. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23ccc;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='4.81 23.39 18.19 31.12 18.19 15.66 4.81 23.39'/%3E%3C/g%3E%3C/svg%3E"
  56214. /***/ }),
  56215. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayRevIcon.svg":
  56216. /*!*********************************************************************************************!*\
  56217. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationPlayRevIcon.svg ***!
  56218. \*********************************************************************************************/
  56219. /*! no static exports found */
  56220. /***/ (function(module, exports) {
  56221. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23888;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpolygon class='cls-2' points='4.81 23.39 18.19 31.12 18.19 15.66 4.81 23.39'/%3E%3C/g%3E%3C/svg%3E"
  56222. /***/ }),
  56223. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationStartIcon.svg":
  56224. /*!*******************************************************************************************!*\
  56225. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationStartIcon.svg ***!
  56226. \*******************************************************************************************/
  56227. /*! no static exports found */
  56228. /***/ (function(module, exports) {
  56229. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23888;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Cpath class='cls-2' d='M19.5,17.9V28.05L12.71,23ZM5.71,23l6.79,5.08V17.9ZM3.5,29h2V17h-2Z'/%3E%3C/g%3E%3C/svg%3E"
  56230. /***/ }),
  56231. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationStopIcon.svg":
  56232. /*!******************************************************************************************!*\
  56233. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationStopIcon.svg ***!
  56234. \******************************************************************************************/
  56235. /*! no static exports found */
  56236. /***/ (function(module, exports) {
  56237. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 45'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%238c2f2f;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='23' height='45'/%3E%3Crect class='cls-2' x='5' y='16.61' width='13' height='13'/%3E%3C/g%3E%3C/svg%3E"
  56238. /***/ }),
  56239. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/animationTriangleIcon.svg":
  56240. /*!**********************************************************************************************!*\
  56241. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/animationTriangleIcon.svg ***!
  56242. \**********************************************************************************************/
  56243. /*! no static exports found */
  56244. /***/ (function(module, exports) {
  56245. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23888;%7D.cls-2%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Cpolygon class='cls-1' points='5 7.81 8.25 2.19 1.75 2.19 5 7.81'/%3E%3Crect class='cls-2' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E"
  56246. /***/ }),
  56247. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/autoTangentIcon.svg":
  56248. /*!****************************************************************************************!*\
  56249. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/autoTangentIcon.svg ***!
  56250. \****************************************************************************************/
  56251. /*! no static exports found */
  56252. /***/ (function(module, exports) {
  56253. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M28,18.79a1.51,1.51,0,0,0-1.41,1H22l-1-3.86H19.9L19,19.79H13.41a1.5,1.5,0,1,0,0,1h5.32l-.79,3.28h.88l.6-2.58h2.11l.6,2.58h1l-.81-3.28h4.31a1.5,1.5,0,1,0,1.41-2Zm-8.41,1.9c.41-1.75.73-3.21.85-3.92h0c.1.65.42,1.92.88,3.92Z'/%3E%3C/g%3E%3C/svg%3E"
  56254. /***/ }),
  56255. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/babylonLogo.svg":
  56256. /*!************************************************************************************!*\
  56257. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/babylonLogo.svg ***!
  56258. \************************************************************************************/
  56259. /*! no static exports found */
  56260. /***/ (function(module, exports) {
  56261. 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:none;%7D.cls-2%7Bfill:%23e0684b;%7D.cls-3%7Bfill:%23bb464b;%7D.cls-4%7Bfill:%23e0ded8;%7D.cls-5%7Bfill:%23d5d2ca;%7D.cls-6%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='40' height='40'/%3E%3Cpolygon class='cls-2' points='32.91 13.78 29.54 11.84 26.29 13.71 29.66 15.65 32.91 13.78'/%3E%3Cpolygon class='cls-2' points='14.61 15.65 25.38 9.44 22.14 7.57 11.37 13.78 14.61 15.65'/%3E%3Cpolygon class='cls-2' points='18.77 21.95 22.14 23.89 25.51 21.95 22.14 20 18.77 21.95'/%3E%3Cpolygon class='cls-3' points='29.66 15.65 29.66 24.34 22.14 28.69 14.61 24.34 14.61 15.65 11.37 13.78 11.37 26.22 22.14 32.44 32.91 26.22 32.91 13.78 29.66 15.65'/%3E%3Cpolygon class='cls-3' points='22.14 16.11 18.77 18.05 18.77 21.95 22.14 20 25.51 21.95 25.51 18.05 22.14 16.11'/%3E%3Cpolygon class='cls-4' points='29.66 15.65 25.51 18.05 25.51 21.95 22.14 23.89 22.14 28.69 29.66 24.34 29.66 15.65'/%3E%3Cpolygon class='cls-5' points='14.61 15.65 18.77 18.05 18.77 21.95 22.14 23.89 22.14 28.69 14.61 24.34 14.61 15.65'/%3E%3Cpolygon class='cls-6' points='25.38 9.44 29.54 11.84 26.29 13.71 29.66 15.65 25.51 18.05 22.14 16.11 18.77 18.05 14.61 15.65 25.38 9.44'/%3E%3C/g%3E%3C/svg%3E"
  56262. /***/ }),
  56263. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/breakTangentIcon.svg":
  56264. /*!*****************************************************************************************!*\
  56265. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/breakTangentIcon.svg ***!
  56266. \*****************************************************************************************/
  56267. /*! no static exports found */
  56268. /***/ (function(module, exports) {
  56269. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M26.25,13.2a1.5,1.5,0,0,0-1.89,2.27L20.27,24A1.55,1.55,0,0,0,20,24l-.23,0-4.09-8.55a1.5,1.5,0,1,0-2.44-.22,1.51,1.51,0,0,0,1.57.72l4.08,8.53a1.5,1.5,0,1,0,2.27.05L25.23,16a1.5,1.5,0,0,0,1-2.77Z'/%3E%3C/g%3E%3C/svg%3E"
  56270. /***/ }),
  56271. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/checkboxCheckedIcon.svg":
  56272. /*!********************************************************************************************!*\
  56273. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/checkboxCheckedIcon.svg ***!
  56274. \********************************************************************************************/
  56275. /*! no static exports found */
  56276. /***/ (function(module, exports) {
  56277. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='20' height='20'/%3E%3Cpath class='cls-2' d='M15,5V15H5V5Zm-.63.63H5.61v8.78h8.78ZM8.75,13l-2.1-2.1.44-.44,1.66,1.65L12.91,7.9l.44.44Z'/%3E%3C/g%3E%3C/svg%3E"
  56278. /***/ }),
  56279. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/checkboxDefaultIcon.svg":
  56280. /*!********************************************************************************************!*\
  56281. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/checkboxDefaultIcon.svg ***!
  56282. \********************************************************************************************/
  56283. /*! no static exports found */
  56284. /***/ (function(module, exports) {
  56285. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='20' height='20'/%3E%3Cpath class='cls-2' d='M15,5V15H5V5Zm-.63.63H5.61v8.78h8.78Z'/%3E%3C/g%3E%3C/svg%3E"
  56286. /***/ }),
  56287. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/closeWindowIcon.svg":
  56288. /*!****************************************************************************************!*\
  56289. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/closeWindowIcon.svg ***!
  56290. \****************************************************************************************/
  56291. /*! no static exports found */
  56292. /***/ (function(module, exports) {
  56293. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M21.13,20,28,26.87,26.87,28,20,21.13,13.13,28,12,26.87,18.87,20,12,13.13,13.13,12,20,18.87,26.87,12,28,13.13Z'/%3E%3C/g%3E%3C/svg%3E"
  56294. /***/ }),
  56295. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/editIcon.svg":
  56296. /*!*********************************************************************************!*\
  56297. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/editIcon.svg ***!
  56298. \*********************************************************************************/
  56299. /*! no static exports found */
  56300. /***/ (function(module, exports) {
  56301. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='Layer_2' data-name='Layer 2'%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='30' height='30'/%3E%3Cpath class='cls-2' d='M23,9.3a2.65,2.65,0,0,1-.19,1,2.58,2.58,0,0,1-.57.86L12,21.45,7,22.68l1.24-4.94L18.56,7.45a2.54,2.54,0,0,1,.85-.57,2.7,2.7,0,0,1,1-.2,2.52,2.52,0,0,1,1,.21,2.48,2.48,0,0,1,.83.56,3,3,0,0,1,.56.83A2.52,2.52,0,0,1,23,9.3ZM9.58,17.84a3.46,3.46,0,0,1,1.42.87,3.56,3.56,0,0,1,.88,1.43l8.44-8.46L18,9.39ZM8.41,21.31,11,20.67a2.64,2.64,0,0,0-.25-.68,2.25,2.25,0,0,0-.43-.57A2.67,2.67,0,0,0,9.73,19a2.64,2.64,0,0,0-.68-.25ZM21,11l.38-.37a2.74,2.74,0,0,0,.32-.36A1.78,1.78,0,0,0,22,9.83a1.72,1.72,0,0,0,0-1.15,1.78,1.78,0,0,0-.35-.51A2,2,0,0,0,21,7.81a1.81,1.81,0,0,0-.63-.13,1.62,1.62,0,0,0-.52.08,1.53,1.53,0,0,0-.41.23,2.83,2.83,0,0,0-.37.32l-.37.37Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"
  56302. /***/ }),
  56303. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/flatTangentIcon.svg":
  56304. /*!****************************************************************************************!*\
  56305. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/flatTangentIcon.svg ***!
  56306. \****************************************************************************************/
  56307. /*! no static exports found */
  56308. /***/ (function(module, exports) {
  56309. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M28,18.5a1.51,1.51,0,0,0-1.41,1H13.41a1.5,1.5,0,1,0,0,1H26.59a1.5,1.5,0,1,0,1.41-2Z'/%3E%3C/g%3E%3C/svg%3E"
  56310. /***/ }),
  56311. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/frameIcon.svg":
  56312. /*!**********************************************************************************!*\
  56313. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/frameIcon.svg ***!
  56314. \**********************************************************************************/
  56315. /*! no static exports found */
  56316. /***/ (function(module, exports) {
  56317. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M25,19V17H23V16h3v3ZM15,17v2H14V16h3v1Zm11,4v3H23V23h2V21Zm-9,2v1H14V21h1v2Zm-5-9H28V26H12ZM27,25V15H13V25Z'/%3E%3C/g%3E%3C/svg%3E"
  56318. /***/ }),
  56319. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/keyActiveIcon.svg":
  56320. /*!**************************************************************************************!*\
  56321. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/keyActiveIcon.svg ***!
  56322. \**************************************************************************************/
  56323. /*! no static exports found */
  56324. /***/ (function(module, exports) {
  56325. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23111;%7D.cls-3%7Bfill:%23ffc017;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='10' height='10'/%3E%3Crect class='cls-2' x='2.67' y='2.67' width='4.66' height='4.66' transform='translate(-2.07 5) rotate(-45)'/%3E%3Cpath class='cls-3' d='M5,2.41,7.59,5,5,7.59,2.41,5,5,2.41M5,1,1,5,5,9,9,5,5,1Z'/%3E%3C/g%3E%3C/svg%3E"
  56326. /***/ }),
  56327. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/keyInactiveIcon.svg":
  56328. /*!****************************************************************************************!*\
  56329. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/keyInactiveIcon.svg ***!
  56330. \****************************************************************************************/
  56331. /*! no static exports found */
  56332. /***/ (function(module, exports) {
  56333. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23111;%7D.cls-3%7Bfill:%23aaa;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='10' height='10'/%3E%3Crect class='cls-2' x='2.67' y='2.67' width='4.66' height='4.66' transform='translate(-2.07 5) rotate(-45)'/%3E%3Cpath class='cls-3' d='M5,2.41,7.59,5,5,7.59,2.41,5,5,2.41M5,1,1,5,5,9,9,5,5,1Z'/%3E%3C/g%3E%3C/svg%3E"
  56334. /***/ }),
  56335. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/keySelectedIcon.svg":
  56336. /*!****************************************************************************************!*\
  56337. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/keySelectedIcon.svg ***!
  56338. \****************************************************************************************/
  56339. /*! no static exports found */
  56340. /***/ (function(module, exports) {
  56341. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23ffc017;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='10' height='10'/%3E%3Crect class='cls-2' x='2.17' y='2.17' width='5.66' height='5.66' transform='translate(-2.07 5) rotate(-45)'/%3E%3C/g%3E%3C/svg%3E"
  56342. /***/ }),
  56343. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/linearTangentIcon.svg":
  56344. /*!******************************************************************************************!*\
  56345. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/linearTangentIcon.svg ***!
  56346. \******************************************************************************************/
  56347. /*! no static exports found */
  56348. /***/ (function(module, exports) {
  56349. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M26.41,14.3l-.71-.71-10,10a1.5,1.5,0,1,0,.71.71Z'/%3E%3C/g%3E%3C/svg%3E"
  56350. /***/ }),
  56351. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/loadIcon.svg":
  56352. /*!*********************************************************************************!*\
  56353. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/loadIcon.svg ***!
  56354. \*********************************************************************************/
  56355. /*! no static exports found */
  56356. /***/ (function(module, exports) {
  56357. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='parameters'%3E%3Crect class='cls-1' width='30' height='30'/%3E%3Cpath class='cls-2' d='M21.78,19l-1.27-1.27V23h-1V17.71L18.24,19l-.71-.71L20,15.8l2.48,2.47ZM8.51,22h10v1h-11V7h8.71l4.29,4.29V15h-1V12h-4V8h-7Zm8-11H18.8L16.51,8.71Z'/%3E%3C/g%3E%3C/svg%3E"
  56358. /***/ }),
  56359. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/loopActiveIcon.svg":
  56360. /*!***************************************************************************************!*\
  56361. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/loopActiveIcon.svg ***!
  56362. \***************************************************************************************/
  56363. /*! no static exports found */
  56364. /***/ (function(module, exports) {
  56365. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='30' height='30'/%3E%3Cpath class='cls-2' d='M8,15a4.72,4.72,0,0,0,.12,1.06,5.31,5.31,0,0,0,.34,1A4.77,4.77,0,0,0,9,18a4.2,4.2,0,0,0,.74.78L9,19.49a5.89,5.89,0,0,1-.86-.94,6.15,6.15,0,0,1-.64-1.08,5.83,5.83,0,0,1-.4-1.2A6.59,6.59,0,0,1,7,15a6,6,0,0,1,.21-1.59A5.51,5.51,0,0,1,7.82,12a6.6,6.6,0,0,1,.94-1.22A5.53,5.53,0,0,1,10,9.82a6.53,6.53,0,0,1,1.44-.6A5.6,5.6,0,0,1,13,9h5.05L16.77,7.73,17.48,7,20,9.5,17.48,12l-.71-.71L18.05,10H13a4.91,4.91,0,0,0-1.33.18,5.25,5.25,0,0,0-1.19.5,4.47,4.47,0,0,0-1,.78,5.51,5.51,0,0,0-.78,1,4.86,4.86,0,0,0-.51,1.19A4.91,4.91,0,0,0,8,15Zm13-4.48a5.82,5.82,0,0,1,.86.93,6.15,6.15,0,0,1,.64,1.08,5.83,5.83,0,0,1,.4,1.2A6.77,6.77,0,0,1,23,15a6,6,0,0,1-.21,1.59A5.51,5.51,0,0,1,22.18,18a6.6,6.6,0,0,1-.94,1.22,5.53,5.53,0,0,1-1.21.94,6.53,6.53,0,0,1-1.44.6A5.6,5.6,0,0,1,17,21H12l1.28,1.27-.71.71L10.05,20.5,12.52,18l.71.71L12,20H17a4.91,4.91,0,0,0,1.33-.18,5.25,5.25,0,0,0,1.19-.5,4.47,4.47,0,0,0,1-.78,5.51,5.51,0,0,0,.78-1,4.86,4.86,0,0,0,.51-1.19A4.91,4.91,0,0,0,22,15a4.81,4.81,0,0,0-.12-1.07,6.07,6.07,0,0,0-.33-1A4.69,4.69,0,0,0,21,12a6.86,6.86,0,0,0-.74-.79Z'/%3E%3C/g%3E%3C/svg%3E"
  56366. /***/ }),
  56367. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/loopInactiveIcon.svg":
  56368. /*!*****************************************************************************************!*\
  56369. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/loopInactiveIcon.svg ***!
  56370. \*****************************************************************************************/
  56371. /*! no static exports found */
  56372. /***/ (function(module, exports) {
  56373. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='30' height='30'/%3E%3Cpolygon class='cls-2' points='15.01 10 18.05 10 16.77 11.27 17.48 11.98 19.95 9.5 17.48 7.02 16.77 7.73 18.05 9 14.6 9 15.01 10'/%3E%3Cpath class='cls-2' d='M8.46,17.08a5.31,5.31,0,0,1-.34-1A4.72,4.72,0,0,1,8,15a4.91,4.91,0,0,1,.18-1.33,4.86,4.86,0,0,1,.51-1.19,5.51,5.51,0,0,1,.78-1,4.47,4.47,0,0,1,1-.78,5.25,5.25,0,0,1,1.19-.5l.16,0-.39-.94h0a6.53,6.53,0,0,0-1.44.6,5.53,5.53,0,0,0-1.21.94A6.6,6.6,0,0,0,7.82,12a5.51,5.51,0,0,0-.61,1.43A6,6,0,0,0,7,15a6.59,6.59,0,0,0,.14,1.27,5.83,5.83,0,0,0,.4,1.2,6.15,6.15,0,0,0,.64,1.08,5.89,5.89,0,0,0,.86.94l.71-.71A4.2,4.2,0,0,1,9,18,4.77,4.77,0,0,1,8.46,17.08Z'/%3E%3Cpolygon class='cls-2' points='15.91 20 11.95 20 13.23 18.73 12.52 18.02 10.05 20.5 12.52 22.98 13.23 22.27 11.95 21 16.32 21 15.91 20'/%3E%3Cpath class='cls-2' d='M22.86,13.73a5.83,5.83,0,0,0-.4-1.2,6.15,6.15,0,0,0-.64-1.08,5.82,5.82,0,0,0-.86-.93l-.7.69A6.86,6.86,0,0,1,21,12a4.69,4.69,0,0,1,.55.91,6.07,6.07,0,0,1,.33,1A4.81,4.81,0,0,1,22,15a4.91,4.91,0,0,1-.18,1.33,4.86,4.86,0,0,1-.51,1.19,5.51,5.51,0,0,1-.78,1,4.47,4.47,0,0,1-1,.78,4.53,4.53,0,0,1-.54.27l.38.92a7,7,0,0,0,.67-.33,5.53,5.53,0,0,0,1.21-.94A6.6,6.6,0,0,0,22.18,18a5.51,5.51,0,0,0,.61-1.43A6,6,0,0,0,23,15,6.77,6.77,0,0,0,22.86,13.73Z'/%3E%3Crect class='cls-2' x='14.92' y='6.37' width='1' height='16.63' transform='translate(-4.44 7.02) rotate(-22.5)'/%3E%3C/g%3E%3C/svg%3E"
  56374. /***/ }),
  56375. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/moveIcon.svg":
  56376. /*!*********************************************************************************!*\
  56377. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/moveIcon.svg ***!
  56378. \*********************************************************************************/
  56379. /*! no static exports found */
  56380. /***/ (function(module, exports) {
  56381. 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:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='40' height='40'/%3E%3Cpath class='cls-2' d='M14.41,20.5,16,22.1l-.71.71L12.5,20l2.81-2.81.71.71-1.61,1.6H17.5v1ZM27.5,20l-2.78,2.77-.7-.7,1.57-1.57H22.5v-1h3.09L24,17.9l.71-.71Zm-9.57-4-.7-.7L20,12.5l2.81,2.81L22.1,16l-1.6-1.61V17.5h-1V14.41Zm4.17,8,.71.71L20,27.5l-2.81-2.81L17.9,24l1.6,1.61V22.5h1v3.09Z'/%3E%3C/g%3E%3C/svg%3E"
  56382. /***/ }),
  56383. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/newKeyIcon.svg":
  56384. /*!***********************************************************************************!*\
  56385. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/newKeyIcon.svg ***!
  56386. \***********************************************************************************/
  56387. /*! no static exports found */
  56388. /***/ (function(module, exports) {
  56389. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M20,15.41,24.59,20,20,24.59,15.41,20,20,15.41M20,14l-6,6,6,6,6-6-6-6Z'/%3E%3C/g%3E%3C/svg%3E"
  56390. /***/ }),
  56391. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/saveIcon.svg":
  56392. /*!*********************************************************************************!*\
  56393. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/saveIcon.svg ***!
  56394. \*********************************************************************************/
  56395. /*! no static exports found */
  56396. /***/ (function(module, exports) {
  56397. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D.cls-2%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='parameters'%3E%3Crect class='cls-1' width='30' height='30'/%3E%3Cpath class='cls-2' d='M21,8a1,1,0,0,1,.39.08,1,1,0,0,1,.31.21,1.21,1.21,0,0,1,.22.32A.91.91,0,0,1,22,9V22H9.79L8,20.2V9a.85.85,0,0,1,.08-.39,1,1,0,0,1,.21-.31,1.07,1.07,0,0,1,.32-.22A.85.85,0,0,1,9,8ZM11,14h8V9H11Zm6,4H12v3h1V19h1v2h3Zm4-9H20v6H10V9H9V19.79L10.2,21H11V17h7v4h3Z'/%3E%3C/g%3E%3C/svg%3E"
  56398. /***/ }),
  56399. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/scaleIcon.svg":
  56400. /*!**********************************************************************************!*\
  56401. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/scaleIcon.svg ***!
  56402. \**********************************************************************************/
  56403. /*! no static exports found */
  56404. /***/ (function(module, exports) {
  56405. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M16,13H13.71l2.64,2.65-.7.7L13,13.71V16H12V12h4Zm8-1h4v4H27V13.71l-2.65,2.64-.7-.7L26.29,13H24ZM15.65,23.65l.7.7L13.71,27H16v1H12V24h1v2.29ZM27,26.29V24h1v4H24V27h2.29l-2.64-2.65.7-.7ZM17,23V17h6v6Zm1-5v4h4V18Z'/%3E%3C/g%3E%3C/svg%3E"
  56406. /***/ }),
  56407. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/scrollbarHandleIcon.svg":
  56408. /*!********************************************************************************************!*\
  56409. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/scrollbarHandleIcon.svg ***!
  56410. \********************************************************************************************/
  56411. /*! no static exports found */
  56412. /***/ (function(module, exports) {
  56413. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 21'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23333;%7D.cls-2%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' x='5' y='3' width='2' height='15'/%3E%3Crect class='cls-1' x='9' y='3' width='2' height='15'/%3E%3Crect class='cls-1' x='13' y='3' width='2' height='15'/%3E%3Crect class='cls-2' width='20' height='21'/%3E%3C/g%3E%3C/svg%3E"
  56414. /***/ }),
  56415. /***/ "./components/actionTabs/tabs/propertyGrids/animations/assets/unifyTangentIcon.svg":
  56416. /*!*****************************************************************************************!*\
  56417. !*** ./components/actionTabs/tabs/propertyGrids/animations/assets/unifyTangentIcon.svg ***!
  56418. \*****************************************************************************************/
  56419. /*! no static exports found */
  56420. /***/ (function(module, exports) {
  56421. 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%3Cg id='UI'%3E%3Cpath class='cls-1' d='M27.94,18.28a1.49,1.49,0,0,0-1.41,1h-5l-1.62-1.63-1.62,1.63h-5a1.5,1.5,0,1,0,0,1h5l1.62,1.62,1.62-1.62h5a1.5,1.5,0,1,0,1.41-2Z'/%3E%3C/g%3E%3C/svg%3E"
  56422. /***/ }),
  56423. /***/ "./components/actionTabs/tabs/propertyGrids/animations/controls.tsx":
  56424. /*!**************************************************************************!*\
  56425. !*** ./components/actionTabs/tabs/propertyGrids/animations/controls.tsx ***!
  56426. \**************************************************************************/
  56427. /*! exports provided: Controls */
  56428. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56429. "use strict";
  56430. __webpack_require__.r(__webpack_exports__);
  56431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Controls", function() { return Controls; });
  56432. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56433. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56434. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56435. /* harmony import */ var _lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/iconButtonLineComponent */ "./components/actionTabs/lines/iconButtonLineComponent.tsx");
  56436. var Controls = /** @class */ (function (_super) {
  56437. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Controls, _super);
  56438. function Controls(props) {
  56439. var _this = _super.call(this, props) || this;
  56440. _this._sizeOfKeyframe = 5;
  56441. if (_this.props.selected !== null) {
  56442. _this.state = { selected: _this.props.selected, playingType: "" };
  56443. }
  56444. return _this;
  56445. }
  56446. Controls.prototype.playBackwards = function () {
  56447. this.setState({ playingType: "reverse" });
  56448. this.props.playPause(-1);
  56449. };
  56450. Controls.prototype.play = function () {
  56451. this.setState({ playingType: "forward" });
  56452. this.props.playPause(1);
  56453. };
  56454. Controls.prototype.pause = function () {
  56455. if (this.props.isPlaying) {
  56456. this.setState({ playingType: "" });
  56457. this.props.playPause(0);
  56458. }
  56459. };
  56460. Controls.prototype.moveToAnimationStart = function () {
  56461. var start = this.props.keyframes && this.props.keyframes[0].frame;
  56462. if (start !== undefined && typeof start === "number") {
  56463. this.props.onCurrentFrameChange(start);
  56464. this.props.repositionCanvas(start);
  56465. }
  56466. };
  56467. Controls.prototype.moveToAnimationEnd = function () {
  56468. var end = this.props.keyframes && this.props.keyframes[this.props.keyframes.length - 1].frame;
  56469. if (end !== undefined && typeof end === "number") {
  56470. this.props.onCurrentFrameChange(end);
  56471. this.props.repositionCanvas(end);
  56472. }
  56473. };
  56474. Controls.prototype.nextKeyframe = function () {
  56475. var _this = this;
  56476. if (this.props.keyframes !== null) {
  56477. var first = this.props.keyframes.find(function (kf) { return kf.frame > _this.props.currentFrame; });
  56478. if (first) {
  56479. this.props.onCurrentFrameChange(first.frame);
  56480. this.props.repositionCanvas(first.frame);
  56481. this.setState({ selected: first });
  56482. this.props.scrollable.current.scrollLeft = first.frame * this._sizeOfKeyframe;
  56483. }
  56484. }
  56485. };
  56486. Controls.prototype.previousKeyframe = function () {
  56487. var _this = this;
  56488. if (this.props.keyframes !== null) {
  56489. var keyframes = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(this.props.keyframes);
  56490. var first = keyframes.reverse().find(function (kf) { return kf.frame < _this.props.currentFrame; });
  56491. if (first) {
  56492. this.props.onCurrentFrameChange(first.frame);
  56493. this.props.repositionCanvas(first.frame);
  56494. this.setState({ selected: first });
  56495. this.props.scrollable.current.scrollLeft = -(first.frame * this._sizeOfKeyframe);
  56496. }
  56497. }
  56498. };
  56499. Controls.prototype.render = function () {
  56500. var _this = this;
  56501. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "controls" },
  56502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Animation Start", icon: "animation-start", onClick: function () { return _this.moveToAnimationStart(); } }),
  56503. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Previous Keyframe", icon: "animation-lastkey", onClick: function () { return _this.previousKeyframe(); } }),
  56504. this.props.isPlaying ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "stop-container" }, this.state.playingType === "reverse" ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56505. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Pause", icon: "animation-stop", onClick: function () { return _this.pause(); } }),
  56506. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Play Forward", icon: "animation-playfwd", onClick: function () { return _this.play(); } }))) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56507. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Play Reverse", icon: "animation-playrev", onClick: function () { return _this.playBackwards(); } }),
  56508. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Pause", icon: "animation-stop", onClick: function () { return _this.pause(); } }))))) : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "stop-container" },
  56509. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Play Reverse", icon: "animation-playrev", onClick: function () { return _this.playBackwards(); } }),
  56510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Play Forward", icon: "animation-playfwd", onClick: function () { return _this.play(); } }))),
  56511. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Next Keyframe", icon: "animation-nextkey", onClick: function () { return _this.nextKeyframe(); } }),
  56512. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: "Animation End", icon: "animation-end", onClick: function () { return _this.moveToAnimationEnd(); } })));
  56513. };
  56514. return Controls;
  56515. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56516. /***/ }),
  56517. /***/ "./components/actionTabs/tabs/propertyGrids/animations/curveEditor.scss":
  56518. /*!******************************************************************************!*\
  56519. !*** ./components/actionTabs/tabs/propertyGrids/animations/curveEditor.scss ***!
  56520. \******************************************************************************/
  56521. /*! no static exports found */
  56522. /***/ (function(module, exports, __webpack_require__) {
  56523. var api = __webpack_require__(/*! ../../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  56524. var content = __webpack_require__(/*! !../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js!./curveEditor.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/actionTabs/tabs/propertyGrids/animations/curveEditor.scss");
  56525. content = content.__esModule ? content.default : content;
  56526. if (typeof content === 'string') {
  56527. content = [[module.i, content, '']];
  56528. }
  56529. var options = {};
  56530. options.insert = "head";
  56531. options.singleton = false;
  56532. var update = api(content, options);
  56533. module.exports = content.locals || {};
  56534. /***/ }),
  56535. /***/ "./components/actionTabs/tabs/propertyGrids/animations/editorControls.tsx":
  56536. /*!********************************************************************************!*\
  56537. !*** ./components/actionTabs/tabs/propertyGrids/animations/editorControls.tsx ***!
  56538. \********************************************************************************/
  56539. /*! exports provided: EditorControls */
  56540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56541. "use strict";
  56542. __webpack_require__.r(__webpack_exports__);
  56543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditorControls", function() { return EditorControls; });
  56544. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56545. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56546. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56547. /* harmony import */ var _lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/iconButtonLineComponent */ "./components/actionTabs/lines/iconButtonLineComponent.tsx");
  56548. /* harmony import */ var _lines_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  56549. /* harmony import */ var _addAnimation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./addAnimation */ "./components/actionTabs/tabs/propertyGrids/animations/addAnimation.tsx");
  56550. /* harmony import */ var _animationListTree__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./animationListTree */ "./components/actionTabs/tabs/propertyGrids/animations/animationListTree.tsx");
  56551. /* harmony import */ var _loadsnippet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./loadsnippet */ "./components/actionTabs/tabs/propertyGrids/animations/loadsnippet.tsx");
  56552. /* harmony import */ var _saveSnippet__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./saveSnippet */ "./components/actionTabs/tabs/propertyGrids/animations/saveSnippet.tsx");
  56553. var EditorControls = /** @class */ (function (_super) {
  56554. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EditorControls, _super);
  56555. function EditorControls(props) {
  56556. var _a, _b;
  56557. var _this = _super.call(this, props) || this;
  56558. var count = _this.props.isTargetedAnimation
  56559. ? 1
  56560. : (_b = (_a = _this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
  56561. _this.state = {
  56562. isAnimationTabOpen: count === 0 ? true : false,
  56563. isEditTabOpen: count === 0 ? false : true,
  56564. isSaveTabOpen: false,
  56565. isLoadTabOpen: false,
  56566. isLoopActive: true,
  56567. animationsCount: count,
  56568. framesPerSecond: _this.props.fps,
  56569. snippetId: '',
  56570. selected: undefined,
  56571. };
  56572. return _this;
  56573. }
  56574. EditorControls.prototype.componentWillReceiveProps = function (newProps) {
  56575. if (newProps.fps !== this.props.fps) {
  56576. this.setState({ framesPerSecond: newProps.fps });
  56577. }
  56578. };
  56579. EditorControls.prototype.animationAdded = function () {
  56580. this.setState({
  56581. animationsCount: this.recountAnimations(),
  56582. isEditTabOpen: true,
  56583. isAnimationTabOpen: false,
  56584. });
  56585. };
  56586. EditorControls.prototype.finishedUpdate = function () {
  56587. this.setState({
  56588. isEditTabOpen: true,
  56589. isAnimationTabOpen: false,
  56590. selected: undefined,
  56591. });
  56592. };
  56593. EditorControls.prototype.recountAnimations = function () {
  56594. var _a, _b;
  56595. return (_b = (_a = this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
  56596. };
  56597. EditorControls.prototype.changeLoopBehavior = function () {
  56598. this.setState({
  56599. isLoopActive: !this.state.isLoopActive,
  56600. });
  56601. this.props.setIsLooping();
  56602. };
  56603. EditorControls.prototype.handleTabs = function (tab) {
  56604. var state = {
  56605. isAnimationTabOpen: true,
  56606. isLoadTabOpen: false,
  56607. isSaveTabOpen: false,
  56608. isEditTabOpen: false,
  56609. };
  56610. switch (tab) {
  56611. case 0:
  56612. state = {
  56613. isAnimationTabOpen: true,
  56614. isLoadTabOpen: false,
  56615. isSaveTabOpen: false,
  56616. isEditTabOpen: false,
  56617. };
  56618. break;
  56619. case 1:
  56620. state = {
  56621. isAnimationTabOpen: false,
  56622. isLoadTabOpen: true,
  56623. isSaveTabOpen: false,
  56624. isEditTabOpen: false,
  56625. };
  56626. break;
  56627. case 2:
  56628. state = {
  56629. isAnimationTabOpen: false,
  56630. isLoadTabOpen: false,
  56631. isSaveTabOpen: true,
  56632. isEditTabOpen: false,
  56633. };
  56634. break;
  56635. case 3:
  56636. state = {
  56637. isAnimationTabOpen: false,
  56638. isLoadTabOpen: false,
  56639. isSaveTabOpen: false,
  56640. isEditTabOpen: true,
  56641. };
  56642. break;
  56643. }
  56644. this.setState(state);
  56645. };
  56646. EditorControls.prototype.handleChangeFps = function (fps) {
  56647. this.props.setFps(fps);
  56648. this.setState({ framesPerSecond: fps });
  56649. if (this.props.selected) {
  56650. this.props.selected.framePerSecond = fps;
  56651. }
  56652. };
  56653. EditorControls.prototype.emptiedList = function () {
  56654. this.setState({
  56655. animationsCount: this.recountAnimations(),
  56656. isEditTabOpen: false,
  56657. isAnimationTabOpen: true,
  56658. });
  56659. };
  56660. EditorControls.prototype.animationsLoaded = function (numberOfAnimations) {
  56661. this.setState({
  56662. animationsCount: numberOfAnimations,
  56663. isEditTabOpen: true,
  56664. isAnimationTabOpen: false,
  56665. isLoadTabOpen: false,
  56666. isSaveTabOpen: false,
  56667. });
  56668. };
  56669. EditorControls.prototype.editAnimation = function (selected) {
  56670. this.setState({
  56671. selected: selected,
  56672. isEditTabOpen: false,
  56673. isAnimationTabOpen: true,
  56674. isLoadTabOpen: false,
  56675. isSaveTabOpen: false,
  56676. });
  56677. };
  56678. EditorControls.prototype.render = function () {
  56679. var _this = this;
  56680. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'animation-list' },
  56681. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'controls-header' },
  56682. this.props.isTargetedAnimation ? null : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { active: this.state.isAnimationTabOpen, tooltip: 'Add Animation', icon: 'medium add-animation', onClick: function () { return _this.handleTabs(0); } })),
  56683. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { active: this.state.isLoadTabOpen, tooltip: 'Load Animation', icon: 'medium load', onClick: function () { return _this.handleTabs(1); } }),
  56684. this.state.animationsCount === 0 ? null : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { active: this.state.isSaveTabOpen, tooltip: 'Save Animation', icon: 'medium save', onClick: function () { return _this.handleTabs(2); } })),
  56685. this.state.animationsCount === 0 ? null : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { active: this.state.isEditTabOpen, tooltip: 'Edit Animations', icon: 'medium animation-edit', onClick: function () { return _this.handleTabs(3); } })),
  56686. this.state.isEditTabOpen ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'input-fps' },
  56687. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: '', precision: 0, value: this.state.framesPerSecond, onChange: function (framesPerSecond) {
  56688. return _this.handleChangeFps(framesPerSecond);
  56689. } }),
  56690. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null, "fps"))) : null,
  56691. this.state.isEditTabOpen ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: 'Loop/Unloop', icon: "medium " + (this.state.isLoopActive
  56692. ? 'loop-active last'
  56693. : 'loop-inactive last'), onClick: function () { return _this.changeLoopBehavior(); } })) : null),
  56694. this.props.isTargetedAnimation ? null : (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_addAnimation__WEBPACK_IMPORTED_MODULE_4__["AddAnimation"], { isOpen: this.state.isAnimationTabOpen, close: function () {
  56695. _this.setState({ isAnimationTabOpen: false, isEditTabOpen: true });
  56696. }, entity: this.props.entity, setNotificationMessage: function (message) {
  56697. _this.props.setNotificationMessage(message);
  56698. }, addedNewAnimation: function () { return _this.animationAdded(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable, fps: this.state.framesPerSecond, selectedToUpdate: this.state.selected, finishedUpdate: function () { return _this.finishedUpdate(); } })),
  56699. this.state.isLoadTabOpen ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_loadsnippet__WEBPACK_IMPORTED_MODULE_6__["LoadSnippet"], { animationsLoaded: function (numberOfAnimations) {
  56700. return _this.animationsLoaded(numberOfAnimations);
  56701. }, lockObject: this.props.lockObject, animations: [], snippetServer: this.props.snippetServer, globalState: this.props.globalState, setSnippetId: function (id) { return _this.setState({ snippetId: id }); }, entity: this.props.entity, setNotificationMessage: this.props.setNotificationMessage })) : null,
  56702. this.state.isSaveTabOpen ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_saveSnippet__WEBPACK_IMPORTED_MODULE_7__["SaveSnippet"], { lockObject: this.props.lockObject, animations: this.props.entity.animations, snippetServer: this.props.snippetServer, globalState: this.props.globalState, snippetId: this.state.snippetId })) : null,
  56703. this.state.isEditTabOpen ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animationListTree__WEBPACK_IMPORTED_MODULE_5__["AnimationListTree"], { deselectAnimation: function () { return _this.props.deselectAnimation(); }, isTargetedAnimation: this.props.isTargetedAnimation, entity: this.props.entity, selected: this.props.selected, onPropertyChangedObservable: this.props.onPropertyChangedObservable, empty: function () { return _this.emptiedList(); }, selectAnimation: this.props.selectAnimation, editAnimation: function (selected) {
  56704. return _this.editAnimation(selected);
  56705. } })) : null));
  56706. };
  56707. return EditorControls;
  56708. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56709. /***/ }),
  56710. /***/ "./components/actionTabs/tabs/propertyGrids/animations/graphActionsBar.tsx":
  56711. /*!*********************************************************************************!*\
  56712. !*** ./components/actionTabs/tabs/propertyGrids/animations/graphActionsBar.tsx ***!
  56713. \*********************************************************************************/
  56714. /*! exports provided: GraphActionsBar */
  56715. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56716. "use strict";
  56717. __webpack_require__.r(__webpack_exports__);
  56718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphActionsBar", function() { return GraphActionsBar; });
  56719. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56720. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56721. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56722. /* harmony import */ var _lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/iconButtonLineComponent */ "./components/actionTabs/lines/iconButtonLineComponent.tsx");
  56723. var GraphActionsBar = /** @class */ (function (_super) {
  56724. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphActionsBar, _super);
  56725. function GraphActionsBar(props) {
  56726. var _this = _super.call(this, props) || this;
  56727. _this._frameInput = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  56728. _this._valueInput = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  56729. return _this;
  56730. }
  56731. GraphActionsBar.prototype.componentDidMount = function () {
  56732. var _a, _b;
  56733. (_a = this._frameInput.current) === null || _a === void 0 ? void 0 : _a.addEventListener('keyup', this.isEnterKeyUp.bind(this));
  56734. (_b = this._valueInput.current) === null || _b === void 0 ? void 0 : _b.addEventListener('keyup', this.isEnterKeyUp.bind(this));
  56735. };
  56736. GraphActionsBar.prototype.componentWillUnmount = function () {
  56737. var _a, _b;
  56738. (_a = this._frameInput.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('keyup', this.isEnterKeyUp.bind(this));
  56739. (_b = this._valueInput.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('keyup', this.isEnterKeyUp.bind(this));
  56740. };
  56741. GraphActionsBar.prototype.isEnterKeyUp = function (event) {
  56742. event.preventDefault();
  56743. if (event.key === 'Enter') {
  56744. this.props.setKeyframeValue();
  56745. }
  56746. };
  56747. GraphActionsBar.prototype.onBlur = function (event) {
  56748. event.preventDefault();
  56749. if (event.target.value !== '') {
  56750. this.props.setKeyframeValue();
  56751. }
  56752. };
  56753. GraphActionsBar.prototype.render = function () {
  56754. var _this = this;
  56755. var _a;
  56756. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'actions-wrapper' },
  56757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'title-container' },
  56758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'icon babylon-logo' }),
  56759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'title' }, this.props.title)),
  56760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'buttons-container', style: { pointerEvents: this.props.enabled ? 'all' : 'none' } },
  56761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'action-input frame-input' },
  56762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this._frameInput, type: 'number', onChange: this.props.handleFrameChange, value: ((_a = this.props.actionableKeyframe.frame) === null || _a === void 0 ? void 0 : _a.toString()) || '', step: '1', disabled: this.props.actionableKeyframe.frame === undefined, onBlur: function (e) { return _this.onBlur(e); } })),
  56763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'action-input' },
  56764. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this._valueInput, type: 'number', value: this.props.actionableKeyframe.value || '', onChange: this.props.handleValueChange, step: '0.01', disabled: this.props.actionableKeyframe.value === undefined, onBlur: function (e) { return _this.onBlur(e); } })),
  56765. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: 'Add Keyframe', icon: 'new-key', onClick: this.props.addKeyframe }),
  56766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: 'Frame selected keyframes', icon: 'frame', onClick: this.props.removeKeyframe }),
  56767. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: 'Flat Tangents', icon: 'flat-tangent', onClick: this.props.flatTangent }),
  56768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: this.props.brokenMode ? 'Broken Mode On' : 'Broken Mode Off', icon: this.props.brokenMode ? 'break-tangent' : 'unify-tangent', onClick: this.props.brokeTangents }),
  56769. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_iconButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["IconButtonLineComponent"], { tooltip: this.props.lerpMode ? 'Lerp On' : 'lerp Off', icon: 'linear-tangent', onClick: this.props.setLerpMode }))));
  56770. };
  56771. return GraphActionsBar;
  56772. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56773. /***/ }),
  56774. /***/ "./components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint.tsx":
  56775. /*!**********************************************************************************!*\
  56776. !*** ./components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint.tsx ***!
  56777. \**********************************************************************************/
  56778. /*! exports provided: KeyframeSvgPoint */
  56779. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56780. "use strict";
  56781. __webpack_require__.r(__webpack_exports__);
  56782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyframeSvgPoint", function() { return KeyframeSvgPoint; });
  56783. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56784. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56785. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56786. /* harmony import */ var _anchorSvgPoint__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./anchorSvgPoint */ "./components/actionTabs/tabs/propertyGrids/animations/anchorSvgPoint.tsx");
  56787. var keyInactive = __webpack_require__(/*! ./assets/keyInactiveIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/keyInactiveIcon.svg");
  56788. //const keyActive = require("./assets/keyActiveIcon.svg") as string; uncomment when setting active multiselect
  56789. var keySelected = __webpack_require__(/*! ./assets/keySelectedIcon.svg */ "./components/actionTabs/tabs/propertyGrids/animations/assets/keySelectedIcon.svg");
  56790. var KeyframeSvgPoint = /** @class */ (function (_super) {
  56791. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(KeyframeSvgPoint, _super);
  56792. function KeyframeSvgPoint(props) {
  56793. return _super.call(this, props) || this;
  56794. }
  56795. KeyframeSvgPoint.prototype.select = function (e) {
  56796. e.preventDefault();
  56797. var multiSelect = false;
  56798. if (e.buttons === 0 && e.ctrlKey) {
  56799. multiSelect = true;
  56800. }
  56801. this.props.selectKeyframe(this.props.id, multiSelect);
  56802. };
  56803. KeyframeSvgPoint.prototype.render = function () {
  56804. var _this = this;
  56805. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56806. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { className: 'draggable', x: this.props.keyframePoint.x, y: this.props.keyframePoint.y, style: { overflow: 'visible', cursor: 'pointer' } },
  56807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("image", { "data-id": this.props.id, className: 'draggable', x: '-1', y: '-1.5', width: '3', height: '3', href: this.props.selected ? keySelected : keyInactive, onClick: function (e) { return _this.select(e); } })),
  56808. this.props.leftControlPoint && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_anchorSvgPoint__WEBPACK_IMPORTED_MODULE_2__["AnchorSvgPoint"], { type: 'left', index: this.props.id, control: this.props.leftControlPoint, anchor: this.props.keyframePoint, active: this.props.selected, selected: this.props.isLeftActive, selectControlPoint: function (type) {
  56809. return _this.props.selectedControlPoint(type, _this.props.id);
  56810. } })),
  56811. this.props.rightControlPoint && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_anchorSvgPoint__WEBPACK_IMPORTED_MODULE_2__["AnchorSvgPoint"], { type: 'right', index: this.props.id, control: this.props.rightControlPoint, anchor: this.props.keyframePoint, active: this.props.selected, selected: this.props.isRightActive, selectControlPoint: function (type) {
  56812. return _this.props.selectedControlPoint(type, _this.props.id);
  56813. } }))));
  56814. };
  56815. return KeyframeSvgPoint;
  56816. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56817. /***/ }),
  56818. /***/ "./components/actionTabs/tabs/propertyGrids/animations/loadsnippet.tsx":
  56819. /*!*****************************************************************************!*\
  56820. !*** ./components/actionTabs/tabs/propertyGrids/animations/loadsnippet.tsx ***!
  56821. \*****************************************************************************/
  56822. /*! exports provided: LoadSnippet */
  56823. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56824. "use strict";
  56825. __webpack_require__.r(__webpack_exports__);
  56826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoadSnippet", function() { return LoadSnippet; });
  56827. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56828. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56829. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56830. /* harmony import */ var _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../components/propertyChangedEvent */ "./components/propertyChangedEvent.ts");
  56831. /* harmony import */ var babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Animations/animation */ "babylonjs/Misc/observable");
  56832. /* harmony import */ var babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__);
  56833. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  56834. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  56835. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  56836. var LoadSnippet = /** @class */ (function (_super) {
  56837. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LoadSnippet, _super);
  56838. function LoadSnippet(props) {
  56839. var _this = _super.call(this, props) || this;
  56840. _this._serverAddress = _this.props.snippetServer;
  56841. _this.state = { snippetId: '' };
  56842. return _this;
  56843. }
  56844. LoadSnippet.prototype.change = function (value) {
  56845. this.setState({ snippetId: value });
  56846. this.props.setSnippetId(value);
  56847. };
  56848. LoadSnippet.prototype.loadFromFile = function (file) {
  56849. var _this = this;
  56850. babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  56851. var decoder = new TextDecoder('utf-8');
  56852. var jsonObject = JSON.parse(decoder.decode(data));
  56853. var result = [];
  56854. for (var i in jsonObject) {
  56855. result.push(babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].Parse(jsonObject[i]));
  56856. }
  56857. if (_this.props.entity) {
  56858. _this.props.entity.animations = result;
  56859. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_2__["PropertyChangedEvent"]();
  56860. e.object = _this.props.entity;
  56861. e.property = 'animations';
  56862. e.value = _this.props.entity.animations;
  56863. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  56864. _this.props.animationsLoaded(result.length);
  56865. }
  56866. }, undefined, true, function (error) {
  56867. console.log(error.message);
  56868. });
  56869. };
  56870. LoadSnippet.prototype.loadFromSnippet = function () {
  56871. var _this = this;
  56872. if (this.state.snippetId !== '') {
  56873. //How to dispose() previous animations;
  56874. //How to notify observers
  56875. babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"].CreateFromSnippetAsync(this.state.snippetId)
  56876. .then(function (newAnimations) {
  56877. var _a;
  56878. // Explore how observers are notified from snippet
  56879. if (newAnimations instanceof Array) {
  56880. _this.props.entity.animations = newAnimations;
  56881. }
  56882. if (newAnimations instanceof babylonjs_Animations_animation__WEBPACK_IMPORTED_MODULE_3__["Animation"]) {
  56883. (_a = _this.props.entity.animations) === null || _a === void 0 ? void 0 : _a.push(newAnimations);
  56884. }
  56885. })
  56886. .catch(function (err) {
  56887. _this.props.setNotificationMessage("Unable to load your animations: " + err);
  56888. });
  56889. }
  56890. else {
  56891. this.props.setNotificationMessage("You need to add an snippet id");
  56892. }
  56893. };
  56894. LoadSnippet.prototype.render = function () {
  56895. var _this = this;
  56896. var _a;
  56897. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'load-container' },
  56898. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { label: 'Snippet Id', lockObject: this.props.lockObject, value: this.state.snippetId, onChange: function (value) { return _this.change(value); } }),
  56899. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: 'Load from snippet server', onClick: function () { return _this.loadFromSnippet(); } }),
  56900. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'load-browse' },
  56901. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null, "Local File"),
  56902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: 'Load', onClick: function (file) { return _this.loadFromFile(file); }, accept: '.json' })),
  56903. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'load-server' },
  56904. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null, "Snippet Server: "),
  56905. "\u00A0",
  56906. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null,
  56907. " ", (_a = this._serverAddress) !== null && _a !== void 0 ? _a : '-'))));
  56908. };
  56909. return LoadSnippet;
  56910. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56911. /***/ }),
  56912. /***/ "./components/actionTabs/tabs/propertyGrids/animations/notification.tsx":
  56913. /*!******************************************************************************!*\
  56914. !*** ./components/actionTabs/tabs/propertyGrids/animations/notification.tsx ***!
  56915. \******************************************************************************/
  56916. /*! exports provided: Notification */
  56917. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56918. "use strict";
  56919. __webpack_require__.r(__webpack_exports__);
  56920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return Notification; });
  56921. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56922. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56923. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56924. var Notification = /** @class */ (function (_super) {
  56925. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Notification, _super);
  56926. function Notification(props) {
  56927. return _super.call(this, props) || this;
  56928. }
  56929. Notification.prototype.render = function () {
  56930. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'notification-area', style: { display: this.props.open ? 'block' : 'none' } },
  56931. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'alert alert-error' },
  56932. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { type: 'button', className: 'close', "data-dismiss": 'alert', onClick: this.props.close }, "\u00D7"),
  56933. this.props.message)));
  56934. };
  56935. return Notification;
  56936. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56937. /***/ }),
  56938. /***/ "./components/actionTabs/tabs/propertyGrids/animations/saveSnippet.tsx":
  56939. /*!*****************************************************************************!*\
  56940. !*** ./components/actionTabs/tabs/propertyGrids/animations/saveSnippet.tsx ***!
  56941. \*****************************************************************************/
  56942. /*! exports provided: SaveSnippet */
  56943. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56944. "use strict";
  56945. __webpack_require__.r(__webpack_exports__);
  56946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaveSnippet", function() { return SaveSnippet; });
  56947. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56948. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56949. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56950. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  56951. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  56952. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  56953. var SaveSnippet = /** @class */ (function (_super) {
  56954. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SaveSnippet, _super);
  56955. function SaveSnippet(props) {
  56956. var _a;
  56957. var _this = _super.call(this, props) || this;
  56958. var animList = (_a = _this.props.animations) === null || _a === void 0 ? void 0 : _a.map(function (animation, i) {
  56959. return {
  56960. id: animation.name + "_" + animation.targetProperty,
  56961. name: animation.name,
  56962. index: i,
  56963. selected: false,
  56964. };
  56965. });
  56966. _this.state = { selectedAnimations: animList !== null && animList !== void 0 ? animList : [] };
  56967. return _this;
  56968. }
  56969. SaveSnippet.prototype.handleCheckboxChange = function (e) {
  56970. var _a;
  56971. e.preventDefault();
  56972. var index = parseInt(e.target.id.replace('save_', ''));
  56973. var updated = (_a = this.state.selectedAnimations) === null || _a === void 0 ? void 0 : _a.map(function (item) {
  56974. if (item.index === index) {
  56975. item.selected = !item.selected;
  56976. }
  56977. return item;
  56978. });
  56979. this.setState({ selectedAnimations: updated });
  56980. };
  56981. SaveSnippet.prototype.stringifySelectedAnimations = function () {
  56982. var _this = this;
  56983. var content = [];
  56984. this.state.selectedAnimations.forEach(function (animation) {
  56985. if (animation.selected) {
  56986. var selected = _this.props.animations && _this.props.animations[animation.index];
  56987. if (selected) {
  56988. content.push(selected.serialize());
  56989. }
  56990. }
  56991. });
  56992. return JSON.stringify(content);
  56993. };
  56994. SaveSnippet.prototype.saveToFile = function () {
  56995. var content = this.stringifySelectedAnimations();
  56996. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].Download(new Blob([content]), 'animations.json');
  56997. };
  56998. SaveSnippet.prototype.saveToSnippet = function () {
  56999. var _this = this;
  57000. if (this.props.snippetId !== '') {
  57001. var serverId_1 = this.props.snippetId;
  57002. var serverUrl = this.props.snippetServer;
  57003. var content = this.stringifySelectedAnimations();
  57004. var xmlHttp = new XMLHttpRequest();
  57005. xmlHttp.onreadystatechange = function () {
  57006. if (xmlHttp.readyState == 4) {
  57007. if (xmlHttp.status == 200) {
  57008. var snippet = JSON.parse(xmlHttp.responseText);
  57009. var oldId = serverId_1;
  57010. serverId_1 = snippet.id;
  57011. if (snippet.version && snippet.version != '0') {
  57012. serverId_1 += '#' + snippet.version;
  57013. }
  57014. _this.forceUpdate();
  57015. if (navigator.clipboard) {
  57016. navigator.clipboard.writeText(serverId_1);
  57017. }
  57018. var windowAsAny = window;
  57019. if (windowAsAny.Playground && oldId) {
  57020. windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
  57021. regex: new RegExp(oldId, 'g'),
  57022. replace: serverId_1,
  57023. });
  57024. }
  57025. alert('Animations saved with ID: ' +
  57026. serverId_1 +
  57027. ' (please note that the id was also saved to your clipboard)');
  57028. }
  57029. else {
  57030. alert('Unable to save your animations');
  57031. }
  57032. }
  57033. };
  57034. xmlHttp.open('POST', serverUrl + (serverId_1 ? '/' + serverId_1 : ''), true);
  57035. xmlHttp.setRequestHeader('Content-Type', 'application/json');
  57036. var dataToSend = {
  57037. payload: JSON.stringify({
  57038. animations: content,
  57039. }),
  57040. name: '',
  57041. description: '',
  57042. tags: '',
  57043. };
  57044. xmlHttp.send(JSON.stringify(dataToSend));
  57045. }
  57046. };
  57047. SaveSnippet.prototype.render = function () {
  57048. var _this = this;
  57049. var _a, _b;
  57050. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'save-container' },
  57051. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'item-list' },
  57052. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("ul", null, (_a = this.props.animations) === null || _a === void 0 ? void 0 : _a.map(function (animation, i) {
  57053. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("li", { key: i },
  57054. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57055. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", null,
  57056. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: "save_" + i, name: "save_" + (animation === null || animation === void 0 ? void 0 : animation.name), type: 'checkbox', checked: _this.state.selectedAnimations[i].selected, onChange: function (e) { return _this.handleCheckboxChange(e); } }), animation === null || animation === void 0 ? void 0 :
  57057. animation.name))));
  57058. }))),
  57059. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'save-buttons' },
  57060. this.props.snippetId !== '' ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: 'Save to snippet server', onClick: function () { return _this.saveToSnippet(); } })) : null,
  57061. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: 'Save', onClick: function () { return _this.saveToFile(); } })),
  57062. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'save-server' },
  57063. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null, "Snippet Server: "),
  57064. "\u00A0",
  57065. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null,
  57066. " ", (_b = this.props.snippetServer) !== null && _b !== void 0 ? _b : '-'))));
  57067. };
  57068. return SaveSnippet;
  57069. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57070. /***/ }),
  57071. /***/ "./components/actionTabs/tabs/propertyGrids/animations/scale-label.tsx":
  57072. /*!*****************************************************************************!*\
  57073. !*** ./components/actionTabs/tabs/propertyGrids/animations/scale-label.tsx ***!
  57074. \*****************************************************************************/
  57075. /*! exports provided: ScaleLabel */
  57076. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57077. "use strict";
  57078. __webpack_require__.r(__webpack_exports__);
  57079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScaleLabel", function() { return ScaleLabel; });
  57080. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57081. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57082. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57083. /* harmony import */ var _animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./animationCurveEditorComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent.tsx");
  57084. var ScaleLabel = /** @class */ (function (_super) {
  57085. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScaleLabel, _super);
  57086. function ScaleLabel(props) {
  57087. var _this = _super.call(this, props) || this;
  57088. _this.state = { current: _this.props.current };
  57089. return _this;
  57090. }
  57091. ScaleLabel.prototype.renderLabel = function (scale) {
  57092. switch (scale) {
  57093. case _animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_2__["CurveScale"].default:
  57094. return '';
  57095. case _animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_2__["CurveScale"].degrees:
  57096. return 'DEG';
  57097. case _animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_2__["CurveScale"].float:
  57098. return 'FLT';
  57099. case _animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_2__["CurveScale"].integers:
  57100. return 'INT';
  57101. case _animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_2__["CurveScale"].radians:
  57102. return 'RAD';
  57103. }
  57104. };
  57105. ScaleLabel.prototype.render = function () {
  57106. var _this = this;
  57107. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'switch-button', onClick: function () {
  57108. return _this.props.action && _this.props.action(_this.state.current);
  57109. } },
  57110. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("p", null, this.renderLabel(this.state.current))));
  57111. };
  57112. return ScaleLabel;
  57113. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57114. /***/ }),
  57115. /***/ "./components/actionTabs/tabs/propertyGrids/animations/svgDraggableArea.tsx":
  57116. /*!**********************************************************************************!*\
  57117. !*** ./components/actionTabs/tabs/propertyGrids/animations/svgDraggableArea.tsx ***!
  57118. \**********************************************************************************/
  57119. /*! exports provided: SvgDraggableArea */
  57120. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57121. "use strict";
  57122. __webpack_require__.r(__webpack_exports__);
  57123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgDraggableArea", function() { return SvgDraggableArea; });
  57124. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57125. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57126. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57127. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.vector */ "babylonjs/Misc/observable");
  57128. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__);
  57129. /* harmony import */ var _keyframeSvgPoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./keyframeSvgPoint */ "./components/actionTabs/tabs/propertyGrids/animations/keyframeSvgPoint.tsx");
  57130. var SvgDraggableArea = /** @class */ (function (_super) {
  57131. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SvgDraggableArea, _super);
  57132. function SvgDraggableArea(props) {
  57133. var _this = _super.call(this, props) || this;
  57134. _this._currentPointId = "";
  57135. _this._isCurrentPointControl = "";
  57136. _this._draggableArea = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  57137. _this._panStart = new babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Vector2"](0, 0);
  57138. _this._panStop = new babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Vector2"](0, 0);
  57139. _this._playheadDrag = 0;
  57140. _this._playheadSelected = false;
  57141. _this._movedX = 0;
  57142. _this._movedY = 0;
  57143. _this._dragBuffer = 4;
  57144. _this._draggingMultiplier = 3;
  57145. _this.state = { panX: 0, panY: 0 };
  57146. return _this;
  57147. }
  57148. SvgDraggableArea.prototype.componentDidMount = function () {
  57149. var _this = this;
  57150. var _a, _b;
  57151. (_a = this._draggableArea.current) === null || _a === void 0 ? void 0 : _a.addEventListener("keydown", this.keyDown.bind(this));
  57152. (_b = this._draggableArea.current) === null || _b === void 0 ? void 0 : _b.addEventListener("keyup", this.keyUp.bind(this));
  57153. setTimeout(function () {
  57154. var _a, _b;
  57155. ((_a = _this._draggableArea.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== undefined ? (_b = _this._draggableArea.current) === null || _b === void 0 ? void 0 : _b.clientWidth : 0;
  57156. }, 500);
  57157. };
  57158. SvgDraggableArea.prototype.componentWillReceiveProps = function (newProps) {
  57159. var _this = this;
  57160. if (newProps.positionCanvas !== this.props.positionCanvas && newProps.positionCanvas !== undefined && newProps.repositionCanvas) {
  57161. this.setState({ panX: newProps.positionCanvas }, function () {
  57162. _this.props.canvasPositionEnded();
  57163. });
  57164. }
  57165. };
  57166. SvgDraggableArea.prototype.dragStart = function (e) {
  57167. e.preventDefault();
  57168. if (e.target.classList.contains("draggable")) {
  57169. this._active = true;
  57170. this._currentPointId = e.target.getAttribute("data-id");
  57171. if (e.target.classList.contains("control-point")) {
  57172. this._isCurrentPointControl = e.target.getAttribute("type");
  57173. }
  57174. }
  57175. if (e.target.classList.contains("svg-playhead")) {
  57176. this._active = true;
  57177. this._playheadSelected = true;
  57178. this._playheadDrag = e.clientX - e.currentTarget.getBoundingClientRect().left;
  57179. }
  57180. if (e.target.classList.contains("pannable")) {
  57181. this._active = true;
  57182. this._panStart.set(e.clientX - e.currentTarget.getBoundingClientRect().left, e.clientY - e.currentTarget.getBoundingClientRect().top);
  57183. }
  57184. };
  57185. SvgDraggableArea.prototype.drag = function (e) {
  57186. var _this = this;
  57187. if (this._active) {
  57188. e.preventDefault();
  57189. var coord = this.getMousePosition(e);
  57190. if (coord !== undefined) {
  57191. if (e.target.classList.contains("pannable")) {
  57192. if (this._panStart.x !== 0 && this._panStart.y !== 0) {
  57193. this._panStop.set(e.clientX - e.currentTarget.getBoundingClientRect().left, e.clientY - e.currentTarget.getBoundingClientRect().top);
  57194. this.panDirection();
  57195. }
  57196. }
  57197. if (e.currentTarget.classList.contains("linear") && this._playheadDrag !== 0 && this._playheadSelected) {
  57198. var moving = e.clientX - e.currentTarget.getBoundingClientRect().left;
  57199. var distance = moving - this._playheadDrag;
  57200. var draggableAreaWidth = e.currentTarget.clientWidth;
  57201. var framesInCavas = 20;
  57202. var unit = draggableAreaWidth / framesInCavas;
  57203. if (Math.abs(distance) >= unit / 1.25) {
  57204. this.props.setCurrentFrame(Math.sign(distance));
  57205. this._playheadDrag = this._playheadDrag + distance;
  57206. }
  57207. }
  57208. else {
  57209. var newPoints = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(this.props.keyframeSvgPoints);
  57210. var point = newPoints.find(function (kf) { return kf.id === _this._currentPointId; });
  57211. if (point) {
  57212. // Check for NaN values here.
  57213. if (this._isCurrentPointControl === "left") {
  57214. point.leftControlPoint = coord;
  57215. point.isLeftActive = true;
  57216. }
  57217. else if (this._isCurrentPointControl === "right") {
  57218. point.rightControlPoint = coord;
  57219. point.isRightActive = true;
  57220. }
  57221. else {
  57222. point.keyframePoint = coord;
  57223. point.isRightActive = false;
  57224. point.isLeftActive = false;
  57225. }
  57226. this.props.updatePosition(point, this._currentPointId);
  57227. }
  57228. }
  57229. }
  57230. }
  57231. };
  57232. SvgDraggableArea.prototype.dragEnd = function (e) {
  57233. e.preventDefault();
  57234. this._active = false;
  57235. this._currentPointId = "";
  57236. this._isCurrentPointControl = "";
  57237. this._panStart.set(0, 0);
  57238. this._panStop.set(0, 0);
  57239. this._playheadDrag = 0;
  57240. this._playheadSelected = false;
  57241. this._movedX = 0;
  57242. this._movedY = 0;
  57243. };
  57244. SvgDraggableArea.prototype.getMousePosition = function (e) {
  57245. if (e.touches) {
  57246. e = e.touches[0];
  57247. }
  57248. if (this._draggableArea.current) {
  57249. var svg = this._draggableArea.current;
  57250. var CTM = svg.getScreenCTM();
  57251. if (CTM) {
  57252. return new babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Vector2"]((e.clientX - CTM.e) / CTM.a, (e.clientY - CTM.f) / CTM.d);
  57253. }
  57254. else {
  57255. return undefined;
  57256. }
  57257. }
  57258. else {
  57259. return undefined;
  57260. }
  57261. };
  57262. SvgDraggableArea.prototype.panDirection = function () {
  57263. var directionX = 1;
  57264. if (this._movedX < this._panStop.x) {
  57265. directionX = -1; //left
  57266. }
  57267. else {
  57268. directionX = 1; //right
  57269. }
  57270. var directionY = 1;
  57271. if (this._movedY < this._panStop.y) {
  57272. directionY = -1; //top
  57273. }
  57274. else {
  57275. directionY = 1; //bottom
  57276. }
  57277. var bufferX = Math.abs(this._movedX - this._panStop.x);
  57278. var bufferY = Math.abs(this._movedY - this._panStop.y);
  57279. var xMulti = 0;
  57280. if (bufferX > this._dragBuffer) {
  57281. xMulti = this._draggingMultiplier;
  57282. }
  57283. var yMulti = 0;
  57284. if (bufferY > this._dragBuffer) {
  57285. yMulti = this._draggingMultiplier;
  57286. }
  57287. this._movedX = this._panStop.x;
  57288. this._movedY = this._panStop.y;
  57289. var newX = this.state.panX + directionX * xMulti;
  57290. var newY = this.state.panY + directionY * yMulti;
  57291. this.setState({
  57292. panX: Math.round(newX),
  57293. panY: Math.round(newY),
  57294. });
  57295. this.props.panningY(Math.round(newY));
  57296. this.props.panningX(Math.round(newX));
  57297. };
  57298. SvgDraggableArea.prototype.keyDown = function (e) {
  57299. var _a;
  57300. e.preventDefault();
  57301. if (e.keyCode === 17) {
  57302. (_a = this._draggableArea.current) === null || _a === void 0 ? void 0 : _a.style.setProperty("cursor", "grab");
  57303. }
  57304. };
  57305. SvgDraggableArea.prototype.keyUp = function (e) {
  57306. var _a;
  57307. e.preventDefault();
  57308. if (e.keyCode === 17) {
  57309. (_a = this._draggableArea.current) === null || _a === void 0 ? void 0 : _a.style.setProperty("cursor", "initial");
  57310. }
  57311. if (e.keyCode === 8 || e.keyCode === 46) {
  57312. var pointsToDelete = this.props.keyframeSvgPoints.filter(function (kf) { return kf.selected; });
  57313. this.props.removeSelectedKeyframes(pointsToDelete);
  57314. }
  57315. };
  57316. SvgDraggableArea.prototype.focus = function (e) {
  57317. var _a;
  57318. e.preventDefault();
  57319. (_a = this._draggableArea.current) === null || _a === void 0 ? void 0 : _a.focus();
  57320. if (e.target.className.baseVal == "linear pannable") {
  57321. if (this.isNotControlPointActive()) {
  57322. this.props.deselectKeyframes();
  57323. }
  57324. this.props.resetActionableKeyframe();
  57325. }
  57326. };
  57327. SvgDraggableArea.prototype.isNotControlPointActive = function () {
  57328. var activeControlPoints = this.props.keyframeSvgPoints.filter(function (x) { return x.isLeftActive || x.isRightActive; });
  57329. if (activeControlPoints.length !== 0) {
  57330. return false;
  57331. }
  57332. else {
  57333. return true;
  57334. }
  57335. };
  57336. SvgDraggableArea.prototype.render = function () {
  57337. var _this = this;
  57338. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  57339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { style: {
  57340. width: 30,
  57341. height: 364,
  57342. position: "absolute",
  57343. zIndex: 1,
  57344. pointerEvents: "none",
  57345. } },
  57346. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("rect", { x: "0", y: "0", width: "38px", height: "100%", fill: "#ffffff1c" })),
  57347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { className: "linear pannable", ref: this._draggableArea, tabIndex: 0, onMouseMove: function (e) { return _this.drag(e); }, onTouchMove: function (e) { return _this.drag(e); }, onTouchStart: function (e) { return _this.dragStart(e); }, onTouchEnd: function (e) { return _this.dragEnd(e); }, onMouseDown: function (e) { return _this.dragStart(e); }, onMouseUp: function (e) { return _this.dragEnd(e); }, onMouseLeave: function (e) { return _this.dragEnd(e); }, onClick: function (e) { return _this.focus(e); }, viewBox: this.state.panX + " " + this.state.panY + " " + Math.round(this.props.scale * 200) + " " + Math.round(this.props.scale * 100) },
  57348. this.props.children,
  57349. this.props.keyframeSvgPoints.map(function (keyframe, i) { return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_keyframeSvgPoint__WEBPACK_IMPORTED_MODULE_3__["KeyframeSvgPoint"], { key: keyframe.id + "_" + i, id: keyframe.id, keyframePoint: keyframe.keyframePoint, leftControlPoint: keyframe.leftControlPoint, rightControlPoint: keyframe.rightControlPoint, isLeftActive: keyframe.isLeftActive, isRightActive: keyframe.isRightActive, selected: keyframe.selected, selectedControlPoint: function (type, id) { return _this.props.selectedControlPoint(type, id); }, selectKeyframe: function (id, multiselect) { return _this.props.selectKeyframe(id, multiselect); } })); }))));
  57350. };
  57351. return SvgDraggableArea;
  57352. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57353. /***/ }),
  57354. /***/ "./components/actionTabs/tabs/propertyGrids/animations/targetedAnimationPropertyGridComponent.tsx":
  57355. /*!********************************************************************************************************!*\
  57356. !*** ./components/actionTabs/tabs/propertyGrids/animations/targetedAnimationPropertyGridComponent.tsx ***!
  57357. \********************************************************************************************************/
  57358. /*! exports provided: TargetedAnimationGridComponent */
  57359. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57360. "use strict";
  57361. __webpack_require__.r(__webpack_exports__);
  57362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TargetedAnimationGridComponent", function() { return TargetedAnimationGridComponent; });
  57363. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57364. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57365. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57366. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  57367. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  57368. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  57369. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  57370. /* harmony import */ var _popupComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../popupComponent */ "./components/popupComponent.tsx");
  57371. /* harmony import */ var _animations_animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../animations/animationCurveEditorComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent.tsx");
  57372. var TargetedAnimationGridComponent = /** @class */ (function (_super) {
  57373. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TargetedAnimationGridComponent, _super);
  57374. function TargetedAnimationGridComponent(props) {
  57375. var _this = _super.call(this, props) || this;
  57376. _this._animationGroup = _this.props.scene.animationGroups.find(function (ag) {
  57377. var ta = ag.targetedAnimations.find(function (ta) { return ta === _this.props.targetedAnimation; });
  57378. return ta !== undefined;
  57379. });
  57380. return _this;
  57381. }
  57382. TargetedAnimationGridComponent.prototype.onOpenAnimationCurveEditor = function () {
  57383. this._isCurveEditorOpen = true;
  57384. };
  57385. TargetedAnimationGridComponent.prototype.onCloseAnimationCurveEditor = function (window) {
  57386. this._isCurveEditorOpen = false;
  57387. if (window !== null) {
  57388. window.close();
  57389. }
  57390. };
  57391. TargetedAnimationGridComponent.prototype.playOrPause = function () {
  57392. if (this._animationGroup) {
  57393. if (this._animationGroup.isPlaying) {
  57394. this._animationGroup.stop();
  57395. }
  57396. else {
  57397. this._animationGroup.start();
  57398. }
  57399. this.forceUpdate();
  57400. }
  57401. };
  57402. TargetedAnimationGridComponent.prototype.deleteAnimation = function () {
  57403. var _a;
  57404. if (this._animationGroup) {
  57405. var index = this._animationGroup.targetedAnimations.indexOf(this.props.targetedAnimation);
  57406. if (index > -1) {
  57407. this._animationGroup.targetedAnimations.splice(index, 1);
  57408. (_a = this.props.onSelectionChangedObservable) === null || _a === void 0 ? void 0 : _a.notifyObservers(null);
  57409. if (this._animationGroup.isPlaying) {
  57410. this._animationGroup.stop();
  57411. this._animationGroup.start();
  57412. }
  57413. }
  57414. }
  57415. };
  57416. TargetedAnimationGridComponent.prototype.render = function () {
  57417. var _this = this;
  57418. var targetedAnimation = this.props.targetedAnimation;
  57419. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'pane' },
  57420. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: 'GENERAL' },
  57421. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: 'Class', value: targetedAnimation.getClassName() }),
  57422. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: 'Name', target: targetedAnimation.animation, propertyName: 'name', onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57423. targetedAnimation.target.name && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: 'Target', value: targetedAnimation.target.name, onLink: function () {
  57424. return _this.props.globalState.onSelectionChangedObservable.notifyObservers(targetedAnimation);
  57425. } })),
  57426. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: 'Edit animation', onClick: function () { return _this.onOpenAnimationCurveEditor(); } }),
  57427. this._isCurveEditorOpen && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_popupComponent__WEBPACK_IMPORTED_MODULE_6__["PopupComponent"], { id: 'curve-editor', title: 'Curve Animation Editor', size: { width: 1024, height: 512 }, onOpen: function (window) { }, onClose: function (window) {
  57428. return _this.onCloseAnimationCurveEditor(window);
  57429. } },
  57430. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationCurveEditorComponent__WEBPACK_IMPORTED_MODULE_7__["AnimationCurveEditorComponent"], { scene: this.props.scene, entity: targetedAnimation, playOrPause: function () { return _this.playOrPause(); }, lockObject: this.props.lockObject, globalState: this.props.globalState, close: function (event) { return _this.onCloseAnimationCurveEditor(event.view); } }))),
  57431. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: 'Dispose', onClick: function () { return _this.deleteAnimation(); } }))));
  57432. };
  57433. return TargetedAnimationGridComponent;
  57434. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57435. /***/ }),
  57436. /***/ "./components/actionTabs/tabs/propertyGrids/animations/timeline.tsx":
  57437. /*!**************************************************************************!*\
  57438. !*** ./components/actionTabs/tabs/propertyGrids/animations/timeline.tsx ***!
  57439. \**************************************************************************/
  57440. /*! exports provided: Timeline */
  57441. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57442. "use strict";
  57443. __webpack_require__.r(__webpack_exports__);
  57444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return Timeline; });
  57445. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57446. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57447. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57448. /* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./controls */ "./components/actionTabs/tabs/propertyGrids/animations/controls.tsx");
  57449. var Timeline = /** @class */ (function (_super) {
  57450. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Timeline, _super);
  57451. function Timeline(props) {
  57452. var _this = _super.call(this, props) || this;
  57453. _this._active = "";
  57454. _this._scrollable = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  57455. _this._scrollbarHandle = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  57456. _this._scrollContainer = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  57457. _this._inputAnimationLimit = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  57458. _this._direction = 0;
  57459. _this._scrolling = false;
  57460. _this._shiftX = 0;
  57461. _this._marginScrollbar = 3;
  57462. var limit = Math.round(_this.props.animationLimit / 2);
  57463. if (_this.props.selected !== null) {
  57464. _this.state = {
  57465. selected: _this.props.selected,
  57466. activeKeyframe: null,
  57467. start: 0,
  57468. end: limit,
  57469. scrollWidth: _this.calculateScrollWidth(0, limit),
  57470. selectionLength: _this.range(0, limit),
  57471. limitValue: _this.props.animationLimit,
  57472. };
  57473. }
  57474. return _this;
  57475. }
  57476. Timeline.prototype.componentDidMount = function () {
  57477. var _a;
  57478. this.setState({
  57479. scrollWidth: this.calculateScrollWidth(this.state.start, this.state.end),
  57480. });
  57481. (_a = this._inputAnimationLimit.current) === null || _a === void 0 ? void 0 : _a.addEventListener("keyup", this.isEnterKeyUp.bind(this));
  57482. };
  57483. Timeline.prototype.componentWillUnmount = function () {
  57484. var _a;
  57485. (_a = this._inputAnimationLimit.current) === null || _a === void 0 ? void 0 : _a.removeEventListener("keyup", this.isEnterKeyUp.bind(this));
  57486. };
  57487. Timeline.prototype.isEnterKeyUp = function (event) {
  57488. event.preventDefault();
  57489. if (event.key === "Enter") {
  57490. this.setControlState();
  57491. }
  57492. };
  57493. Timeline.prototype.onInputBlur = function (event) {
  57494. event.preventDefault();
  57495. this.setControlState();
  57496. };
  57497. Timeline.prototype.setControlState = function () {
  57498. var _this = this;
  57499. this.props.onAnimationLimitChange(this.state.limitValue);
  57500. var newEnd = Math.round(this.state.limitValue / 2);
  57501. this.setState({
  57502. start: 0,
  57503. end: newEnd,
  57504. selectionLength: this.range(0, newEnd),
  57505. }, function () {
  57506. _this.setState({
  57507. scrollWidth: _this.calculateScrollWidth(0, newEnd),
  57508. });
  57509. if (_this._scrollbarHandle.current && _this._scrollContainer.current) {
  57510. _this._scrollbarHandle.current.style.left = _this._scrollContainer.current.getBoundingClientRect().left + _this._marginScrollbar + "px";
  57511. }
  57512. });
  57513. };
  57514. Timeline.prototype.calculateScrollWidth = function (start, end) {
  57515. if (this._scrollContainer.current && this.props.animationLimit !== 0) {
  57516. var containerMarginLeftRight = this._marginScrollbar * 2;
  57517. var containerWidth = this._scrollContainer.current.clientWidth - containerMarginLeftRight;
  57518. var scrollFrameLimit = this.props.animationLimit;
  57519. var scrollFrameLength = end - start;
  57520. var widthPercentage = Math.round((scrollFrameLength * 100) / scrollFrameLimit);
  57521. var scrollPixelWidth = Math.round((widthPercentage * containerWidth) / 100);
  57522. if (scrollPixelWidth === Infinity || scrollPixelWidth > containerWidth) {
  57523. return containerWidth;
  57524. }
  57525. return scrollPixelWidth;
  57526. }
  57527. else {
  57528. return undefined;
  57529. }
  57530. };
  57531. Timeline.prototype.playBackwards = function (event) {
  57532. this.props.playPause(-1);
  57533. };
  57534. Timeline.prototype.play = function (event) {
  57535. this.props.playPause(1);
  57536. };
  57537. Timeline.prototype.pause = function (event) {
  57538. if (this.props.isPlaying) {
  57539. this.props.playPause(1);
  57540. }
  57541. };
  57542. Timeline.prototype.setCurrentFrame = function (event) {
  57543. var _a;
  57544. event.preventDefault();
  57545. if (this._scrollable.current) {
  57546. var containerWidth = (_a = this._scrollable.current) === null || _a === void 0 ? void 0 : _a.clientWidth;
  57547. var unit = Math.round(containerWidth / this.state.selectionLength.length);
  57548. var frame = Math.round((event.clientX - 233) / unit) + this.state.start;
  57549. this.props.onCurrentFrameChange(frame);
  57550. this.props.repositionCanvas(frame);
  57551. }
  57552. };
  57553. Timeline.prototype.handleLimitChange = function (event) {
  57554. event.preventDefault();
  57555. var newLimit = parseInt(event.target.value);
  57556. if (isNaN(newLimit)) {
  57557. newLimit = 0;
  57558. }
  57559. this.setState({
  57560. limitValue: newLimit,
  57561. });
  57562. };
  57563. Timeline.prototype.dragStart = function (e) {
  57564. e.preventDefault();
  57565. this.setState({ activeKeyframe: parseInt(e.target.id.replace("kf_", "")) });
  57566. this._direction = e.clientX;
  57567. };
  57568. Timeline.prototype.drag = function (e) {
  57569. e.preventDefault();
  57570. if (this.props.keyframes) {
  57571. if (this.state.activeKeyframe === parseInt(e.target.id.replace("kf_", ""))) {
  57572. var updatedKeyframe = this.props.keyframes[this.state.activeKeyframe];
  57573. if (this._direction > e.clientX) {
  57574. var used = this.isFrameBeingUsed(updatedKeyframe.frame - 1, -1);
  57575. if (used) {
  57576. updatedKeyframe.frame = used;
  57577. }
  57578. }
  57579. else {
  57580. var used = this.isFrameBeingUsed(updatedKeyframe.frame + 1, 1);
  57581. if (used) {
  57582. updatedKeyframe.frame = used;
  57583. }
  57584. }
  57585. this.props.dragKeyframe(updatedKeyframe.frame, this.state.activeKeyframe);
  57586. }
  57587. }
  57588. };
  57589. Timeline.prototype.isFrameBeingUsed = function (frame, direction) {
  57590. var _a;
  57591. var used = (_a = this.props.keyframes) === null || _a === void 0 ? void 0 : _a.find(function (kf) { return kf.frame === frame; });
  57592. if (used) {
  57593. this.isFrameBeingUsed(used.frame + direction, direction);
  57594. return false;
  57595. }
  57596. else {
  57597. return frame;
  57598. }
  57599. };
  57600. Timeline.prototype.dragEnd = function (e) {
  57601. e.preventDefault();
  57602. this._direction = 0;
  57603. this.setState({ activeKeyframe: null });
  57604. };
  57605. Timeline.prototype.scrollDragStart = function (e) {
  57606. e.preventDefault();
  57607. if (e.target.className === "scrollbar") {
  57608. if ((e.target.class = "scrollbar") && this._scrollbarHandle.current) {
  57609. this._scrolling = true;
  57610. this._shiftX = e.clientX - this._scrollbarHandle.current.getBoundingClientRect().left;
  57611. this._scrollbarHandle.current.style.left = e.pageX - this._shiftX + "px";
  57612. }
  57613. }
  57614. if (e.target.className === "left-draggable" && this._scrollbarHandle.current) {
  57615. this._active = "leftDraggable";
  57616. this._shiftX = e.clientX - this._scrollbarHandle.current.getBoundingClientRect().left;
  57617. }
  57618. if (e.target.className === "right-draggable" && this._scrollbarHandle.current) {
  57619. this._active = "rightDraggable";
  57620. this._shiftX = e.clientX - this._scrollbarHandle.current.getBoundingClientRect().left;
  57621. }
  57622. };
  57623. Timeline.prototype.scrollDrag = function (e) {
  57624. e.preventDefault();
  57625. if (e.target.className === "scrollbar") {
  57626. this.moveScrollbar(e.pageX);
  57627. }
  57628. if (this._active === "leftDraggable") {
  57629. this.resizeScrollbarLeft(e.clientX);
  57630. }
  57631. if (this._active === "rightDraggable") {
  57632. this.resizeScrollbarRight(e.clientX);
  57633. }
  57634. };
  57635. Timeline.prototype.scrollDragEnd = function (e) {
  57636. e.preventDefault();
  57637. this._scrolling = false;
  57638. this._active = "";
  57639. this._shiftX = 0;
  57640. };
  57641. Timeline.prototype.moveScrollbar = function (pageX) {
  57642. if (this._scrolling && this._scrollbarHandle.current && this._scrollContainer.current) {
  57643. var moved = pageX - this._shiftX;
  57644. var scrollContainerWith = this._scrollContainer.current.clientWidth;
  57645. var startPixel = moved - this._scrollContainer.current.getBoundingClientRect().left;
  57646. var limitRight = scrollContainerWith - (this.state.scrollWidth || 0) - this._marginScrollbar;
  57647. if (moved > 233 && startPixel < limitRight) {
  57648. this._scrollbarHandle.current.style.left = moved + "px";
  57649. this._scrollable.current.scrollLeft = moved + 10;
  57650. var startPixelPercent = (startPixel * 100) / scrollContainerWith;
  57651. var selectionStartFrame = Math.round((startPixelPercent * this.props.animationLimit) / 100);
  57652. var selectionEndFrame = this.state.selectionLength.length + selectionStartFrame;
  57653. this.setState({
  57654. start: selectionStartFrame,
  57655. end: selectionEndFrame,
  57656. selectionLength: this.range(selectionStartFrame, selectionEndFrame),
  57657. });
  57658. }
  57659. }
  57660. };
  57661. Timeline.prototype.resizeScrollbarRight = function (clientX) {
  57662. if (this._scrollContainer.current && this._scrollbarHandle.current) {
  57663. var moving = clientX - this._scrollContainer.current.getBoundingClientRect().left;
  57664. var unit = this._scrollContainer.current.clientWidth / this.props.animationLimit;
  57665. var priorLastFrame = this.state.end * unit;
  57666. var mouseMoved = moving - priorLastFrame;
  57667. var framesTo = 0;
  57668. if (Math.sign(mouseMoved) !== -1) {
  57669. framesTo = Math.round(mouseMoved / unit) + this.state.end;
  57670. }
  57671. else {
  57672. framesTo = this.state.end - Math.round(Math.abs(mouseMoved) / unit);
  57673. }
  57674. if (!(framesTo <= this.state.start + 20)) {
  57675. if (framesTo <= this.props.animationLimit) {
  57676. this.setState({
  57677. end: framesTo,
  57678. scrollWidth: this.calculateScrollWidth(this.state.start, framesTo),
  57679. selectionLength: this.range(this.state.start, framesTo),
  57680. });
  57681. }
  57682. }
  57683. }
  57684. };
  57685. Timeline.prototype.resizeScrollbarLeft = function (clientX) {
  57686. if (this._scrollContainer.current && this._scrollbarHandle.current) {
  57687. var moving = clientX - this._scrollContainer.current.getBoundingClientRect().left;
  57688. var unit = this._scrollContainer.current.clientWidth / this.props.animationLimit;
  57689. var priorFirstFrame = this.state.start !== 0 ? this.state.start * unit : 0;
  57690. var mouseMoved = moving - priorFirstFrame;
  57691. var framesTo = 0;
  57692. if (Math.sign(mouseMoved) !== -1) {
  57693. framesTo = Math.round(mouseMoved / unit) + this.state.start;
  57694. }
  57695. else {
  57696. framesTo = this.state.start !== 0 ? this.state.start - Math.round(Math.abs(mouseMoved) / unit) : 0;
  57697. }
  57698. if (!(framesTo >= this.state.end - 20)) {
  57699. var toleft = framesTo * unit + this._scrollContainer.current.getBoundingClientRect().left + this._marginScrollbar * 2;
  57700. if (this._scrollbarHandle.current) {
  57701. this._scrollbarHandle.current.style.left = toleft + "px";
  57702. }
  57703. this.setState({
  57704. start: framesTo,
  57705. scrollWidth: this.calculateScrollWidth(framesTo, this.state.end),
  57706. selectionLength: this.range(framesTo, this.state.end),
  57707. });
  57708. }
  57709. }
  57710. };
  57711. Timeline.prototype.range = function (start, end) {
  57712. return Array.from({ length: end - start }, function (_, i) { return start + i * 1; });
  57713. };
  57714. Timeline.prototype.getKeyframe = function (frame) {
  57715. if (this.props.keyframes) {
  57716. return this.props.keyframes.find(function (x) { return x.frame === frame; });
  57717. }
  57718. else {
  57719. return false;
  57720. }
  57721. };
  57722. Timeline.prototype.getCurrentFrame = function (frame) {
  57723. if (this.props.currentFrame === frame) {
  57724. return true;
  57725. }
  57726. else {
  57727. return false;
  57728. }
  57729. };
  57730. Timeline.prototype.render = function () {
  57731. var _this = this;
  57732. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  57733. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "timeline" },
  57734. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_controls__WEBPACK_IMPORTED_MODULE_2__["Controls"], { keyframes: this.props.keyframes, selected: this.props.selected, currentFrame: this.props.currentFrame, onCurrentFrameChange: this.props.onCurrentFrameChange, repositionCanvas: this.props.repositionCanvas, playPause: this.props.playPause, isPlaying: this.props.isPlaying, scrollable: this._scrollable }),
  57735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "timeline-wrapper" },
  57736. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this._scrollable, className: "display-line", onClick: function (e) { return _this.setCurrentFrame(e); } },
  57737. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { style: {
  57738. width: "100%",
  57739. height: 40,
  57740. backgroundColor: "#222222",
  57741. }, onMouseMove: function (e) { return _this.drag(e); }, onTouchMove: function (e) { return _this.drag(e); }, onTouchStart: function (e) { return _this.dragStart(e); }, onTouchEnd: function (e) { return _this.dragEnd(e); }, onMouseDown: function (e) { return _this.dragStart(e); }, onMouseUp: function (e) { return _this.dragEnd(e); }, onMouseLeave: function (e) { return _this.dragEnd(e); }, onDragStart: function () { return false; } }, this.state.selectionLength.map(function (frame, i) {
  57742. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { key: "tl_" + frame }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  57743. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("text", { x: (i * 100) / _this.state.selectionLength.length + "%", y: "18", style: { fontSize: 10, fill: "#555555" } }, frame),
  57744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { x1: (i * 100) / _this.state.selectionLength.length + "%", y1: "22", x2: (i * 100) / _this.state.selectionLength.length + "%", y2: "40", style: { stroke: "#555555", strokeWidth: 0.5 } }),
  57745. _this.getCurrentFrame(frame) ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { x: _this._scrollable.current ? _this._scrollable.current.clientWidth / _this.state.selectionLength.length / 2 : 1 },
  57746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { x1: (i * 100) / _this.state.selectionLength.length + "%", y1: "0", x2: (i * 100) / _this.state.selectionLength.length + "%", y2: "40", style: {
  57747. stroke: "rgba(18, 80, 107, 0.26)",
  57748. strokeWidth: _this._scrollable.current ? _this._scrollable.current.clientWidth / _this.state.selectionLength.length : 1,
  57749. } }))) : null,
  57750. _this.getKeyframe(frame) ? (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { key: "kf_" + i, tabIndex: i + 40 },
  57751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("line", { id: "kf_" + i.toString(), x1: (i * 100) / _this.state.selectionLength.length + "%", y1: "0", x2: (i * 100) / _this.state.selectionLength.length + "%", y2: "40", style: { stroke: "#ffc017", strokeWidth: 1 } }))) : null)));
  57752. }))),
  57753. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "timeline-scroll-handle", onMouseMove: function (e) { return _this.scrollDrag(e); }, onTouchMove: function (e) { return _this.scrollDrag(e); }, onTouchStart: function (e) { return _this.scrollDragStart(e); }, onTouchEnd: function (e) { return _this.scrollDragEnd(e); }, onMouseDown: function (e) { return _this.scrollDragStart(e); }, onMouseUp: function (e) { return _this.scrollDragEnd(e); }, onMouseLeave: function (e) { return _this.scrollDragEnd(e); }, onDragStart: function () { return false; } },
  57754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "scroll-handle", ref: this._scrollContainer },
  57755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "handle", ref: this._scrollbarHandle, style: { width: this.state.scrollWidth } },
  57756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "left-grabber" },
  57757. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "left-draggable" },
  57758. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "grabber" }),
  57759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "grabber" }),
  57760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "grabber" })),
  57761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text" }, this.state.start)),
  57762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "scrollbar" }),
  57763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "right-grabber" },
  57764. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text" }, this.state.end),
  57765. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "right-draggable" },
  57766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "grabber" }),
  57767. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "grabber" }),
  57768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "grabber" })))))),
  57769. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-frame" },
  57770. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this._inputAnimationLimit, type: "number", value: this.state.limitValue, onChange: function (e) { return _this.handleLimitChange(e); }, onBlur: function (e) { return _this.onInputBlur(e); } }))))));
  57771. };
  57772. return Timeline;
  57773. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57774. /***/ }),
  57775. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent.tsx":
  57776. /*!***************************************************************************************************!*\
  57777. !*** ./components/actionTabs/tabs/propertyGrids/cameras/arcRotateCameraPropertyGridComponent.tsx ***!
  57778. \***************************************************************************************************/
  57779. /*! exports provided: ArcRotateCameraPropertyGridComponent */
  57780. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57781. "use strict";
  57782. __webpack_require__.r(__webpack_exports__);
  57783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArcRotateCameraPropertyGridComponent", function() { return ArcRotateCameraPropertyGridComponent; });
  57784. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57785. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57786. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57787. /* harmony import */ var _commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx");
  57788. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  57789. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  57790. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  57791. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  57792. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  57793. var ArcRotateCameraPropertyGridComponent = /** @class */ (function (_super) {
  57794. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ArcRotateCameraPropertyGridComponent, _super);
  57795. function ArcRotateCameraPropertyGridComponent(props) {
  57796. return _super.call(this, props) || this;
  57797. }
  57798. ArcRotateCameraPropertyGridComponent.prototype.render = function () {
  57799. var camera = this.props.camera;
  57800. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  57801. 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 }),
  57802. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  57803. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3LineComponent"], { label: "Target", target: camera, propertyName: "target", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57804. 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 }),
  57805. 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 }),
  57806. 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 })),
  57807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONTROLS", closed: true },
  57808. 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 }),
  57809. 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 }),
  57810. 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 }),
  57811. 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 }),
  57812. 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 }),
  57813. 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 })),
  57814. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLLISIONS", closed: true },
  57815. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Check collisions", target: camera, propertyName: "checkCollisions", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57816. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3LineComponent"], { label: "Collision radius", target: camera, propertyName: "collisionRadius", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  57817. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIMITS", closed: true },
  57818. 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 }),
  57819. 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 }),
  57820. 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 }),
  57821. 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 }),
  57822. 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 }),
  57823. 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 })),
  57824. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "BEHAVIORS", closed: true },
  57825. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Auto rotation", target: camera, propertyName: "useAutoRotationBehavior", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57826. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Bouncing", target: camera, propertyName: "useBouncingBehavior", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57827. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Framing", target: camera, propertyName: "useFramingBehavior", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  57828. };
  57829. return ArcRotateCameraPropertyGridComponent;
  57830. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57831. /***/ }),
  57832. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx":
  57833. /*!************************************************************************************************!*\
  57834. !*** ./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx ***!
  57835. \************************************************************************************************/
  57836. /*! exports provided: CommonCameraPropertyGridComponent */
  57837. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57838. "use strict";
  57839. __webpack_require__.r(__webpack_exports__);
  57840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonCameraPropertyGridComponent", function() { return CommonCameraPropertyGridComponent; });
  57841. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57842. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57843. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57844. /* harmony import */ var babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Cameras/camera */ "babylonjs/Misc/observable");
  57845. /* harmony import */ var babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__);
  57846. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  57847. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  57848. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  57849. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  57850. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  57851. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  57852. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  57853. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  57854. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  57855. /* harmony import */ var _lines_hexLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/hexLineComponent */ "./components/actionTabs/lines/hexLineComponent.tsx");
  57856. var CommonCameraPropertyGridComponent = /** @class */ (function (_super) {
  57857. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonCameraPropertyGridComponent, _super);
  57858. function CommonCameraPropertyGridComponent(props) {
  57859. var _this = _super.call(this, props) || this;
  57860. _this.state = { mode: _this.props.camera.mode };
  57861. return _this;
  57862. }
  57863. CommonCameraPropertyGridComponent.prototype.render = function () {
  57864. var _this = this;
  57865. var camera = this.props.camera;
  57866. var modeOptions = [
  57867. { label: "Perspective", value: babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].PERSPECTIVE_CAMERA },
  57868. { label: "Orthographic", value: babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA }
  57869. ];
  57870. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57871. 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 }),
  57872. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  57873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "ID", value: camera.id }),
  57874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: camera, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57875. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Unique ID", value: camera.uniqueId.toString() }),
  57876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Class", value: camera.getClassName() }),
  57877. 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 }),
  57878. 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 }),
  57879. 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 }),
  57880. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_hexLineComponent__WEBPACK_IMPORTED_MODULE_12__["HexLineComponent"], { isInteger: true, lockObject: this.props.lockObject, label: "Layer mask", target: camera, propertyName: "layerMask", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57881. 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 }); } }),
  57882. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].PERSPECTIVE_CAMERA &&
  57883. 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 }),
  57884. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  57885. 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 }),
  57886. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  57887. 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 }),
  57888. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  57889. 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 }),
  57890. camera.mode === babylonjs_Cameras_camera__WEBPACK_IMPORTED_MODULE_2__["Camera"].ORTHOGRAPHIC_CAMERA &&
  57891. 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 }),
  57892. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  57893. camera.dispose();
  57894. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  57895. } })),
  57896. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: camera, scene: camera.getScene(), lockObject: this.props.lockObject })));
  57897. };
  57898. return CommonCameraPropertyGridComponent;
  57899. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57900. /***/ }),
  57901. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/followCameraPropertyGridComponent.tsx":
  57902. /*!************************************************************************************************!*\
  57903. !*** ./components/actionTabs/tabs/propertyGrids/cameras/followCameraPropertyGridComponent.tsx ***!
  57904. \************************************************************************************************/
  57905. /*! exports provided: FollowCameraPropertyGridComponent */
  57906. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57907. "use strict";
  57908. __webpack_require__.r(__webpack_exports__);
  57909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FollowCameraPropertyGridComponent", function() { return FollowCameraPropertyGridComponent; });
  57910. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57911. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57912. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57913. /* harmony import */ var _commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx");
  57914. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  57915. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  57916. var FollowCameraPropertyGridComponent = /** @class */ (function (_super) {
  57917. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FollowCameraPropertyGridComponent, _super);
  57918. function FollowCameraPropertyGridComponent(props) {
  57919. return _super.call(this, props) || this;
  57920. }
  57921. FollowCameraPropertyGridComponent.prototype.render = function () {
  57922. var camera = this.props.camera;
  57923. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  57924. 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 }),
  57925. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  57926. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Radius", target: camera, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57927. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Rotation offset", target: camera, propertyName: "rotationOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57928. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Height offset", target: camera, propertyName: "heightOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57929. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Camera acceleration", target: camera, propertyName: "cameraAcceleration", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  57930. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIMITS", closed: true },
  57931. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Lower radius limit", target: camera, propertyName: "lowerRadiusLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57932. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Upper radius limit", target: camera, propertyName: "upperRadiusLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57933. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Lower rotation offset limit", target: camera, propertyName: "lowerRotationOffsetLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57934. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Upper rotation offset limit", target: camera, propertyName: "upperRotationOffsetLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57935. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Lower height offset limit", target: camera, propertyName: "lowerHeightOffsetLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57936. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Upper height offset limit", target: camera, propertyName: "upperHeightOffsetLimit", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57937. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Max camera speed", target: camera, propertyName: "maxCameraSpeed", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  57938. };
  57939. return FollowCameraPropertyGridComponent;
  57940. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57941. /***/ }),
  57942. /***/ "./components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent.tsx":
  57943. /*!**********************************************************************************************!*\
  57944. !*** ./components/actionTabs/tabs/propertyGrids/cameras/freeCameraPropertyGridComponent.tsx ***!
  57945. \**********************************************************************************************/
  57946. /*! exports provided: FreeCameraPropertyGridComponent */
  57947. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57948. "use strict";
  57949. __webpack_require__.r(__webpack_exports__);
  57950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FreeCameraPropertyGridComponent", function() { return FreeCameraPropertyGridComponent; });
  57951. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57952. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57953. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57954. /* harmony import */ var _commonCameraPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonCameraPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/cameras/commonCameraPropertyGridComponent.tsx");
  57955. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  57956. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  57957. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  57958. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  57959. var FreeCameraPropertyGridComponent = /** @class */ (function (_super) {
  57960. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FreeCameraPropertyGridComponent, _super);
  57961. function FreeCameraPropertyGridComponent(props) {
  57962. return _super.call(this, props) || this;
  57963. }
  57964. FreeCameraPropertyGridComponent.prototype.render = function () {
  57965. var camera = this.props.camera;
  57966. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  57967. 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 }),
  57968. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  57969. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Target", target: camera, propertyName: "target", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57970. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Position", target: camera, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57971. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Rotation", noSlider: true, useEuler: this.props.globalState.onlyUseEulers, target: camera, propertyName: "rotation", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  57972. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONTROLS", closed: true },
  57973. 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 }),
  57974. 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 })),
  57975. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLLISIONS", closed: true },
  57976. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Check collisions", target: camera, propertyName: "checkCollisions", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57977. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Apply gravity", target: camera, propertyName: "applyGravity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Ellipsoid", target: camera, propertyName: "ellipsoid", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  57979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Ellipsoid offset", target: camera, propertyName: "ellipsoidOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  57980. };
  57981. return FreeCameraPropertyGridComponent;
  57982. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57983. /***/ }),
  57984. /***/ "./components/actionTabs/tabs/propertyGrids/commonPropertyGridComponent.tsx":
  57985. /*!**********************************************************************************!*\
  57986. !*** ./components/actionTabs/tabs/propertyGrids/commonPropertyGridComponent.tsx ***!
  57987. \**********************************************************************************/
  57988. /*! exports provided: CommonPropertyGridComponent */
  57989. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57990. "use strict";
  57991. __webpack_require__.r(__webpack_exports__);
  57992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonPropertyGridComponent", function() { return CommonPropertyGridComponent; });
  57993. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57994. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57995. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57996. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  57997. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  57998. /* harmony import */ var _lines_indentedTextLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/indentedTextLineComponent */ "./components/actionTabs/lines/indentedTextLineComponent.tsx");
  57999. var CommonPropertyGridComponent = /** @class */ (function (_super) {
  58000. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonPropertyGridComponent, _super);
  58001. function CommonPropertyGridComponent(props) {
  58002. return _super.call(this, props) || this;
  58003. }
  58004. CommonPropertyGridComponent.prototype.renderLevel = function (jsonObject) {
  58005. var components = [];
  58006. for (var data in jsonObject) {
  58007. var value = jsonObject[data];
  58008. var type = Object.prototype.toString.call(value);
  58009. switch (type) {
  58010. case '[object String]':
  58011. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { key: data, label: data, ignoreValue: true }));
  58012. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_indentedTextLineComponent__WEBPACK_IMPORTED_MODULE_4__["IndentedTextLineComponent"], { key: data + value, value: value }));
  58013. break;
  58014. case '[object Array]':
  58015. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { key: data, label: data, ignoreValue: true }));
  58016. for (var _i = 0, value_1 = value; _i < value_1.length; _i++) {
  58017. var entry = value_1[_i];
  58018. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_indentedTextLineComponent__WEBPACK_IMPORTED_MODULE_4__["IndentedTextLineComponent"], { key: data + entry, value: entry }));
  58019. }
  58020. break;
  58021. case '[object Object]':
  58022. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { key: data, label: data, ignoreValue: true }));
  58023. for (var entryKey in value) {
  58024. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { key: data + entry, label: entryKey, value: value[entryKey], additionalClass: "reduced-opacity" }));
  58025. }
  58026. break;
  58027. }
  58028. }
  58029. return components;
  58030. };
  58031. CommonPropertyGridComponent.prototype.render = function () {
  58032. if (!this.props.host.metadata) {
  58033. return null;
  58034. }
  58035. if (!this.props.host.metadata.xmp) {
  58036. return null;
  58037. }
  58038. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  58039. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "XMP METADATA" }, this.renderLevel(this.props.host.metadata.xmp))));
  58040. };
  58041. return CommonPropertyGridComponent;
  58042. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58043. /***/ }),
  58044. /***/ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx":
  58045. /*!**********************************************************************************!*\
  58046. !*** ./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx ***!
  58047. \**********************************************************************************/
  58048. /*! exports provided: CustomPropertyGridComponent */
  58049. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58050. "use strict";
  58051. __webpack_require__.r(__webpack_exports__);
  58052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomPropertyGridComponent", function() { return CustomPropertyGridComponent; });
  58053. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58054. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58055. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58056. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  58057. /* harmony import */ var babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/iInspectable */ "babylonjs/Misc/observable");
  58058. /* harmony import */ var babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__);
  58059. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58060. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  58061. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  58062. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  58063. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58064. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58065. var CustomPropertyGridComponent = /** @class */ (function (_super) {
  58066. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CustomPropertyGridComponent, _super);
  58067. function CustomPropertyGridComponent(props) {
  58068. var _this = _super.call(this, props) || this;
  58069. _this.state = { mode: 0 };
  58070. return _this;
  58071. }
  58072. CustomPropertyGridComponent.prototype.renderInspectable = function (inspectable) {
  58073. switch (inspectable.type) {
  58074. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Checkbox:
  58075. 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 }));
  58076. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Slider:
  58077. 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 }));
  58078. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Vector3:
  58079. 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 }));
  58080. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Quaternion:
  58081. 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 }));
  58082. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].Color3:
  58083. 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 }));
  58084. case babylonjs_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__["InspectableType"].String:
  58085. 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 }));
  58086. }
  58087. return null;
  58088. };
  58089. CustomPropertyGridComponent.prototype.render = function () {
  58090. var _this = this;
  58091. var inspectables = this.props.target.inspectableCustomProperties;
  58092. if (!inspectables || inspectables.length === 0) {
  58093. return null;
  58094. }
  58095. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_8__["LineContainerComponent"], { title: "CUSTOM", globalState: this.props.globalState }, inspectables.map(function (inspectable) {
  58096. return _this.renderInspectable(inspectable);
  58097. })));
  58098. };
  58099. return CustomPropertyGridComponent;
  58100. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58101. /***/ }),
  58102. /***/ "./components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent.tsx":
  58103. /*!*******************************************************************************!*\
  58104. !*** ./components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent.tsx ***!
  58105. \*******************************************************************************/
  58106. /*! exports provided: FogPropertyGridComponent */
  58107. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58108. "use strict";
  58109. __webpack_require__.r(__webpack_exports__);
  58110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FogPropertyGridComponent", function() { return FogPropertyGridComponent; });
  58111. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58112. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58113. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58114. /* harmony import */ var babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/scene */ "babylonjs/Misc/observable");
  58115. /* harmony import */ var babylonjs_scene__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__);
  58116. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  58117. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58118. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  58119. var FogPropertyGridComponent = /** @class */ (function (_super) {
  58120. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FogPropertyGridComponent, _super);
  58121. function FogPropertyGridComponent(props) {
  58122. var _this = _super.call(this, props) || this;
  58123. _this.state = { mode: _this.props.scene.fogMode };
  58124. return _this;
  58125. }
  58126. FogPropertyGridComponent.prototype.render = function () {
  58127. var _this = this;
  58128. var scene = this.props.scene;
  58129. var fogModeOptions = [
  58130. { label: "None", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_NONE },
  58131. { label: "Linear", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_LINEAR },
  58132. { label: "Exp", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP },
  58133. { label: "Exp2", value: babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP2 },
  58134. ];
  58135. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  58136. 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 }); } }),
  58137. this.state.mode !== babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_NONE &&
  58138. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__["Color3LineComponent"], { label: "Fog color", target: scene, propertyName: "fogColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58139. (this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP || this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_EXP2) &&
  58140. 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 }),
  58141. this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_LINEAR &&
  58142. 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 }),
  58143. this.state.mode === babylonjs_scene__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_LINEAR &&
  58144. 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 })));
  58145. };
  58146. return FogPropertyGridComponent;
  58147. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58148. /***/ }),
  58149. /***/ "./components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent.tsx":
  58150. /*!****************************************************************************************!*\
  58151. !*** ./components/actionTabs/tabs/propertyGrids/gui/checkboxPropertyGridComponent.tsx ***!
  58152. \****************************************************************************************/
  58153. /*! exports provided: CheckboxPropertyGridComponent */
  58154. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58155. "use strict";
  58156. __webpack_require__.r(__webpack_exports__);
  58157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxPropertyGridComponent", function() { return CheckboxPropertyGridComponent; });
  58158. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58159. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58160. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58161. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58162. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58163. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58164. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58165. var CheckboxPropertyGridComponent = /** @class */ (function (_super) {
  58166. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckboxPropertyGridComponent, _super);
  58167. function CheckboxPropertyGridComponent(props) {
  58168. return _super.call(this, props) || this;
  58169. }
  58170. CheckboxPropertyGridComponent.prototype.render = function () {
  58171. var checkbox = this.props.checkbox;
  58172. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58173. 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 }),
  58174. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHECKBOX" },
  58175. 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 }),
  58176. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Checked", target: checkbox, propertyName: "isChecked", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  58177. };
  58178. return CheckboxPropertyGridComponent;
  58179. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58180. /***/ }),
  58181. /***/ "./components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.tsx":
  58182. /*!*******************************************************************************************!*\
  58183. !*** ./components/actionTabs/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.tsx ***!
  58184. \*******************************************************************************************/
  58185. /*! exports provided: ColorPickerPropertyGridComponent */
  58186. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58187. "use strict";
  58188. __webpack_require__.r(__webpack_exports__);
  58189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerPropertyGridComponent", function() { return ColorPickerPropertyGridComponent; });
  58190. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58191. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58192. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58193. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58194. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58195. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  58196. var ColorPickerPropertyGridComponent = /** @class */ (function (_super) {
  58197. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerPropertyGridComponent, _super);
  58198. function ColorPickerPropertyGridComponent(props) {
  58199. return _super.call(this, props) || this;
  58200. }
  58201. ColorPickerPropertyGridComponent.prototype.render = function () {
  58202. var colorPicker = this.props.colorPicker;
  58203. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58204. 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 }),
  58205. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLORPICKER" },
  58206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Color", target: colorPicker, propertyName: "value", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  58207. };
  58208. return ColorPickerPropertyGridComponent;
  58209. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58210. /***/ }),
  58211. /***/ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx":
  58212. /*!*********************************************************************************************!*\
  58213. !*** ./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx ***!
  58214. \*********************************************************************************************/
  58215. /*! exports provided: CommonControlPropertyGridComponent */
  58216. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58217. "use strict";
  58218. __webpack_require__.r(__webpack_exports__);
  58219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonControlPropertyGridComponent", function() { return CommonControlPropertyGridComponent; });
  58220. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58221. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58222. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58223. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58224. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  58225. /* harmony import */ var babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs-gui/2D/controls/control */ "babylonjs-gui/2D/adtInstrumentation");
  58226. /* 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__);
  58227. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  58228. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58229. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58230. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  58231. var CommonControlPropertyGridComponent = /** @class */ (function (_super) {
  58232. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonControlPropertyGridComponent, _super);
  58233. function CommonControlPropertyGridComponent(props) {
  58234. return _super.call(this, props) || this;
  58235. }
  58236. CommonControlPropertyGridComponent.prototype.renderGridInformation = function () {
  58237. var control = this.props.control;
  58238. if (!control.parent) {
  58239. return null;
  58240. }
  58241. var gridParent = control.parent;
  58242. if (gridParent.rowCount === undefined) {
  58243. return null;
  58244. }
  58245. var grid = gridParent;
  58246. var childCellInfo = grid.getChildCellInfo(control);
  58247. if (childCellInfo === undefined) {
  58248. return null;
  58249. }
  58250. var cellInfos = childCellInfo.split(":");
  58251. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GRID" },
  58252. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Row", value: cellInfos[0] }),
  58253. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Column", value: cellInfos[1] })));
  58254. };
  58255. CommonControlPropertyGridComponent.prototype.render = function () {
  58256. var control = this.props.control;
  58257. var horizontalOptions = [
  58258. { label: "Left", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].HORIZONTAL_ALIGNMENT_LEFT },
  58259. { label: "Right", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].HORIZONTAL_ALIGNMENT_RIGHT },
  58260. { label: "Center", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].HORIZONTAL_ALIGNMENT_CENTER },
  58261. ];
  58262. var verticalOptions = [
  58263. { label: "Top", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].VERTICAL_ALIGNMENT_TOP },
  58264. { label: "Bottom", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].VERTICAL_ALIGNMENT_BOTTOM },
  58265. { label: "Center", value: babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__["Control"].VERTICAL_ALIGNMENT_CENTER },
  58266. ];
  58267. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  58268. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  58269. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Class", value: control.getClassName() }),
  58270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: control, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58271. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Unique ID", value: control.uniqueId.toString() }),
  58272. 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 }),
  58273. control.color !== undefined &&
  58274. 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 }),
  58275. control.background !== undefined &&
  58276. 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 })),
  58277. this.renderGridInformation(),
  58278. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "ALIGNMENT" },
  58279. 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 }),
  58280. 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 })),
  58281. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "POSITION" },
  58282. 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 }),
  58283. 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 }),
  58284. 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 }),
  58285. 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 }),
  58286. 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 }),
  58287. 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 }),
  58288. 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 }),
  58289. 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 })),
  58290. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMATION", closed: true },
  58291. 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 }),
  58292. 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 }),
  58293. 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 }),
  58294. 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 }),
  58295. 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 })),
  58296. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "FONT", closed: true },
  58297. 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 }),
  58298. 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 }),
  58299. 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 }),
  58300. 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 })),
  58301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOWS", closed: true },
  58302. 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 }),
  58303. 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 }),
  58304. 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 }),
  58305. 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 }))));
  58306. };
  58307. return CommonControlPropertyGridComponent;
  58308. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58309. /***/ }),
  58310. /***/ "./components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent.tsx":
  58311. /*!***************************************************************************************!*\
  58312. !*** ./components/actionTabs/tabs/propertyGrids/gui/controlPropertyGridComponent.tsx ***!
  58313. \***************************************************************************************/
  58314. /*! exports provided: ControlPropertyGridComponent */
  58315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58316. "use strict";
  58317. __webpack_require__.r(__webpack_exports__);
  58318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlPropertyGridComponent", function() { return ControlPropertyGridComponent; });
  58319. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58320. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58321. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58322. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58323. var ControlPropertyGridComponent = /** @class */ (function (_super) {
  58324. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ControlPropertyGridComponent, _super);
  58325. function ControlPropertyGridComponent(props) {
  58326. return _super.call(this, props) || this;
  58327. }
  58328. ControlPropertyGridComponent.prototype.render = function () {
  58329. var control = this.props.control;
  58330. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58331. 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 })));
  58332. };
  58333. return ControlPropertyGridComponent;
  58334. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58335. /***/ }),
  58336. /***/ "./components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent.tsx":
  58337. /*!***************************************************************************************!*\
  58338. !*** ./components/actionTabs/tabs/propertyGrids/gui/ellipsePropertyGridComponent.tsx ***!
  58339. \***************************************************************************************/
  58340. /*! exports provided: EllipsePropertyGridComponent */
  58341. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58342. "use strict";
  58343. __webpack_require__.r(__webpack_exports__);
  58344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EllipsePropertyGridComponent", function() { return EllipsePropertyGridComponent; });
  58345. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58346. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58347. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58348. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58349. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58350. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58351. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58352. var EllipsePropertyGridComponent = /** @class */ (function (_super) {
  58353. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EllipsePropertyGridComponent, _super);
  58354. function EllipsePropertyGridComponent(props) {
  58355. return _super.call(this, props) || this;
  58356. }
  58357. EllipsePropertyGridComponent.prototype.render = function () {
  58358. var ellipse = this.props.ellipse;
  58359. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58360. 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 }),
  58361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ELLIPSE" },
  58362. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Clip children", target: ellipse, propertyName: "clipChildren", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58363. 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 }))));
  58364. };
  58365. return EllipsePropertyGridComponent;
  58366. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58367. /***/ }),
  58368. /***/ "./components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent.tsx":
  58369. /*!************************************************************************************!*\
  58370. !*** ./components/actionTabs/tabs/propertyGrids/gui/gridPropertyGridComponent.tsx ***!
  58371. \************************************************************************************/
  58372. /*! exports provided: GridPropertyGridComponent */
  58373. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58374. "use strict";
  58375. __webpack_require__.r(__webpack_exports__);
  58376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridPropertyGridComponent", function() { return GridPropertyGridComponent; });
  58377. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58378. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58379. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58380. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58381. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58382. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  58383. var GridPropertyGridComponent = /** @class */ (function (_super) {
  58384. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GridPropertyGridComponent, _super);
  58385. function GridPropertyGridComponent(props) {
  58386. return _super.call(this, props) || this;
  58387. }
  58388. GridPropertyGridComponent.prototype.renderRows = function () {
  58389. var grid = this.props.grid;
  58390. var rows = [];
  58391. for (var index = 0; index < grid.rowCount; index++) {
  58392. rows.push(grid.getRowDefinition(index));
  58393. }
  58394. return (rows.map(function (rd, i) {
  58395. 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 }));
  58396. }));
  58397. };
  58398. GridPropertyGridComponent.prototype.renderColumns = function () {
  58399. var grid = this.props.grid;
  58400. var cols = [];
  58401. for (var index = 0; index < grid.columnCount; index++) {
  58402. cols.push(grid.getColumnDefinition(index));
  58403. }
  58404. return (cols.map(function (cd, i) {
  58405. 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) }));
  58406. }));
  58407. };
  58408. GridPropertyGridComponent.prototype.render = function () {
  58409. var grid = this.props.grid;
  58410. var cols = [];
  58411. for (var index = 0; index < grid.rowCount; index++) {
  58412. cols.push(grid.getColumnDefinition(index));
  58413. }
  58414. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58415. 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 }),
  58416. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GRID" },
  58417. this.renderRows(),
  58418. this.renderColumns())));
  58419. };
  58420. return GridPropertyGridComponent;
  58421. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58422. /***/ }),
  58423. /***/ "./components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.tsx":
  58424. /*!************************************************************************************************!*\
  58425. !*** ./components/actionTabs/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.tsx ***!
  58426. \************************************************************************************************/
  58427. /*! exports provided: ImageBasedSliderPropertyGridComponent */
  58428. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58429. "use strict";
  58430. __webpack_require__.r(__webpack_exports__);
  58431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImageBasedSliderPropertyGridComponent", function() { return ImageBasedSliderPropertyGridComponent; });
  58432. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58433. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58434. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58435. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58436. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58437. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58438. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58439. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58440. var ImageBasedSliderPropertyGridComponent = /** @class */ (function (_super) {
  58441. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ImageBasedSliderPropertyGridComponent, _super);
  58442. function ImageBasedSliderPropertyGridComponent(props) {
  58443. return _super.call(this, props) || this;
  58444. }
  58445. ImageBasedSliderPropertyGridComponent.prototype.render = function () {
  58446. var imageBasedSlider = this.props.imageBasedSlider;
  58447. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58448. 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 }),
  58449. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "IMAGE BASED SLIDER" },
  58450. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display thumb", target: imageBasedSlider, propertyName: "displayThumb", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58451. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Vertical", target: imageBasedSlider, propertyName: "isVertical", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58452. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Thumb clamped", target: imageBasedSlider, propertyName: "isThumbClamped", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58453. 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 }),
  58454. 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 }),
  58455. 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 }),
  58456. 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 }),
  58457. 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 }))));
  58458. };
  58459. return ImageBasedSliderPropertyGridComponent;
  58460. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58461. /***/ }),
  58462. /***/ "./components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent.tsx":
  58463. /*!*************************************************************************************!*\
  58464. !*** ./components/actionTabs/tabs/propertyGrids/gui/imagePropertyGridComponent.tsx ***!
  58465. \*************************************************************************************/
  58466. /*! exports provided: ImagePropertyGridComponent */
  58467. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58468. "use strict";
  58469. __webpack_require__.r(__webpack_exports__);
  58470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImagePropertyGridComponent", function() { return ImagePropertyGridComponent; });
  58471. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58472. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58473. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58474. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58475. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58476. /* harmony import */ var babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs-gui/2D/controls/image */ "babylonjs-gui/2D/adtInstrumentation");
  58477. /* 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__);
  58478. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58479. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58480. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  58481. var ImagePropertyGridComponent = /** @class */ (function (_super) {
  58482. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ImagePropertyGridComponent, _super);
  58483. function ImagePropertyGridComponent(props) {
  58484. return _super.call(this, props) || this;
  58485. }
  58486. ImagePropertyGridComponent.prototype.render = function () {
  58487. var _this = this;
  58488. var image = this.props.image;
  58489. var stretchOptions = [
  58490. { label: "None", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_NONE },
  58491. { label: "Fill", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_FILL },
  58492. { label: "Uniform", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_UNIFORM },
  58493. { label: "Extend", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_EXTEND },
  58494. { label: "NinePatch", value: babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__["Image"].STRETCH_NINE_PATCH }
  58495. ];
  58496. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58497. 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 }),
  58498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "IMAGE" },
  58499. 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 }),
  58500. 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 }),
  58501. 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 }),
  58502. 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 }),
  58503. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Autoscale", target: image, propertyName: "autoScale", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58504. 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 }); } })),
  58505. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANIMATION SHEET" },
  58506. 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 }),
  58507. 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 }),
  58508. 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 }))));
  58509. };
  58510. return ImagePropertyGridComponent;
  58511. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58512. /***/ }),
  58513. /***/ "./components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent.tsx":
  58514. /*!*****************************************************************************************!*\
  58515. !*** ./components/actionTabs/tabs/propertyGrids/gui/inputTextPropertyGridComponent.tsx ***!
  58516. \*****************************************************************************************/
  58517. /*! exports provided: InputTextPropertyGridComponent */
  58518. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58519. "use strict";
  58520. __webpack_require__.r(__webpack_exports__);
  58521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputTextPropertyGridComponent", function() { return InputTextPropertyGridComponent; });
  58522. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58523. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58524. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58525. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58526. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58527. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58528. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  58529. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58530. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58531. var InputTextPropertyGridComponent = /** @class */ (function (_super) {
  58532. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputTextPropertyGridComponent, _super);
  58533. function InputTextPropertyGridComponent(props) {
  58534. return _super.call(this, props) || this;
  58535. }
  58536. InputTextPropertyGridComponent.prototype.render = function () {
  58537. var inputText = this.props.inputText;
  58538. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58539. 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 }),
  58540. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "INPUTTEXT" },
  58541. 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 }),
  58542. 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 }),
  58543. 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 }),
  58544. 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 }),
  58545. 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 }),
  58546. 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 }),
  58547. 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 }),
  58548. 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 }),
  58549. 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 }),
  58550. 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 }),
  58551. 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 }),
  58552. 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 }),
  58553. 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 }))));
  58554. };
  58555. return InputTextPropertyGridComponent;
  58556. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58557. /***/ }),
  58558. /***/ "./components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent.tsx":
  58559. /*!************************************************************************************!*\
  58560. !*** ./components/actionTabs/tabs/propertyGrids/gui/linePropertyGridComponent.tsx ***!
  58561. \************************************************************************************/
  58562. /*! exports provided: LinePropertyGridComponent */
  58563. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58564. "use strict";
  58565. __webpack_require__.r(__webpack_exports__);
  58566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinePropertyGridComponent", function() { return LinePropertyGridComponent; });
  58567. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58568. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58569. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58570. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58571. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58572. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58573. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58574. var LinePropertyGridComponent = /** @class */ (function (_super) {
  58575. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LinePropertyGridComponent, _super);
  58576. function LinePropertyGridComponent(props) {
  58577. return _super.call(this, props) || this;
  58578. }
  58579. LinePropertyGridComponent.prototype.onDashChange = function (value) {
  58580. var line = this.props.line;
  58581. var split = value.split(",");
  58582. line.dash = [];
  58583. split.forEach(function (v) {
  58584. var int = parseInt(v);
  58585. if (isNaN(int)) {
  58586. return;
  58587. }
  58588. line.dash.push(int);
  58589. });
  58590. };
  58591. LinePropertyGridComponent.prototype.render = function () {
  58592. var _this = this;
  58593. var line = this.props.line;
  58594. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58595. 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 }),
  58596. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LINE" },
  58597. 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 }),
  58598. 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 }),
  58599. 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 }),
  58600. 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 }),
  58601. 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 }),
  58602. 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); } }))));
  58603. };
  58604. return LinePropertyGridComponent;
  58605. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58606. /***/ }),
  58607. /***/ "./components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.tsx":
  58608. /*!*******************************************************************************************!*\
  58609. !*** ./components/actionTabs/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.tsx ***!
  58610. \*******************************************************************************************/
  58611. /*! exports provided: RadioButtonPropertyGridComponent */
  58612. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58613. "use strict";
  58614. __webpack_require__.r(__webpack_exports__);
  58615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadioButtonPropertyGridComponent", function() { return RadioButtonPropertyGridComponent; });
  58616. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58617. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58618. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58619. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58620. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58621. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58622. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58623. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58624. var RadioButtonPropertyGridComponent = /** @class */ (function (_super) {
  58625. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadioButtonPropertyGridComponent, _super);
  58626. function RadioButtonPropertyGridComponent(props) {
  58627. return _super.call(this, props) || this;
  58628. }
  58629. RadioButtonPropertyGridComponent.prototype.render = function () {
  58630. var radioButton = this.props.radioButton;
  58631. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58632. 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 }),
  58633. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RADIO BUTTON" },
  58634. 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 }),
  58635. 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 }),
  58636. 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 }),
  58637. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Checked", target: radioButton, propertyName: "isChecked", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  58638. };
  58639. return RadioButtonPropertyGridComponent;
  58640. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58641. /***/ }),
  58642. /***/ "./components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent.tsx":
  58643. /*!*****************************************************************************************!*\
  58644. !*** ./components/actionTabs/tabs/propertyGrids/gui/rectanglePropertyGridComponent.tsx ***!
  58645. \*****************************************************************************************/
  58646. /*! exports provided: RectanglePropertyGridComponent */
  58647. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58648. "use strict";
  58649. __webpack_require__.r(__webpack_exports__);
  58650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RectanglePropertyGridComponent", function() { return RectanglePropertyGridComponent; });
  58651. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58652. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58653. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58654. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58655. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58656. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58657. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58658. var RectanglePropertyGridComponent = /** @class */ (function (_super) {
  58659. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RectanglePropertyGridComponent, _super);
  58660. function RectanglePropertyGridComponent(props) {
  58661. return _super.call(this, props) || this;
  58662. }
  58663. RectanglePropertyGridComponent.prototype.render = function () {
  58664. var rectangle = this.props.rectangle;
  58665. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58666. 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 }),
  58667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RECTANGLE" },
  58668. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Clip children", target: rectangle, propertyName: "clipChildren", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58669. 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 }),
  58670. 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 }))));
  58671. };
  58672. return RectanglePropertyGridComponent;
  58673. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58674. /***/ }),
  58675. /***/ "./components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.tsx":
  58676. /*!********************************************************************************************!*\
  58677. !*** ./components/actionTabs/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.tsx ***!
  58678. \********************************************************************************************/
  58679. /*! exports provided: ScrollViewerPropertyGridComponent */
  58680. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58681. "use strict";
  58682. __webpack_require__.r(__webpack_exports__);
  58683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScrollViewerPropertyGridComponent", function() { return ScrollViewerPropertyGridComponent; });
  58684. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58685. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58686. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58687. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58688. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58689. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58690. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58691. var ScrollViewerPropertyGridComponent = /** @class */ (function (_super) {
  58692. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScrollViewerPropertyGridComponent, _super);
  58693. function ScrollViewerPropertyGridComponent(props) {
  58694. return _super.call(this, props) || this;
  58695. }
  58696. ScrollViewerPropertyGridComponent.prototype.render = function () {
  58697. var scrollViewer = this.props.scrollViewer;
  58698. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58699. 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 }),
  58700. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RECTANGLE" },
  58701. 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 }),
  58702. 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 })),
  58703. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCROLLVIEWER" },
  58704. 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 }),
  58705. 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 }),
  58706. 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 }),
  58707. 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 }))));
  58708. };
  58709. return ScrollViewerPropertyGridComponent;
  58710. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58711. /***/ }),
  58712. /***/ "./components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent.tsx":
  58713. /*!**************************************************************************************!*\
  58714. !*** ./components/actionTabs/tabs/propertyGrids/gui/sliderPropertyGridComponent.tsx ***!
  58715. \**************************************************************************************/
  58716. /*! exports provided: SliderPropertyGridComponent */
  58717. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58718. "use strict";
  58719. __webpack_require__.r(__webpack_exports__);
  58720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderPropertyGridComponent", function() { return SliderPropertyGridComponent; });
  58721. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58722. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58723. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58724. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58725. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58726. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58727. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58728. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58729. var SliderPropertyGridComponent = /** @class */ (function (_super) {
  58730. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderPropertyGridComponent, _super);
  58731. function SliderPropertyGridComponent(props) {
  58732. return _super.call(this, props) || this;
  58733. }
  58734. SliderPropertyGridComponent.prototype.render = function () {
  58735. var slider = this.props.slider;
  58736. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58737. 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 }),
  58738. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SLIDER" },
  58739. 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 }),
  58740. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display thumb", target: slider, propertyName: "displayThumb", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Thumb circle", target: slider, propertyName: "isThumbCircle", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58742. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Vertical", target: slider, propertyName: "isVertical", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58743. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Thumb clamped", target: slider, propertyName: "isThumbClamped", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58744. 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 }),
  58745. 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 }),
  58746. 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 }),
  58747. 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 }),
  58748. 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 }))));
  58749. };
  58750. return SliderPropertyGridComponent;
  58751. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58752. /***/ }),
  58753. /***/ "./components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.tsx":
  58754. /*!******************************************************************************************!*\
  58755. !*** ./components/actionTabs/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.tsx ***!
  58756. \******************************************************************************************/
  58757. /*! exports provided: StackPanelPropertyGridComponent */
  58758. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58759. "use strict";
  58760. __webpack_require__.r(__webpack_exports__);
  58761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StackPanelPropertyGridComponent", function() { return StackPanelPropertyGridComponent; });
  58762. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58763. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58764. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58765. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58766. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58767. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58768. var StackPanelPropertyGridComponent = /** @class */ (function (_super) {
  58769. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StackPanelPropertyGridComponent, _super);
  58770. function StackPanelPropertyGridComponent(props) {
  58771. return _super.call(this, props) || this;
  58772. }
  58773. StackPanelPropertyGridComponent.prototype.render = function () {
  58774. var stackPanel = this.props.stackPanel;
  58775. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58776. 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 }),
  58777. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "STACKPANEL" },
  58778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Clip children", target: stackPanel, propertyName: "clipChildren", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58779. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Vertical", target: stackPanel, propertyName: "isVertical", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  58780. };
  58781. return StackPanelPropertyGridComponent;
  58782. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58783. /***/ }),
  58784. /***/ "./components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent.tsx":
  58785. /*!*****************************************************************************************!*\
  58786. !*** ./components/actionTabs/tabs/propertyGrids/gui/textBlockPropertyGridComponent.tsx ***!
  58787. \*****************************************************************************************/
  58788. /*! exports provided: TextBlockPropertyGridComponent */
  58789. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58790. "use strict";
  58791. __webpack_require__.r(__webpack_exports__);
  58792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextBlockPropertyGridComponent", function() { return TextBlockPropertyGridComponent; });
  58793. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58794. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58795. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58796. /* harmony import */ var _commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonControlPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
  58797. /* harmony import */ var babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs-gui/2D/controls/textBlock */ "babylonjs-gui/2D/adtInstrumentation");
  58798. /* 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__);
  58799. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58800. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58801. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  58802. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58803. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58804. var TextBlockPropertyGridComponent = /** @class */ (function (_super) {
  58805. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextBlockPropertyGridComponent, _super);
  58806. function TextBlockPropertyGridComponent(props) {
  58807. return _super.call(this, props) || this;
  58808. }
  58809. TextBlockPropertyGridComponent.prototype.render = function () {
  58810. var textBlock = this.props.textBlock;
  58811. var horizontalOptions = [
  58812. { label: "Left", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].HORIZONTAL_ALIGNMENT_LEFT },
  58813. { label: "Right", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].HORIZONTAL_ALIGNMENT_RIGHT },
  58814. { label: "Center", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].HORIZONTAL_ALIGNMENT_CENTER },
  58815. ];
  58816. var verticalOptions = [
  58817. { label: "Top", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].VERTICAL_ALIGNMENT_TOP },
  58818. { label: "Bottom", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].VERTICAL_ALIGNMENT_BOTTOM },
  58819. { label: "Center", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["Control"].VERTICAL_ALIGNMENT_CENTER },
  58820. ];
  58821. var wrappingOptions = [
  58822. { label: "Clip", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["TextWrapping"].Clip },
  58823. { label: "Ellipsis", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["TextWrapping"].Ellipsis },
  58824. { label: "Word wrap", value: babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__["TextWrapping"].WordWrap },
  58825. ];
  58826. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  58827. 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 }),
  58828. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTBLOCK" },
  58829. 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 }),
  58830. 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 }),
  58831. 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 }),
  58832. 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 }),
  58833. 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 }),
  58834. 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 })),
  58835. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "OUTLINE" },
  58836. 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 }),
  58837. 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 }))));
  58838. };
  58839. return TextBlockPropertyGridComponent;
  58840. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58841. /***/ }),
  58842. /***/ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx":
  58843. /*!**********************************************************************************************!*\
  58844. !*** ./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx ***!
  58845. \**********************************************************************************************/
  58846. /*! exports provided: CommonLightPropertyGridComponent */
  58847. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58848. "use strict";
  58849. __webpack_require__.r(__webpack_exports__);
  58850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonLightPropertyGridComponent", function() { return CommonLightPropertyGridComponent; });
  58851. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58852. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58853. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58854. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58855. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58856. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  58857. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  58858. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  58859. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  58860. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  58861. var CommonLightPropertyGridComponent = /** @class */ (function (_super) {
  58862. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonLightPropertyGridComponent, _super);
  58863. function CommonLightPropertyGridComponent(props) {
  58864. return _super.call(this, props) || this;
  58865. }
  58866. CommonLightPropertyGridComponent.prototype.render = function () {
  58867. var _this = this;
  58868. var light = this.props.light;
  58869. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  58870. 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 }),
  58871. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  58872. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: light.id }),
  58873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: light, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: light.uniqueId.toString() }),
  58875. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: light.getClassName() }),
  58876. 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 }),
  58877. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  58878. light.dispose();
  58879. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58880. } })),
  58881. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: light, scene: light.getScene(), lockObject: this.props.lockObject })));
  58882. };
  58883. return CommonLightPropertyGridComponent;
  58884. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58885. /***/ }),
  58886. /***/ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx":
  58887. /*!****************************************************************************************************!*\
  58888. !*** ./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx ***!
  58889. \****************************************************************************************************/
  58890. /*! exports provided: CommonShadowLightPropertyGridComponent */
  58891. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58892. "use strict";
  58893. __webpack_require__.r(__webpack_exports__);
  58894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonShadowLightPropertyGridComponent", function() { return CommonShadowLightPropertyGridComponent; });
  58895. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58896. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58897. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58898. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  58899. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  58900. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  58901. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  58902. /* harmony import */ var babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Lights/Shadows/shadowGenerator */ "babylonjs/Misc/observable");
  58903. /* harmony import */ var babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__);
  58904. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  58905. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  58906. var CommonShadowLightPropertyGridComponent = /** @class */ (function (_super) {
  58907. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonShadowLightPropertyGridComponent, _super);
  58908. function CommonShadowLightPropertyGridComponent(props) {
  58909. var _this = _super.call(this, props) || this;
  58910. _this._internals = {
  58911. generatorType: 0,
  58912. mapSize: 1024,
  58913. };
  58914. return _this;
  58915. }
  58916. CommonShadowLightPropertyGridComponent.prototype.createShadowGenerator = function () {
  58917. var light = this.props.light;
  58918. var scene = light.getScene();
  58919. var internals = this._internals;
  58920. 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);
  58921. scene.meshes.forEach(function (m) {
  58922. generator.addShadowCaster(m);
  58923. if (!m.isAnInstance) {
  58924. m.receiveShadows = true;
  58925. }
  58926. });
  58927. this.forceUpdate();
  58928. };
  58929. CommonShadowLightPropertyGridComponent.prototype.disposeShadowGenerator = function () {
  58930. var _a;
  58931. var light = this.props.light;
  58932. (_a = light.getShadowGenerator()) === null || _a === void 0 ? void 0 : _a.dispose();
  58933. this.forceUpdate();
  58934. };
  58935. CommonShadowLightPropertyGridComponent.prototype.render = function () {
  58936. var _this = this;
  58937. var light = this.props.light;
  58938. var internals = this._internals;
  58939. var generator = light.getShadowGenerator() || null;
  58940. var csmGenerator = generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["CascadedShadowGenerator"];
  58941. var camera = light.getScene().activeCamera;
  58942. var typeGeneratorOptions = [
  58943. { label: "Shadow Generator", value: 0 }
  58944. ];
  58945. if (light instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["DirectionalLight"]) {
  58946. typeGeneratorOptions.push({ label: "Cascaded Shadow Generator", value: 1 });
  58947. }
  58948. var mapSizeOptions = [
  58949. { label: "2048x2048", value: 2048 },
  58950. { label: "1024x1024", value: 1024 },
  58951. { label: "512x512", value: 512 },
  58952. { label: "256x256", value: 256 },
  58953. ];
  58954. var blurModeOptions;
  58955. if (generator instanceof babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["CascadedShadowGenerator"]) {
  58956. blurModeOptions = [
  58957. { label: "None", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_NONE },
  58958. { label: "PCF", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCF },
  58959. { label: "PCSS", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS },
  58960. ];
  58961. }
  58962. else {
  58963. blurModeOptions = [
  58964. { label: "None", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_NONE },
  58965. { label: "PCF", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCF },
  58966. { label: "PCSS", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS },
  58967. { label: "Poisson", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_POISSONSAMPLING },
  58968. { label: "Exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_EXPONENTIALSHADOWMAP },
  58969. { label: "Blurred exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLUREXPONENTIALSHADOWMAP },
  58970. { label: "Close exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_CLOSEEXPONENTIALSHADOWMAP },
  58971. { label: "Blurred close exponential", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_BLURCLOSEEXPONENTIALSHADOWMAP },
  58972. ];
  58973. }
  58974. var filteringQualityOptions = [
  58975. { label: "Low", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].QUALITY_LOW },
  58976. { label: "Medium", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].QUALITY_MEDIUM },
  58977. { label: "High", value: babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].QUALITY_HIGH },
  58978. ];
  58979. var numCascadesOptions = [
  58980. { label: "2", value: 2 },
  58981. { label: "3", value: 3 },
  58982. { label: "4", value: 4 },
  58983. ];
  58984. var near = camera ? camera.minZ : 0, far = camera ? camera.maxZ : 0;
  58985. var filter = generator ? generator.filter : 0;
  58986. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  58987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOWS" },
  58988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Shadows enabled", target: light, propertyName: "shadowEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  58989. !csmGenerator && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  58990. 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 }),
  58991. 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 }))),
  58992. generator == null &&
  58993. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOW GENERATOR" },
  58994. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Type", options: typeGeneratorOptions, target: internals, propertyName: "generatorType" }),
  58995. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Map size", options: mapSizeOptions, target: internals, propertyName: "mapSize" }),
  58996. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__["ButtonLineComponent"], { label: "Create generator", onClick: function () { return _this.createShadowGenerator(); } })),
  58997. generator !== null &&
  58998. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOW GENERATOR" },
  58999. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__["ButtonLineComponent"], { label: "Dispose generator", onClick: function () { return _this.disposeShadowGenerator(); } }),
  59000. csmGenerator && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59001. 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 }),
  59002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Debug mode", target: generator, propertyName: "debug", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Stabilize cascades", target: generator, propertyName: "stabilizeCascades", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59004. 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 }),
  59005. 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 }),
  59006. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Depth clamp", target: generator, propertyName: "depthClamp", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59007. 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 }),
  59008. 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 })),
  59009. 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 }),
  59010. 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 }),
  59011. 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 }),
  59012. 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 }),
  59013. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Filter", options: blurModeOptions, onSelect: function () {
  59014. _this.forceUpdate();
  59015. }, target: generator, propertyName: "filter", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59016. (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCF || filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS) &&
  59017. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Filtering quality", options: filteringQualityOptions, onSelect: function () {
  59018. _this.forceUpdate();
  59019. }, target: generator, propertyName: "filteringQuality", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59020. (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS) &&
  59021. 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 }),
  59022. !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) &&
  59023. 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 }),
  59024. (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) &&
  59025. !generator.useKernelBlur &&
  59026. 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 }),
  59027. (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) &&
  59028. generator.useKernelBlur &&
  59029. 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 }),
  59030. (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) &&
  59031. 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 }),
  59032. (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) &&
  59033. 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 }),
  59034. csmGenerator && (filter === babylonjs_Lights_Shadows_shadowGenerator__WEBPACK_IMPORTED_MODULE_6__["ShadowGenerator"].FILTER_PCSS) &&
  59035. 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 }))));
  59036. };
  59037. return CommonShadowLightPropertyGridComponent;
  59038. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59039. /***/ }),
  59040. /***/ "./components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent.tsx":
  59041. /*!***************************************************************************************************!*\
  59042. !*** ./components/actionTabs/tabs/propertyGrids/lights/directionalLightPropertyGridComponent.tsx ***!
  59043. \***************************************************************************************************/
  59044. /*! exports provided: DirectionalLightPropertyGridComponent */
  59045. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59046. "use strict";
  59047. __webpack_require__.r(__webpack_exports__);
  59048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionalLightPropertyGridComponent", function() { return DirectionalLightPropertyGridComponent; });
  59049. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59050. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59051. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59052. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  59053. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59054. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59055. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  59056. /* harmony import */ var _commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonShadowLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx");
  59057. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59058. /* harmony import */ var babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! babylonjs/Lights/Shadows/cascadedShadowGenerator */ "babylonjs/Misc/observable");
  59059. /* harmony import */ var babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8__);
  59060. var DirectionalLightPropertyGridComponent = /** @class */ (function (_super) {
  59061. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DirectionalLightPropertyGridComponent, _super);
  59062. function DirectionalLightPropertyGridComponent(props) {
  59063. return _super.call(this, props) || this;
  59064. }
  59065. DirectionalLightPropertyGridComponent.prototype.render = function () {
  59066. var light = this.props.light;
  59067. var generator = light.getShadowGenerator() || null;
  59068. var hideAutoCalcShadowZBounds = generator instanceof babylonjs_Lights_Shadows_cascadedShadowGenerator__WEBPACK_IMPORTED_MODULE_8__["CascadedShadowGenerator"];
  59069. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59070. 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 }),
  59071. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  59072. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59073. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: light, propertyName: "specular", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59074. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Position", target: light, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59075. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Direction", target: light, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59076. !hideAutoCalcShadowZBounds &&
  59077. 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 })),
  59078. 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 })));
  59079. };
  59080. return DirectionalLightPropertyGridComponent;
  59081. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59082. /***/ }),
  59083. /***/ "./components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent.tsx":
  59084. /*!***************************************************************************************************!*\
  59085. !*** ./components/actionTabs/tabs/propertyGrids/lights/hemisphericLightPropertyGridComponent.tsx ***!
  59086. \***************************************************************************************************/
  59087. /*! exports provided: HemisphericLightPropertyGridComponent */
  59088. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59089. "use strict";
  59090. __webpack_require__.r(__webpack_exports__);
  59091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HemisphericLightPropertyGridComponent", function() { return HemisphericLightPropertyGridComponent; });
  59092. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59093. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59094. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59095. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  59096. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59097. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59098. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  59099. var HemisphericLightPropertyGridComponent = /** @class */ (function (_super) {
  59100. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HemisphericLightPropertyGridComponent, _super);
  59101. function HemisphericLightPropertyGridComponent(props) {
  59102. return _super.call(this, props) || this;
  59103. }
  59104. HemisphericLightPropertyGridComponent.prototype.render = function () {
  59105. var light = this.props.light;
  59106. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59107. 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 }),
  59108. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  59109. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59110. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Ground", target: light, propertyName: "groundColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59111. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Direction", target: light, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  59112. };
  59113. return HemisphericLightPropertyGridComponent;
  59114. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59115. /***/ }),
  59116. /***/ "./components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent.tsx":
  59117. /*!*********************************************************************************************!*\
  59118. !*** ./components/actionTabs/tabs/propertyGrids/lights/pointLightPropertyGridComponent.tsx ***!
  59119. \*********************************************************************************************/
  59120. /*! exports provided: PointLightPropertyGridComponent */
  59121. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59122. "use strict";
  59123. __webpack_require__.r(__webpack_exports__);
  59124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointLightPropertyGridComponent", function() { return PointLightPropertyGridComponent; });
  59125. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59126. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59127. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59128. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  59129. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59130. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59131. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  59132. /* harmony import */ var _commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonShadowLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx");
  59133. var PointLightPropertyGridComponent = /** @class */ (function (_super) {
  59134. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PointLightPropertyGridComponent, _super);
  59135. function PointLightPropertyGridComponent(props) {
  59136. return _super.call(this, props) || this;
  59137. }
  59138. PointLightPropertyGridComponent.prototype.render = function () {
  59139. var light = this.props.light;
  59140. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59141. 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 }),
  59142. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  59143. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59144. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: light, propertyName: "specular", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59145. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Position", target: light, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  59146. 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 })));
  59147. };
  59148. return PointLightPropertyGridComponent;
  59149. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59150. /***/ }),
  59151. /***/ "./components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx":
  59152. /*!********************************************************************************************!*\
  59153. !*** ./components/actionTabs/tabs/propertyGrids/lights/spotLightPropertyGridComponent.tsx ***!
  59154. \********************************************************************************************/
  59155. /*! exports provided: SpotLightPropertyGridComponent */
  59156. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59157. "use strict";
  59158. __webpack_require__.r(__webpack_exports__);
  59159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpotLightPropertyGridComponent", function() { return SpotLightPropertyGridComponent; });
  59160. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59161. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59162. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59163. /* harmony import */ var _commonLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonLightPropertyGridComponent.tsx");
  59164. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59165. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59166. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  59167. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  59168. /* harmony import */ var _commonShadowLightPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commonShadowLightPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/lights/commonShadowLightPropertyGridComponent.tsx");
  59169. var SpotLightPropertyGridComponent = /** @class */ (function (_super) {
  59170. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SpotLightPropertyGridComponent, _super);
  59171. function SpotLightPropertyGridComponent(props) {
  59172. return _super.call(this, props) || this;
  59173. }
  59174. SpotLightPropertyGridComponent.prototype.render = function () {
  59175. var light = this.props.light;
  59176. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59177. 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 }),
  59178. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SETUP" },
  59179. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: light, propertyName: "diffuse", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59180. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: light, propertyName: "specular", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59181. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Position", target: light, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59182. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Vector3LineComponent"], { label: "Direction", target: light, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59183. 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 }),
  59184. 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 }),
  59185. 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 })),
  59186. 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 })));
  59187. };
  59188. return SpotLightPropertyGridComponent;
  59189. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59190. /***/ }),
  59191. /***/ "./components/actionTabs/tabs/propertyGrids/lockObject.ts":
  59192. /*!****************************************************************!*\
  59193. !*** ./components/actionTabs/tabs/propertyGrids/lockObject.ts ***!
  59194. \****************************************************************/
  59195. /*! exports provided: LockObject */
  59196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59197. "use strict";
  59198. __webpack_require__.r(__webpack_exports__);
  59199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LockObject", function() { return LockObject; });
  59200. /**
  59201. * Class used to provide lock mechanism
  59202. */
  59203. var LockObject = /** @class */ (function () {
  59204. function LockObject() {
  59205. /**
  59206. * Gets or set if the lock is engaged
  59207. */
  59208. this.lock = false;
  59209. }
  59210. return LockObject;
  59211. }());
  59212. /***/ }),
  59213. /***/ "./components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent.tsx":
  59214. /*!********************************************************************************************************!*\
  59215. !*** ./components/actionTabs/tabs/propertyGrids/materials/backgroundMaterialPropertyGridComponent.tsx ***!
  59216. \********************************************************************************************************/
  59217. /*! exports provided: BackgroundMaterialPropertyGridComponent */
  59218. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59219. "use strict";
  59220. __webpack_require__.r(__webpack_exports__);
  59221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackgroundMaterialPropertyGridComponent", function() { return BackgroundMaterialPropertyGridComponent; });
  59222. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59223. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59224. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59225. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  59226. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  59227. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59228. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59229. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59230. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59231. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59232. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  59233. var BackgroundMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59234. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BackgroundMaterialPropertyGridComponent, _super);
  59235. function BackgroundMaterialPropertyGridComponent(props) {
  59236. var _this = _super.call(this, props) || this;
  59237. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  59238. return _this;
  59239. }
  59240. BackgroundMaterialPropertyGridComponent.prototype.renderTextures = function () {
  59241. var material = this.props.material;
  59242. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  59243. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  59244. 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 }),
  59245. 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 }),
  59246. material.reflectionTexture &&
  59247. 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 })));
  59248. };
  59249. BackgroundMaterialPropertyGridComponent.prototype.render = function () {
  59250. var material = this.props.material;
  59251. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59252. 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 }),
  59253. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  59254. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Primary", target: material, propertyName: "primaryColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59255. 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 }),
  59256. 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 })),
  59257. this.renderTextures(),
  59258. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RENDERING", closed: true },
  59259. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enable noise", target: material, propertyName: "enableNoise", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59260. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Opacity fresnel", target: material, propertyName: "opacityFresnel", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59261. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Reflection fresnel", target: material, propertyName: "reflectionFresnel", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59262. 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 }))));
  59263. };
  59264. return BackgroundMaterialPropertyGridComponent;
  59265. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59266. /***/ }),
  59267. /***/ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx":
  59268. /*!****************************************************************************************************!*\
  59269. !*** ./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx ***!
  59270. \****************************************************************************************************/
  59271. /*! exports provided: CommonMaterialPropertyGridComponent */
  59272. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59273. "use strict";
  59274. __webpack_require__.r(__webpack_exports__);
  59275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonMaterialPropertyGridComponent", function() { return CommonMaterialPropertyGridComponent; });
  59276. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59277. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59278. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59279. /* harmony import */ var babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/material */ "babylonjs/Misc/observable");
  59280. /* harmony import */ var babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__);
  59281. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59282. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59283. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59284. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  59285. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  59286. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  59287. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  59288. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  59289. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  59290. var CommonMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59291. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonMaterialPropertyGridComponent, _super);
  59292. function CommonMaterialPropertyGridComponent(props) {
  59293. return _super.call(this, props) || this;
  59294. }
  59295. CommonMaterialPropertyGridComponent.prototype.render = function () {
  59296. var _this = this;
  59297. var _a;
  59298. var material = this.props.material;
  59299. material.depthFunction = (_a = material.depthFunction) !== null && _a !== void 0 ? _a : 0;
  59300. var orientationOptions = [
  59301. { label: "Clockwise", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Material"].ClockWiseSideOrientation },
  59302. { label: "Counterclockwise", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Material"].CounterClockWiseSideOrientation }
  59303. ];
  59304. var transparencyModeOptions = [
  59305. { label: "<Not Defined>", value: _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["Null_Value"] },
  59306. { label: "Opaque", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_OPAQUE },
  59307. { label: "Alpha test", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_ALPHATEST },
  59308. { label: "Alpha blend", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_ALPHABLEND },
  59309. { label: "Alpha blend and test", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"].PBRMATERIAL_ALPHATESTANDBLEND },
  59310. ];
  59311. var alphaModeOptions = [
  59312. { label: "Combine", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_COMBINE },
  59313. { label: "One one", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_ONEONE },
  59314. { label: "Add", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_ADD },
  59315. { label: "Subtract", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_SUBTRACT },
  59316. { label: "Multiply", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_MULTIPLY },
  59317. { label: "Maximized", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_MAXIMIZED },
  59318. { label: "Pre-multiplied", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Constants"].ALPHA_PREMULTIPLIED },
  59319. ];
  59320. var depthfunctionOptions = [
  59321. { label: "<Engine Default>", value: 0 },
  59322. { label: "Never", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].NEVER },
  59323. { label: "Always", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].ALWAYS },
  59324. { label: "Equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].EQUAL },
  59325. { label: "Less", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].LESS },
  59326. { label: "Less or equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].LEQUAL },
  59327. { label: "Greater", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].GREATER },
  59328. { label: "Greater or equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].GEQUAL },
  59329. { label: "Not equal", value: babylonjs_Materials_material__WEBPACK_IMPORTED_MODULE_2__["Engine"].NOTEQUAL },
  59330. ];
  59331. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  59332. 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 }),
  59333. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  59334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "ID", value: material.id }),
  59335. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: material, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59336. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Unique ID", value: material.uniqueId.toString() }),
  59337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextLineComponent"], { label: "Class", value: material.getClassName() }),
  59338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Backface culling", target: material, propertyName: "backFaceCulling", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59339. 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 }); } }),
  59340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Disable lighting", target: material, propertyName: "disableLighting", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59341. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Disable color write", target: material, propertyName: "disableColorWrite", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59342. 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 }),
  59343. 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 }); } }),
  59344. 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 }),
  59345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Wireframe", target: material, propertyName: "wireframe", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59346. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Point cloud", target: material, propertyName: "pointsCloud", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59347. 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 }),
  59348. 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 }),
  59349. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  59350. material.dispose();
  59351. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  59352. } })),
  59353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSPARENCY" },
  59354. 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 }),
  59355. material.transparencyMode !== undefined &&
  59356. 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 }); } }),
  59357. 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 }); } }),
  59358. material.diffuseTexture &&
  59359. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Diffuse texture has alpha", target: material.diffuseTexture, propertyName: "hasAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59360. material.useAlphaFromDiffuseTexture !== undefined &&
  59361. 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 }),
  59362. material.albedoTexture &&
  59363. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Albedo texture has alpha", target: material.albedoTexture, propertyName: "hasAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59364. material.useAlphaFromAlbedoTexture !== undefined &&
  59365. 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 }),
  59366. 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 })),
  59367. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: material, scene: material.getScene(), lockObject: this.props.lockObject })));
  59368. };
  59369. return CommonMaterialPropertyGridComponent;
  59370. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59371. /***/ }),
  59372. /***/ "./components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent.tsx":
  59373. /*!**********************************************************************************************!*\
  59374. !*** ./components/actionTabs/tabs/propertyGrids/materials/materialPropertyGridComponent.tsx ***!
  59375. \**********************************************************************************************/
  59376. /*! exports provided: MaterialPropertyGridComponent */
  59377. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59378. "use strict";
  59379. __webpack_require__.r(__webpack_exports__);
  59380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialPropertyGridComponent", function() { return MaterialPropertyGridComponent; });
  59381. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59382. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59383. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59384. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59385. var MaterialPropertyGridComponent = /** @class */ (function (_super) {
  59386. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MaterialPropertyGridComponent, _super);
  59387. function MaterialPropertyGridComponent(props) {
  59388. return _super.call(this, props) || this;
  59389. }
  59390. MaterialPropertyGridComponent.prototype.render = function () {
  59391. var material = this.props.material;
  59392. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59393. 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 })));
  59394. };
  59395. return MaterialPropertyGridComponent;
  59396. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59397. /***/ }),
  59398. /***/ "./components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent.tsx":
  59399. /*!***************************************************************************************************!*\
  59400. !*** ./components/actionTabs/tabs/propertyGrids/materials/multiMaterialPropertyGridComponent.tsx ***!
  59401. \***************************************************************************************************/
  59402. /*! exports provided: MultiMaterialPropertyGridComponent */
  59403. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59404. "use strict";
  59405. __webpack_require__.r(__webpack_exports__);
  59406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiMaterialPropertyGridComponent", function() { return MultiMaterialPropertyGridComponent; });
  59407. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59408. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59409. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59410. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59411. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59412. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  59413. var MultiMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59414. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MultiMaterialPropertyGridComponent, _super);
  59415. function MultiMaterialPropertyGridComponent(props) {
  59416. return _super.call(this, props) || this;
  59417. }
  59418. MultiMaterialPropertyGridComponent.prototype.onMaterialLink = function (mat) {
  59419. if (!this.props.onSelectionChangedObservable) {
  59420. return;
  59421. }
  59422. this.props.onSelectionChangedObservable.notifyObservers(mat);
  59423. };
  59424. MultiMaterialPropertyGridComponent.prototype.renderChildMaterial = function () {
  59425. var _this = this;
  59426. var material = this.props.material;
  59427. 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) {
  59428. if (mat) {
  59429. 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); } }));
  59430. }
  59431. return null;
  59432. })));
  59433. };
  59434. MultiMaterialPropertyGridComponent.prototype.render = function () {
  59435. var material = this.props.material;
  59436. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59437. 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 }),
  59438. this.renderChildMaterial()));
  59439. };
  59440. return MultiMaterialPropertyGridComponent;
  59441. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59442. /***/ }),
  59443. /***/ "./components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx":
  59444. /*!**************************************************************************************************!*\
  59445. !*** ./components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx ***!
  59446. \**************************************************************************************************/
  59447. /*! exports provided: NodeMaterialPropertyGridComponent */
  59448. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59449. "use strict";
  59450. __webpack_require__.r(__webpack_exports__);
  59451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeMaterialPropertyGridComponent", function() { return NodeMaterialPropertyGridComponent; });
  59452. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59453. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59454. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59455. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  59456. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  59457. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59458. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59459. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  59460. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59461. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  59462. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59463. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  59464. /* harmony import */ var _lines_vector4LineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/vector4LineComponent */ "./components/actionTabs/lines/vector4LineComponent.tsx");
  59465. /* harmony import */ var _lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/vector2LineComponent */ "./components/actionTabs/lines/vector2LineComponent.tsx");
  59466. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  59467. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59468. /* harmony import */ var _lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../lines/color4LineComponent */ "./components/actionTabs/lines/color4LineComponent.tsx");
  59469. /* harmony import */ var _gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../gradientNodePropertyComponent */ "./components/actionTabs/tabs/gradientNodePropertyComponent.tsx");
  59470. var NodeMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59471. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodeMaterialPropertyGridComponent, _super);
  59472. function NodeMaterialPropertyGridComponent(props) {
  59473. var _this = _super.call(this, props) || this;
  59474. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  59475. return _this;
  59476. }
  59477. NodeMaterialPropertyGridComponent.prototype.edit = function () {
  59478. this.props.material.edit();
  59479. };
  59480. NodeMaterialPropertyGridComponent.prototype.renderTextures = function () {
  59481. var _this = this;
  59482. var material = this.props.material;
  59483. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  59484. var textureBlocks = material.getTextureBlocks();
  59485. if (!textureBlocks || textureBlocks.length === 0) {
  59486. return null;
  59487. }
  59488. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" }, textureBlocks.map(function (textureBlock, i) {
  59489. 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 }));
  59490. })));
  59491. };
  59492. NodeMaterialPropertyGridComponent.prototype.renderInputBlock = function (block) {
  59493. switch (block.type) {
  59494. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float:
  59495. var cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
  59496. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: block.name },
  59497. block.isBoolean &&
  59498. 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 }),
  59499. !block.isBoolean && cantDisplaySlider &&
  59500. 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 }),
  59501. !block.isBoolean && !cantDisplaySlider &&
  59502. 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 })));
  59503. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color3:
  59504. 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 }));
  59505. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color4:
  59506. 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 }));
  59507. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  59508. 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 }));
  59509. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  59510. 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 }));
  59511. case babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  59512. 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 }));
  59513. }
  59514. return null;
  59515. };
  59516. NodeMaterialPropertyGridComponent.prototype.renderInputValues = function () {
  59517. var _this = this;
  59518. var configurableInputBlocks = this.props.material.getInputBlocks().filter(function (block) {
  59519. return block.visibleInInspector && block.isUniform && !block.isSystemValue;
  59520. }).sort(function (a, b) {
  59521. return a.name.localeCompare(b.name);
  59522. });
  59523. var namedGroups = [];
  59524. configurableInputBlocks.forEach(function (block) {
  59525. if (!block.groupInInspector) {
  59526. return;
  59527. }
  59528. if (namedGroups.indexOf(block.groupInInspector) === -1) {
  59529. namedGroups.push(block.groupInInspector);
  59530. }
  59531. });
  59532. namedGroups.sort();
  59533. var gradiantNodeMaterialBlocks = this.props.material.attachedBlocks.filter(function (block) {
  59534. return block.visibleInInspector && block.getClassName() === 'GradientBlock';
  59535. }).sort(function (a, b) {
  59536. return a.name.localeCompare(b.name);
  59537. });
  59538. var inputBlockContainer = configurableInputBlocks.length > 0 ?
  59539. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "INPUTS" },
  59540. " ",
  59541. configurableInputBlocks.filter(function (block) { return !block.groupInInspector; }).map(function (block) {
  59542. return _this.renderInputBlock(block);
  59543. })) : null;
  59544. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59545. inputBlockContainer,
  59546. namedGroups.map(function (name, i) {
  59547. 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) {
  59548. return _this.renderInputBlock(block);
  59549. })));
  59550. }),
  59551. gradiantNodeMaterialBlocks.map(function (block, i) {
  59552. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { key: block.name + i, globalState: _this.props.globalState, title: block.name.toUpperCase() }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_15__["GradientPropertyTabComponent"], { globalState: _this.props.globalState, block: block })));
  59553. })));
  59554. };
  59555. NodeMaterialPropertyGridComponent.prototype.render = function () {
  59556. var _this = this;
  59557. var material = this.props.material;
  59558. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59559. 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 }),
  59560. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONFIGURATION" },
  59561. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Ignore alpha", target: material, propertyName: "ignoreAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59562. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Node Material Editor", onClick: function () { return _this.edit(); } })),
  59563. this.renderInputValues(),
  59564. this.renderTextures()));
  59565. };
  59566. return NodeMaterialPropertyGridComponent;
  59567. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59568. /***/ }),
  59569. /***/ "./components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx":
  59570. /*!*************************************************************************************************!*\
  59571. !*** ./components/actionTabs/tabs/propertyGrids/materials/pbrMaterialPropertyGridComponent.tsx ***!
  59572. \*************************************************************************************************/
  59573. /*! exports provided: PBRMaterialPropertyGridComponent */
  59574. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59575. "use strict";
  59576. __webpack_require__.r(__webpack_exports__);
  59577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRMaterialPropertyGridComponent", function() { return PBRMaterialPropertyGridComponent; });
  59578. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59579. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59580. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59581. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  59582. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  59583. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59584. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59585. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59586. /* harmony import */ var _lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector2LineComponent */ "./components/actionTabs/lines/vector2LineComponent.tsx");
  59587. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59588. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  59589. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59590. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  59591. var PBRMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59592. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRMaterialPropertyGridComponent, _super);
  59593. function PBRMaterialPropertyGridComponent(props) {
  59594. var _this = _super.call(this, props) || this;
  59595. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  59596. return _this;
  59597. }
  59598. PBRMaterialPropertyGridComponent.prototype.switchAmbientMode = function (state) {
  59599. this.props.material.debugMode = state ? 21 : 0;
  59600. };
  59601. PBRMaterialPropertyGridComponent.prototype.switchMetallicMode = function (state) {
  59602. this.props.material.debugMode = state ? 62 : 0;
  59603. };
  59604. PBRMaterialPropertyGridComponent.prototype.switchRoughnessMode = function (state) {
  59605. this.props.material.debugMode = state ? 63 : 0;
  59606. };
  59607. PBRMaterialPropertyGridComponent.prototype.renderTextures = function (onDebugSelectionChangeObservable) {
  59608. var _this = this;
  59609. var material = this.props.material;
  59610. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHANNELS" },
  59611. 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 }),
  59612. 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 }),
  59613. 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 }),
  59614. 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 }),
  59615. 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 }),
  59616. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Reflectivity", texture: material.reflectivityTexture, propertyName: "reflectivityTexture", material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  59617. 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 }),
  59618. 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 }),
  59619. 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 }),
  59620. 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 }),
  59621. 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 }),
  59622. 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 }),
  59623. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Detailmap", texture: material.detailMap.texture, material: material, onTextureCreated: function (texture) { return material.detailMap.texture = texture; }, onTextureRemoved: function () { return material.detailMap.texture = null; }, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  59624. 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 }),
  59625. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use detailmap", target: material.detailMap, propertyName: "isEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  59626. };
  59627. PBRMaterialPropertyGridComponent.prototype.render = function () {
  59628. var _this = this;
  59629. var _a, _b, _c;
  59630. var material = this.props.material;
  59631. var debugMode = [
  59632. { label: "None", value: 0 },
  59633. // Geometry
  59634. { label: "Normalized position", value: 1 },
  59635. { label: "Normals", value: 2 },
  59636. { label: "Tangents", value: 3 },
  59637. { label: "Bitangents", value: 4 },
  59638. { label: "Bump Normals", value: 5 },
  59639. { label: "UV1", value: 6 },
  59640. { label: "UV2", value: 7 },
  59641. { label: "ClearCoat Normals", value: 8 },
  59642. { label: "ClearCoat Tangents", value: 9 },
  59643. { label: "ClearCoat Bitangents", value: 10 },
  59644. { label: "Anisotropic Normals", value: 11 },
  59645. { label: "Anisotropic Tangents", value: 12 },
  59646. { label: "Anisotropic Bitangents", value: 13 },
  59647. // Maps
  59648. { label: "Albdeo Map", value: 20 },
  59649. { label: "Ambient Map", value: 21 },
  59650. { label: "Opacity Map", value: 22 },
  59651. { label: "Emissive Map", value: 23 },
  59652. { label: "Light Map", value: 24 },
  59653. { label: "Metallic Map", value: 25 },
  59654. { label: "Reflectivity Map", value: 26 },
  59655. { label: "ClearCoat Map", value: 27 },
  59656. { label: "ClearCoat Tint Map", value: 28 },
  59657. { label: "Sheen Map", value: 29 },
  59658. { label: "Anisotropic Map", value: 30 },
  59659. { label: "Thickness Map", value: 31 },
  59660. // Env
  59661. { label: "Env Refraction", value: 40 },
  59662. { label: "Env Reflection", value: 41 },
  59663. { label: "Env Clear Coat", value: 42 },
  59664. // Lighting
  59665. { label: "Direct Diffuse", value: 50 },
  59666. { label: "Direct Specular", value: 51 },
  59667. { label: "Direct Clear Coat", value: 52 },
  59668. { label: "Direct Sheen", value: 53 },
  59669. { label: "Env Irradiance", value: 54 },
  59670. // Lighting Params
  59671. { label: "Surface Albedo", value: 60 },
  59672. { label: "Reflectance 0", value: 61 },
  59673. { label: "Metallic", value: 62 },
  59674. { label: "Metallic F0", value: 71 },
  59675. { label: "Roughness", value: 63 },
  59676. { label: "AlphaG", value: 64 },
  59677. { label: "NdotV", value: 65 },
  59678. { label: "ClearCoat Color", value: 66 },
  59679. { label: "ClearCoat Roughness", value: 67 },
  59680. { label: "ClearCoat NdotV", value: 68 },
  59681. { label: "Transmittance", value: 69 },
  59682. { label: "Refraction Transmittance", value: 70 },
  59683. // Misc
  59684. { label: "SEO", value: 80 },
  59685. { label: "EHO", value: 81 },
  59686. { label: "Energy Factor", value: 82 },
  59687. { label: "Specular Reflectance", value: 83 },
  59688. { label: "Clear Coat Reflectance", value: 84 },
  59689. { label: "Sheen Reflectance", value: 85 },
  59690. { label: "Luminance Over Alpha", value: 86 },
  59691. { label: "Alpha", value: 87 },
  59692. ];
  59693. var realTimeFilteringQualityOptions = [
  59694. { label: "Low", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURE_FILTERING_QUALITY_LOW },
  59695. { label: "Medium", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURE_FILTERING_QUALITY_MEDIUM },
  59696. { label: "High", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURE_FILTERING_QUALITY_HIGH }
  59697. ];
  59698. material.sheen._useRoughness = (_a = material.sheen._useRoughness) !== null && _a !== void 0 ? _a : material.sheen.roughness !== null;
  59699. material.sheen.roughness = (_c = (_b = material.sheen.roughness) !== null && _b !== void 0 ? _b : material.sheen._saveRoughness) !== null && _c !== void 0 ? _c : 0;
  59700. if (!material.sheen._useRoughness) {
  59701. material.sheen._saveRoughness = material.sheen.roughness;
  59702. material.sheen.roughness = null;
  59703. }
  59704. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59705. 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 }),
  59706. this.renderTextures(this._onDebugSelectionChangeObservable),
  59707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  59708. 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 }),
  59709. 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 }),
  59710. 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 }),
  59711. 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 }),
  59712. 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 }),
  59713. 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 })),
  59714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "METALLIC WORKFLOW" },
  59715. 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 }),
  59716. 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 }),
  59717. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Index of Refraction", target: material, propertyName: "indexOfRefraction", minimum: 1, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "F0 Factor", target: material, propertyName: "metallicF0Factor", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Reflectance Color", target: material, propertyName: "metallicReflectanceColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable, isLinear: true }),
  59720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Reflectance Texture", texture: material.metallicReflectanceTexture, onTextureCreated: function (texture) { return material.metallicReflectanceTexture = texture; }, onTextureRemoved: function () { return material.metallicReflectanceTexture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable })),
  59721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CLEAR COAT" },
  59722. 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 }),
  59723. material.clearCoat.isEnabled &&
  59724. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  59725. 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 }),
  59726. 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 }),
  59727. 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 }),
  59728. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Clear coat", texture: material.clearCoat.texture, onTextureCreated: function (texture) { return material.clearCoat.texture = texture; }, onTextureRemoved: function () { return material.clearCoat.texture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  59729. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Bump", texture: material.clearCoat.bumpTexture, onTextureCreated: function (texture) { return material.clearCoat.bumpTexture = texture; }, onTextureRemoved: function () { return material.clearCoat.bumpTexture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  59730. material.clearCoat.bumpTexture &&
  59731. 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 }),
  59732. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Tint", target: material.clearCoat, propertyName: "isTintEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59733. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  59734. 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 }),
  59735. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  59736. 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 }),
  59737. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  59738. 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 }),
  59739. material.clearCoat.isEnabled && material.clearCoat.isTintEnabled &&
  59740. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Tint", texture: material.clearCoat.tintTexture, onTextureCreated: function (texture) { return material.clearCoat.tintTexture = texture; }, onTextureRemoved: function () { return material.clearCoat.tintTexture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }))),
  59741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANISOTROPIC" },
  59742. 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 }),
  59743. material.anisotropy.isEnabled &&
  59744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  59745. 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 }),
  59746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector2LineComponent"], { label: "Direction", target: material.anisotropy, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Anisotropic", texture: material.anisotropy.texture, onTextureCreated: function (texture) { return material.anisotropy.texture = texture; }, onTextureRemoved: function () { return material.anisotropy.texture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }))),
  59748. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHEEN" },
  59749. 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 }),
  59750. material.sheen.isEnabled &&
  59751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  59752. 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 }),
  59753. 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 }),
  59754. 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 }),
  59755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Sheen", texture: material.sheen.texture, onTextureCreated: function (texture) { return material.sheen.texture = texture; }, onTextureRemoved: function () { return material.sheen.texture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  59756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use roughness", target: material.sheen, propertyName: "_useRoughness" }),
  59757. material.sheen._useRoughness &&
  59758. 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 }),
  59759. 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 }))),
  59760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SUBSURFACE" },
  59761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Thickness", texture: material.subSurface.thicknessTexture, onTextureCreated: function (texture) { return material.subSurface.thicknessTexture = texture; }, onTextureRemoved: function () { return material.subSurface.thicknessTexture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  59762. 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 }),
  59763. 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 }),
  59764. 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 }),
  59765. 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 }),
  59766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Scattering Enabled", target: material.subSurface, propertyName: "isScatteringEnabled", onValueChanged: function () { return _this.forceUpdate(); }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59767. material.subSurface.isScatteringEnabled && material.getScene().prePassRenderer && material.getScene().subSurfaceConfiguration &&
  59768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Meters per unit", target: material.getScene().subSurfaceConfiguration, propertyName: "metersPerUnit", minimum: 0.01, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59769. 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 }),
  59770. material.subSurface.isRefractionEnabled &&
  59771. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  59772. 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 }),
  59773. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_10__["TextureLinkLineComponent"], { label: "Refraction", texture: material.subSurface.refractionTexture, onTextureCreated: function (texture) { return material.subSurface.refractionTexture = texture; }, onTextureRemoved: function () { return material.subSurface.refractionTexture = null; }, material: material, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: this._onDebugSelectionChangeObservable }),
  59774. 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 }),
  59775. 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 }),
  59776. 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 }),
  59777. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use albedo to tint surface transparency", target: material.subSurface, propertyName: "useAlbedoToTintRefraction", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  59778. 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 }),
  59779. material.subSurface.isTranslucencyEnabled &&
  59780. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "fragment" },
  59781. 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 }),
  59782. 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 }))),
  59783. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  59784. 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 }),
  59785. 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 }),
  59786. 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 }),
  59787. 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 }),
  59788. material.bumpTexture &&
  59789. 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 }),
  59790. material.ambientTexture &&
  59791. 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 }),
  59792. material.reflectionTexture &&
  59793. 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 }),
  59794. material.clearCoat.texture &&
  59795. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Clear coat", target: material.clearCoat.texture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59796. material.clearCoat.bumpTexture &&
  59797. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Clear coat bump", target: material.clearCoat.bumpTexture, propertyName: "level", minimum: 0, maximum: 2, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59798. material.clearCoat.tintTexture && false && /* level is not used for the clear coat tint texture */
  59799. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Clear coat tint", target: material.clearCoat.tintTexture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59800. material.anisotropy.texture &&
  59801. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Anisotropic", target: material.anisotropy.texture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59802. material.sheen.texture &&
  59803. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Sheen", target: material.sheen.texture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59804. material.subSurface.thicknessTexture &&
  59805. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Thickness", target: material.subSurface.thicknessTexture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59806. material.subSurface.refractionTexture &&
  59807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Refraction", target: material.subSurface.refractionTexture, propertyName: "level", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59808. material.detailMap.isEnabled && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Detailmap diffuse", target: material.detailMap, propertyName: "diffuseBlendLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Detailmap bump", target: material.detailMap, propertyName: "bumpLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59811. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Detailmap roughness", target: material.detailMap, propertyName: "roughnessBlendLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  59812. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RENDERING", closed: true },
  59813. 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 }),
  59814. 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 }),
  59815. 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 }),
  59816. 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 }),
  59817. 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 }),
  59818. 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 }),
  59819. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Realtime Filtering", target: material, propertyName: "realTimeFiltering", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59820. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { allowNullValue: true, label: "Realtime Filtering quality", options: realTimeFilteringQualityOptions, target: material, propertyName: "realTimeFilteringQuality", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  59821. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  59822. 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 }),
  59823. 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 })),
  59824. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ADVANCED", closed: true },
  59825. 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 }),
  59826. 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 }),
  59827. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Radiance occlusion", target: material, propertyName: "useRadianceOcclusion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59828. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Horizon occlusion ", target: material, propertyName: "useHorizonOcclusion", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  59829. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Unlit", target: material, propertyName: "unlit", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  59830. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEBUG", closed: true },
  59831. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "Debug mode", options: debugMode, target: material, propertyName: "debugMode" }),
  59832. 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 }),
  59833. 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 }))));
  59834. };
  59835. return PBRMaterialPropertyGridComponent;
  59836. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59837. /***/ }),
  59838. /***/ "./components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent.tsx":
  59839. /*!******************************************************************************************************************!*\
  59840. !*** ./components/actionTabs/tabs/propertyGrids/materials/pbrMetallicRoughnessMaterialPropertyGridComponent.tsx ***!
  59841. \******************************************************************************************************************/
  59842. /*! exports provided: PBRMetallicRoughnessMaterialPropertyGridComponent */
  59843. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59844. "use strict";
  59845. __webpack_require__.r(__webpack_exports__);
  59846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRMetallicRoughnessMaterialPropertyGridComponent", function() { return PBRMetallicRoughnessMaterialPropertyGridComponent; });
  59847. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59848. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59849. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59850. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  59851. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  59852. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59853. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59854. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59855. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59856. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  59857. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59858. var PBRMetallicRoughnessMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59859. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRMetallicRoughnessMaterialPropertyGridComponent, _super);
  59860. function PBRMetallicRoughnessMaterialPropertyGridComponent(props) {
  59861. var _this = _super.call(this, props) || this;
  59862. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  59863. return _this;
  59864. }
  59865. PBRMetallicRoughnessMaterialPropertyGridComponent.prototype.renderTextures = function () {
  59866. var material = this.props.material;
  59867. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  59868. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  59869. 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 }),
  59870. 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 }),
  59871. 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 }),
  59872. 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 }),
  59873. 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 }),
  59874. 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 })));
  59875. };
  59876. PBRMetallicRoughnessMaterialPropertyGridComponent.prototype.render = function () {
  59877. var material = this.props.material;
  59878. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59879. 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 }),
  59880. this.renderTextures(),
  59881. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  59882. 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 }),
  59883. 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 })),
  59884. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  59885. 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 }),
  59886. 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 })),
  59887. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  59888. 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 }),
  59889. 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 }))));
  59890. };
  59891. return PBRMetallicRoughnessMaterialPropertyGridComponent;
  59892. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59893. /***/ }),
  59894. /***/ "./components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent.tsx":
  59895. /*!*******************************************************************************************************************!*\
  59896. !*** ./components/actionTabs/tabs/propertyGrids/materials/pbrSpecularGlossinessMaterialPropertyGridComponent.tsx ***!
  59897. \*******************************************************************************************************************/
  59898. /*! exports provided: PBRSpecularGlossinessMaterialPropertyGridComponent */
  59899. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59900. "use strict";
  59901. __webpack_require__.r(__webpack_exports__);
  59902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRSpecularGlossinessMaterialPropertyGridComponent", function() { return PBRSpecularGlossinessMaterialPropertyGridComponent; });
  59903. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59904. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59905. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59906. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  59907. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  59908. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59909. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59910. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59911. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59912. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  59913. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59914. var PBRSpecularGlossinessMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59915. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRSpecularGlossinessMaterialPropertyGridComponent, _super);
  59916. function PBRSpecularGlossinessMaterialPropertyGridComponent(props) {
  59917. var _this = _super.call(this, props) || this;
  59918. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  59919. return _this;
  59920. }
  59921. PBRSpecularGlossinessMaterialPropertyGridComponent.prototype.renderTextures = function () {
  59922. var material = this.props.material;
  59923. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  59924. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  59925. 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 }),
  59926. 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 }),
  59927. 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 }),
  59928. 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 }),
  59929. 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 }),
  59930. 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 })));
  59931. };
  59932. PBRSpecularGlossinessMaterialPropertyGridComponent.prototype.render = function () {
  59933. var material = this.props.material;
  59934. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59935. 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 }),
  59936. this.renderTextures(),
  59937. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  59938. 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 }),
  59939. 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 })),
  59940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  59941. 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 })),
  59942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  59943. 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 }),
  59944. 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 }))));
  59945. };
  59946. return PBRSpecularGlossinessMaterialPropertyGridComponent;
  59947. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59948. /***/ }),
  59949. /***/ "./components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent.tsx":
  59950. /*!******************************************************************************************************!*\
  59951. !*** ./components/actionTabs/tabs/propertyGrids/materials/standardMaterialPropertyGridComponent.tsx ***!
  59952. \******************************************************************************************************/
  59953. /*! exports provided: StandardMaterialPropertyGridComponent */
  59954. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59955. "use strict";
  59956. __webpack_require__.r(__webpack_exports__);
  59957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandardMaterialPropertyGridComponent", function() { return StandardMaterialPropertyGridComponent; });
  59958. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59959. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59960. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59961. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  59962. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  59963. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  59964. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  59965. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  59966. /* harmony import */ var _commonMaterialPropertyGridComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonMaterialPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/materials/commonMaterialPropertyGridComponent.tsx");
  59967. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  59968. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  59969. var StandardMaterialPropertyGridComponent = /** @class */ (function (_super) {
  59970. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StandardMaterialPropertyGridComponent, _super);
  59971. function StandardMaterialPropertyGridComponent(props) {
  59972. var _this = _super.call(this, props) || this;
  59973. _this._onDebugSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  59974. return _this;
  59975. }
  59976. StandardMaterialPropertyGridComponent.prototype.renderTextures = function () {
  59977. var material = this.props.material;
  59978. var onDebugSelectionChangeObservable = this._onDebugSelectionChangeObservable;
  59979. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TEXTURES" },
  59980. 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 }),
  59981. 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 }),
  59982. 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 }),
  59983. 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 }),
  59984. 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 }),
  59985. 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 }),
  59986. 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 }),
  59987. 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 }),
  59988. 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 }),
  59989. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Detailmap", texture: material.detailMap.texture, material: material, onTextureCreated: function (texture) { return material.detailMap.texture = texture; }, onTextureRemoved: function () { return material.detailMap.texture = null; }, onSelectionChangedObservable: this.props.onSelectionChangedObservable, onDebugSelectionChangeObservable: onDebugSelectionChangeObservable }),
  59990. 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 }),
  59991. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Use detailmap", target: material.detailMap, propertyName: "isEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  59992. };
  59993. StandardMaterialPropertyGridComponent.prototype.render = function () {
  59994. var material = this.props.material;
  59995. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  59996. 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 }),
  59997. this.renderTextures(),
  59998. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIGHTING & COLORS" },
  59999. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Diffuse", target: material, propertyName: "diffuseColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  60000. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Specular", target: material, propertyName: "specularColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  60001. 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 }),
  60002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Emissive", target: material, propertyName: "emissiveColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  60003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Color3LineComponent"], { label: "Ambient", target: material, propertyName: "ambientColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  60004. 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 })),
  60005. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "LEVELS", closed: true },
  60006. material.diffuseTexture &&
  60007. 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 }),
  60008. material.specularTexture &&
  60009. 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 }),
  60010. material.reflectionTexture &&
  60011. 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 }),
  60012. material.refractionTexture &&
  60013. 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 }),
  60014. material.emissiveTexture &&
  60015. 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 }),
  60016. material.bumpTexture &&
  60017. 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 }),
  60018. material.opacityTexture &&
  60019. 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 }),
  60020. material.ambientTexture &&
  60021. 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 }),
  60022. material.lightmapTexture &&
  60023. 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 }),
  60024. material.detailMap.isEnabled && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  60025. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Detailmap diffuse", target: material.detailMap, propertyName: "diffuseBlendLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  60026. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Detailmap bump", target: material.detailMap, propertyName: "bumpLevel", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  60027. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "NORMAL MAP", closed: true },
  60028. 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 }),
  60029. 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 }))));
  60030. };
  60031. return StandardMaterialPropertyGridComponent;
  60032. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60033. /***/ }),
  60034. /***/ "./components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent.tsx":
  60035. /*!*********************************************************************************************!*\
  60036. !*** ./components/actionTabs/tabs/propertyGrids/materials/texturePropertyGridComponent.tsx ***!
  60037. \*********************************************************************************************/
  60038. /*! exports provided: TexturePropertyGridComponent */
  60039. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60040. "use strict";
  60041. __webpack_require__.r(__webpack_exports__);
  60042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyGridComponent", function() { return TexturePropertyGridComponent; });
  60043. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60044. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60045. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60046. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  60047. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  60048. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  60049. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  60050. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  60051. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  60052. /* harmony import */ var _lines_textureLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLineComponent */ "./components/actionTabs/lines/textureLineComponent.tsx");
  60053. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  60054. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  60055. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  60056. /* harmony import */ var _lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/valueLineComponent */ "./components/actionTabs/lines/valueLineComponent.tsx");
  60057. /* harmony import */ var babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! babylonjs-gui/2D/adtInstrumentation */ "babylonjs-gui/2D/adtInstrumentation");
  60058. /* harmony import */ var babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__);
  60059. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  60060. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  60061. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  60062. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  60063. /* harmony import */ var _popupComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../popupComponent */ "./components/popupComponent.tsx");
  60064. /* harmony import */ var _textures_textureEditorComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./textures/textureEditorComponent */ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent.tsx");
  60065. var TexturePropertyGridComponent = /** @class */ (function (_super) {
  60066. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TexturePropertyGridComponent, _super);
  60067. function TexturePropertyGridComponent(props) {
  60068. var _this = _super.call(this, props) || this;
  60069. _this._textureInspectorSize = { width: 1024, height: 490 };
  60070. _this.state = {
  60071. isTextureEditorOpen: false,
  60072. textureEditing: null
  60073. };
  60074. var texture = _this.props.texture;
  60075. _this.textureLineRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  60076. _this.popoutWindowRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  60077. if (!texture || !texture.rootContainer) {
  60078. return _this;
  60079. }
  60080. var adt = texture;
  60081. _this._adtInstrumentation = new babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__["AdvancedDynamicTextureInstrumentation"](adt);
  60082. _this._adtInstrumentation.captureRenderTime = true;
  60083. _this._adtInstrumentation.captureLayoutTime = true;
  60084. _this.onOpenTextureEditor.bind(_this);
  60085. _this.onCloseTextureEditor.bind(_this);
  60086. _this.openTextureEditor.bind(_this);
  60087. return _this;
  60088. }
  60089. TexturePropertyGridComponent.prototype.componentWillUnmount = function () {
  60090. if (this._adtInstrumentation) {
  60091. this._adtInstrumentation.dispose();
  60092. this._adtInstrumentation = null;
  60093. }
  60094. };
  60095. TexturePropertyGridComponent.prototype.updateTexture = function (file) {
  60096. var _this = this;
  60097. var texture = this.props.texture;
  60098. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  60099. var blob = new Blob([data], { type: "octet/stream" });
  60100. var reader = new FileReader();
  60101. reader.readAsDataURL(blob);
  60102. reader.onloadend = function () {
  60103. var base64data = reader.result;
  60104. if (texture.isCube) {
  60105. var extension = undefined;
  60106. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  60107. extension = ".dds";
  60108. }
  60109. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  60110. extension = ".env";
  60111. }
  60112. texture.updateURL(base64data, extension, function () { return _this.forceRefresh(); });
  60113. }
  60114. else {
  60115. texture.updateURL(base64data, null, function () { return _this.forceRefresh(); });
  60116. }
  60117. };
  60118. }, undefined, true);
  60119. };
  60120. TexturePropertyGridComponent.prototype.openTextureEditor = function () {
  60121. var _this = this;
  60122. if (this.state.isTextureEditorOpen) {
  60123. this.onCloseTextureEditor(function () { return _this.openTextureEditor(); });
  60124. return;
  60125. }
  60126. this.setState({
  60127. isTextureEditorOpen: true,
  60128. textureEditing: this.props.texture
  60129. });
  60130. };
  60131. TexturePropertyGridComponent.prototype.onOpenTextureEditor = function (window) { };
  60132. TexturePropertyGridComponent.prototype.onCloseTextureEditor = function (callback) {
  60133. this.setState({
  60134. isTextureEditorOpen: false,
  60135. textureEditing: null
  60136. }, callback);
  60137. };
  60138. TexturePropertyGridComponent.prototype.forceRefresh = function () {
  60139. this.forceUpdate();
  60140. this.textureLineRef.current.updatePreview();
  60141. };
  60142. TexturePropertyGridComponent.prototype.render = function () {
  60143. var _this = this;
  60144. var texture = this.props.texture;
  60145. var samplingMode = [
  60146. { label: "Nearest", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_NEAREST },
  60147. { label: "Nearest & linear mip", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_LINEAR },
  60148. { label: "Linear", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].LINEAR_LINEAR_MIPLINEAR },
  60149. ];
  60150. var coordinatesMode = [
  60151. { label: "Explicit", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].EXPLICIT_MODE },
  60152. { label: "Cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].CUBIC_MODE },
  60153. { label: "Inverse cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].INVCUBIC_MODE },
  60154. { label: "Equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].EQUIRECTANGULAR_MODE },
  60155. { label: "Fixed equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].FIXED_EQUIRECTANGULAR_MODE },
  60156. { label: "Fixed equirectangular mirrored", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].FIXED_EQUIRECTANGULAR_MIRRORED_MODE },
  60157. { label: "Planar", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].PLANAR_MODE },
  60158. { label: "Projection", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].PROJECTION_MODE },
  60159. { label: "Skybox", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].SKYBOX_MODE },
  60160. { label: "Spherical", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"].SPHERICAL_MODE },
  60161. ];
  60162. var extension = "";
  60163. var url = texture.url;
  60164. var textureUrl = (!url || url.substring(0, 4) === "data" || url.substring(0, 4) === "blob") ? "" : url;
  60165. if (textureUrl) {
  60166. for (var index = textureUrl.length - 1; index >= 0; index--) {
  60167. if (textureUrl[index] === ".") {
  60168. break;
  60169. }
  60170. extension = textureUrl[index] + extension;
  60171. }
  60172. }
  60173. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  60174. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "PREVIEW" },
  60175. 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 }),
  60176. 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" }),
  60177. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Edit", onClick: function () { return _this.openTextureEditor(); } }),
  60178. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_15__["TextInputLineComponent"], { label: "URL", value: textureUrl, lockObject: this.props.lockObject, onChange: function (url) {
  60179. texture.updateURL(url);
  60180. _this.forceRefresh();
  60181. } })),
  60182. this.state.isTextureEditorOpen && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_popupComponent__WEBPACK_IMPORTED_MODULE_17__["PopupComponent"], { id: 'texture-editor', title: 'Texture Inspector', size: this._textureInspectorSize, onOpen: this.onOpenTextureEditor, onClose: function () { return _this.onCloseTextureEditor; }, ref: this.popoutWindowRef },
  60183. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_textures_textureEditorComponent__WEBPACK_IMPORTED_MODULE_18__["TextureEditorComponent"], { texture: this.props.texture, url: textureUrl, window: this.popoutWindowRef, onUpdate: function () { return _this.forceRefresh(); } }))),
  60184. 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 }),
  60185. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  60186. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Width", value: texture.getSize().width.toString() }),
  60187. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Height", value: texture.getSize().height.toString() }),
  60188. texture.isRenderTarget &&
  60189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Scale up", onClick: function () {
  60190. var scene = texture.getScene();
  60191. texture.scale(2);
  60192. setTimeout(function () {
  60193. _this.props.globalState.onSelectionChangedObservable.notifyObservers(scene.getTextureByUniqueID(texture.uniqueId));
  60194. });
  60195. } }),
  60196. texture.isRenderTarget &&
  60197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Scale down", onClick: function () {
  60198. var scene = texture.getScene();
  60199. texture.scale(0.5);
  60200. setTimeout(function () {
  60201. _this.props.globalState.onSelectionChangedObservable.notifyObservers(scene.getTextureByUniqueID(texture.uniqueId));
  60202. });
  60203. } }),
  60204. extension &&
  60205. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "File format", value: extension }),
  60206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Unique ID", value: texture.uniqueId.toString() }),
  60207. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Class", value: texture.getClassName() }),
  60208. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Has alpha", value: texture.hasAlpha ? "Yes" : "No" }),
  60209. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is 3D", value: texture.is3D ? "Yes" : "No" }),
  60210. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is 2D array", value: texture.is2DArray ? "Yes" : "No" }),
  60211. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is cube", value: texture.isCube ? "Yes" : "No" }),
  60212. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Is render target", value: texture.isRenderTarget ? "Yes" : "No" }),
  60213. (texture instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Texture"]) &&
  60214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Stored as inverted on Y", value: texture.invertY ? "Yes" : "No" }),
  60215. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Has mipmaps", value: !texture.noMipmap ? "Yes" : "No" }),
  60216. 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 }),
  60217. 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); } }),
  60218. 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 }),
  60219. texture.updateSamplingMode &&
  60220. 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); } })),
  60221. texture.getScene() &&
  60222. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: texture, scene: texture.getScene(), lockObject: this.props.lockObject }),
  60223. texture.rootContainer && this._adtInstrumentation &&
  60224. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ADVANCED TEXTURE PROPERTIES" },
  60225. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__["ValueLineComponent"], { label: "Last layout time", value: this._adtInstrumentation.renderTimeCounter.current, units: "ms" }),
  60226. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__["ValueLineComponent"], { label: "Last render time", value: this._adtInstrumentation.layoutTimeCounter.current, units: "ms" }),
  60227. 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 }),
  60228. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Premultiply alpha", target: texture, propertyName: "premulAlpha", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  60229. 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 }),
  60230. 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 }),
  60231. 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 }),
  60232. 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 }),
  60233. 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 })),
  60234. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORM" },
  60235. !texture.isCube &&
  60236. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60237. 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 }),
  60238. 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 }),
  60239. 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 }),
  60240. 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 }),
  60241. 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 }),
  60242. 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 }),
  60243. 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 }),
  60244. 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; } }),
  60245. 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; } })),
  60246. texture.isCube &&
  60247. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60248. 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" })))));
  60249. };
  60250. return TexturePropertyGridComponent;
  60251. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60252. /***/ }),
  60253. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/babylonLogo.svg":
  60254. /*!********************************************************************************************!*\
  60255. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/babylonLogo.svg ***!
  60256. \********************************************************************************************/
  60257. /*! no static exports found */
  60258. /***/ (function(module, exports) {
  60259. 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:none;%7D.cls-2%7Bfill:%23e0684b;%7D.cls-3%7Bfill:%23bb464b;%7D.cls-4%7Bfill:%23e0ded8;%7D.cls-5%7Bfill:%23d5d2ca;%7D.cls-6%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Cg id='UI'%3E%3Crect class='cls-1' width='40' height='40'/%3E%3Cpolygon class='cls-2' points='32.91 13.78 29.54 11.84 26.29 13.71 29.66 15.65 32.91 13.78'/%3E%3Cpolygon class='cls-2' points='14.61 15.65 25.38 9.44 22.14 7.57 11.37 13.78 14.61 15.65'/%3E%3Cpolygon class='cls-2' points='18.77 21.95 22.14 23.89 25.51 21.95 22.14 20 18.77 21.95'/%3E%3Cpolygon class='cls-3' points='29.66 15.65 29.66 24.34 22.14 28.69 14.61 24.34 14.61 15.65 11.37 13.78 11.37 26.22 22.14 32.44 32.91 26.22 32.91 13.78 29.66 15.65'/%3E%3Cpolygon class='cls-3' points='22.14 16.11 18.77 18.05 18.77 21.95 22.14 20 25.51 21.95 25.51 18.05 22.14 16.11'/%3E%3Cpolygon class='cls-4' points='29.66 15.65 25.51 18.05 25.51 21.95 22.14 23.89 22.14 28.69 29.66 24.34 29.66 15.65'/%3E%3Cpolygon class='cls-5' points='14.61 15.65 18.77 18.05 18.77 21.95 22.14 23.89 22.14 28.69 14.61 24.34 14.61 15.65'/%3E%3Cpolygon class='cls-6' points='25.38 9.44 29.54 11.84 26.29 13.71 29.66 15.65 25.51 18.05 22.14 16.11 18.77 18.05 14.61 15.65 25.38 9.44'/%3E%3C/g%3E%3C/svg%3E"
  60260. /***/ }),
  60261. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelA.svg":
  60262. /*!*****************************************************************************************!*\
  60263. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelA.svg ***!
  60264. \*****************************************************************************************/
  60265. /*! no static exports found */
  60266. /***/ (function(module, exports) {
  60267. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M18,22.53l-.79,2.38H15l3.51-10.33h2.81L25,24.91H22.64l-.86-2.38Zm3.3-1.83c-.73-2.19-1.2-3.59-1.45-4.52h0c-.25,1-.76,2.64-1.35,4.52Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60268. /***/ }),
  60269. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelB.svg":
  60270. /*!*****************************************************************************************!*\
  60271. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelB.svg ***!
  60272. \*****************************************************************************************/
  60273. /*! no static exports found */
  60274. /***/ (function(module, exports) {
  60275. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M16.17,14.58h4.51c2.51,0,3.45,1.29,3.45,2.64a2.31,2.31,0,0,1-1.32,2.23,2.48,2.48,0,0,1,1.62,2.37c0,1.77-1.39,3.09-3.58,3.09H16.17Zm4.26,4.08c1.06,0,1.5-.48,1.5-1.22s-.57-1.14-1.43-1.14H18.36v2.36Zm-2.07,4.53h2c1.22,0,1.76-.51,1.76-1.44s-.54-1.37-1.77-1.37h-2Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60276. /***/ }),
  60277. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelD.svg":
  60278. /*!*****************************************************************************************!*\
  60279. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelD.svg ***!
  60280. \*****************************************************************************************/
  60281. /*! no static exports found */
  60282. /***/ (function(module, exports) {
  60283. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.58,10.58,0,1,1,30.57,19.93,10.58,10.58,0,0,1,20,30.5Zm0-19.9a9.33,9.33,0,1,0,9.33,9.33A9.34,9.34,0,0,0,20,10.6Z' style='fill:%23fff'/%3E%3Cpath d='M16.32,14.54h4.09a4.68,4.68,0,0,1,4.95,5c0,3-1.91,5.27-5.06,5.27h-4ZM18.54,23h1.67c2,0,2.85-1.48,2.85-3.48,0-1.69-.82-3.22-2.83-3.22H18.54Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60284. /***/ }),
  60285. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelG.svg":
  60286. /*!*****************************************************************************************!*\
  60287. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelG.svg ***!
  60288. \*****************************************************************************************/
  60289. /*! no static exports found */
  60290. /***/ (function(module, exports) {
  60291. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M24.6,24.91H23a5.43,5.43,0,0,1-.18-1,3.5,3.5,0,0,1-3,1.2c-3,0-4.68-2.28-4.68-5.22,0-3.1,1.81-5.44,5.07-5.44,2.65,0,4.23,1.5,4.47,3.25H22.39a2.09,2.09,0,0,0-2.26-1.51c-2.13,0-2.73,1.78-2.73,3.6s.69,3.54,2.74,3.54a2.05,2.05,0,0,0,2.27-2.25V21H20.14V19.12H24.6Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60292. /***/ }),
  60293. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelR.svg":
  60294. /*!*****************************************************************************************!*\
  60295. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelR.svg ***!
  60296. \*****************************************************************************************/
  60297. /*! no static exports found */
  60298. /***/ (function(module, exports) {
  60299. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,30.5A10.5,10.5,0,1,1,30.5,20,10.51,10.51,0,0,1,20,30.5Zm0-20A9.5,9.5,0,1,0,29.5,20,9.51,9.51,0,0,0,20,10.5Z' style='fill:%23fff'/%3E%3Cpath d='M18.45,20.77v4.14H16.26V14.58h4.55c2.25,0,3.46,1.23,3.46,2.83a2.5,2.5,0,0,1-1.5,2.45c.51.19,1.29.72,1.29,2.58V23a7.77,7.77,0,0,0,.15,2H22.08a7.38,7.38,0,0,1-.21-2.32v-.15c0-1.13-.28-1.67-1.95-1.67Zm0-1.78h1.88c1.21,0,1.69-.47,1.69-1.32s-.55-1.32-1.65-1.32H18.45Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60300. /***/ }),
  60301. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/eyeClosed.svg":
  60302. /*!******************************************************************************************!*\
  60303. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/eyeClosed.svg ***!
  60304. \******************************************************************************************/
  60305. /*! no static exports found */
  60306. /***/ (function(module, exports) {
  60307. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M12.42,13a.57.57,0,0,0-.06.75l.06.07,3.13,3.13a7.69,7.69,0,0,0-3.07,4.45.58.58,0,0,0,1.13.29,6.6,6.6,0,0,1,2.77-3.91l1.41,1.41a3.1,3.1,0,0,0,4.38,4.38l4.59,4.59a.57.57,0,0,0,.82,0,.58.58,0,0,0,.06-.76l-.06-.06-4.74-4.74h0l-.93-.93-2.22-2.23h0L17.46,17.2h0l-.88-.88L13.24,13A.57.57,0,0,0,12.42,13Zm6.19,7,2.74,2.74A1.94,1.94,0,0,1,18.61,20ZM20,15.53a7.54,7.54,0,0,0-2.24.33l1,1A6.69,6.69,0,0,1,20,16.69a6.59,6.59,0,0,1,6.39,5,.59.59,0,0,0,.71.42.58.58,0,0,0,.42-.7A7.74,7.74,0,0,0,20,15.53Zm.15,2.72,3,2.95A3.11,3.11,0,0,0,20.15,18.25Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60308. /***/ }),
  60309. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/eyeOpen.svg":
  60310. /*!****************************************************************************************!*\
  60311. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/eyeOpen.svg ***!
  60312. \****************************************************************************************/
  60313. /*! no static exports found */
  60314. /***/ (function(module, exports) {
  60315. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M20,18.27a3.09,3.09,0,1,1-3.08,3.08A3.09,3.09,0,0,1,20,18.27Zm0,1.15a1.93,1.93,0,1,0,1.93,1.93A1.94,1.94,0,0,0,20,19.42Zm0-3.86a7.71,7.71,0,0,1,7.48,5.84.58.58,0,1,1-1.12.28,6.56,6.56,0,0,0-12.72,0,.58.58,0,0,1-1.12-.28A7.72,7.72,0,0,1,20,15.56Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60316. /***/ }),
  60317. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/mipDown.svg":
  60318. /*!****************************************************************************************!*\
  60319. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/mipDown.svg ***!
  60320. \****************************************************************************************/
  60321. /*! no static exports found */
  60322. /***/ (function(module, exports) {
  60323. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M24.53,19.72l-.08-.07a.75.75,0,0,0-1,.07l-2.72,2.72V15.65A.75.75,0,0,0,20,15h-.1a.75.75,0,0,0-.65.74v6.69l-2.72-2.72-.08-.07a.75.75,0,0,0-1,1.13l4,4,.08.07a.75.75,0,0,0,1-.07l4-4,.07-.08A.75.75,0,0,0,24.53,19.72Z' style='fill:%23fff'/%3E%3Cpath d='M10,20A10,10,0,1,0,20,10,10,10,0,0,0,10,20Zm18.5,0A8.5,8.5,0,1,1,20,11.5,8.51,8.51,0,0,1,28.5,20Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60324. /***/ }),
  60325. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/mipUp.svg":
  60326. /*!**************************************************************************************!*\
  60327. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/mipUp.svg ***!
  60328. \**************************************************************************************/
  60329. /*! no static exports found */
  60330. /***/ (function(module, exports) {
  60331. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M15.47,20.28l.08.07a.75.75,0,0,0,1-.07l2.72-2.72v6.79A.75.75,0,0,0,20,25h.1a.75.75,0,0,0,.65-.74V17.56l2.72,2.72.08.07a.75.75,0,0,0,1-1.13l-4-4-.08-.07a.75.75,0,0,0-1,.07l-4,4-.07.08A.75.75,0,0,0,15.47,20.28Z' style='fill:%23fff'/%3E%3Cpath d='M30,20A10,10,0,1,0,20,30,10,10,0,0,0,30,20ZM11.5,20A8.5,8.5,0,1,1,20,28.5,8.51,8.51,0,0,1,11.5,20Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60332. /***/ }),
  60333. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negX.svg":
  60334. /*!*************************************************************************************!*\
  60335. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negX.svg ***!
  60336. \*************************************************************************************/
  60337. /*! no static exports found */
  60338. /***/ (function(module, exports) {
  60339. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M17.75,18.72v1.45H14.33V18.72Z' style='fill:%23fff'/%3E%3Cpath d='M23.75,24.62,22,20.41h0l-1.77,4.21H18.44l2.61-5.57-2.52-5.29h1.93l1.63,3.8h0l1.65-3.8h1.78L23,18.87l2.64,5.75Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60340. /***/ }),
  60341. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negY.svg":
  60342. /*!*************************************************************************************!*\
  60343. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negY.svg ***!
  60344. \*************************************************************************************/
  60345. /*! no static exports found */
  60346. /***/ (function(module, exports) {
  60347. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M17.7,18.72v1.45H14.28V18.72Z' style='fill:%23fff'/%3E%3Cpath d='M21.21,24.62V20.68a.63.63,0,0,0-.07-.32l-2.73-6.6h1.87c.66,1.76,1.5,4,1.82,5.13.4-1.24,1.25-3.46,1.84-5.13h1.78L23,20.37a.9.9,0,0,0-.05.34v3.91Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60348. /***/ }),
  60349. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negZ.svg":
  60350. /*!*************************************************************************************!*\
  60351. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negZ.svg ***!
  60352. \*************************************************************************************/
  60353. /*! no static exports found */
  60354. /***/ (function(module, exports) {
  60355. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M18,18.72v1.45H14.54V18.72Z' style='fill:%23fff'/%3E%3Cpath d='M19.09,23.43l4.35-8.18h-4V13.76h5.86v1.36l-4.22,8h4.4l-.23,1.48H19.09Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60356. /***/ }),
  60357. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posX.svg":
  60358. /*!*************************************************************************************!*\
  60359. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posX.svg ***!
  60360. \*************************************************************************************/
  60361. /*! no static exports found */
  60362. /***/ (function(module, exports) {
  60363. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M16.89,16v3h2.82v1.27H16.89v3h-1.3v-3H12.74V19h2.85V16Z' style='fill:%23fff'/%3E%3Cpath d='M25.34,24.62l-1.75-4.21h0L21.8,24.62H20l2.61-5.57-2.51-5.29H22l1.63,3.8h0l1.65-3.8h1.77l-2.49,5.11,2.64,5.75Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60364. /***/ }),
  60365. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posY.svg":
  60366. /*!*************************************************************************************!*\
  60367. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posY.svg ***!
  60368. \*************************************************************************************/
  60369. /*! no static exports found */
  60370. /***/ (function(module, exports) {
  60371. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M16.84,16v3h2.82v1.27H16.84v3h-1.3v-3H12.69V19h2.85V16Z' style='fill:%23fff'/%3E%3Cpath d='M22.79,24.62V20.68a.63.63,0,0,0-.06-.32L20,13.76h1.87c.66,1.76,1.51,4,1.83,5.13.4-1.24,1.25-3.46,1.84-5.13h1.78l-2.77,6.61a.73.73,0,0,0-.05.34v3.91Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60372. /***/ }),
  60373. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posZ.svg":
  60374. /*!*************************************************************************************!*\
  60375. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posZ.svg ***!
  60376. \*************************************************************************************/
  60377. /*! no static exports found */
  60378. /***/ (function(module, exports) {
  60379. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M17.1,16v3h2.82v1.27H17.1v3H15.81v-3H13V19h2.85V16Z' style='fill:%23fff'/%3E%3Cpath d='M20.67,23.43,25,15.25H21V13.76h5.86v1.36l-4.23,8H27l-.22,1.48H20.67Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60380. /***/ }),
  60381. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/reset.svg":
  60382. /*!**************************************************************************************!*\
  60383. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/reset.svg ***!
  60384. \**************************************************************************************/
  60385. /*! no static exports found */
  60386. /***/ (function(module, exports) {
  60387. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M13.45,11.32a.78.78,0,0,0-.77.66v3a.77.77,0,0,0,.66.76h3a.78.78,0,0,0,.77-.77.77.77,0,0,0-.67-.76H15.36a7.43,7.43,0,1,1-2.64,4.38.77.77,0,1,0-1.51-.29,9,9,0,1,0,3-5.13V12.09A.76.76,0,0,0,13.45,11.32Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60388. /***/ }),
  60389. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/resizeTool.svg":
  60390. /*!*******************************************************************************************!*\
  60391. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/resizeTool.svg ***!
  60392. \*******************************************************************************************/
  60393. /*! no static exports found */
  60394. /***/ (function(module, exports) {
  60395. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M12.5,21a.5.5,0,0,1,.5.5V25a2,2,0,0,0,2,2h3.5a.5.5,0,0,1,0,1H15a3,3,0,0,1-3-3V21.5A.5.5,0,0,1,12.5,21Zm15,0a.5.5,0,0,1,.49.41V25a3,3,0,0,1-2.82,3H21.5a.5.5,0,0,1-.09-1H25a2,2,0,0,0,2-1.85V21.5A.5.5,0,0,1,27.5,21Zm-9-9a.5.5,0,0,1,.09,1H15a2,2,0,0,0-2,1.85V18.5a.5.5,0,0,1-1,.09V15a3,3,0,0,1,2.82-3H18.5ZM25,12a3,3,0,0,1,3,2.82V18.5a.5.5,0,0,1-1,.09V15a2,2,0,0,0-1.85-2H21.5a.5.5,0,0,1-.09-1H25Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60396. /***/ }),
  60397. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/save.svg":
  60398. /*!*************************************************************************************!*\
  60399. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/save.svg ***!
  60400. \*************************************************************************************/
  60401. /*! no static exports found */
  60402. /***/ (function(module, exports) {
  60403. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M29.36,18.39a2.18,2.18,0,0,1,0,3.08l-7.91,7.91a1.22,1.22,0,0,1-.89.37h-1.7a.85.85,0,0,1-.86-.86v-1.7a1.22,1.22,0,0,1,.37-.89l7.91-7.91A2.18,2.18,0,0,1,29.36,18.39ZM30,23.11V27.5a2.25,2.25,0,0,1-2.25,2.25H23l1.5-1.5h3.25a.76.76,0,0,0,.75-.75v-3ZM23.63,10.25a1.23,1.23,0,0,1,.76.26L29.64,15a1.21,1.21,0,0,1,.36.9v1.23a2.43,2.43,0,0,0-.75-.43,2,2,0,0,0-.74-.1V16L24,12.14V15a1.75,1.75,0,0,1-1.75,1.75h-6A1.75,1.75,0,0,1,14.5,15V11.75H12.25a.75.75,0,0,0-.75.75v15a.75.75,0,0,0,.75.75H13V22.51a1.75,1.75,0,0,1,1.61-1.74H22l-1.55,1.5H14.75a.25.25,0,0,0-.24.2v5.79h2v1.5H12.25A2.25,2.25,0,0,1,10,27.5v-15a2.25,2.25,0,0,1,2.25-2.25Zm3.72,9.21-7.84,7.83v.95h.95l7.83-7.84a.66.66,0,0,0-.94-.94ZM22.5,11.75H16V15a.25.25,0,0,0,.25.25h6A.25.25,0,0,0,22.5,15Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60404. /***/ }),
  60405. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/upload.svg":
  60406. /*!***************************************************************************************!*\
  60407. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/assets/upload.svg ***!
  60408. \***************************************************************************************/
  60409. /*! no static exports found */
  60410. /***/ (function(module, exports) {
  60411. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' style='fill:none'/%3E%3Cpath d='M13.5,28.5h13a.76.76,0,0,1,.75.75.75.75,0,0,1-.65.74H13.5a.75.75,0,0,1-.1-1.5Zm1-13.28,5-5a.73.73,0,0,1,1-.07l.09.07,5,5a.75.75,0,0,1,0,1.06.75.75,0,0,1-1,.07l-.09-.07-3.72-3.72V26.25a.75.75,0,0,1-.65.74H20a.75.75,0,0,1-.74-.65V12.56l-3.72,3.72a.76.76,0,0,1-1,.07l-.08-.07a.75.75,0,0,1-.07-1l.07-.08,5-5Z' style='fill:%23fff'/%3E%3C/svg%3E"
  60412. /***/ }),
  60413. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/bottomBar.tsx":
  60414. /*!***********************************************************************************!*\
  60415. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/bottomBar.tsx ***!
  60416. \***********************************************************************************/
  60417. /*! exports provided: BottomBar */
  60418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60419. "use strict";
  60420. __webpack_require__.r(__webpack_exports__);
  60421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BottomBar", function() { return BottomBar; });
  60422. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60423. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60425. var BottomBar = /** @class */ (function (_super) {
  60426. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BottomBar, _super);
  60427. function BottomBar() {
  60428. return _super !== null && _super.apply(this, arguments) || this;
  60429. }
  60430. BottomBar.prototype.render = function () {
  60431. var factor = Math.pow(2, this.props.mipLevel);
  60432. var width = Math.ceil(this.props.texture.getSize().width / factor);
  60433. var height = Math.ceil(this.props.texture.getSize().height / factor);
  60434. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'bottom-bar' },
  60435. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: 'file-url' }, this.props.texture.name),
  60436. !this.props.texture.noMipmap && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { id: 'mip-level' },
  60437. "MIP Preview: ",
  60438. this.props.mipLevel,
  60439. " ",
  60440. width,
  60441. "x",
  60442. height));
  60443. };
  60444. return BottomBar;
  60445. }(react__WEBPACK_IMPORTED_MODULE_1__["PureComponent"]));
  60446. /***/ }),
  60447. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/canvasShader.ts":
  60448. /*!*************************************************************************************!*\
  60449. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/canvasShader.ts ***!
  60450. \*************************************************************************************/
  60451. /*! exports provided: canvasShader */
  60452. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60453. "use strict";
  60454. __webpack_require__.r(__webpack_exports__);
  60455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canvasShader", function() { return canvasShader; });
  60456. var canvasShader = {
  60457. path: {
  60458. vertexSource: "\n precision highp float;\n\n attribute vec3 position;\n attribute vec2 uv;\n\n uniform mat4 worldViewProjection;\n\n varying vec2 vUV;\n\n void main(void) {\n gl_Position = worldViewProjection * vec4(position, 1.0);\n vUV = uv;\n }\n ",
  60459. fragmentSource: "\n precision highp float;\n \n uniform sampler2D textureSampler;\n \n uniform bool r;\n uniform bool g;\n uniform bool b;\n uniform bool a;\n\n uniform int x1;\n uniform int y1;\n uniform int x2;\n uniform int y2;\n uniform int w;\n uniform int h;\n\n uniform int time;\n uniform bool showGrid;\n \n varying vec2 vUV;\n\n float scl = 200.0;\n float speed = 10.0 / 1000.0;\n float smoothing = 0.2;\n \n void main(void) {\n vec2 pos2 = vec2(gl_FragCoord.x, gl_FragCoord.y);\n vec2 pos = floor(pos2 * 0.05);\n float pattern = mod(pos.x + pos.y, 2.0); \n if (pattern == 0.0) {\n pattern = 0.7;\n }\n vec4 bg = vec4(pattern, pattern, pattern, 1.0);\n vec4 col = texture(textureSampler, vUV);\n if (!r && !g && !b) {\n if (a) {\n col = vec4(col.a, col.a, col.a, 1.0);\n } else {\n col = vec4(0.0,0.0,0.0,0.0);\n }\n } else {\n if (!r) {\n col.r = 0.0;\n if (!b) {\n col.r = col.g;\n }\n else if (!g) {\n col.r = col.b;\n }\n }\n if (!g) {\n col.g = 0.0;\n if (!b) {\n col.g = col.r;\n }\n else if (!r) {\n col.g = col.b;\n }\n }\n if (!b) {\n col.b = 0.0;\n if (!r) {\n col.b = col.g;\n } else if (!g) {\n col.b = col.r;\n }\n }\n if (!a) {\n col.a = 1.0;\n }\n }\n gl_FragColor = col * (col.a) + bg * (1.0 - col.a);\n float wF = float(w);\n float hF = float(h);\n int xPixel = int(floor(vUV.x * wF));\n int yPixel = int(floor((1.0 - vUV.y) * hF));\n int xDis = min(abs(xPixel - x1), abs(xPixel - x2));\n int yDis = min(abs(yPixel - y1), abs(yPixel - y2));\n if (showGrid) {\n vec2 frac = fract(vUV * vec2(wF,hF));\n float thickness = 0.1;\n if (abs(frac.x) < thickness || abs (frac.y) < thickness) {\n gl_FragColor = vec4(0.75,0.75,0.75,1.0);\n }\n }\n if (xPixel >= x1 && yPixel >= y1 && xPixel <= x2 && yPixel <= y2) {\n if (xDis <= 4 || yDis <= 4) {\n float c = sin(vUV.x * scl + vUV.y * scl + float(time) * speed);\n c = smoothstep(-smoothing,smoothing,c);\n float val = 1.0 - c;\n gl_FragColor = vec4(val, val, val, 1.0) * 0.7 + gl_FragColor * 0.3;\n }\n }\n }"
  60460. },
  60461. options: {
  60462. attributes: ['position', 'uv'],
  60463. uniforms: ['worldViewProjection', 'textureSampler', 'r', 'g', 'b', 'a', 'x1', 'y1', 'x2', 'y2', 'w', 'h', 'time', 'showGrid']
  60464. }
  60465. };
  60466. /***/ }),
  60467. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/channelsBar.tsx":
  60468. /*!*************************************************************************************!*\
  60469. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/channelsBar.tsx ***!
  60470. \*************************************************************************************/
  60471. /*! exports provided: ChannelsBar */
  60472. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60473. "use strict";
  60474. __webpack_require__.r(__webpack_exports__);
  60475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelsBar", function() { return ChannelsBar; });
  60476. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60477. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60478. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60479. var eyeOpen = __webpack_require__(/*! ./assets/eyeOpen.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/eyeOpen.svg");
  60480. var eyeClosed = __webpack_require__(/*! ./assets/eyeClosed.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/eyeClosed.svg");
  60481. var ChannelsBar = /** @class */ (function (_super) {
  60482. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ChannelsBar, _super);
  60483. function ChannelsBar() {
  60484. return _super !== null && _super.apply(this, arguments) || this;
  60485. }
  60486. ChannelsBar.prototype.render = function () {
  60487. var _this = this;
  60488. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'channels-bar' }, this.props.channels.map(function (channel, index) {
  60489. var visTip = channel.visible ? 'Hide' : 'Show';
  60490. var editTip = channel.editable ? 'Lock' : 'Unlock';
  60491. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: channel.name, className: channel.editable ? 'channel' : 'channel uneditable' },
  60492. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: channel.visible ? 'icon channel-visibility visible' : 'icon channel-visibility', onClick: function () {
  60493. var newChannels = _this.props.channels;
  60494. newChannels[index].visible = !newChannels[index].visible;
  60495. _this.props.setChannels(newChannels);
  60496. }, src: channel.visible ? eyeOpen : eyeClosed, title: visTip + " " + channel.name }),
  60497. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: 'icon channel-name', onClick: function () {
  60498. var newChannels = _this.props.channels;
  60499. newChannels[index].editable = !newChannels[index].editable;
  60500. _this.props.setChannels(newChannels);
  60501. }, src: channel.icon, title: editTip + " " + channel.name }));
  60502. }));
  60503. };
  60504. return ChannelsBar;
  60505. }(react__WEBPACK_IMPORTED_MODULE_1__["PureComponent"]));
  60506. /***/ }),
  60507. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/defaultTools.ts":
  60508. /*!**************************************************************************************************!*\
  60509. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/defaultTools.ts ***!
  60510. \**************************************************************************************************/
  60511. /*! exports provided: default */
  60512. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60513. "use strict";
  60514. __webpack_require__.r(__webpack_exports__);
  60515. /* harmony import */ var _paintbrush__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./paintbrush */ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/paintbrush.tsx");
  60516. /* harmony import */ var _eyedropper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./eyedropper */ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/eyedropper.ts");
  60517. /* harmony import */ var _floodfill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./floodfill */ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/floodfill.ts");
  60518. /* harmony import */ var _rectangleSelect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rectangleSelect */ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/rectangleSelect.ts");
  60519. /* harmony default export */ __webpack_exports__["default"] = ([_rectangleSelect__WEBPACK_IMPORTED_MODULE_3__["RectangleSelect"], _paintbrush__WEBPACK_IMPORTED_MODULE_0__["Paintbrush"], _eyedropper__WEBPACK_IMPORTED_MODULE_1__["Eyedropper"], _floodfill__WEBPACK_IMPORTED_MODULE_2__["Floodfill"]]);
  60520. /***/ }),
  60521. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/eyedropper.ts":
  60522. /*!************************************************************************************************!*\
  60523. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/eyedropper.ts ***!
  60524. \************************************************************************************************/
  60525. /*! exports provided: Eyedropper */
  60526. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60527. "use strict";
  60528. __webpack_require__.r(__webpack_exports__);
  60529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eyedropper", function() { return Eyedropper; });
  60530. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Events/pointerEvents */ "babylonjs/Misc/observable");
  60531. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__);
  60532. var Eyedropper = {
  60533. name: 'Eyedropper',
  60534. type: /** @class */ (function () {
  60535. function class_1(getParameters) {
  60536. this.getParameters = getParameters;
  60537. }
  60538. class_1.prototype.pick = function (pointerInfo) {
  60539. var _a = this.getParameters(), canvas2D = _a.canvas2D, setMetadata = _a.setMetadata, getMouseCoordinates = _a.getMouseCoordinates;
  60540. var ctx = canvas2D.getContext('2d');
  60541. var _b = getMouseCoordinates(pointerInfo), x = _b.x, y = _b.y;
  60542. var pixel = ctx.getImageData(x, y, 1, 1).data;
  60543. setMetadata({
  60544. color: babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromInts(pixel[0], pixel[1], pixel[2]).toHexString(),
  60545. alpha: pixel[3] / 255
  60546. });
  60547. };
  60548. class_1.prototype.setup = function () {
  60549. var _this = this;
  60550. this.pointerObserver = this.getParameters().scene.onPointerObservable.add(function (pointerInfo) {
  60551. var _a;
  60552. if ((_a = pointerInfo.pickInfo) === null || _a === void 0 ? void 0 : _a.hit) {
  60553. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERDOWN) {
  60554. _this.isPicking = true;
  60555. _this.pick(pointerInfo);
  60556. }
  60557. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERMOVE && _this.isPicking) {
  60558. _this.pick(pointerInfo);
  60559. }
  60560. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERUP) {
  60561. _this.isPicking = false;
  60562. }
  60563. }
  60564. });
  60565. this.isPicking = false;
  60566. };
  60567. class_1.prototype.cleanup = function () {
  60568. if (this.pointerObserver) {
  60569. this.getParameters().scene.onPointerObservable.remove(this.pointerObserver);
  60570. }
  60571. };
  60572. return class_1;
  60573. }()),
  60574. icon: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMjkuMzIsMTAu\n NjhjLTEuNjYtMS42Ni00LjA2LTEtNS41Ni41YTExLjg5LDExLjg5LDAsMCwwLTEuNjYsMi4zMUwyMiwxMy40MWExLjg5LDEuODksMCwwLDAtMi42NiwwbC0uOS45YTEuODksMS44OSwwLDAsMC0uMjIsMi4zOWwtNi4wOSw2LjA5YTIuNzUsMi43NSwwLDAsMC0uNzMs\n MS4yOGwtLjgxLDMuMjYtLjU2LjU2YTEuMTYsMS4xNiwwLDAsMCwwLDEuNjVsLjQxLjQxYTEuMTcsMS4xNywwLDAsMCwxLjY1LDBsLjU2LS41NiwzLjI2LS44MWEyLjc1LDIuNzUsMCwwLDAsMS4yOC0uNzNsNi4xNC02LjE0YTEuODcsMS44NywwLDAsMCwuODQuMjEs\n MS44MywxLjgzLDAsMCwwLDEuMzMtLjU1bC45LS45YTEuODcsMS44NywwLDAsMCwuMDgtMi41NywxMS41NCwxMS41NCwwLDAsMCwyLjMyLTEuNjZDMzAuMzIsMTQuNzQsMzEsMTIuMzUsMjkuMzIsMTAuNjhaTTE2LjE1LDI2Ljc5YTEuMjEsMS4yMSwwLDAsMS0uNTgu\n MzNMMTIsMjhsLjktMy41OWExLjIxLDEuMjEsMCwwLDEsLjMzLS41OGw2LjA3LTYuMDcsMi45NCwyLjk0Wm05LjIxLTcuMzgtLjkuOWMtLjE5LjItLjM0LjItLjU0LDBsLTQuNC00LjRhLjQuNCwwLDAsMSwwLS41NGwuOS0uOWEuNDMuNDMsMCwwLDEsLjI3LS4xMS4z\n OS4zOSwwLDAsMSwuMjcuMTFsNC40LDQuNEEuMzguMzgsMCwwLDEsMjUuMzYsMTkuNDFabTMuMzgtNS45M2EzLjcsMy43LDAsMCwxLTEsMS43LDExLjY3LDExLjY3LDAsMCwxLTIuMzUsMS42MkwyMy4yLDE0LjU5YTExLjY3LDExLjY3LDAsMCwxLDEuNjItMi4zNSwz\n LjcsMy43LDAsMCwxLDEuNy0xLDEuODMsMS44MywwLDAsMSwyLjIyLDIuMjJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",
  60575. cursor: "iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAABmJLR0QA/wD/AP+gvaeTAAAByklEQVQ4jbWUv4saQRTHd+4s/BuCYRH1n7BQEhCRuyJ3RQgpRVt/tFvYSAjLxMPiWIJ1OA6OKwKBdCGBkIS4pFs76xgXhOlyyconzSrrojub4l618+a9z/u+mTdrGPdgIk0QwDZBCG3OUerqepYeCgigAbyJ+a+AEyB9lTDxAfBhPp9jWRZh+wB0u11msxnAJyCXSmkI/DIejx9Vq1Ujm83u7OdyOaPRaBi2bVeAr8BDnUIBfJRSUi6XWSwWa+B1VClw6ft+UKlUsG0b4DNw+G6AU8/zME2T5XIZAE9C/xYark983/9rmubmKM6SoNedTofRaARwqenqQkpJr9cDuI3uiYiSvbaZS4Dod1J8JrJIUoUQYgs+FLuplYk79lQ2hBAipvSggH2Vbvr9PlJKgFea2JeO49BqtQDeJgWee55HPp9ntVr9AR6H/vjtV5VSd8Vikel0CvA0CXoEfBsOh9RqNZRSd8CL2JwOlVK/6/X65rVNgWPdEeTX6/XPwWBAqVRiMpnsPFPHcSgUCliWRRAEv4BCIjAKBr67rkuz2dyBttttXNcF+AEUUwEj4GPgGfAu1v574DmQ0UI0BXYuSmepf9L/NZv3Yf8AKtG4imEra4UAAAAASUVORK5CYII="
  60576. };
  60577. /***/ }),
  60578. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/floodfill.ts":
  60579. /*!***********************************************************************************************!*\
  60580. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/floodfill.ts ***!
  60581. \***********************************************************************************************/
  60582. /*! exports provided: Floodfill */
  60583. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60584. "use strict";
  60585. __webpack_require__.r(__webpack_exports__);
  60586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Floodfill", function() { return Floodfill; });
  60587. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60588. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Events/pointerEvents */ "babylonjs/Misc/observable");
  60589. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__);
  60590. var Floodfill = {
  60591. name: 'Floodfill',
  60592. type: /** @class */ (function () {
  60593. function class_1(getParameters) {
  60594. this.getParameters = getParameters;
  60595. }
  60596. class_1.prototype.fill = function () {
  60597. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
  60598. var _a, metadata, startPainting, updatePainting, stopPainting, ctx;
  60599. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
  60600. switch (_b.label) {
  60601. case 0:
  60602. _a = this.getParameters(), metadata = _a.metadata, startPainting = _a.startPainting, updatePainting = _a.updatePainting, stopPainting = _a.stopPainting;
  60603. return [4 /*yield*/, startPainting()];
  60604. case 1:
  60605. ctx = _b.sent();
  60606. ctx.fillStyle = metadata.color;
  60607. ctx.globalAlpha = metadata.alpha;
  60608. ctx.globalCompositeOperation = 'copy';
  60609. ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
  60610. updatePainting();
  60611. stopPainting();
  60612. return [2 /*return*/];
  60613. }
  60614. });
  60615. });
  60616. };
  60617. class_1.prototype.setup = function () {
  60618. var _this = this;
  60619. this.pointerObserver = this.getParameters().scene.onPointerObservable.add(function (pointerInfo) {
  60620. var _a;
  60621. if ((_a = pointerInfo.pickInfo) === null || _a === void 0 ? void 0 : _a.hit) {
  60622. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERDOWN && pointerInfo.event.button === 0) {
  60623. _this.fill();
  60624. }
  60625. }
  60626. });
  60627. };
  60628. class_1.prototype.cleanup = function () {
  60629. if (this.pointerObserver) {
  60630. this.getParameters().scene.onPointerObservable.remove(this.pointerObserver);
  60631. }
  60632. };
  60633. return class_1;
  60634. }()),
  60635. icon: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMjAsMTAuNWEu\n NzUuNzUsMCwwLDAtMS41LDB2MS4yNWEyLjE0LDIuMTQsMCwwLDAtLjg0LjUzbC02Ljg4LDYuODhhMi4yNSwyLjI1LDAsMCwwLDAsMy4xOGw0Ljg4LDQuODhhMi4yNSwyLjI1LDAsMCwwLDMuMTgsMGw2Ljg4LTYuODhhMi4yNSwyLjI1LDAsMCwwLDAtMy4xOGwtNC44\n OC00Ljg4YTIuMjksMi4yOSwwLDAsMC0uODQtLjUzWm0tOC4xNiw5LjcyLDYuNjYtNi42NlYxNUEuNzUuNzUsMCwwLDAsMjAsMTVWMTMuNTZsNC42Niw0LjY2YS43NS43NSwwLDAsMSwwLDEuMDZsLTEsMUgxMS44Wm0uNDcsMS41M2g5Ljg4bC00LjQxLDQuNDFhLjc1\n Ljc1LDAsMCwxLTEuMDYsMFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJNMjcuNTEsMjEuODVhLjg4Ljg4LDAsMCwwLTEuNTQsMGwtMiwzLjc3YTMuMTUsMy4xNSwwLDEsMCw1LjU2LDBabS0yLjIzLDQuNDcsMS40Ni0yLjczLDEuNDUsMi43M2ExLjY1LDEu\n NjUsMCwxLDEtMi45MSwwWiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg=="
  60636. };
  60637. /***/ }),
  60638. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/paintbrush.tsx":
  60639. /*!*************************************************************************************************!*\
  60640. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/paintbrush.tsx ***!
  60641. \*************************************************************************************************/
  60642. /*! exports provided: Paintbrush */
  60643. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60644. "use strict";
  60645. __webpack_require__.r(__webpack_exports__);
  60646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Paintbrush", function() { return Paintbrush; });
  60647. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60648. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60649. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60650. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Events/pointerEvents */ "babylonjs/Misc/observable");
  60651. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__);
  60652. var paintbrushTool = /** @class */ (function () {
  60653. function paintbrushTool(getParameters) {
  60654. this.width = 15;
  60655. this.mousePos = null;
  60656. this.getParameters = getParameters;
  60657. }
  60658. paintbrushTool.prototype.paint = function (pointerInfo) {
  60659. var _a = this.getParameters(), getMouseCoordinates = _a.getMouseCoordinates, metadata = _a.metadata, updatePainting = _a.updatePainting;
  60660. var _b = getMouseCoordinates(pointerInfo), x = _b.x, y = _b.y;
  60661. if (metadata.select.x1 != -1) {
  60662. x -= metadata.select.x1;
  60663. y -= metadata.select.y1;
  60664. }
  60665. var ctx = this.ctx;
  60666. var numSteps, stepVector;
  60667. stepVector = new babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["Vector2"]();
  60668. if (this.mousePos == null) {
  60669. this.mousePos = new babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["Vector2"](x, y);
  60670. numSteps = 1;
  60671. }
  60672. else {
  60673. var maxDistance = this.width / 4;
  60674. var diffVector = new babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["Vector2"](x - this.mousePos.x, y - this.mousePos.y);
  60675. numSteps = Math.ceil(diffVector.length() / maxDistance);
  60676. var trueDistance = diffVector.length() / numSteps;
  60677. stepVector = diffVector.normalize().multiplyByFloats(trueDistance, trueDistance);
  60678. }
  60679. var paintVector = this.mousePos.clone();
  60680. for (var stepCount = 0; stepCount < numSteps; stepCount++) {
  60681. ctx.globalAlpha = 1.0;
  60682. ctx.globalCompositeOperation = 'destination-out';
  60683. ctx.drawImage(this.circleCanvas, Math.ceil(paintVector.x - this.width / 2), Math.ceil(paintVector.y - this.width / 2));
  60684. ctx.globalAlpha = metadata.alpha;
  60685. ctx.globalCompositeOperation = 'source-over';
  60686. ctx.drawImage(this.circleCanvas, Math.ceil(paintVector.x - this.width / 2), Math.ceil(paintVector.y - this.width / 2));
  60687. paintVector.addInPlace(stepVector);
  60688. }
  60689. updatePainting();
  60690. this.mousePos = new babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["Vector2"](x, y);
  60691. };
  60692. paintbrushTool.prototype.setBrushWidth = function (width) {
  60693. this.width = width;
  60694. };
  60695. paintbrushTool.prototype.setup = function () {
  60696. var _this = this;
  60697. var scene = this.getParameters().scene;
  60698. this.pointerObserver = scene.onPointerObservable.add(function (pointerInfo) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
  60699. var _a, startPainting, stopPainting, metadata, circleCanvas, circleCtx, pixels, dis, rgb, r, g, b, idx, y, x, _b;
  60700. var _c, _d;
  60701. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
  60702. switch (_e.label) {
  60703. case 0:
  60704. _a = this.getParameters(), startPainting = _a.startPainting, stopPainting = _a.stopPainting, metadata = _a.metadata;
  60705. if (!((_c = pointerInfo.pickInfo) === null || _c === void 0 ? void 0 : _c.hit)) return [3 /*break*/, 3];
  60706. if (!(pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["PointerEventTypes"].POINTERDOWN)) return [3 /*break*/, 2];
  60707. if (!(pointerInfo.event.button == 0)) return [3 /*break*/, 2];
  60708. this.isPainting = true;
  60709. circleCanvas = document.createElement('canvas');
  60710. circleCanvas.width = this.width;
  60711. circleCanvas.height = this.width;
  60712. circleCtx = circleCanvas.getContext('2d');
  60713. circleCtx.imageSmoothingEnabled = false;
  60714. pixels = new Array(4 * this.width * this.width);
  60715. dis = this.width * this.width / 4;
  60716. rgb = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(metadata.color);
  60717. r = Math.floor(rgb.r * 255);
  60718. g = Math.floor(rgb.g * 255);
  60719. b = Math.floor(rgb.b * 255);
  60720. idx = 0;
  60721. for (y = -Math.floor(this.width / 2); y < Math.ceil(this.width / 2); y++) {
  60722. for (x = -Math.floor(this.width / 2); x < Math.ceil(this.width / 2); x++) {
  60723. pixels[idx++] = r;
  60724. pixels[idx++] = g;
  60725. pixels[idx++] = b;
  60726. pixels[idx++] = (x * x + y * y <= dis) ? 255 : 0;
  60727. }
  60728. }
  60729. circleCtx.putImageData(new ImageData(Uint8ClampedArray.from(pixels), this.width, this.width), 0, 0);
  60730. this.circleCanvas = circleCanvas;
  60731. _b = this;
  60732. return [4 /*yield*/, startPainting()];
  60733. case 1:
  60734. _b.ctx = _e.sent();
  60735. this.paint(pointerInfo);
  60736. _e.label = 2;
  60737. case 2:
  60738. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["PointerEventTypes"].POINTERMOVE && this.isPainting) {
  60739. this.paint(pointerInfo);
  60740. }
  60741. _e.label = 3;
  60742. case 3:
  60743. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_2__["PointerEventTypes"].POINTERUP) {
  60744. if (pointerInfo.event.button == 0) {
  60745. this.isPainting = false;
  60746. (_d = this.circleCanvas.parentNode) === null || _d === void 0 ? void 0 : _d.removeChild(this.circleCanvas);
  60747. stopPainting();
  60748. this.mousePos = null;
  60749. }
  60750. }
  60751. return [2 /*return*/];
  60752. }
  60753. });
  60754. }); });
  60755. this.isPainting = false;
  60756. };
  60757. paintbrushTool.prototype.cleanup = function () {
  60758. this.isPainting = false;
  60759. if (this.pointerObserver) {
  60760. this.getParameters().scene.onPointerObservable.remove(this.pointerObserver);
  60761. }
  60762. };
  60763. return paintbrushTool;
  60764. }());
  60765. var Settings = /** @class */ (function (_super) {
  60766. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Settings, _super);
  60767. function Settings() {
  60768. return _super !== null && _super.apply(this, arguments) || this;
  60769. }
  60770. Settings.prototype.render = function () {
  60771. var _this = this;
  60772. var instance = this.props.instance;
  60773. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60774. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: 'tool-slider-input' },
  60775. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", null,
  60776. "Size: ",
  60777. instance.width),
  60778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: 'contrast-slider', type: 'range', min: 1, max: 100, value: instance.width, onChange: function (evt) { instance.setBrushWidth(evt.target.valueAsNumber); _this.forceUpdate(); } }))));
  60779. };
  60780. return Settings;
  60781. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60782. var Paintbrush = {
  60783. name: 'Paintbrush',
  60784. type: paintbrushTool,
  60785. settingsComponent: Settings,
  60786. icon: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMjksMTFhMy41NywzLjU3LDAsMCwxLDAsNS4wNkwxNywyOGEyLjM0LDIuMzQsMCwwLDEtMSwuNThMMTAuOTEsMzBhLjc1Ljc1LDAsMCwxLS45Mi0uOTJMMTEuMzgsMjRBMi4zNCwyLjM0LDAsMCwxLDEyLDIzbDEyLTEyQTMuNTcsMy41NywwLDAsMSwyOSwxMVpNMjMsMTQuMSwxMywyNGEuNjkuNjksMCwwLDAtLjE5LjMzbC0xLjA1LDMuODUsMy44NS0xQS42OS42OSwwLDAsMCwxNiwyN0wyNS45LDE3Wm0yLTItMSwxTDI3LDE2bDEtMUEyLjA4LDIuMDgsMCwxLDAsMjUsMTIuMDdaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",
  60787. cursor: "iVBORw0KGgoAAAANSUhEUgAAABUAAAAVAgMAAADUeU0FAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAAAFiS0dEAmYLfGQAAAA3SURBVAjXY2CAgVUNYGoqhFJjwE2BgQYDBwMXUGiFGtcyBgbVkKmtYXAeVA4O8BkGtQ9qOwgAAEPfC1QJPmWqAAAAAElFTkSuQmCC"
  60788. };
  60789. /***/ }),
  60790. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/rectangleSelect.ts":
  60791. /*!*****************************************************************************************************!*\
  60792. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/rectangleSelect.ts ***!
  60793. \*****************************************************************************************************/
  60794. /*! exports provided: RectangleSelect */
  60795. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60796. "use strict";
  60797. __webpack_require__.r(__webpack_exports__);
  60798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RectangleSelect", function() { return RectangleSelect; });
  60799. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Events/pointerEvents */ "babylonjs/Misc/observable");
  60800. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__);
  60801. var RectangleSelect = {
  60802. name: 'Rectangle Select',
  60803. type: /** @class */ (function () {
  60804. function class_1(getParameters) {
  60805. this.isSelecting = false;
  60806. this.xStart = -1;
  60807. this.yStart = -1;
  60808. this.getParameters = getParameters;
  60809. }
  60810. class_1.prototype.setup = function () {
  60811. var _this = this;
  60812. var scene = this.getParameters().scene;
  60813. this.pointerObserver = scene.onPointerObservable.add(function (pointerInfo) {
  60814. var _a;
  60815. var _b;
  60816. var _c = _this.getParameters(), getMouseCoordinates = _c.getMouseCoordinates, setMetadata = _c.setMetadata, metadata = _c.metadata;
  60817. if ((_b = pointerInfo.pickInfo) === null || _b === void 0 ? void 0 : _b.hit) {
  60818. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERDOWN) {
  60819. if (pointerInfo.event.button == 0) {
  60820. _this.isSelecting = true;
  60821. var _d = (_a = getMouseCoordinates(pointerInfo), _this.xStart = _a.x, _this.yStart = _a.y, _a), x = _d.x, y = _d.y;
  60822. setMetadata({
  60823. select: {
  60824. x1: x,
  60825. y1: y,
  60826. x2: x,
  60827. y2: y
  60828. }
  60829. });
  60830. }
  60831. }
  60832. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERMOVE && _this.isSelecting) {
  60833. var _e = getMouseCoordinates(pointerInfo), x = _e.x, y = _e.y;
  60834. setMetadata({
  60835. select: {
  60836. x1: Math.min(x, _this.xStart),
  60837. y1: Math.min(y, _this.yStart),
  60838. x2: Math.max(x, _this.xStart),
  60839. y2: Math.max(y, _this.yStart)
  60840. }
  60841. });
  60842. }
  60843. }
  60844. if (pointerInfo.type === babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERUP) {
  60845. if (pointerInfo.event.button == 0) {
  60846. _this.isSelecting = false;
  60847. if (metadata.select.x1 === metadata.select.x2 || metadata.select.y1 === metadata.select.y2) {
  60848. setMetadata({
  60849. select: {
  60850. x1: -1, y1: -1, x2: -1, y2: -1
  60851. }
  60852. });
  60853. }
  60854. }
  60855. }
  60856. });
  60857. };
  60858. class_1.prototype.cleanup = function () {
  60859. this.isSelecting = false;
  60860. if (this.pointerObserver) {
  60861. this.getParameters().scene.onPointerObservable.remove(this.pointerObserver);
  60862. }
  60863. };
  60864. return class_1;
  60865. }()),
  60866. icon: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHN0eWxlPSJmaWxsOm5vbmUiLz48cGF0aCBkPSJNMTEuNjMsMTUuNjNIMTAuMzh2LTMuN2ExLjU0LDEuNTQsMCwwLDEsMS41NS0xLjU1aDMuN3YxLjI1SDEyLjI1YS42Mi42MiwwLDAsMC0uNjIuNjJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTExLjYzLDIyLjYzSDEwLjM4VjE3LjM4aDEuMjVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI5LjYzLDIyLjYzSDI4LjM4VjE3LjM4aDEuMjVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTE1LjYzLDI5LjYzaC0zLjdhMS41NSwxLjU1LDAsMCwxLTEuNTUtMS41NlYyNC4zOGgxLjI1djMuMzdhLjYzLjYzLDAsMCwwLC42Mi42M2gzLjM4WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0yOC4wNywyOS42M0gyNC4zOFYyOC4zOGgzLjM3YS42NC42NCwwLDAsMCwuNjMtLjYzVjI0LjM4aDEuMjV2My42OUExLjU2LDEuNTYsMCwwLDEsMjguMDcsMjkuNjNaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTIyLjYzLDExLjYzSDE3LjM4VjEwLjM4aDUuMjVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI5LjYzLDE1LjYzSDI4LjM4VjEyLjI1YS42My42MywwLDAsMC0uNjMtLjYySDI0LjM4VjEwLjM4aDMuNjlhMS41NSwxLjU1LDAsMCwxLDEuNTYsMS41NVoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJNMjIuNjMsMjkuNjNIMTcuMzhWMjguMzhoNS4yNVoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=",
  60867. cursor: "iVBORw0KGgoAAAANSUhEUgAAABUAAAAVAgMAAADUeU0FAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAAAFiS0dEAmYLfGQAAAAnSURBVAjXY2CAAS0IpUY0BdG1ikNrFQODaqiaaBicBwfEG6aF0AQA4oYGiJg4woEAAAAASUVORK5CYII="
  60868. };
  60869. /***/ }),
  60870. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/propertiesBar.tsx":
  60871. /*!***************************************************************************************!*\
  60872. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/propertiesBar.tsx ***!
  60873. \***************************************************************************************/
  60874. /*! exports provided: PropertiesBar */
  60875. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60876. "use strict";
  60877. __webpack_require__.r(__webpack_exports__);
  60878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertiesBar", function() { return PropertiesBar; });
  60879. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60880. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60881. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60882. var PropertiesBar = /** @class */ (function (_super) {
  60883. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertiesBar, _super);
  60884. function PropertiesBar(props) {
  60885. var _this = _super.call(this, props) || this;
  60886. _this._resetButton = __webpack_require__(/*! ./assets/reset.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/reset.svg");
  60887. _this._uploadButton = __webpack_require__(/*! ./assets/upload.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/upload.svg");
  60888. _this._saveButton = __webpack_require__(/*! ./assets/save.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/save.svg");
  60889. _this._babylonLogo = __webpack_require__(/*! ./assets/babylonLogo.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/babylonLogo.svg");
  60890. _this._resizeButton = __webpack_require__(/*! ./assets/resizeTool.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/resizeTool.svg");
  60891. _this._mipUp = __webpack_require__(/*! ./assets/mipUp.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/mipUp.svg");
  60892. _this._mipDown = __webpack_require__(/*! ./assets/mipDown.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/mipDown.svg");
  60893. _this._faces = [
  60894. __webpack_require__(/*! ./assets/posX.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posX.svg"),
  60895. __webpack_require__(/*! ./assets/posY.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posY.svg"),
  60896. __webpack_require__(/*! ./assets/posZ.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/posZ.svg"),
  60897. __webpack_require__(/*! ./assets/negX.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negX.svg"),
  60898. __webpack_require__(/*! ./assets/negY.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negY.svg"),
  60899. __webpack_require__(/*! ./assets/negZ.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/negZ.svg")
  60900. ];
  60901. _this.state = {
  60902. width: props.size.width,
  60903. height: props.size.height
  60904. };
  60905. return _this;
  60906. }
  60907. PropertiesBar.prototype.pixelData = function (props) {
  60908. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: 'pixel-data' },
  60909. props.name,
  60910. ": ",
  60911. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: 'value' }, props.data !== undefined ? props.data : '-'));
  60912. };
  60913. PropertiesBar.prototype.getNewDimension = function (oldDim, newDim) {
  60914. if (!isNaN(newDim)) {
  60915. if (parseInt(newDim) > 0) {
  60916. if (Number.isInteger(parseInt(newDim)))
  60917. return parseInt(newDim);
  60918. }
  60919. }
  60920. return oldDim;
  60921. };
  60922. PropertiesBar.prototype.componentWillUpdate = function (nextProps) {
  60923. if (nextProps.size.width != this.props.size.width || nextProps.size.height != this.props.size.height) {
  60924. this.setState({
  60925. width: nextProps.size.width,
  60926. height: nextProps.size.height
  60927. });
  60928. }
  60929. };
  60930. PropertiesBar.prototype.render = function () {
  60931. var _this = this;
  60932. var _a = this.props, mipLevel = _a.mipLevel, setMipLevel = _a.setMipLevel, pixelData = _a.pixelData, resizeTexture = _a.resizeTexture, texture = _a.texture, face = _a.face, setFace = _a.setFace, saveTexture = _a.saveTexture, resetTexture = _a.resetTexture, uploadTexture = _a.uploadTexture;
  60933. var maxLevels = Math.floor(Math.log2(Math.max(texture.getSize().width, texture.getSize().height)));
  60934. var engine = texture.getScene().getEngine();
  60935. var mipsEnabled = (!texture.noMipmap && (engine.webGLVersion == 2 || engine._gl.getExtension('EXT_shader_texture_lod')));
  60936. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'properties' },
  60937. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'logo-tab' },
  60938. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: 'icon', src: this._babylonLogo })),
  60939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'left' },
  60940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'dimensions-tab' },
  60941. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("form", { onSubmit: function (evt) {
  60942. _this.props.resizeTexture(_this.state.width, _this.state.height);
  60943. evt.preventDefault();
  60944. } },
  60945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: 'dimensions' },
  60946. "W: ",
  60947. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: 'text', value: this.state.width, readOnly: texture.isCube, onChange: function (evt) { return _this.setState({ width: _this.getNewDimension(_this.state.width, evt.target.value) }); } })),
  60948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: 'dimensions' },
  60949. "H: ",
  60950. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: 'text', value: this.state.height, readOnly: texture.isCube, onChange: function (evt) { return _this.setState({ height: _this.getNewDimension(_this.state.height, evt.target.value) }); } })),
  60951. !texture.isCube && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: 'resize', className: 'icon button', title: 'Resize', alt: 'Resize', src: this._resizeButton, onClick: function () { return resizeTexture(_this.state.width, _this.state.height); } }))),
  60952. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'pixel-coords-tab' },
  60953. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.pixelData, { name: 'X', data: pixelData.x }),
  60954. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.pixelData, { name: 'Y', data: pixelData.y })),
  60955. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'pixel-color-tab' },
  60956. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.pixelData, { name: 'R', data: pixelData.r }),
  60957. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.pixelData, { name: 'G', data: pixelData.g }),
  60958. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.pixelData, { name: 'B', data: pixelData.b }),
  60959. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.pixelData, { name: 'A', data: pixelData.a })),
  60960. texture.isCube &&
  60961. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'face-tab' }, this._faces.map(function (value, index) {
  60962. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { key: index, className: face == index ? 'icon face button active' : 'icon face button', src: value, onClick: function () { return setFace(index); } });
  60963. })),
  60964. mipsEnabled &&
  60965. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'mip-tab' },
  60966. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { title: 'Mip Preview Up', className: 'icon button', src: this._mipUp, onClick: function () { return mipLevel > 0 && setMipLevel(mipLevel - 1); } }),
  60967. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { title: 'Mip Preview Down', className: 'icon button', src: this._mipDown, onClick: function () { return mipLevel < maxLevels && setMipLevel(mipLevel + 1); } }))),
  60968. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: 'tab', id: 'right-tab' },
  60969. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { title: 'Reset', className: 'icon button', src: this._resetButton, onClick: function () { return resetTexture(); } }),
  60970. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", null,
  60971. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { accept: '.jpg, .png, .tga, .dds, .env', type: 'file', onChange: function (evt) {
  60972. var files = evt.target.files;
  60973. if (files && files.length) {
  60974. uploadTexture(files[0]);
  60975. }
  60976. evt.target.value = "";
  60977. } }),
  60978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { title: 'Upload', className: 'icon button', src: this._uploadButton })),
  60979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { title: 'Save', className: 'icon button', src: this._saveButton, onClick: function () { return saveTexture(); } })));
  60980. };
  60981. return PropertiesBar;
  60982. }(react__WEBPACK_IMPORTED_MODULE_1__["PureComponent"]));
  60983. /***/ }),
  60984. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasComponent.tsx":
  60985. /*!************************************************************************************************!*\
  60986. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasComponent.tsx ***!
  60987. \************************************************************************************************/
  60988. /*! exports provided: TextureCanvasComponent */
  60989. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60990. "use strict";
  60991. __webpack_require__.r(__webpack_exports__);
  60992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureCanvasComponent", function() { return TextureCanvasComponent; });
  60993. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60994. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60995. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60996. var TextureCanvasComponent = /** @class */ (function (_super) {
  60997. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureCanvasComponent, _super);
  60998. function TextureCanvasComponent() {
  60999. return _super !== null && _super.apply(this, arguments) || this;
  61000. }
  61001. TextureCanvasComponent.prototype.render = function () {
  61002. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "canvas-ui", ref: this.props.canvasUI, tabIndex: 1 }),
  61004. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "canvas-2D", ref: this.props.canvas2D, width: this.props.texture.getSize().width, height: this.props.texture.getSize().height, hidden: true }),
  61005. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "canvas-3D", ref: this.props.canvas3D, width: this.props.texture.getSize().width, height: this.props.texture.getSize().height, hidden: true }));
  61006. };
  61007. return TextureCanvasComponent;
  61008. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61009. /***/ }),
  61010. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasManager.ts":
  61011. /*!*********************************************************************************************!*\
  61012. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasManager.ts ***!
  61013. \*********************************************************************************************/
  61014. /*! exports provided: TextureCanvasManager */
  61015. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61016. "use strict";
  61017. __webpack_require__.r(__webpack_exports__);
  61018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureCanvasManager", function() { return TextureCanvasManager; });
  61019. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61020. /* harmony import */ var babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Engines/engine */ "babylonjs/Misc/observable");
  61021. /* harmony import */ var babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__);
  61022. /* harmony import */ var _textureHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../textureHelper */ "./textureHelper.ts");
  61023. /* harmony import */ var _canvasShader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./canvasShader */ "./components/actionTabs/tabs/propertyGrids/materials/textures/canvasShader.ts");
  61024. var TextureCanvasManager = /** @class */ (function () {
  61025. function TextureCanvasManager(texture, window, canvasUI, canvas2D, canvas3D, setPixelData, metadata, onUpdate, setMetadata, setMipLevel) {
  61026. var _a;
  61027. var _this = this;
  61028. this._isPanning = false;
  61029. this._channels = [];
  61030. this._face = 0;
  61031. this._mipLevel = 0;
  61032. /** The internal texture representation of the original texture */
  61033. this._originalInternalTexture = null;
  61034. /** Keeps track of whether we have modified the texture */
  61035. this._didEdit = false;
  61036. /** Tracks which keys are currently pressed */
  61037. this._keyMap = {};
  61038. this.ZOOM_MOUSE_SPEED = 0.001;
  61039. this.ZOOM_KEYBOARD_SPEED = 0.4;
  61040. this.ZOOM_IN_KEY = '+';
  61041. this.ZOOM_OUT_KEY = '-';
  61042. this.PAN_SPEED = 0.003;
  61043. this.PAN_MOUSE_BUTTON = 1; // MMB
  61044. this.MIN_SCALE = 0.01;
  61045. this.GRID_SCALE = 0.047;
  61046. this.MAX_SCALE = 10;
  61047. this.SELECT_ALL_KEY = 'KeyA';
  61048. this.SAVE_KEY = 'KeyS';
  61049. this.RESET_KEY = 'KeyR';
  61050. this.DESELECT_KEY = 'Escape';
  61051. /** The number of milliseconds between texture updates */
  61052. this.PUSH_FREQUENCY = 32;
  61053. this._editing3D = false;
  61054. this._canPush = true;
  61055. this._shouldPush = false;
  61056. this._window = window;
  61057. this._UICanvas = canvasUI;
  61058. this._2DCanvas = canvas2D;
  61059. this._3DCanvas = canvas3D;
  61060. this._paintCanvas = document.createElement('canvas');
  61061. this._setPixelData = setPixelData;
  61062. this._metadata = metadata;
  61063. this._onUpdate = onUpdate;
  61064. this._setMetadata = setMetadata;
  61065. this._setMipLevel = setMipLevel;
  61066. this._size = texture.getSize();
  61067. this._originalTexture = texture;
  61068. this._originalInternalTexture = this._originalTexture._texture;
  61069. this._engine = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"](this._UICanvas, true);
  61070. this._scene = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Scene"](this._engine, { virtual: true });
  61071. this._scene.clearColor = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Color4"](0.11, 0.11, 0.11, 1.0);
  61072. this._camera = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["FreeCamera"]('camera', new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Vector3"](0, 0, -1), this._scene);
  61073. this._camera.mode = babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Camera"].ORTHOGRAPHIC_CAMERA;
  61074. this._cameraPos = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Vector2"]();
  61075. this._channelsTexture = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["HtmlElementTexture"]('ct', this._2DCanvas, { engine: this._engine, scene: null, samplingMode: babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Texture"].NEAREST_SAMPLINGMODE, generateMipMaps: true });
  61076. this._3DEngine = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"](this._3DCanvas);
  61077. this._3DScene = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Scene"](this._3DEngine, { virtual: true });
  61078. this._3DScene.clearColor = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Color4"](0, 0, 0, 0);
  61079. this._3DCanvasTexture = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["HtmlElementTexture"]('canvas', this._2DCanvas, { engine: this._3DEngine, scene: this._3DScene });
  61080. this._3DCanvasTexture.hasAlpha = true;
  61081. var cam = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["FreeCamera"]('camera', new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Vector3"](0, 0, -1), this._3DScene);
  61082. cam.mode = babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Camera"].ORTHOGRAPHIC_CAMERA;
  61083. _a = [-0.5, -0.5, 0.5, 0.5], cam.orthoBottom = _a[0], cam.orthoLeft = _a[1], cam.orthoTop = _a[2], cam.orthoRight = _a[3];
  61084. this._3DPlane = babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["PlaneBuilder"].CreatePlane('texture', { width: 1, height: 1 }, this._3DScene);
  61085. this._3DPlane.hasVertexAlpha = true;
  61086. var mat = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["StandardMaterial"]('material', this._3DScene);
  61087. mat.diffuseTexture = this._3DCanvasTexture;
  61088. mat.useAlphaFromDiffuseTexture = true;
  61089. mat.disableLighting = true;
  61090. mat.emissiveColor = babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Color3"].White();
  61091. this._3DPlane.material = mat;
  61092. this._planeMaterial = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["ShaderMaterial"]('canvasShader', this._scene, _canvasShader__WEBPACK_IMPORTED_MODULE_3__["canvasShader"].path, _canvasShader__WEBPACK_IMPORTED_MODULE_3__["canvasShader"].options);
  61093. this.grabOriginalTexture();
  61094. this._planeMaterial.setTexture('textureSampler', this._channelsTexture);
  61095. this._planeMaterial.setFloat('r', 1.0);
  61096. this._planeMaterial.setFloat('g', 1.0);
  61097. this._planeMaterial.setFloat('b', 1.0);
  61098. this._planeMaterial.setFloat('a', 1.0);
  61099. this._planeMaterial.setInt('x1', -1);
  61100. this._planeMaterial.setInt('y1', -1);
  61101. this._planeMaterial.setInt('x2', -1);
  61102. this._planeMaterial.setInt('y2', -1);
  61103. this._planeMaterial.setInt('w', this._size.width);
  61104. this._planeMaterial.setInt('h', this._size.height);
  61105. this._planeMaterial.setInt('time', 0);
  61106. this._planeMaterial.setFloat('showGrid', 0.0);
  61107. this._plane.material = this._planeMaterial;
  61108. this._window.addEventListener('keydown', function (evt) {
  61109. _this._keyMap[evt.code] = true;
  61110. if (evt.code === _this.SELECT_ALL_KEY && evt.ctrlKey) {
  61111. _this._setMetadata({
  61112. select: {
  61113. x1: 0,
  61114. y1: 0,
  61115. x2: _this._size.width,
  61116. y2: _this._size.height
  61117. }
  61118. });
  61119. evt.preventDefault();
  61120. }
  61121. if (evt.code === _this.SAVE_KEY && evt.ctrlKey) {
  61122. _this.saveTexture();
  61123. evt.preventDefault();
  61124. }
  61125. if (evt.code === _this.RESET_KEY && evt.ctrlKey) {
  61126. _this.reset();
  61127. evt.preventDefault();
  61128. }
  61129. if (evt.code === _this.DESELECT_KEY) {
  61130. _this._setMetadata({
  61131. select: {
  61132. x1: -1,
  61133. y1: -1,
  61134. x2: -1,
  61135. y2: -1
  61136. }
  61137. });
  61138. }
  61139. });
  61140. this._window.addEventListener('keyup', function (evt) {
  61141. _this._keyMap[evt.code] = false;
  61142. });
  61143. this._engine.runRenderLoop(function () {
  61144. _this._engine.resize();
  61145. _this._scene.render();
  61146. _this._planeMaterial.setInt('time', new Date().getTime());
  61147. });
  61148. this._scale = 1.5 / Math.max(this._size.width, this._size.height);
  61149. this._isPanning = false;
  61150. this._scene.onBeforeRenderObservable.add(function () {
  61151. var _a, _b;
  61152. _this._scale = Math.min(Math.max(_this._scale, _this.MIN_SCALE / Math.log2(Math.min(_this._size.width, _this._size.height))), _this.MAX_SCALE);
  61153. if (_this._scale > _this.GRID_SCALE) {
  61154. _this._planeMaterial.setFloat('showGrid', 1.0);
  61155. }
  61156. else {
  61157. _this._planeMaterial.setFloat('showGrid', 0.0);
  61158. }
  61159. var ratio = ((_a = _this._UICanvas) === null || _a === void 0 ? void 0 : _a.width) / ((_b = _this._UICanvas) === null || _b === void 0 ? void 0 : _b.height);
  61160. var _c = _this._cameraPos, x = _c.x, y = _c.y;
  61161. _this._camera.orthoBottom = y - 1 / _this._scale;
  61162. _this._camera.orthoTop = y + 1 / _this._scale;
  61163. _this._camera.orthoLeft = x - ratio / _this._scale;
  61164. _this._camera.orthoRight = x + ratio / _this._scale;
  61165. });
  61166. this._scene.onPointerObservable.add(function (pointerInfo) {
  61167. var _a;
  61168. switch (pointerInfo.type) {
  61169. case babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERWHEEL:
  61170. var event_1 = pointerInfo.event;
  61171. _this._scale -= (event_1.deltaY * _this.ZOOM_MOUSE_SPEED * _this._scale);
  61172. break;
  61173. case babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERDOWN:
  61174. if (pointerInfo.event.button === _this.PAN_MOUSE_BUTTON) {
  61175. _this._isPanning = true;
  61176. _this._mouseX = pointerInfo.event.x;
  61177. _this._mouseY = pointerInfo.event.y;
  61178. pointerInfo.event.preventDefault();
  61179. }
  61180. break;
  61181. case babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERUP:
  61182. if (pointerInfo.event.button === _this.PAN_MOUSE_BUTTON) {
  61183. _this._isPanning = false;
  61184. }
  61185. break;
  61186. case babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERMOVE:
  61187. if (_this._isPanning) {
  61188. _this._cameraPos.x -= (pointerInfo.event.x - _this._mouseX) * _this.PAN_SPEED / _this._scale;
  61189. _this._cameraPos.y += (pointerInfo.event.y - _this._mouseY) * _this.PAN_SPEED / _this._scale;
  61190. _this._mouseX = pointerInfo.event.x;
  61191. _this._mouseY = pointerInfo.event.y;
  61192. }
  61193. if ((_a = pointerInfo.pickInfo) === null || _a === void 0 ? void 0 : _a.hit) {
  61194. var pos = _this.getMouseCoordinates(pointerInfo);
  61195. var idx = (pos.x + pos.y * _this._size.width) * 4;
  61196. _this._setPixelData({ x: pos.x, y: pos.y, r: _this._imageData[idx], g: _this._imageData[idx + 1], b: _this._imageData[idx + 2], a: _this._imageData[idx + 3] });
  61197. }
  61198. else {
  61199. _this._setPixelData({});
  61200. }
  61201. break;
  61202. }
  61203. });
  61204. this._scene.onKeyboardObservable.add(function (kbInfo) {
  61205. switch (kbInfo.type) {
  61206. case babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["KeyboardEventTypes"].KEYDOWN:
  61207. _this._keyMap[kbInfo.event.key] = true;
  61208. switch (kbInfo.event.key) {
  61209. case _this.ZOOM_IN_KEY:
  61210. _this._scale += _this.ZOOM_KEYBOARD_SPEED * _this._scale;
  61211. break;
  61212. case _this.ZOOM_OUT_KEY:
  61213. _this._scale -= _this.ZOOM_KEYBOARD_SPEED * _this._scale;
  61214. break;
  61215. }
  61216. break;
  61217. case babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["KeyboardEventTypes"].KEYUP:
  61218. _this._keyMap[kbInfo.event.key] = false;
  61219. break;
  61220. }
  61221. });
  61222. }
  61223. TextureCanvasManager.prototype.updateTexture = function () {
  61224. var _a, _b;
  61225. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
  61226. var element;
  61227. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
  61228. switch (_c.label) {
  61229. case 0:
  61230. if (!(this._mipLevel !== 0)) return [3 /*break*/, 2];
  61231. return [4 /*yield*/, this._setMipLevel(0)];
  61232. case 1:
  61233. _c.sent();
  61234. _c.label = 2;
  61235. case 2:
  61236. this._didEdit = true;
  61237. element = this._editing3D ? this._3DCanvas : this._2DCanvas;
  61238. if (this._editing3D) {
  61239. this._3DCanvasTexture.update();
  61240. this._3DScene.render();
  61241. }
  61242. if (this._originalTexture.isCube) {
  61243. // TODO: fix cube map editing
  61244. }
  61245. else {
  61246. if (!this._target) {
  61247. this._target = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["HtmlElementTexture"]("editor", element, {
  61248. engine: (_a = this._originalTexture.getScene()) === null || _a === void 0 ? void 0 : _a.getEngine(),
  61249. scene: null,
  61250. samplingMode: this._originalTexture.samplingMode,
  61251. generateMipMaps: (_b = this._originalInternalTexture) === null || _b === void 0 ? void 0 : _b.generateMipMaps
  61252. });
  61253. }
  61254. else {
  61255. this._target.element = element;
  61256. }
  61257. this.pushTexture();
  61258. }
  61259. this._originalTexture._texture = this._target._texture;
  61260. this._channelsTexture.element = element;
  61261. this.updateDisplay();
  61262. this._onUpdate();
  61263. return [2 /*return*/];
  61264. }
  61265. });
  61266. });
  61267. };
  61268. TextureCanvasManager.prototype.pushTexture = function () {
  61269. var _this = this;
  61270. var _a;
  61271. if (this._canPush) {
  61272. this._target.update(this._originalTexture.invertY);
  61273. (_a = this._target._texture) === null || _a === void 0 ? void 0 : _a.updateSize(this._size.width, this._size.height);
  61274. if (this._editing3D) {
  61275. this._imageData = this._3DEngine.readPixels(0, 0, this._size.width, this._size.height);
  61276. }
  61277. else {
  61278. this._imageData = this._2DCanvas.getContext('2d').getImageData(0, 0, this._size.width, this._size.height).data;
  61279. }
  61280. this._canPush = false;
  61281. this._shouldPush = false;
  61282. setTimeout(function () {
  61283. _this._canPush = true;
  61284. if (_this._shouldPush) {
  61285. _this.pushTexture();
  61286. }
  61287. }, this.PUSH_FREQUENCY);
  61288. }
  61289. else {
  61290. this._shouldPush = true;
  61291. }
  61292. };
  61293. TextureCanvasManager.prototype.startPainting = function () {
  61294. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
  61295. var x, y, w, h, ctx;
  61296. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  61297. switch (_a.label) {
  61298. case 0:
  61299. if (!(this._mipLevel != 0)) return [3 /*break*/, 2];
  61300. return [4 /*yield*/, this._setMipLevel(0)];
  61301. case 1:
  61302. _a.sent();
  61303. _a.label = 2;
  61304. case 2:
  61305. x = 0, y = 0, w = this._size.width, h = this._size.height;
  61306. if (this._metadata.select.x1 != -1) {
  61307. x = this._metadata.select.x1;
  61308. y = this._metadata.select.y1;
  61309. w = this._metadata.select.x2 - this._metadata.select.x1;
  61310. h = this._metadata.select.y2 - this._metadata.select.y1;
  61311. }
  61312. this._paintCanvas.width = w;
  61313. this._paintCanvas.height = h;
  61314. ctx = this._paintCanvas.getContext('2d');
  61315. ctx.imageSmoothingEnabled = false;
  61316. ctx.drawImage(this._2DCanvas, x, y, w, h, 0, 0, w, h);
  61317. return [2 /*return*/, ctx];
  61318. }
  61319. });
  61320. });
  61321. };
  61322. TextureCanvasManager.prototype.updatePainting = function () {
  61323. var x = 0, y = 0, w = this._size.width, h = this._size.height;
  61324. if (this._metadata.select.x1 != -1) {
  61325. x = this._metadata.select.x1;
  61326. y = this._metadata.select.y1;
  61327. w = this._metadata.select.x2 - this._metadata.select.x1;
  61328. h = this._metadata.select.y2 - this._metadata.select.y1;
  61329. }
  61330. var editingAllChannels = true;
  61331. this._channels.forEach(function (channel) {
  61332. if (!channel.editable)
  61333. editingAllChannels = false;
  61334. });
  61335. var oldData;
  61336. if (!editingAllChannels) {
  61337. oldData = this._2DCanvas.getContext('2d').getImageData(x, y, w, h).data;
  61338. }
  61339. var ctx = this._paintCanvas.getContext('2d');
  61340. var ctx2D = this.canvas2D.getContext('2d');
  61341. ctx2D.globalAlpha = 1.0;
  61342. ctx2D.globalCompositeOperation = 'destination-out';
  61343. ctx2D.fillStyle = 'white';
  61344. ctx2D.fillRect(x, y, w, h);
  61345. ctx2D.imageSmoothingEnabled = false;
  61346. // If we're not editing all channels, we must process the pixel data
  61347. if (!editingAllChannels) {
  61348. var newData = ctx.getImageData(0, 0, w, h);
  61349. var nd_1 = newData.data;
  61350. this._channels.forEach(function (channel, index) {
  61351. if (!channel.editable) {
  61352. for (var i = index; i < w * h * 4; i += 4) {
  61353. nd_1[i] = oldData[i];
  61354. }
  61355. }
  61356. });
  61357. ctx2D.globalCompositeOperation = 'source-over';
  61358. ctx2D.globalAlpha = 1.0;
  61359. ctx2D.putImageData(newData, x, y);
  61360. }
  61361. else {
  61362. ctx2D.globalCompositeOperation = 'source-over';
  61363. ctx2D.globalAlpha = 1.0;
  61364. // We want to use drawImage wherever possible since it is much faster than putImageData
  61365. ctx2D.drawImage(ctx.canvas, x, y);
  61366. }
  61367. this.updateTexture();
  61368. };
  61369. TextureCanvasManager.prototype.stopPainting = function () {
  61370. this._paintCanvas.getContext('2d').clearRect(0, 0, this._paintCanvas.width, this._paintCanvas.height);
  61371. };
  61372. TextureCanvasManager.prototype.updateDisplay = function () {
  61373. this._3DScene.render();
  61374. this._channelsTexture.update(true);
  61375. };
  61376. Object.defineProperty(TextureCanvasManager.prototype, "channels", {
  61377. set: function (channels) {
  61378. var _this = this;
  61379. // Determine if we need to re-render the texture. This is an expensive operation, so we should only do it if channel visibility has changed.
  61380. var needsRender = false;
  61381. if (channels.length !== this._channels.length) {
  61382. needsRender = true;
  61383. }
  61384. else {
  61385. channels.forEach(function (channel, index) {
  61386. if (channel.visible !== _this._channels[index].visible) {
  61387. needsRender = true;
  61388. _this._planeMaterial.setFloat(channel.id.toLowerCase(), channel.visible ? 1.0 : 0.0);
  61389. }
  61390. });
  61391. }
  61392. this._channels = channels;
  61393. if (needsRender) {
  61394. this.updateDisplay();
  61395. }
  61396. },
  61397. enumerable: false,
  61398. configurable: true
  61399. });
  61400. TextureCanvasManager.prototype.paintPixelsOnCanvas = function (pixelData, canvas) {
  61401. var ctx = canvas.getContext('2d');
  61402. var imgData = ctx.createImageData(canvas.width, canvas.height);
  61403. imgData.data.set(pixelData);
  61404. ctx.putImageData(imgData, 0, 0);
  61405. };
  61406. TextureCanvasManager.prototype.grabOriginalTexture = function () {
  61407. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
  61408. var data;
  61409. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  61410. switch (_a.label) {
  61411. case 0:
  61412. // Grab image data from original texture and paint it onto the context of a DynamicTexture
  61413. this.setSize(this._originalTexture.getSize());
  61414. return [4 /*yield*/, _textureHelper__WEBPACK_IMPORTED_MODULE_2__["TextureHelper"].GetTextureDataAsync(this._originalTexture, this._size.width, this._size.height, this._face, { R: true, G: true, B: true, A: true }, undefined, this._mipLevel)];
  61415. case 1:
  61416. data = _a.sent();
  61417. this._imageData = data;
  61418. this.paintPixelsOnCanvas(data, this._2DCanvas);
  61419. this._3DCanvasTexture.update();
  61420. this.updateDisplay();
  61421. return [2 /*return*/, data];
  61422. }
  61423. });
  61424. });
  61425. };
  61426. TextureCanvasManager.prototype.getMouseCoordinates = function (pointerInfo) {
  61427. var _a;
  61428. if ((_a = pointerInfo.pickInfo) === null || _a === void 0 ? void 0 : _a.hit) {
  61429. var x = Math.floor(pointerInfo.pickInfo.getTextureCoordinates().x * this._size.width);
  61430. var y = Math.floor((1 - pointerInfo.pickInfo.getTextureCoordinates().y) * this._size.height);
  61431. return new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Vector2"](x, y);
  61432. }
  61433. else {
  61434. return new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Vector2"]();
  61435. }
  61436. };
  61437. Object.defineProperty(TextureCanvasManager.prototype, "scene", {
  61438. get: function () {
  61439. return this._scene;
  61440. },
  61441. enumerable: false,
  61442. configurable: true
  61443. });
  61444. Object.defineProperty(TextureCanvasManager.prototype, "canvas2D", {
  61445. get: function () {
  61446. return this._2DCanvas;
  61447. },
  61448. enumerable: false,
  61449. configurable: true
  61450. });
  61451. Object.defineProperty(TextureCanvasManager.prototype, "size", {
  61452. get: function () {
  61453. return this._size;
  61454. },
  61455. enumerable: false,
  61456. configurable: true
  61457. });
  61458. Object.defineProperty(TextureCanvasManager.prototype, "tool", {
  61459. get: function () {
  61460. return this._tool;
  61461. },
  61462. set: function (tool) {
  61463. var _a;
  61464. if (this._tool) {
  61465. this._tool.instance.cleanup();
  61466. }
  61467. this._tool = tool;
  61468. if (this._tool) {
  61469. this._tool.instance.setup();
  61470. if (this._editing3D && !this._tool.is3D) {
  61471. this._editing3D = false;
  61472. (_a = this._2DCanvas.getContext('2d')) === null || _a === void 0 ? void 0 : _a.drawImage(this._3DCanvas, 0, 0);
  61473. }
  61474. else if (!this._editing3D && this._tool.is3D) {
  61475. this._editing3D = true;
  61476. this.updateTexture();
  61477. }
  61478. }
  61479. },
  61480. enumerable: false,
  61481. configurable: true
  61482. });
  61483. Object.defineProperty(TextureCanvasManager.prototype, "face", {
  61484. set: function (face) {
  61485. if (this._face !== face) {
  61486. this._face = face;
  61487. this.grabOriginalTexture();
  61488. this.updateDisplay();
  61489. }
  61490. },
  61491. enumerable: false,
  61492. configurable: true
  61493. });
  61494. Object.defineProperty(TextureCanvasManager.prototype, "mipLevel", {
  61495. set: function (mipLevel) {
  61496. if (this._mipLevel === mipLevel)
  61497. return;
  61498. this._mipLevel = mipLevel;
  61499. this.grabOriginalTexture();
  61500. },
  61501. enumerable: false,
  61502. configurable: true
  61503. });
  61504. Object.defineProperty(TextureCanvasManager.prototype, "scene3D", {
  61505. /** Returns the 3D scene used for postprocesses */
  61506. get: function () {
  61507. return this._3DScene;
  61508. },
  61509. enumerable: false,
  61510. configurable: true
  61511. });
  61512. Object.defineProperty(TextureCanvasManager.prototype, "metadata", {
  61513. set: function (metadata) {
  61514. this._metadata = metadata;
  61515. var _a = metadata.select, x1 = _a.x1, y1 = _a.y1, x2 = _a.x2, y2 = _a.y2;
  61516. this._planeMaterial.setInt('x1', x1);
  61517. this._planeMaterial.setInt('y1', y1);
  61518. this._planeMaterial.setInt('x2', x2);
  61519. this._planeMaterial.setInt('y2', y2);
  61520. },
  61521. enumerable: false,
  61522. configurable: true
  61523. });
  61524. TextureCanvasManager.prototype.makePlane = function () {
  61525. if (this._plane)
  61526. this._plane.dispose();
  61527. this._plane = babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["PlaneBuilder"].CreatePlane("plane", { width: this._size.width, height: this._size.height }, this._scene);
  61528. this._plane.enableEdgesRendering();
  61529. this._plane.edgesWidth = 4.0;
  61530. this._plane.edgesColor = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Color4"](1, 1, 1, 1);
  61531. this._plane.enablePointerMoveEvents = true;
  61532. this._plane.material = this._planeMaterial;
  61533. };
  61534. TextureCanvasManager.prototype.reset = function () {
  61535. if (this._tool && this._tool.instance.onReset) {
  61536. this._tool.instance.onReset();
  61537. }
  61538. this._originalTexture._texture = this._originalInternalTexture;
  61539. this.grabOriginalTexture();
  61540. this.makePlane();
  61541. this._didEdit = false;
  61542. this._onUpdate();
  61543. };
  61544. TextureCanvasManager.prototype.resize = function (newSize) {
  61545. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
  61546. var data;
  61547. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  61548. switch (_a.label) {
  61549. case 0: return [4 /*yield*/, _textureHelper__WEBPACK_IMPORTED_MODULE_2__["TextureHelper"].GetTextureDataAsync(this._originalTexture, newSize.width, newSize.height, this._face, { R: true, G: true, B: true, A: true })];
  61550. case 1:
  61551. data = _a.sent();
  61552. this.setSize(newSize);
  61553. this.paintPixelsOnCanvas(data, this._2DCanvas);
  61554. this.updateTexture();
  61555. this._didEdit = true;
  61556. return [2 /*return*/];
  61557. }
  61558. });
  61559. });
  61560. };
  61561. TextureCanvasManager.prototype.setSize = function (size) {
  61562. var oldSize = this._size;
  61563. this._size = size;
  61564. this._2DCanvas.width = this._size.width;
  61565. this._2DCanvas.height = this._size.height;
  61566. this._3DCanvas.width = this._size.width;
  61567. this._3DCanvas.height = this._size.height;
  61568. this._planeMaterial.setInt('w', this._size.width);
  61569. this._planeMaterial.setInt('h', this._size.height);
  61570. if (oldSize.width != size.width || oldSize.height != size.height) {
  61571. this._cameraPos.x = 0;
  61572. this._cameraPos.y = 0;
  61573. this._scale = 1.5 / Math.max(this._size.width, this._size.height);
  61574. }
  61575. this.makePlane();
  61576. };
  61577. TextureCanvasManager.prototype.upload = function (file) {
  61578. var _this = this;
  61579. babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Tools"].ReadFile(file, function (data) {
  61580. var blob = new Blob([data], { type: "octet/stream" });
  61581. var extension = undefined;
  61582. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  61583. extension = ".dds";
  61584. }
  61585. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  61586. extension = ".env";
  61587. }
  61588. var reader = new FileReader();
  61589. reader.readAsDataURL(blob);
  61590. reader.onloadend = function () {
  61591. var base64data = reader.result;
  61592. if (extension === '.dds' || extension === '.env') {
  61593. _this._originalTexture.updateURL(base64data, extension, function () { return _this.grabOriginalTexture(); });
  61594. }
  61595. else {
  61596. var texture_1 = new babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Texture"](base64data, _this._scene, _this._originalTexture.noMipmap, false, babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Texture"].NEAREST_SAMPLINGMODE, function () {
  61597. _textureHelper__WEBPACK_IMPORTED_MODULE_2__["TextureHelper"].GetTextureDataAsync(texture_1, texture_1.getSize().width, texture_1.getSize().height, 0, { R: true, G: true, B: true, A: true })
  61598. .then(function (pixels) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
  61599. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  61600. switch (_a.label) {
  61601. case 0:
  61602. if (this._tool && this._tool.instance.onReset) {
  61603. this._tool.instance.onReset();
  61604. }
  61605. texture_1.dispose();
  61606. this.setSize(texture_1.getSize());
  61607. this.paintPixelsOnCanvas(pixels, this._2DCanvas);
  61608. return [4 /*yield*/, this.updateTexture()];
  61609. case 1:
  61610. _a.sent();
  61611. this._setMipLevel(0);
  61612. return [2 /*return*/];
  61613. }
  61614. });
  61615. }); });
  61616. });
  61617. }
  61618. };
  61619. }, undefined, true);
  61620. };
  61621. TextureCanvasManager.prototype.saveTexture = function () {
  61622. var _this = this;
  61623. var canvas = this._editing3D ? this._3DCanvas : this._2DCanvas;
  61624. babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Tools"].ToBlob(canvas, function (blob) {
  61625. babylonjs_Engines_engine__WEBPACK_IMPORTED_MODULE_1__["Tools"].Download(blob, _this._originalTexture.name);
  61626. });
  61627. };
  61628. TextureCanvasManager.prototype.dispose = function () {
  61629. var _a, _b;
  61630. if (this._didEdit) {
  61631. (_a = this._originalInternalTexture) === null || _a === void 0 ? void 0 : _a.dispose();
  61632. }
  61633. if (this._tool) {
  61634. this._tool.instance.cleanup();
  61635. }
  61636. (_b = this._paintCanvas.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this._paintCanvas);
  61637. this._3DPlane.dispose();
  61638. this._3DCanvasTexture.dispose();
  61639. this._3DScene.dispose();
  61640. this._3DEngine.dispose();
  61641. this._plane.dispose();
  61642. this._channelsTexture.dispose();
  61643. this._planeMaterial.dispose();
  61644. this._camera.dispose();
  61645. this._scene.dispose();
  61646. this._engine.dispose();
  61647. };
  61648. return TextureCanvasManager;
  61649. }());
  61650. /***/ }),
  61651. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss":
  61652. /*!****************************************************************************************!*\
  61653. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss ***!
  61654. \****************************************************************************************/
  61655. /*! no static exports found */
  61656. /***/ (function(module, exports, __webpack_require__) {
  61657. var api = __webpack_require__(/*! ../../../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  61658. var content = __webpack_require__(/*! !../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js!./textureEditor.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss");
  61659. content = content.__esModule ? content.default : content;
  61660. if (typeof content === 'string') {
  61661. content = [[module.i, content, '']];
  61662. }
  61663. var options = {};
  61664. options.insert = "head";
  61665. options.singleton = false;
  61666. var update = api(content, options);
  61667. module.exports = content.locals || {};
  61668. /***/ }),
  61669. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent.tsx":
  61670. /*!************************************************************************************************!*\
  61671. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditorComponent.tsx ***!
  61672. \************************************************************************************************/
  61673. /*! exports provided: TextureEditorComponent */
  61674. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61675. "use strict";
  61676. __webpack_require__.r(__webpack_exports__);
  61677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureEditorComponent", function() { return TextureEditorComponent; });
  61678. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61679. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61680. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61681. /* harmony import */ var _textureCanvasManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureCanvasManager */ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasManager.ts");
  61682. /* harmony import */ var _toolBar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./toolBar */ "./components/actionTabs/tabs/propertyGrids/materials/textures/toolBar.tsx");
  61683. /* harmony import */ var _propertiesBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./propertiesBar */ "./components/actionTabs/tabs/propertyGrids/materials/textures/propertiesBar.tsx");
  61684. /* harmony import */ var _channelsBar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./channelsBar */ "./components/actionTabs/tabs/propertyGrids/materials/textures/channelsBar.tsx");
  61685. /* harmony import */ var _bottomBar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./bottomBar */ "./components/actionTabs/tabs/propertyGrids/materials/textures/bottomBar.tsx");
  61686. /* harmony import */ var _textureCanvasComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./textureCanvasComponent */ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureCanvasComponent.tsx");
  61687. /* harmony import */ var _defaultTools_defaultTools__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./defaultTools/defaultTools */ "./components/actionTabs/tabs/propertyGrids/materials/textures/defaultTools/defaultTools.ts");
  61688. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  61689. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_9__);
  61690. /* harmony import */ var _toolSettings__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./toolSettings */ "./components/actionTabs/tabs/propertyGrids/materials/textures/toolSettings.tsx");
  61691. __webpack_require__(/*! ./textureEditor.scss */ "./components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss");
  61692. var TextureEditorComponent = /** @class */ (function (_super) {
  61693. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureEditorComponent, _super);
  61694. function TextureEditorComponent(props) {
  61695. var _this = _super.call(this, props) || this;
  61696. _this._UICanvas = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  61697. _this._2DCanvas = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  61698. _this._3DCanvas = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  61699. _this._pickerRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  61700. var channels = [
  61701. { name: 'Red', visible: true, editable: true, id: 'R', icon: __webpack_require__(/*! ./assets/channelR.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelR.svg") },
  61702. { name: 'Green', visible: true, editable: true, id: 'G', icon: __webpack_require__(/*! ./assets/channelG.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelG.svg") },
  61703. { name: 'Blue', visible: true, editable: true, id: 'B', icon: __webpack_require__(/*! ./assets/channelB.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelB.svg") },
  61704. ];
  61705. if (_this.props.texture.isCube) {
  61706. channels.push({ name: 'Display', visible: true, editable: true, id: 'A', icon: __webpack_require__(/*! ./assets/channelD.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelD.svg") });
  61707. }
  61708. else {
  61709. channels.push({ name: 'Alpha', visible: true, editable: true, id: 'A', icon: __webpack_require__(/*! ./assets/channelA.svg */ "./components/actionTabs/tabs/propertyGrids/materials/textures/assets/channelA.svg") });
  61710. }
  61711. _this.state = {
  61712. tools: [],
  61713. activeToolIndex: -1,
  61714. metadata: {
  61715. color: '#ffffff',
  61716. alpha: 1,
  61717. select: {
  61718. x1: -1,
  61719. y1: -1,
  61720. x2: -1,
  61721. y2: -1
  61722. }
  61723. },
  61724. channels: channels,
  61725. pixelData: {},
  61726. face: 0,
  61727. mipLevel: 0,
  61728. pickerOpen: false
  61729. };
  61730. _this.loadToolFromURL = _this.loadToolFromURL.bind(_this);
  61731. _this.changeTool = _this.changeTool.bind(_this);
  61732. _this.setMetadata = _this.setMetadata.bind(_this);
  61733. _this.saveTexture = _this.saveTexture.bind(_this);
  61734. _this.resetTexture = _this.resetTexture.bind(_this);
  61735. _this.resizeTexture = _this.resizeTexture.bind(_this);
  61736. _this.uploadTexture = _this.uploadTexture.bind(_this);
  61737. _this.setPickerOpen = _this.setPickerOpen.bind(_this);
  61738. _this.onPointerDown = _this.onPointerDown.bind(_this);
  61739. return _this;
  61740. }
  61741. TextureEditorComponent.prototype.componentDidMount = function () {
  61742. var _this = this;
  61743. this._textureCanvasManager = new _textureCanvasManager__WEBPACK_IMPORTED_MODULE_2__["TextureCanvasManager"](this.props.texture, this.props.window.current.getWindow(), this._UICanvas.current, this._2DCanvas.current, this._3DCanvas.current, function (data) { _this.setState({ pixelData: data }); }, this.state.metadata, function () { return _this.textureDidUpdate(); }, function (data) { return _this.setMetadata(data); }, function (mipLevel) { return _this.setState({ mipLevel: mipLevel }); });
  61744. this.addTools(_defaultTools_defaultTools__WEBPACK_IMPORTED_MODULE_8__["default"]);
  61745. };
  61746. TextureEditorComponent.prototype.componentDidUpdate = function () {
  61747. var channelsClone = [];
  61748. this.state.channels.forEach(function (channel) { return channelsClone.push(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, channel)); });
  61749. this._textureCanvasManager.channels = channelsClone;
  61750. this._textureCanvasManager.face = this.state.face;
  61751. this._textureCanvasManager.mipLevel = this.state.mipLevel;
  61752. };
  61753. TextureEditorComponent.prototype.componentWillUnmount = function () {
  61754. this._textureCanvasManager.dispose();
  61755. };
  61756. TextureEditorComponent.prototype.textureDidUpdate = function () {
  61757. var _this = this;
  61758. if (this._timer != null) {
  61759. clearTimeout(this._timer);
  61760. }
  61761. this._timer = window.setTimeout(function () {
  61762. _this.props.onUpdate();
  61763. _this._timer = null;
  61764. }, TextureEditorComponent.PREVIEW_UPDATE_DELAY_MS);
  61765. };
  61766. TextureEditorComponent.prototype.loadToolFromURL = function (url) {
  61767. var _this = this;
  61768. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_9__["Tools"].LoadScript(url, function () {
  61769. _this.addTools([_TOOL_DATA_]);
  61770. });
  61771. };
  61772. TextureEditorComponent.prototype.addTools = function (tools) {
  61773. var _this = this;
  61774. var newTools = [];
  61775. tools.forEach(function (toolData) {
  61776. var tool = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, toolData), { instance: new toolData.type(function () { return _this.getToolParameters(); }) });
  61777. newTools = newTools.concat(tool);
  61778. });
  61779. newTools = this.state.tools.concat(newTools);
  61780. this.setState({ tools: newTools });
  61781. console.log(newTools);
  61782. };
  61783. TextureEditorComponent.prototype.getToolParameters = function () {
  61784. var _this = this;
  61785. return {
  61786. scene: this._textureCanvasManager.scene,
  61787. canvas2D: this._textureCanvasManager.canvas2D,
  61788. scene3D: this._textureCanvasManager.scene3D,
  61789. size: this._textureCanvasManager.size,
  61790. updateTexture: function () { return _this._textureCanvasManager.updateTexture(); },
  61791. startPainting: function () { return _this._textureCanvasManager.startPainting(); },
  61792. stopPainting: function () { return _this._textureCanvasManager.stopPainting(); },
  61793. updatePainting: function () { return _this._textureCanvasManager.updatePainting(); },
  61794. metadata: this.state.metadata,
  61795. setMetadata: function (data) { return _this.setMetadata(data); },
  61796. getMouseCoordinates: function (pointerInfo) { return _this._textureCanvasManager.getMouseCoordinates(pointerInfo); },
  61797. BABYLON: BABYLON,
  61798. };
  61799. };
  61800. TextureEditorComponent.prototype.changeTool = function (index) {
  61801. if (index != -1) {
  61802. this._textureCanvasManager.tool = this.state.tools[index];
  61803. }
  61804. else {
  61805. this._textureCanvasManager.tool = null;
  61806. }
  61807. this.setState({ activeToolIndex: index });
  61808. };
  61809. TextureEditorComponent.prototype.setMetadata = function (newMetadata) {
  61810. var data = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.state.metadata), newMetadata);
  61811. this.setState({ metadata: data });
  61812. this._textureCanvasManager.metadata = data;
  61813. };
  61814. TextureEditorComponent.prototype.setPickerOpen = function (open) {
  61815. this.setState({ pickerOpen: open });
  61816. };
  61817. TextureEditorComponent.prototype.onPointerDown = function (evt) {
  61818. var _a;
  61819. if (!((_a = this._pickerRef.current) === null || _a === void 0 ? void 0 : _a.contains(evt.target))) {
  61820. this.setPickerOpen(false);
  61821. }
  61822. };
  61823. TextureEditorComponent.prototype.saveTexture = function () {
  61824. this._textureCanvasManager.saveTexture();
  61825. };
  61826. TextureEditorComponent.prototype.resetTexture = function () {
  61827. this._textureCanvasManager.reset();
  61828. };
  61829. TextureEditorComponent.prototype.resizeTexture = function (width, height) {
  61830. this._textureCanvasManager.resize({ width: width, height: height });
  61831. };
  61832. TextureEditorComponent.prototype.uploadTexture = function (file) {
  61833. this._textureCanvasManager.upload(file);
  61834. };
  61835. TextureEditorComponent.prototype.render = function () {
  61836. var _this = this;
  61837. var _a;
  61838. var currentTool = this.state.tools[this.state.activeToolIndex];
  61839. var cursor = "initial";
  61840. if (currentTool && currentTool.cursor) {
  61841. cursor = "url(data:image/png;base64," + currentTool.cursor + ") 10 10, auto";
  61842. }
  61843. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "texture-editor", onPointerDown: this.onPointerDown, style: { cursor: cursor } },
  61844. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertiesBar__WEBPACK_IMPORTED_MODULE_4__["PropertiesBar"], { texture: this.props.texture, saveTexture: this.saveTexture, pixelData: this.state.pixelData, face: this.state.face, setFace: function (face) { return _this.setState({ face: face }); }, resetTexture: this.resetTexture, resizeTexture: this.resizeTexture, uploadTexture: this.uploadTexture, mipLevel: this.state.mipLevel, setMipLevel: function (mipLevel) { return _this.setState({ mipLevel: mipLevel }); }, size: ((_a = this._textureCanvasManager) === null || _a === void 0 ? void 0 : _a.size) || this.props.texture.getSize() }),
  61845. !this.props.texture.isCube && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_toolBar__WEBPACK_IMPORTED_MODULE_3__["ToolBar"], { tools: this.state.tools, activeToolIndex: this.state.activeToolIndex, addTool: this.loadToolFromURL, changeTool: this.changeTool, metadata: this.state.metadata, setMetadata: this.setMetadata, pickerOpen: this.state.pickerOpen, setPickerOpen: this.setPickerOpen, pickerRef: this._pickerRef, hasAlpha: this.props.texture.hasAlpha }),
  61846. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_channelsBar__WEBPACK_IMPORTED_MODULE_5__["ChannelsBar"], { channels: this.state.channels, setChannels: function (channels) { _this.setState({ channels: channels }); } }),
  61847. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_textureCanvasComponent__WEBPACK_IMPORTED_MODULE_7__["TextureCanvasComponent"], { canvas2D: this._2DCanvas, canvas3D: this._3DCanvas, canvasUI: this._UICanvas, texture: this.props.texture }),
  61848. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_toolSettings__WEBPACK_IMPORTED_MODULE_10__["ToolSettings"], { tool: currentTool }),
  61849. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_bottomBar__WEBPACK_IMPORTED_MODULE_6__["BottomBar"], { texture: this.props.texture, mipLevel: this.state.mipLevel }));
  61850. };
  61851. TextureEditorComponent.PREVIEW_UPDATE_DELAY_MS = 160;
  61852. return TextureEditorComponent;
  61853. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61854. /***/ }),
  61855. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/toolBar.tsx":
  61856. /*!*********************************************************************************!*\
  61857. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/toolBar.tsx ***!
  61858. \*********************************************************************************/
  61859. /*! exports provided: ToolBar */
  61860. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61861. "use strict";
  61862. __webpack_require__.r(__webpack_exports__);
  61863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolBar", function() { return ToolBar; });
  61864. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61865. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61866. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61867. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-color */ "../../node_modules/react-color/lib/index.js");
  61868. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_color__WEBPACK_IMPORTED_MODULE_2__);
  61869. var ToolBar = /** @class */ (function (_super) {
  61870. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolBar, _super);
  61871. function ToolBar(props) {
  61872. var _this = _super.call(this, props) || this;
  61873. _this.state = {
  61874. toolURL: "",
  61875. addOpen: false
  61876. };
  61877. return _this;
  61878. }
  61879. ToolBar.prototype.computeRGBAColor = function () {
  61880. var opacityInt = Math.floor(this.props.metadata.alpha * 255);
  61881. var opacityHex = opacityInt.toString(16).padStart(2, '0');
  61882. return "" + this.props.metadata.color + opacityHex;
  61883. };
  61884. ToolBar.prototype.shouldComponentUpdate = function (nextProps) {
  61885. return (nextProps.tools != this.props.tools || nextProps.activeToolIndex !== this.props.activeToolIndex || nextProps.metadata != this.props.metadata || nextProps.pickerOpen != this.props.pickerOpen);
  61886. };
  61887. ToolBar.prototype.render = function () {
  61888. var _this = this;
  61889. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'toolbar' },
  61890. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'tools' }, this.props.tools.map(function (item, index) {
  61891. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: "data:image/svg+xml;base64," + item.icon, className: index === _this.props.activeToolIndex ? 'icon button active' : 'icon button', alt: item.name, title: item.name, onClick: function (evt) {
  61892. if (evt.button === 0) {
  61893. _this.props.changeTool(index);
  61894. }
  61895. }, key: index });
  61896. })),
  61897. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'color', onClick: function () { if (!_this.props.pickerOpen)
  61898. _this.props.setPickerOpen(true); }, title: 'Color', className: "icon button" + (this.props.pickerOpen ? " active" : "") },
  61899. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'active-color-bg' },
  61900. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'active-color', style: { backgroundColor: this.props.metadata.color, opacity: this.props.metadata.alpha } }))),
  61901. this.props.pickerOpen &&
  61902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'color-picker', ref: this.props.pickerRef },
  61903. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_color__WEBPACK_IMPORTED_MODULE_2__["SketchPicker"], { disableAlpha: !this.props.hasAlpha, color: this.computeRGBAColor(), onChange: function (color) { return _this.props.setMetadata({ color: color.hex, alpha: color.rgb.a }); } })));
  61904. };
  61905. return ToolBar;
  61906. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61907. /***/ }),
  61908. /***/ "./components/actionTabs/tabs/propertyGrids/materials/textures/toolSettings.tsx":
  61909. /*!**************************************************************************************!*\
  61910. !*** ./components/actionTabs/tabs/propertyGrids/materials/textures/toolSettings.tsx ***!
  61911. \**************************************************************************************/
  61912. /*! exports provided: ToolSettings */
  61913. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61914. "use strict";
  61915. __webpack_require__.r(__webpack_exports__);
  61916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolSettings", function() { return ToolSettings; });
  61917. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61918. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61919. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61920. var ToolSettings = /** @class */ (function (_super) {
  61921. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolSettings, _super);
  61922. function ToolSettings() {
  61923. return _super !== null && _super.apply(this, arguments) || this;
  61924. }
  61925. ToolSettings.prototype.render = function () {
  61926. if (!this.props.tool || !this.props.tool.settingsComponent)
  61927. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null);
  61928. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: 'tool-ui' }, react__WEBPACK_IMPORTED_MODULE_1__["createElement"](this.props.tool.settingsComponent, { instance: this.props.tool.instance }));
  61929. };
  61930. return ToolSettings;
  61931. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61932. /***/ }),
  61933. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent.tsx":
  61934. /*!***************************************************************************************!*\
  61935. !*** ./components/actionTabs/tabs/propertyGrids/meshes/bonePropertyGridComponent.tsx ***!
  61936. \***************************************************************************************/
  61937. /*! exports provided: BonePropertyGridComponent */
  61938. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61939. "use strict";
  61940. __webpack_require__.r(__webpack_exports__);
  61941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BonePropertyGridComponent", function() { return BonePropertyGridComponent; });
  61942. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61943. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61944. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61945. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  61946. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  61947. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  61948. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  61949. var BonePropertyGridComponent = /** @class */ (function (_super) {
  61950. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BonePropertyGridComponent, _super);
  61951. function BonePropertyGridComponent(props) {
  61952. return _super.call(this, props) || this;
  61953. }
  61954. BonePropertyGridComponent.prototype.onTransformNodeLink = function () {
  61955. if (!this.props.globalState.onSelectionChangedObservable) {
  61956. return;
  61957. }
  61958. var node = this.props.bone.getTransformNode();
  61959. this.props.globalState.onSelectionChangedObservable.notifyObservers(node);
  61960. };
  61961. BonePropertyGridComponent.prototype.render = function () {
  61962. var _this = this;
  61963. var bone = this.props.bone;
  61964. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  61965. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  61966. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Name", value: bone.name }),
  61967. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Index", value: bone.getIndex().toString() }),
  61968. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Unique ID", value: bone.uniqueId.toString() }),
  61969. bone.getParent() &&
  61970. 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()); } }),
  61971. bone.getTransformNode() &&
  61972. 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(); } })),
  61973. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMATIONS" },
  61974. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Position", target: bone, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  61975. !bone.rotationQuaternion &&
  61976. 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 }),
  61977. bone.rotationQuaternion &&
  61978. 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 }),
  61979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Scaling", target: bone, propertyName: "scaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  61980. };
  61981. return BonePropertyGridComponent;
  61982. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61983. /***/ }),
  61984. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx":
  61985. /*!***************************************************************************************!*\
  61986. !*** ./components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx ***!
  61987. \***************************************************************************************/
  61988. /*! exports provided: MeshPropertyGridComponent */
  61989. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61990. "use strict";
  61991. __webpack_require__.r(__webpack_exports__);
  61992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshPropertyGridComponent", function() { return MeshPropertyGridComponent; });
  61993. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61994. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61995. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61996. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  61997. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  61998. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  61999. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  62000. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  62001. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  62002. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  62003. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  62004. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  62005. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  62006. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  62007. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  62008. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  62009. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  62010. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  62011. /* harmony import */ var _commonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../commonPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/commonPropertyGridComponent.tsx");
  62012. /* harmony import */ var _variantsPropertyGridComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../variantsPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/variantsPropertyGridComponent.tsx");
  62013. /* harmony import */ var _lines_hexLineComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../lines/hexLineComponent */ "./components/actionTabs/lines/hexLineComponent.tsx");
  62014. var MeshPropertyGridComponent = /** @class */ (function (_super) {
  62015. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshPropertyGridComponent, _super);
  62016. function MeshPropertyGridComponent(props) {
  62017. var _this = _super.call(this, props) || this;
  62018. _this.state = {
  62019. displayNormals: false,
  62020. displayVertexColors: false,
  62021. displayBoneWeights: false,
  62022. displayBoneIndex: 0,
  62023. displaySkeletonMap: false
  62024. };
  62025. return _this;
  62026. }
  62027. MeshPropertyGridComponent.prototype.renderWireframeOver = function () {
  62028. var mesh = this.props.mesh;
  62029. var scene = mesh.getScene();
  62030. if (mesh.reservedDataStore && mesh.reservedDataStore.wireframeOver) {
  62031. mesh.reservedDataStore.wireframeOver.dispose(false, true);
  62032. mesh.reservedDataStore.wireframeOver = null;
  62033. this.forceUpdate();
  62034. return;
  62035. }
  62036. var wireframeOver = mesh.clone();
  62037. wireframeOver.reservedDataStore = { hidden: true };
  62038. // Sets up the mesh to be attached to the parent.
  62039. // So all neutral in local space.
  62040. wireframeOver.parent = mesh;
  62041. wireframeOver.position = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero();
  62042. wireframeOver.scaling = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"](1, 1, 1);
  62043. wireframeOver.rotation = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero();
  62044. wireframeOver.rotationQuaternion = null;
  62045. var material = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("wireframeOver", scene);
  62046. material.reservedDataStore = { hidden: true };
  62047. wireframeOver.material = material;
  62048. material.zOffset = 1;
  62049. material.disableLighting = true;
  62050. material.backFaceCulling = false;
  62051. material.emissiveColor = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Color3"].White();
  62052. material.wireframe = true;
  62053. if (!mesh.reservedDataStore) {
  62054. mesh.reservedDataStore = {};
  62055. }
  62056. mesh.reservedDataStore.wireframeOver = wireframeOver;
  62057. this.forceUpdate();
  62058. };
  62059. MeshPropertyGridComponent.prototype.renderNormalVectors = function () {
  62060. var mesh = this.props.mesh;
  62061. var scene = mesh.getScene();
  62062. if (mesh.reservedDataStore && mesh.reservedDataStore.normalLines) {
  62063. mesh.reservedDataStore.normalLines.dispose();
  62064. mesh.reservedDataStore.normalLines = null;
  62065. this.forceUpdate();
  62066. return;
  62067. }
  62068. var normals = mesh.getVerticesData(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].NormalKind);
  62069. var positions = mesh.getVerticesData(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].PositionKind);
  62070. var color = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Color3"].White();
  62071. var bbox = mesh.getBoundingInfo();
  62072. var diag = bbox.maximum.subtractToRef(bbox.minimum, babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["TmpVectors"].Vector3[0]);
  62073. var size = diag.length() * 0.05;
  62074. var lines = [];
  62075. for (var i = 0; i < normals.length; i += 3) {
  62076. var v1 = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].FromArray(positions, i);
  62077. var v2 = v1.add(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Vector3"].FromArray(normals, i).scaleInPlace(size));
  62078. lines.push([v1, v2]);
  62079. }
  62080. var normalLines = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["LinesBuilder"].CreateLineSystem("normalLines", { lines: lines }, scene);
  62081. normalLines.color = color;
  62082. normalLines.parent = mesh;
  62083. normalLines.reservedDataStore = { hidden: true };
  62084. if (!mesh.reservedDataStore) {
  62085. mesh.reservedDataStore = {};
  62086. }
  62087. mesh.reservedDataStore.normalLines = normalLines;
  62088. this.forceUpdate();
  62089. };
  62090. MeshPropertyGridComponent.prototype.displayNormals = function () {
  62091. var _this = this;
  62092. var mesh = this.props.mesh;
  62093. var scene = mesh.getScene();
  62094. if (mesh.material && mesh.material.getClassName() === "NormalMaterial") {
  62095. mesh.material.dispose();
  62096. mesh.material = mesh.reservedDataStore.originalMaterial;
  62097. mesh.reservedDataStore.originalMaterial = null;
  62098. this.setState({ displayNormals: false });
  62099. }
  62100. else {
  62101. if (!BABYLON.NormalMaterial) {
  62102. this.setState({ displayNormals: true });
  62103. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].LoadScript("https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.js", function () {
  62104. _this.displayNormals();
  62105. });
  62106. return;
  62107. }
  62108. if (!mesh.reservedDataStore) {
  62109. mesh.reservedDataStore = {};
  62110. }
  62111. if (!mesh.reservedDataStore.originalMaterial) {
  62112. mesh.reservedDataStore.originalMaterial = mesh.material;
  62113. }
  62114. var normalMaterial = new BABYLON.NormalMaterial("normalMaterial", scene);
  62115. normalMaterial.disableLighting = true;
  62116. if (mesh.material) {
  62117. normalMaterial.sideOrientation = mesh.material.sideOrientation;
  62118. }
  62119. normalMaterial.reservedDataStore = { hidden: true };
  62120. mesh.material = normalMaterial;
  62121. this.setState({ displayNormals: true });
  62122. }
  62123. };
  62124. MeshPropertyGridComponent.prototype.displayVertexColors = function () {
  62125. var mesh = this.props.mesh;
  62126. var scene = mesh.getScene();
  62127. if (mesh.material && mesh.material.reservedDataStore && mesh.material.reservedDataStore.isVertexColorMaterial) {
  62128. mesh.material.dispose();
  62129. mesh.material = mesh.reservedDataStore.originalMaterial;
  62130. mesh.reservedDataStore.originalMaterial = null;
  62131. this.setState({ displayVertexColors: false });
  62132. }
  62133. else {
  62134. if (!mesh.reservedDataStore) {
  62135. mesh.reservedDataStore = {};
  62136. }
  62137. if (!mesh.reservedDataStore.originalMaterial) {
  62138. mesh.reservedDataStore.originalMaterial = mesh.material;
  62139. }
  62140. var vertexColorMaterial = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("vertex colors", scene);
  62141. vertexColorMaterial.disableLighting = true;
  62142. vertexColorMaterial.emissiveColor = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Color3"].White();
  62143. if (mesh.material) {
  62144. vertexColorMaterial.sideOrientation = mesh.material.sideOrientation;
  62145. }
  62146. vertexColorMaterial.reservedDataStore = { hidden: true, isVertexColorMaterial: true };
  62147. mesh.useVertexColors = true;
  62148. mesh.material = vertexColorMaterial;
  62149. this.setState({ displayVertexColors: true });
  62150. }
  62151. };
  62152. MeshPropertyGridComponent.prototype.displayBoneWeights = function () {
  62153. var mesh = this.props.mesh;
  62154. var scene = mesh.getScene();
  62155. if (mesh.material && mesh.material.getClassName() === "BoneWeightShader") {
  62156. mesh.material.dispose();
  62157. mesh.material = mesh.reservedDataStore.originalMaterial;
  62158. mesh.reservedDataStore.originalMaterial = null;
  62159. this.setState({ displayBoneWeights: false });
  62160. }
  62161. else {
  62162. if (!mesh.reservedDataStore) {
  62163. mesh.reservedDataStore = {};
  62164. }
  62165. if (!mesh.reservedDataStore.originalMaterial) {
  62166. mesh.reservedDataStore.originalMaterial = mesh.material;
  62167. }
  62168. if (!mesh.reservedDataStore.displayBoneIndex) {
  62169. mesh.reservedDataStore.displayBoneIndex = this.state.displayBoneIndex;
  62170. }
  62171. if (mesh.skeleton) {
  62172. var boneWeightsShader = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["SkeletonViewer"].CreateBoneWeightShader({ skeleton: mesh.skeleton }, scene);
  62173. boneWeightsShader.reservedDataStore = { hidden: true };
  62174. mesh.material = boneWeightsShader;
  62175. this.setState({ displayBoneWeights: true });
  62176. }
  62177. }
  62178. };
  62179. MeshPropertyGridComponent.prototype.displaySkeletonMap = function () {
  62180. var mesh = this.props.mesh;
  62181. var scene = mesh.getScene();
  62182. if (mesh.material && mesh.material.getClassName() === "SkeletonMapShader") {
  62183. mesh.material.dispose();
  62184. mesh.material = mesh.reservedDataStore.originalMaterial;
  62185. mesh.reservedDataStore.originalMaterial = null;
  62186. this.setState({ displaySkeletonMap: false });
  62187. }
  62188. else {
  62189. if (!mesh.reservedDataStore) {
  62190. mesh.reservedDataStore = {};
  62191. }
  62192. if (!mesh.reservedDataStore.originalMaterial) {
  62193. mesh.reservedDataStore.originalMaterial = mesh.material;
  62194. }
  62195. if (mesh.skeleton) {
  62196. var skeletonMapShader = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["SkeletonViewer"].CreateSkeletonMapShader({ skeleton: mesh.skeleton }, scene);
  62197. skeletonMapShader.reservedDataStore = { hidden: true };
  62198. mesh.material = skeletonMapShader;
  62199. this.setState({ displaySkeletonMap: true });
  62200. }
  62201. }
  62202. };
  62203. MeshPropertyGridComponent.prototype.onBoneDisplayIndexChange = function (value) {
  62204. var mesh = this.props.mesh;
  62205. mesh.reservedDataStore.displayBoneIndex = value;
  62206. this.setState({ displayBoneIndex: value });
  62207. if (mesh.material && mesh.material.getClassName() === "BoneWeightShader") {
  62208. mesh.material.setFloat('targetBoneIndex', value);
  62209. }
  62210. };
  62211. MeshPropertyGridComponent.prototype.onMaterialLink = function () {
  62212. if (!this.props.onSelectionChangedObservable) {
  62213. return;
  62214. }
  62215. var mesh = this.props.mesh;
  62216. this.props.onSelectionChangedObservable.notifyObservers(mesh.material);
  62217. };
  62218. MeshPropertyGridComponent.prototype.onSourceMeshLink = function () {
  62219. if (!this.props.onSelectionChangedObservable) {
  62220. return;
  62221. }
  62222. var instanceMesh = this.props.mesh;
  62223. this.props.onSelectionChangedObservable.notifyObservers(instanceMesh.sourceMesh);
  62224. };
  62225. MeshPropertyGridComponent.prototype.onSkeletonLink = function () {
  62226. if (!this.props.onSelectionChangedObservable) {
  62227. return;
  62228. }
  62229. var mesh = this.props.mesh;
  62230. this.props.onSelectionChangedObservable.notifyObservers(mesh.skeleton);
  62231. };
  62232. MeshPropertyGridComponent.prototype.convertPhysicsTypeToString = function () {
  62233. var mesh = this.props.mesh;
  62234. switch (mesh.physicsImpostor.type) {
  62235. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].NoImpostor:
  62236. return "No impostor";
  62237. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].SphereImpostor:
  62238. return "Sphere";
  62239. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].BoxImpostor:
  62240. return "Box";
  62241. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].PlaneImpostor:
  62242. return "Plane";
  62243. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].MeshImpostor:
  62244. return "Mesh";
  62245. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].CylinderImpostor:
  62246. return "Cylinder";
  62247. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].ParticleImpostor:
  62248. return "Particle";
  62249. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].HeightmapImpostor:
  62250. return "Heightmap";
  62251. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].ConvexHullImpostor:
  62252. return "Convex hull";
  62253. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].RopeImpostor:
  62254. return "Rope";
  62255. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["PhysicsImpostor"].SoftbodyImpostor:
  62256. return "Soft body";
  62257. }
  62258. return "Unknown";
  62259. };
  62260. MeshPropertyGridComponent.prototype.render = function () {
  62261. var _this = this;
  62262. var _a;
  62263. var mesh = this.props.mesh;
  62264. var scene = mesh.getScene();
  62265. var displayNormals = mesh.material != null && mesh.material.getClassName() === "NormalMaterial";
  62266. var displayVertexColors = !!(mesh.material != null && mesh.material.reservedDataStore && mesh.material.reservedDataStore.isVertexColorMaterial);
  62267. var renderNormalVectors = (mesh.reservedDataStore && mesh.reservedDataStore.normalLines) ? true : false;
  62268. var renderWireframeOver = (mesh.reservedDataStore && mesh.reservedDataStore.wireframeOver) ? true : false;
  62269. var displayBoneWeights = mesh.material != null && mesh.material.getClassName() === "BoneWeightShader";
  62270. var displaySkeletonMap = mesh.material != null && mesh.material.getClassName() === "SkeletonMapShader";
  62271. var morphTargets = [];
  62272. if (mesh.morphTargetManager) {
  62273. for (var index = 0; index < mesh.morphTargetManager.numTargets; index++) {
  62274. morphTargets.push(mesh.morphTargetManager.getTarget(index));
  62275. }
  62276. }
  62277. var algorithmOptions = [
  62278. { label: "Accurate", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_ALGORITHM_TYPE_ACCURATE },
  62279. { label: "Conservative", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_ALGORITHM_TYPE_CONSERVATIVE },
  62280. ];
  62281. var occlusionTypeOptions = [
  62282. { label: "None", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_TYPE_NONE },
  62283. { label: "Optimistic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_TYPE_OPTIMISTIC },
  62284. { label: "Strict", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["AbstractMesh"].OCCLUSION_TYPE_STRICT },
  62285. ];
  62286. var sortedMaterials = scene.materials.slice(0).sort(function (a, b) { return (a.name || "no name").localeCompare(b.name || "no name"); });
  62287. var materialOptions = sortedMaterials.map(function (m, i) {
  62288. return {
  62289. label: m.name || "no name",
  62290. value: i
  62291. };
  62292. });
  62293. materialOptions.splice(0, 0, {
  62294. label: "None",
  62295. value: -1
  62296. });
  62297. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  62298. 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 }),
  62299. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  62300. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: mesh.id }),
  62301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: mesh, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: mesh.uniqueId.toString() }),
  62303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: mesh.getClassName() }),
  62304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Vertices", value: mesh.getTotalVertices().toString() }),
  62305. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Faces", value: (mesh.getTotalIndices() / 3).toFixed(0) }),
  62306. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Sub-meshes", value: mesh.subMeshes ? mesh.subMeshes.length.toString() : "0" }),
  62307. mesh.parent &&
  62308. 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); } }),
  62309. mesh.skeleton &&
  62310. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Skeleton", value: mesh.skeleton.name, onLink: function () { return _this.onSkeletonLink(); } }),
  62311. 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); } }),
  62312. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Is pickable", target: mesh, propertyName: "isPickable", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62313. mesh.material && (!mesh.material.reservedDataStore || !mesh.material.reservedDataStore.hidden) &&
  62314. 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(); } }),
  62315. !mesh.isAnInstance &&
  62316. 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) {
  62317. if (value < 0) {
  62318. mesh.material = null;
  62319. }
  62320. else {
  62321. mesh.material = sortedMaterials[value];
  62322. }
  62323. _this.forceUpdate();
  62324. }, extractValue: function () { return mesh.material ? sortedMaterials.indexOf(mesh.material) : -1; }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62325. mesh.isAnInstance &&
  62326. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Source", value: mesh.sourceMesh.name, onLink: function () { return _this.onSourceMeshLink(); } }),
  62327. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_13__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  62328. mesh.dispose();
  62329. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  62330. } })),
  62331. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_16__["CommonPropertyGridComponent"], { host: mesh, lockObject: this.props.lockObject, globalState: this.props.globalState }),
  62332. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_variantsPropertyGridComponent__WEBPACK_IMPORTED_MODULE_17__["VariantsPropertyGridComponent"], { host: mesh, lockObject: this.props.lockObject, globalState: this.props.globalState }),
  62333. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMS" },
  62334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { label: "Position", target: mesh, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62335. !mesh.rotationQuaternion &&
  62336. 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 }),
  62337. mesh.rotationQuaternion &&
  62338. 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 }),
  62339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { label: "Scaling", target: mesh, propertyName: "scaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  62340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "DISPLAY", closed: true },
  62341. !mesh.isAnInstance &&
  62342. 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 }),
  62343. 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 }),
  62344. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Receive shadows", target: mesh, propertyName: "receiveShadows", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62345. mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].ColorKind) &&
  62346. 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 }),
  62347. mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].ColorKind) &&
  62348. 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 }),
  62349. scene.fogMode !== babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Scene"].FOGMODE_NONE &&
  62350. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Apply fog", target: mesh, propertyName: "applyFog", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62351. !mesh.parent &&
  62352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Infinite distance", target: mesh, propertyName: "infiniteDistance", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rendering group ID", decimalCount: 0, target: mesh, propertyName: "renderingGroupId", minimum: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["RenderingManager"].MIN_RENDERINGGROUPS, maximum: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["RenderingManager"].MAX_RENDERINGGROUPS - 1, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_hexLineComponent__WEBPACK_IMPORTED_MODULE_18__["HexLineComponent"], { isInteger: true, lockObject: this.props.lockObject, label: "Layer mask", target: mesh, propertyName: "layerMask", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  62355. mesh.morphTargetManager != null &&
  62356. 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) {
  62357. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { key: i, label: mt.name, target: mt, propertyName: "influence", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: _this.props.onPropertyChangedObservable }));
  62358. })),
  62359. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: mesh, scene: mesh.getScene(), lockObject: this.props.lockObject }),
  62360. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ADVANCED", closed: true },
  62361. mesh.useBones &&
  62362. 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 }),
  62363. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Collisions", target: mesh, propertyName: "checkCollisions", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62364. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Geometry ID", value: (_a = mesh.geometry) === null || _a === void 0 ? void 0 : _a.uniqueId.toString() }),
  62365. 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" }),
  62366. 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" }),
  62367. 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" }),
  62368. 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" }),
  62369. 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" }),
  62370. 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" }),
  62371. 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" }),
  62372. 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" }),
  62373. 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" })),
  62374. mesh.physicsImpostor != null &&
  62375. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "PHYSICS", closed: true },
  62376. 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 }),
  62377. 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 }),
  62378. 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 }),
  62379. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: this.convertPhysicsTypeToString() })),
  62380. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "OCCLUSIONS", closed: true },
  62381. 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 }),
  62382. 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 }),
  62383. 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 })),
  62384. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "EDGE RENDERING", closed: true },
  62385. 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) {
  62386. if (value) {
  62387. mesh.enableEdgesRendering();
  62388. }
  62389. else {
  62390. mesh.disableEdgesRendering();
  62391. }
  62392. } }),
  62393. 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 }),
  62394. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Color3LineComponent"], { label: "Edge color", target: mesh, propertyName: "edgesColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  62395. !mesh.isAnInstance &&
  62396. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "OUTLINE & OVERLAY", closed: true },
  62397. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Render overlay", target: mesh, propertyName: "renderOverlay", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62398. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Color3LineComponent"], { label: "Overlay color", target: mesh, propertyName: "overlayColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62399. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Render outline", target: mesh, propertyName: "renderOutline", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62400. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Color3LineComponent"], { label: "Outline color", target: mesh, propertyName: "outlineColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  62401. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEBUG", closed: true },
  62402. !mesh.isAnInstance &&
  62403. 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(); } }),
  62404. !mesh.isAnInstance &&
  62405. 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(); } }),
  62406. mesh.isVerticesDataPresent(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["VertexBuffer"].NormalKind) &&
  62407. 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(); } }),
  62408. !mesh.isAnInstance &&
  62409. 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(); } }),
  62410. !mesh.isAnInstance && mesh.skeleton &&
  62411. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display BoneWeights", isSelected: function () { return displayBoneWeights; }, onSelect: function () { return _this.displayBoneWeights(); } }),
  62412. !mesh.isAnInstance && this.state.displayBoneWeights && mesh.skeleton &&
  62413. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Target Bone", decimalCount: 0, target: mesh.reservedDataStore, propertyName: "displayBoneIndex", minimum: 0, maximum: mesh.skeleton.bones.length - 1 || 0, step: 1, onChange: function (value) { _this.onBoneDisplayIndexChange(value); } }),
  62414. !mesh.isAnInstance && mesh.skeleton &&
  62415. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Display SkeletonMap", isSelected: function () { return displaySkeletonMap; }, onSelect: function () { return _this.displaySkeletonMap(); } }))));
  62416. };
  62417. return MeshPropertyGridComponent;
  62418. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62419. /***/ }),
  62420. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent.tsx":
  62421. /*!*******************************************************************************************!*\
  62422. !*** ./components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent.tsx ***!
  62423. \*******************************************************************************************/
  62424. /*! exports provided: SkeletonPropertyGridComponent */
  62425. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62426. "use strict";
  62427. __webpack_require__.r(__webpack_exports__);
  62428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonPropertyGridComponent", function() { return SkeletonPropertyGridComponent; });
  62429. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62430. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62431. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62432. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  62433. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  62434. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  62435. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  62436. /* harmony import */ var babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Debug/skeletonViewer */ "babylonjs/Misc/observable");
  62437. /* harmony import */ var babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__);
  62438. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  62439. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  62440. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  62441. var SkeletonPropertyGridComponent = /** @class */ (function (_super) {
  62442. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SkeletonPropertyGridComponent, _super);
  62443. function SkeletonPropertyGridComponent(props) {
  62444. var _this = _super.call(this, props) || this;
  62445. _this._skeletonViewersEnabled = false;
  62446. _this._skeletonViewerDisplayOptions = {
  62447. displayMode: babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"].DISPLAY_LINES,
  62448. sphereBaseSize: 0.15,
  62449. sphereScaleUnit: 2,
  62450. sphereFactor: 0.865,
  62451. midStep: 0.235,
  62452. midStepFactor: 0.155
  62453. };
  62454. _this._skeletonViewers = new Array();
  62455. _this.checkSkeletonViewerState(_this.props);
  62456. return _this;
  62457. }
  62458. SkeletonPropertyGridComponent.prototype.switchSkeletonViewers = function () {
  62459. this._skeletonViewersEnabled = !this._skeletonViewersEnabled;
  62460. var scene = this.props.skeleton.getScene();
  62461. if (this._skeletonViewersEnabled) {
  62462. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  62463. var mesh = _a[_i];
  62464. if (mesh.skeleton === this.props.skeleton) {
  62465. var found = false;
  62466. for (var sIndex = 0; sIndex < this._skeletonViewers.length; sIndex++) {
  62467. if (this._skeletonViewers[sIndex].skeleton === mesh.skeleton) {
  62468. found = true;
  62469. break;
  62470. }
  62471. }
  62472. if (found) {
  62473. continue;
  62474. }
  62475. var viewer = new babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"](mesh.skeleton, mesh, scene, false, 3, {
  62476. displayMode: this._skeletonViewerDisplayOptions.displayMode,
  62477. displayOptions: {
  62478. sphereBaseSize: this._skeletonViewerDisplayOptions.sphereBaseSize,
  62479. sphereScaleUnit: this._skeletonViewerDisplayOptions.sphereScaleUnit,
  62480. sphereFactor: this._skeletonViewerDisplayOptions.sphereFactor,
  62481. midStep: this._skeletonViewerDisplayOptions.midStep,
  62482. midStepFactor: this._skeletonViewerDisplayOptions.midStepFactor
  62483. }
  62484. });
  62485. viewer.isEnabled = true;
  62486. this._skeletonViewers.push(viewer);
  62487. if (!mesh.reservedDataStore) {
  62488. mesh.reservedDataStore = {};
  62489. }
  62490. mesh.reservedDataStore.skeletonViewer = viewer;
  62491. }
  62492. }
  62493. }
  62494. else {
  62495. for (var index = 0; index < this._skeletonViewers.length; index++) {
  62496. this._skeletonViewers[index].mesh.reservedDataStore.skeletonViewer = null;
  62497. this._skeletonViewers[index].dispose();
  62498. }
  62499. this._skeletonViewers = [];
  62500. }
  62501. };
  62502. SkeletonPropertyGridComponent.prototype.checkSkeletonViewerState = function (props) {
  62503. var scene = props.skeleton.getScene();
  62504. this._skeletonViewers = [];
  62505. if (!scene) {
  62506. return;
  62507. }
  62508. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  62509. var mesh = _a[_i];
  62510. if (mesh.skeleton === props.skeleton && mesh.reservedDataStore && mesh.reservedDataStore.skeletonViewer) {
  62511. this._skeletonViewers.push(mesh.reservedDataStore.skeletonViewer);
  62512. }
  62513. }
  62514. this._skeletonViewersEnabled = (this._skeletonViewers.length > 0);
  62515. };
  62516. SkeletonPropertyGridComponent.prototype.changeDisplayMode = function () {
  62517. if (this._skeletonViewersEnabled) {
  62518. for (var index = 0; index < this._skeletonViewers.length; index++) {
  62519. this._skeletonViewers[index].changeDisplayMode(this._skeletonViewerDisplayOptions.displayMode || 0);
  62520. }
  62521. }
  62522. };
  62523. SkeletonPropertyGridComponent.prototype.changeDisplayOptions = function (option, value) {
  62524. if (this._skeletonViewersEnabled) {
  62525. for (var index = 0; index < this._skeletonViewers.length; index++) {
  62526. this._skeletonViewers[index].changeDisplayOptions(option, value);
  62527. }
  62528. if (this._skeletonViewerDisplayOptions[option] !== undefined) {
  62529. this._skeletonViewerDisplayOptions[option] = value;
  62530. }
  62531. }
  62532. };
  62533. SkeletonPropertyGridComponent.prototype.shouldComponentUpdate = function (nextProps) {
  62534. if (nextProps.skeleton !== this.props.skeleton) {
  62535. this.checkSkeletonViewerState(nextProps);
  62536. }
  62537. return true;
  62538. };
  62539. SkeletonPropertyGridComponent.prototype.onOverrideMeshLink = function () {
  62540. if (!this.props.globalState.onSelectionChangedObservable) {
  62541. return;
  62542. }
  62543. var skeleton = this.props.skeleton;
  62544. this.props.globalState.onSelectionChangedObservable.notifyObservers(skeleton.overrideMesh);
  62545. };
  62546. SkeletonPropertyGridComponent.prototype.render = function () {
  62547. var _this = this;
  62548. var skeleton = this.props.skeleton;
  62549. var debugModeOptions = [
  62550. { label: "Lines", value: babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"].DISPLAY_LINES },
  62551. { label: "Spheres", value: babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"].DISPLAY_SPHERES },
  62552. { label: "Sphere and Spurs", value: babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"].DISPLAY_SPHERE_AND_SPURS }
  62553. ];
  62554. var displayOptions;
  62555. if (this._skeletonViewerDisplayOptions.displayMode > babylonjs_Debug_skeletonViewer__WEBPACK_IMPORTED_MODULE_6__["SkeletonViewer"].DISPLAY_LINES) {
  62556. displayOptions =
  62557. (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "DISPLAY OPTIONS" },
  62558. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "sphereBaseSize", target: this._skeletonViewerDisplayOptions, propertyName: 'sphereBaseSize', onPropertyChangedObservable: this.props.onPropertyChangedObservable, onChange: function (value) { _this.changeDisplayOptions('sphereBaseSize', value); } }),
  62559. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "sphereScaleUnit", target: this._skeletonViewerDisplayOptions, propertyName: 'sphereScaleUnit', onPropertyChangedObservable: this.props.onPropertyChangedObservable, onChange: function (value) { _this.changeDisplayOptions('sphereScaleUnit', value); } }),
  62560. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "sphereFactor", target: this._skeletonViewerDisplayOptions, propertyName: 'sphereFactor', onPropertyChangedObservable: this.props.onPropertyChangedObservable, onChange: function (value) { _this.changeDisplayOptions('sphereFactor', value); } }),
  62561. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "midStep", target: this._skeletonViewerDisplayOptions, propertyName: 'midStep', onPropertyChangedObservable: this.props.onPropertyChangedObservable, onChange: function (value) { _this.changeDisplayOptions('midStep', value); } }),
  62562. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "midStepFactor", target: this._skeletonViewerDisplayOptions, propertyName: 'midStepFactor', onPropertyChangedObservable: this.props.onPropertyChangedObservable, onChange: function (value) { _this.changeDisplayOptions('midStepFactor', value); } })));
  62563. }
  62564. else {
  62565. displayOptions = (null);
  62566. }
  62567. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  62568. 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 }),
  62569. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  62570. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: skeleton.id }),
  62571. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Bone count", value: skeleton.bones.length.toString() }),
  62572. skeleton.overrideMesh &&
  62573. 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(); } }),
  62574. 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 }),
  62575. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEBUG" },
  62576. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Enabled", isSelected: function () { return _this._skeletonViewersEnabled; }, onSelect: function () { return _this.switchSkeletonViewers(); } }),
  62577. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__["OptionsLineComponent"], { label: "displayMode", options: debugModeOptions, target: this._skeletonViewerDisplayOptions, propertyName: "displayMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function () { return _this.changeDisplayMode(); } }),
  62578. displayOptions)),
  62579. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_5__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: skeleton, scene: skeleton.getScene(), lockObject: this.props.lockObject })));
  62580. };
  62581. return SkeletonPropertyGridComponent;
  62582. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62583. /***/ }),
  62584. /***/ "./components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent.tsx":
  62585. /*!************************************************************************************************!*\
  62586. !*** ./components/actionTabs/tabs/propertyGrids/meshes/transformNodePropertyGridComponent.tsx ***!
  62587. \************************************************************************************************/
  62588. /*! exports provided: TransformNodePropertyGridComponent */
  62589. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62590. "use strict";
  62591. __webpack_require__.r(__webpack_exports__);
  62592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformNodePropertyGridComponent", function() { return TransformNodePropertyGridComponent; });
  62593. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62594. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62595. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62596. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  62597. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  62598. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  62599. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  62600. /* harmony import */ var _lines_quaternionLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/quaternionLineComponent */ "./components/actionTabs/lines/quaternionLineComponent.tsx");
  62601. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  62602. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  62603. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  62604. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  62605. /* harmony import */ var _commonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../commonPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/commonPropertyGridComponent.tsx");
  62606. /* harmony import */ var _variantsPropertyGridComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../variantsPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/variantsPropertyGridComponent.tsx");
  62607. var TransformNodePropertyGridComponent = /** @class */ (function (_super) {
  62608. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformNodePropertyGridComponent, _super);
  62609. function TransformNodePropertyGridComponent(props) {
  62610. return _super.call(this, props) || this;
  62611. }
  62612. TransformNodePropertyGridComponent.prototype.render = function () {
  62613. var _this = this;
  62614. var transformNode = this.props.transformNode;
  62615. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  62616. 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 }),
  62617. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  62618. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "ID", value: transformNode.id }),
  62619. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_9__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: transformNode, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62620. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Unique ID", value: transformNode.uniqueId.toString() }),
  62621. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Class", value: transformNode.getClassName() }),
  62622. 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); } }),
  62623. transformNode.parent &&
  62624. 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); } }),
  62625. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_8__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  62626. transformNode.dispose();
  62627. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  62628. } })),
  62629. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_commonPropertyGridComponent__WEBPACK_IMPORTED_MODULE_11__["CommonPropertyGridComponent"], { host: transformNode, lockObject: this.props.lockObject, globalState: this.props.globalState }),
  62630. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_variantsPropertyGridComponent__WEBPACK_IMPORTED_MODULE_12__["VariantsPropertyGridComponent"], { host: transformNode, lockObject: this.props.lockObject, globalState: this.props.globalState }),
  62631. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "TRANSFORMATIONS" },
  62632. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Position", target: transformNode, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62633. !transformNode.rotationQuaternion &&
  62634. 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 }),
  62635. transformNode.rotationQuaternion &&
  62636. 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 }),
  62637. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_4__["Vector3LineComponent"], { label: "Scaling", target: transformNode, propertyName: "scaling", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  62638. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_10__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: transformNode, scene: transformNode.getScene(), lockObject: this.props.lockObject })));
  62639. };
  62640. return TransformNodePropertyGridComponent;
  62641. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62642. /***/ }),
  62643. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent.tsx":
  62644. /*!**********************************************************************************************!*\
  62645. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent.tsx ***!
  62646. \**********************************************************************************************/
  62647. /*! exports provided: BoxEmitterGridComponent */
  62648. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62649. "use strict";
  62650. __webpack_require__.r(__webpack_exports__);
  62651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoxEmitterGridComponent", function() { return BoxEmitterGridComponent; });
  62652. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62653. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62654. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62655. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  62656. var BoxEmitterGridComponent = /** @class */ (function (_super) {
  62657. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoxEmitterGridComponent, _super);
  62658. function BoxEmitterGridComponent(props) {
  62659. return _super.call(this, props) || this;
  62660. }
  62661. BoxEmitterGridComponent.prototype.render = function () {
  62662. var emitter = this.props.emitter;
  62663. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  62664. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Direction 1", target: emitter, propertyName: "direction1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62665. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Direction 2", target: emitter, propertyName: "direction2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Min emit box", target: emitter, propertyName: "minEmitBox", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Max emit box", target: emitter, propertyName: "maxEmitBox", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  62668. };
  62669. return BoxEmitterGridComponent;
  62670. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62671. /***/ }),
  62672. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/colorGradientStepGridComponent.tsx":
  62673. /*!*****************************************************************************************************!*\
  62674. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/colorGradientStepGridComponent.tsx ***!
  62675. \*****************************************************************************************************/
  62676. /*! exports provided: ColorGradientStepGridComponent */
  62677. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62678. "use strict";
  62679. __webpack_require__.r(__webpack_exports__);
  62680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorGradientStepGridComponent", function() { return ColorGradientStepGridComponent; });
  62681. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62682. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62683. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62684. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  62685. /* 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");
  62686. /* harmony import */ var babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Misc/gradients */ "babylonjs/Misc/observable");
  62687. /* harmony import */ var babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__);
  62688. /* harmony import */ var _lines_colorPickerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/colorPickerComponent */ "./components/actionTabs/lines/colorPickerComponent.tsx");
  62689. var ColorGradientStepGridComponent = /** @class */ (function (_super) {
  62690. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorGradientStepGridComponent, _super);
  62691. function ColorGradientStepGridComponent(props) {
  62692. var _this = _super.call(this, props) || this;
  62693. _this.state = { gradient: props.gradient.gradient };
  62694. return _this;
  62695. }
  62696. ColorGradientStepGridComponent.prototype.updateColor1 = function (color) {
  62697. if (this.props.gradient instanceof babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["ColorGradient"]) {
  62698. this.props.gradient.color1 = babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["Color4"].FromHexString(color);
  62699. }
  62700. else {
  62701. this.props.gradient.color = babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(color);
  62702. }
  62703. this.props.onUpdateGradient();
  62704. this.forceUpdate();
  62705. };
  62706. ColorGradientStepGridComponent.prototype.updateColor2 = function (color) {
  62707. if (this.props.gradient instanceof babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["ColorGradient"]) {
  62708. this.props.gradient.color2 = babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["Color4"].FromHexString(color);
  62709. }
  62710. this.props.onUpdateGradient();
  62711. this.forceUpdate();
  62712. };
  62713. ColorGradientStepGridComponent.prototype.updateGradient = function (gradient) {
  62714. this.props.gradient.gradient = gradient;
  62715. this.setState({ gradient: gradient });
  62716. this.props.onUpdateGradient();
  62717. };
  62718. ColorGradientStepGridComponent.prototype.onPointerUp = function () {
  62719. this.props.onCheckForReOrder();
  62720. };
  62721. ColorGradientStepGridComponent.prototype.lock = function () {
  62722. if (this.props.lockObject) {
  62723. this.props.lockObject.lock = true;
  62724. }
  62725. };
  62726. ColorGradientStepGridComponent.prototype.unlock = function () {
  62727. if (this.props.lockObject) {
  62728. this.props.lockObject.lock = false;
  62729. }
  62730. };
  62731. ColorGradientStepGridComponent.prototype.render = function () {
  62732. var _this = this;
  62733. var gradient = this.props.gradient;
  62734. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  62735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  62736. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color1" },
  62737. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_colorPickerComponent__WEBPACK_IMPORTED_MODULE_5__["ColorPickerLineComponent"], { value: gradient instanceof babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["Color3Gradient"] ? gradient.color : gradient.color1, onColorChanged: function (color) {
  62738. _this.updateColor1(color);
  62739. }, disableAlpha: gradient instanceof babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["Color3Gradient"] })),
  62740. this.props.host instanceof babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["ParticleSystem"] && gradient instanceof babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["ColorGradient"] &&
  62741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color2" },
  62742. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_colorPickerComponent__WEBPACK_IMPORTED_MODULE_5__["ColorPickerLineComponent"], { value: gradient.color2 ? gradient.color2 : new babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_4__["Color4"](), onColorChanged: function (color) {
  62743. _this.updateColor2(color);
  62744. } })),
  62745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" }, gradient.gradient.toFixed(2)),
  62746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider" },
  62747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: 0.01, min: 0, max: 1.0, value: gradient.gradient, onPointerUp: function (evt) { return _this.onPointerUp(); }, onChange: function (evt) { return _this.updateGradient(parseFloat(evt.target.value)); } })),
  62748. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete hoverIcon", onClick: function () { return _this.props.onDelete(); } },
  62749. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faTrash"] }))));
  62750. };
  62751. return ColorGradientStepGridComponent;
  62752. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62753. /***/ }),
  62754. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent.tsx":
  62755. /*!***********************************************************************************************!*\
  62756. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent.tsx ***!
  62757. \***********************************************************************************************/
  62758. /*! exports provided: ConeEmitterGridComponent */
  62759. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62760. "use strict";
  62761. __webpack_require__.r(__webpack_exports__);
  62762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConeEmitterGridComponent", function() { return ConeEmitterGridComponent; });
  62763. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62764. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62765. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62766. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  62767. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  62768. var ConeEmitterGridComponent = /** @class */ (function (_super) {
  62769. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ConeEmitterGridComponent, _super);
  62770. function ConeEmitterGridComponent(props) {
  62771. return _super.call(this, props) || this;
  62772. }
  62773. ConeEmitterGridComponent.prototype.render = function () {
  62774. var emitter = this.props.emitter;
  62775. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  62776. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62777. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Height range", target: emitter, propertyName: "heightRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Emit from spawn point only", target: emitter, propertyName: "emitFromSpawnPointOnly", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62779. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  62780. };
  62781. return ConeEmitterGridComponent;
  62782. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62783. /***/ }),
  62784. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent.tsx":
  62785. /*!***************************************************************************************************!*\
  62786. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent.tsx ***!
  62787. \***************************************************************************************************/
  62788. /*! exports provided: CylinderEmitterGridComponent */
  62789. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62790. "use strict";
  62791. __webpack_require__.r(__webpack_exports__);
  62792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CylinderEmitterGridComponent", function() { return CylinderEmitterGridComponent; });
  62793. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62794. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62795. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62796. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  62797. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  62798. var CylinderEmitterGridComponent = /** @class */ (function (_super) {
  62799. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CylinderEmitterGridComponent, _super);
  62800. function CylinderEmitterGridComponent(props) {
  62801. return _super.call(this, props) || this;
  62802. }
  62803. CylinderEmitterGridComponent.prototype.render = function () {
  62804. var emitter = this.props.emitter;
  62805. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  62806. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Radius", target: emitter, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Height", target: emitter, propertyName: "height", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62808. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  62810. };
  62811. return CylinderEmitterGridComponent;
  62812. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62813. /***/ }),
  62814. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/factorGradientStepGridComponent.tsx":
  62815. /*!******************************************************************************************************!*\
  62816. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/factorGradientStepGridComponent.tsx ***!
  62817. \******************************************************************************************************/
  62818. /*! exports provided: FactorGradientStepGridComponent */
  62819. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62820. "use strict";
  62821. __webpack_require__.r(__webpack_exports__);
  62822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FactorGradientStepGridComponent", function() { return FactorGradientStepGridComponent; });
  62823. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62824. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62825. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62826. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  62827. /* 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");
  62828. /* harmony import */ var babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Particles/particleSystem */ "babylonjs/Misc/observable");
  62829. /* harmony import */ var babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_4__);
  62830. var FactorGradientStepGridComponent = /** @class */ (function (_super) {
  62831. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FactorGradientStepGridComponent, _super);
  62832. function FactorGradientStepGridComponent(props) {
  62833. var _a;
  62834. var _this = _super.call(this, props) || this;
  62835. _this.state = { gradient: props.gradient.gradient, factor1: _this.props.gradient.factor1.toString(), factor2: (_a = _this.props.gradient.factor2) === null || _a === void 0 ? void 0 : _a.toString() };
  62836. return _this;
  62837. }
  62838. FactorGradientStepGridComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62839. var _a;
  62840. if (nextProps.gradient !== this.props.gradient) {
  62841. nextState.gradient = nextProps.gradient.gradient;
  62842. nextState.factor1 = nextProps.gradient.factor1.toString();
  62843. nextState.factor2 = (_a = nextProps.gradient.factor2) === null || _a === void 0 ? void 0 : _a.toString();
  62844. }
  62845. return true;
  62846. };
  62847. FactorGradientStepGridComponent.prototype.updateFactor1 = function (valueString) {
  62848. if (/[^0-9\.\-]/g.test(valueString)) {
  62849. return;
  62850. }
  62851. var valueAsNumber = parseFloat(valueString);
  62852. this.setState({ factor1: valueString });
  62853. if (isNaN(valueAsNumber)) {
  62854. return;
  62855. }
  62856. this.props.gradient.factor1 = valueAsNumber;
  62857. this.props.onUpdateGradient();
  62858. this.forceUpdate();
  62859. };
  62860. FactorGradientStepGridComponent.prototype.updateFactor2 = function (valueString) {
  62861. if (/[^0-9\.\-]/g.test(valueString)) {
  62862. return;
  62863. }
  62864. var valueAsNumber = parseFloat(valueString);
  62865. this.setState({ factor2: valueString });
  62866. if (isNaN(valueAsNumber)) {
  62867. return;
  62868. }
  62869. this.props.gradient.factor2 = valueAsNumber;
  62870. this.props.onUpdateGradient();
  62871. this.forceUpdate();
  62872. };
  62873. FactorGradientStepGridComponent.prototype.updateGradient = function (gradient) {
  62874. this.props.gradient.gradient = gradient;
  62875. this.setState({ gradient: gradient });
  62876. this.props.onUpdateGradient();
  62877. };
  62878. FactorGradientStepGridComponent.prototype.onPointerUp = function () {
  62879. this.props.onCheckForReOrder();
  62880. };
  62881. FactorGradientStepGridComponent.prototype.lock = function () {
  62882. if (this.props.lockObject) {
  62883. this.props.lockObject.lock = true;
  62884. }
  62885. };
  62886. FactorGradientStepGridComponent.prototype.unlock = function () {
  62887. if (this.props.lockObject) {
  62888. this.props.lockObject.lock = false;
  62889. }
  62890. };
  62891. FactorGradientStepGridComponent.prototype.render = function () {
  62892. var _this = this;
  62893. var gradient = this.props.gradient;
  62894. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  62895. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  62896. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "factor1" },
  62897. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: "0.01", className: "numeric-input", value: this.state.factor1, onBlur: function () { return _this.unlock(); }, onFocus: function () { return _this.lock(); }, onChange: function (evt) { return _this.updateFactor1(evt.target.value); } })),
  62898. this.props.host instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_4__["ParticleSystem"] &&
  62899. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "factor2" },
  62900. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: "0.01", className: "numeric-input" + ((this.state.factor1 === this.state.factor2 || gradient.factor2 === undefined) ? " grayed" : ""), value: this.state.factor2, onBlur: function () { return _this.unlock(); }, onFocus: function () { return _this.lock(); }, onChange: function (evt) { return _this.updateFactor2(evt.target.value); } })),
  62901. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" }, gradient.gradient.toFixed(2)),
  62902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider" },
  62903. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: 0.01, min: 0, max: 1.0, value: gradient.gradient, onPointerUp: function (evt) { return _this.onPointerUp(); }, onChange: function (evt) { return _this.updateGradient(parseFloat(evt.target.value)); } })),
  62904. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete hoverIcon", onClick: function () { return _this.props.onDelete(); } },
  62905. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faTrash"] }))));
  62906. };
  62907. return FactorGradientStepGridComponent;
  62908. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62909. /***/ }),
  62910. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent.tsx":
  62911. /*!******************************************************************************************************!*\
  62912. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent.tsx ***!
  62913. \******************************************************************************************************/
  62914. /*! exports provided: HemisphericEmitterGridComponent */
  62915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62916. "use strict";
  62917. __webpack_require__.r(__webpack_exports__);
  62918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HemisphericEmitterGridComponent", function() { return HemisphericEmitterGridComponent; });
  62919. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62920. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62921. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62922. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  62923. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  62924. var HemisphericEmitterGridComponent = /** @class */ (function (_super) {
  62925. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HemisphericEmitterGridComponent, _super);
  62926. function HemisphericEmitterGridComponent(props) {
  62927. return _super.call(this, props) || this;
  62928. }
  62929. HemisphericEmitterGridComponent.prototype.render = function () {
  62930. var emitter = this.props.emitter;
  62931. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  62932. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Radius", target: emitter, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62933. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62934. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  62935. };
  62936. return HemisphericEmitterGridComponent;
  62937. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62938. /***/ }),
  62939. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent.tsx":
  62940. /*!***********************************************************************************************!*\
  62941. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent.tsx ***!
  62942. \***********************************************************************************************/
  62943. /*! exports provided: MeshEmitterGridComponent */
  62944. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62945. "use strict";
  62946. __webpack_require__.r(__webpack_exports__);
  62947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshEmitterGridComponent", function() { return MeshEmitterGridComponent; });
  62948. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62949. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62950. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62951. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  62952. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  62953. /* harmony import */ var _lines_meshPickerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/meshPickerComponent */ "./components/actionTabs/lines/meshPickerComponent.tsx");
  62954. var MeshEmitterGridComponent = /** @class */ (function (_super) {
  62955. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshEmitterGridComponent, _super);
  62956. function MeshEmitterGridComponent(props) {
  62957. return _super.call(this, props) || this;
  62958. }
  62959. MeshEmitterGridComponent.prototype.render = function () {
  62960. var emitter = this.props.emitter;
  62961. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  62962. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_meshPickerComponent__WEBPACK_IMPORTED_MODULE_4__["MeshPickerComponent"], { globalState: this.props.globalState, label: "Source", scene: this.props.scene, onPropertyChangedObservable: this.props.onPropertyChangedObservable, target: this.props.emitter, property: "mesh" }),
  62963. !emitter.useMeshNormalsForDirection &&
  62964. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Direction 1", target: emitter, propertyName: "direction1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62965. !emitter.useMeshNormalsForDirection &&
  62966. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Direction 2", target: emitter, propertyName: "direction2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  62967. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use normals for direction", target: emitter, propertyName: "useMeshNormalsForDirection", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  62968. };
  62969. return MeshEmitterGridComponent;
  62970. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62971. /***/ }),
  62972. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent.tsx":
  62973. /*!**********************************************************************************************************!*\
  62974. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/particleSystemPropertyGridComponent.tsx ***!
  62975. \**********************************************************************************************************/
  62976. /*! exports provided: ParticleSystemPropertyGridComponent */
  62977. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62978. "use strict";
  62979. __webpack_require__.r(__webpack_exports__);
  62980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParticleSystemPropertyGridComponent", function() { return ParticleSystemPropertyGridComponent; });
  62981. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62982. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62983. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62984. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  62985. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  62986. /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
  62987. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  62988. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  62989. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  62990. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  62991. /* harmony import */ var babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! babylonjs/Particles/particleSystem */ "babylonjs/Misc/observable");
  62992. /* harmony import */ var babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__);
  62993. /* harmony import */ var _lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/color4LineComponent */ "./components/actionTabs/lines/color4LineComponent.tsx");
  62994. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  62995. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  62996. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  62997. /* harmony import */ var _boxEmitterGridComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./boxEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/boxEmitterGridComponent.tsx");
  62998. /* harmony import */ var _coneEmitterGridComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./coneEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/coneEmitterGridComponent.tsx");
  62999. /* harmony import */ var _cylinderEmitterGridComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./cylinderEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/cylinderEmitterGridComponent.tsx");
  63000. /* harmony import */ var _hemisphericEmitterGridComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./hemisphericEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/hemisphericEmitterGridComponent.tsx");
  63001. /* harmony import */ var _pointEmitterGridComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./pointEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent.tsx");
  63002. /* harmony import */ var _sphereEmitterGridComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./sphereEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent.tsx");
  63003. /* harmony import */ var _meshEmitterGridComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./meshEmitterGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/meshEmitterGridComponent.tsx");
  63004. /* harmony import */ var _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./valueGradientGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent.tsx");
  63005. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  63006. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  63007. var ParticleSystemPropertyGridComponent = /** @class */ (function (_super) {
  63008. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParticleSystemPropertyGridComponent, _super);
  63009. function ParticleSystemPropertyGridComponent(props) {
  63010. var _this = _super.call(this, props) || this;
  63011. _this._snippetUrl = "https://snippet.babylonjs.com";
  63012. return _this;
  63013. }
  63014. ParticleSystemPropertyGridComponent.prototype.renderEmitter = function () {
  63015. var _a;
  63016. var system = this.props.system;
  63017. switch ((_a = system.particleEmitterType) === null || _a === void 0 ? void 0 : _a.getClassName()) {
  63018. case "BoxParticleEmitter":
  63019. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_boxEmitterGridComponent__WEBPACK_IMPORTED_MODULE_14__["BoxEmitterGridComponent"], { globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63020. case "ConeParticleEmitter":
  63021. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_coneEmitterGridComponent__WEBPACK_IMPORTED_MODULE_15__["ConeEmitterGridComponent"], { globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63022. case "CylinderParticleEmitter":
  63023. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_cylinderEmitterGridComponent__WEBPACK_IMPORTED_MODULE_16__["CylinderEmitterGridComponent"], { lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63024. case "HemisphericParticleEmitter":
  63025. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_hemisphericEmitterGridComponent__WEBPACK_IMPORTED_MODULE_17__["HemisphericEmitterGridComponent"], { lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63026. case "MeshParticleEmitter":
  63027. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_meshEmitterGridComponent__WEBPACK_IMPORTED_MODULE_20__["MeshEmitterGridComponent"], { lockObject: this.props.lockObject, scene: system.getScene(), globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63028. case "PointParticleEmitter":
  63029. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_pointEmitterGridComponent__WEBPACK_IMPORTED_MODULE_18__["PointEmitterGridComponent"], { lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63030. case "SphereParticleEmitter":
  63031. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sphereEmitterGridComponent__WEBPACK_IMPORTED_MODULE_19__["SphereEmitterGridComponent"], { lockObject: this.props.lockObject, globalState: this.props.globalState, emitter: system.particleEmitterType, onPropertyChangedObservable: this.props.onPropertyChangedObservable }));
  63032. }
  63033. return null;
  63034. };
  63035. ParticleSystemPropertyGridComponent.prototype.raiseOnPropertyChanged = function (property, newValue, previousValue) {
  63036. if (!this.props.onPropertyChangedObservable) {
  63037. return;
  63038. }
  63039. var system = this.props.system;
  63040. this.props.onPropertyChangedObservable.notifyObservers({
  63041. object: system,
  63042. property: property,
  63043. value: newValue,
  63044. initialValue: previousValue
  63045. });
  63046. };
  63047. ParticleSystemPropertyGridComponent.prototype.renderControls = function () {
  63048. var _this = this;
  63049. var system = this.props.system;
  63050. if (system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["GPUParticleSystem"]) {
  63051. var isStarted_1 = system.isStarted() && !system.isStopped();
  63052. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: isStarted_1 ? "Stop" : "Start", onClick: function () {
  63053. if (isStarted_1) {
  63054. system.stop();
  63055. system.reset();
  63056. }
  63057. else {
  63058. system.start();
  63059. }
  63060. _this.forceUpdate();
  63061. } }));
  63062. }
  63063. var isStarted = system.isStarted();
  63064. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63065. !system.isStopping() &&
  63066. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: isStarted ? "Stop" : "Start", onClick: function () {
  63067. if (isStarted) {
  63068. system.stop();
  63069. }
  63070. else {
  63071. system.start();
  63072. }
  63073. _this.forceUpdate();
  63074. } }),
  63075. system.isStopping() &&
  63076. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "System is stoppping...", ignoreValue: true })));
  63077. };
  63078. ParticleSystemPropertyGridComponent.prototype.saveToFile = function () {
  63079. var system = this.props.system;
  63080. var content = JSON.stringify(system.serialize(true));
  63081. babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Tools"].Download(new Blob([content]), "particleSystem.json");
  63082. };
  63083. ParticleSystemPropertyGridComponent.prototype.loadFromFile = function (file) {
  63084. var _this = this;
  63085. var system = this.props.system;
  63086. var scene = system.getScene();
  63087. if (!scene) {
  63088. return;
  63089. }
  63090. babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Tools"].ReadFile(file, function (data) {
  63091. var decoder = new TextDecoder("utf-8");
  63092. var jsonObject = JSON.parse(decoder.decode(data));
  63093. var isGpu = system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["GPUParticleSystem"];
  63094. system.dispose();
  63095. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  63096. var newSystem = isGpu ? babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["GPUParticleSystem"].Parse(jsonObject, scene, "") : babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].Parse(jsonObject, scene, "");
  63097. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newSystem);
  63098. }, undefined, true);
  63099. };
  63100. ParticleSystemPropertyGridComponent.prototype.loadFromSnippet = function () {
  63101. var _this = this;
  63102. var system = this.props.system;
  63103. var scene = system.getScene();
  63104. var isGpu = system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["GPUParticleSystem"];
  63105. var snippedID = window.prompt("Please enter the snippet ID to use");
  63106. if (!snippedID || !scene) {
  63107. return;
  63108. }
  63109. system.dispose();
  63110. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  63111. babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleHelper"].CreateFromSnippetAsync(snippedID, scene, isGpu).then(function (newSystem) {
  63112. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newSystem);
  63113. }).catch(function (err) {
  63114. alert("Unable to load your particle system: " + err);
  63115. });
  63116. };
  63117. ParticleSystemPropertyGridComponent.prototype.saveToSnippet = function () {
  63118. var _this = this;
  63119. var system = this.props.system;
  63120. var content = JSON.stringify(system.serialize(true));
  63121. var xmlHttp = new XMLHttpRequest();
  63122. xmlHttp.onreadystatechange = function () {
  63123. if (xmlHttp.readyState == 4) {
  63124. if (xmlHttp.status == 200) {
  63125. var snippet = JSON.parse(xmlHttp.responseText);
  63126. var oldId = system.snippetId || "_BLANK";
  63127. system.snippetId = snippet.id;
  63128. if (snippet.version && snippet.version != "0") {
  63129. system.snippetId += "#" + snippet.version;
  63130. }
  63131. _this.forceUpdate();
  63132. if (navigator.clipboard) {
  63133. navigator.clipboard.writeText(system.snippetId);
  63134. }
  63135. var windowAsAny = window;
  63136. if (windowAsAny.Playground && oldId) {
  63137. windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
  63138. regex: new RegExp("ParticleHelper.CreateFromSnippetAsync\\(\"" + oldId, "g"),
  63139. replace: "ParticleHelper.CreateFromSnippetAsync(\"" + system.snippetId
  63140. });
  63141. }
  63142. alert("Particle system saved with ID: " + system.snippetId + " (please note that the id was also saved to your clipboard)");
  63143. }
  63144. else {
  63145. alert("Unable to save your particle system");
  63146. }
  63147. }
  63148. };
  63149. xmlHttp.open("POST", this._snippetUrl + (system.snippetId ? "/" + system.snippetId : ""), true);
  63150. xmlHttp.setRequestHeader("Content-Type", "application/json");
  63151. var dataToSend = {
  63152. payload: JSON.stringify({
  63153. particleSystem: content
  63154. }),
  63155. name: "",
  63156. description: "",
  63157. tags: ""
  63158. };
  63159. xmlHttp.send(JSON.stringify(dataToSend));
  63160. };
  63161. ParticleSystemPropertyGridComponent.prototype.render = function () {
  63162. var _this = this;
  63163. var _a, _b;
  63164. var system = this.props.system;
  63165. var blendModeOptions = [
  63166. { label: "Add", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_ADD },
  63167. { label: "Multiply", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_MULTIPLY },
  63168. { label: "Multiply Add", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_MULTIPLYADD },
  63169. { label: "OneOne", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_ONEONE },
  63170. { label: "Standard", value: babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"].BLENDMODE_STANDARD },
  63171. ];
  63172. var particleEmitterTypeOptions = [
  63173. { label: "Box", value: 0 },
  63174. { label: "Cone", value: 1 },
  63175. { label: "Cylinder", value: 2 },
  63176. { label: "Hemispheric", value: 3 },
  63177. { label: "Mesh", value: 4 },
  63178. { label: "Point", value: 5 },
  63179. { label: "Sphere", value: 6 },
  63180. ];
  63181. var meshEmitters = this.props.system.getScene().meshes.filter(function (m) { return !!m.name; });
  63182. var emitterOptions = [
  63183. { label: "None", value: -1 },
  63184. { label: "Vector3", value: 0 }
  63185. ];
  63186. meshEmitters.sort(function (a, b) { return a.name.localeCompare(b.name); });
  63187. emitterOptions.push.apply(emitterOptions, meshEmitters.map(function (v, i) {
  63188. return { label: v.name, value: i + 1 };
  63189. }));
  63190. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63191. 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 }),
  63192. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  63193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "ID", value: system.id }),
  63194. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_23__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: system, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63195. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Class", value: system.getClassName() }),
  63196. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Capacity", value: system.getCapacity().toString() }),
  63197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active count", value: system.getActiveCount().toString() }),
  63198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextureLinkLineComponent"], { label: "Texture", texture: system.particleTexture, onSelectionChangedObservable: this.props.onSelectionChangedObservable }),
  63199. 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 }),
  63200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Vector3LineComponent"], { label: "World offset", target: system, propertyName: "worldOffset", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63201. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Vector3LineComponent"], { label: "Gravity", target: system, propertyName: "gravity", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63202. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Is billboard", target: system, propertyName: "isBillboardBased", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63203. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Is local", target: system, propertyName: "isLocal", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63204. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Force depth write", target: system, propertyName: "forceDepthWrite", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63205. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__["SliderLineComponent"], { label: "Update speed", target: system, propertyName: "updateSpeed", minimum: 0, maximum: 0.1, decimalCount: 3, step: 0.001, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  63206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "COMMANDS" },
  63207. this.renderControls(),
  63208. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  63209. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  63210. system.dispose();
  63211. } })),
  63212. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "FILE" },
  63213. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_22__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.loadFromFile(file); }, accept: ".json" }),
  63214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: "Save", onClick: function () { return _this.saveToFile(); } })),
  63215. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SNIPPET" },
  63216. system.snippetId &&
  63217. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Snippet ID", value: system.snippetId }),
  63218. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: "Load from snippet server", onClick: function () { return _this.loadFromSnippet(); } }),
  63219. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_6__["ButtonLineComponent"], { label: "Save to snippet server", onClick: function () { return _this.saveToSnippet(); } })),
  63220. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "EMITTER", closed: true },
  63221. 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) {
  63222. switch (value) {
  63223. case -1:
  63224. _this.raiseOnPropertyChanged("emitter", null, system.emitter);
  63225. system.emitter = null;
  63226. break;
  63227. case 0:
  63228. _this.raiseOnPropertyChanged("emitter", babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Vector3"].Zero(), system.emitter);
  63229. system.emitter = babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Vector3"].Zero();
  63230. break;
  63231. default:
  63232. _this.raiseOnPropertyChanged("emitter", meshEmitters[value - 1], system.emitter);
  63233. system.emitter = meshEmitters[value - 1];
  63234. }
  63235. _this.forceUpdate();
  63236. }, extractValue: function () {
  63237. if (!system.emitter) {
  63238. return -1;
  63239. }
  63240. if (system.emitter.x !== undefined) {
  63241. return 0;
  63242. }
  63243. var meshIndex = meshEmitters.indexOf(system.emitter);
  63244. if (meshIndex > -1) {
  63245. return meshIndex + 1;
  63246. }
  63247. return -1;
  63248. } }),
  63249. system.emitter && (system.emitter.x === undefined) &&
  63250. 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); } }),
  63251. system.emitter && (system.emitter.x !== undefined) &&
  63252. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_11__["Vector3LineComponent"], { label: "Position", target: system, propertyName: "emitter", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63253. 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) {
  63254. var currentType = system.particleEmitterType;
  63255. switch (value) {
  63256. case 0:
  63257. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["BoxParticleEmitter"]();
  63258. break;
  63259. case 1:
  63260. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ConeParticleEmitter"]();
  63261. break;
  63262. case 2:
  63263. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["CylinderParticleEmitter"]();
  63264. break;
  63265. case 3:
  63266. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["HemisphericParticleEmitter"]();
  63267. break;
  63268. case 4:
  63269. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["MeshParticleEmitter"]();
  63270. break;
  63271. case 5:
  63272. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["PointParticleEmitter"]();
  63273. break;
  63274. case 6:
  63275. system.particleEmitterType = new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["SphereParticleEmitter"]();
  63276. break;
  63277. }
  63278. _this.raiseOnPropertyChanged("particleEmitterType", system.particleEmitterType, currentType);
  63279. _this.forceUpdate();
  63280. }, extractValue: function () {
  63281. var _a;
  63282. switch ((_a = system.particleEmitterType) === null || _a === void 0 ? void 0 : _a.getClassName()) {
  63283. case "BoxParticleEmitter":
  63284. return 0;
  63285. case "ConeParticleEmitter":
  63286. return 1;
  63287. case "CylinderParticleEmitter":
  63288. return 2;
  63289. case "HemisphericParticleEmitter":
  63290. return 3;
  63291. case "MeshParticleEmitter":
  63292. return 4;
  63293. case "PointParticleEmitter":
  63294. return 5;
  63295. case "SphereParticleEmitter":
  63296. return 6;
  63297. }
  63298. return 0;
  63299. } }),
  63300. this.renderEmitter()),
  63301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "EMISSION", closed: true },
  63302. 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 }),
  63303. system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"] &&
  63304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getEmitRateGradients(), label: "Velocity gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#emit-rate-over-time", onCreateRequired: function () {
  63305. system.addEmitRateGradient(0, 50, 50);
  63306. }, mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, host: system, codeRecorderPropertyName: "getEmitRateGradients()", lockObject: this.props.lockObject }),
  63307. 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 }),
  63308. 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 }),
  63309. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getVelocityGradients(), label: "Velocity gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#velocity-over-time", onCreateRequired: function () {
  63310. system.addVelocityGradient(0, 0.1, 0.1);
  63311. }, mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, host: system, codeRecorderPropertyName: "getVelocityGradients()", lockObject: this.props.lockObject }),
  63312. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getLimitVelocityGradients(), label: "Limit velocity gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#limit-velocity-over-time", onCreateRequired: function () {
  63313. system.addLimitVelocityGradient(0, 0.1, 0.1);
  63314. }, mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, host: system, codeRecorderPropertyName: "getLimitVelocityGradients()", lockObject: this.props.lockObject }),
  63315. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getDragGradients(), label: "Drag gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#drag-factor", onCreateRequired: function () {
  63316. system.addDragGradient(0, 0.1, 0.1);
  63317. }, host: system, codeRecorderPropertyName: "getDragGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject })),
  63318. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SIZE", closed: true },
  63319. (!system.getSizeGradients() || ((_a = system.getSizeGradients()) === null || _a === void 0 ? void 0 : _a.length) === 0) &&
  63320. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63321. 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 }),
  63322. 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 })),
  63323. 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 }),
  63324. 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 }),
  63325. 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 }),
  63326. 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 }),
  63327. system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"] &&
  63328. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getStartSizeGradients(), label: "Start size gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#start-size-over-time", onCreateRequired: function () {
  63329. system.addStartSizeGradient(0, 1, 1);
  63330. }, host: system, codeRecorderPropertyName: "getStartSizeGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject }),
  63331. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getSizeGradients(), label: "Size gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#size", onCreateRequired: function () {
  63332. system.addSizeGradient(0, 1, 1);
  63333. }, host: system, codeRecorderPropertyName: "getSizeGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject })),
  63334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "LIFETIME", closed: true },
  63335. 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 }),
  63336. 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 }),
  63337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Target stop duration", target: system, propertyName: "targetStopDuration", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63338. system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"] &&
  63339. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getLifeTimeGradients(), label: "Lifetime gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#lifetime", onCreateRequired: function () {
  63340. system.addLifeTimeGradient(0, 1, 1);
  63341. }, host: system, codeRecorderPropertyName: "getLifeTimeGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject })),
  63342. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLORS", closed: true },
  63343. (!system.getColorGradients() || ((_b = system.getColorGradients()) === null || _b === void 0 ? void 0 : _b.length) === 0) &&
  63344. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Color4LineComponent"], { label: "Color 1", target: system, propertyName: "color1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63346. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Color4LineComponent"], { label: "Color 2", target: system, propertyName: "color2", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_10__["Color4LineComponent"], { label: "Color dead", target: system, propertyName: "colorDead", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  63348. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getColorGradients(), label: "Color gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#particle-colors", onCreateRequired: function () {
  63349. system.addColorGradient(0, new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Color4"](0, 0, 0, 1), new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Color4"](0, 0, 0, 1));
  63350. system.addColorGradient(1, new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Color4"](1, 1, 1, 1), new babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Color4"](1, 1, 1, 1));
  63351. }, host: system, codeRecorderPropertyName: "getColorGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Color4, lockObject: this.props.lockObject }),
  63352. system instanceof babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["ParticleSystem"] &&
  63353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Enable ramp grandients", target: system, propertyName: "useRampGradients" }),
  63355. system.useRampGradients &&
  63356. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63357. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getRampGradients(), label: "Ramp gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#ramp-gradients", onCreateRequired: function () {
  63358. system.addRampGradient(0, babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Color3"].White());
  63359. system.addRampGradient(1, babylonjs_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__["Color3"].Black());
  63360. }, mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Color3, host: system, codeRecorderPropertyName: "getRampGradients()", lockObject: this.props.lockObject }),
  63361. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getColorRemapGradients(), label: "Color remap gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#ramp-gradients", onCreateRequired: function () {
  63362. system.addColorRemapGradient(0, 1, 1);
  63363. }, host: system, codeRecorderPropertyName: "getColorRemapGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject }),
  63364. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getAlphaRemapGradients(), label: "Alpha remap gradients", docLink: "https://doc.babylonjs.com/babylon101/particles#ramp-gradients", onCreateRequired: function () {
  63365. system.addAlphaRemapGradient(0, 1, 1);
  63366. }, host: system, codeRecorderPropertyName: "getAlphaRemapGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject })))),
  63367. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "ROTATION", closed: true },
  63368. 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 }),
  63369. 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 }),
  63370. 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 }),
  63371. 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 }),
  63372. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["ValueGradientGridComponent"], { globalState: this.props.globalState, gradients: system.getAngularSpeedGradients(), label: "Angular speed gradients", docLink: "hhttps://doc.babylonjs.com/babylon101/particles#rotation", onCreateRequired: function () {
  63373. system.addAngularSpeedGradient(0, 0.1, 0.1);
  63374. }, host: system, codeRecorderPropertyName: "getAngularSpeedGradients()", mode: _valueGradientGridComponent__WEBPACK_IMPORTED_MODULE_21__["GradientGridMode"].Factor, lockObject: this.props.lockObject })),
  63375. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SPRITESHEET", closed: true },
  63376. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Animation sheet enabled", target: system, propertyName: "isAnimationSheetEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63377. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "First sprite index", isInteger: true, target: system, propertyName: "startSpriteCellID", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63378. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Last sprite index", isInteger: true, target: system, propertyName: "endSpriteCellID", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63379. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Random start cell index", target: system, propertyName: "spriteRandomStartCell", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63380. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Cell width", isInteger: true, target: system, propertyName: "spriteCellWidth", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63381. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Cell height", isInteger: true, target: system, propertyName: "spriteCellHeight", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63382. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_13__["SliderLineComponent"], { label: "Cell change speed", target: system, propertyName: "spriteCellChangeSpeed", minimum: 0, maximum: 10, step: 0.1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  63383. };
  63384. return ParticleSystemPropertyGridComponent;
  63385. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63386. /***/ }),
  63387. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent.tsx":
  63388. /*!************************************************************************************************!*\
  63389. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/pointEmitterGridComponent.tsx ***!
  63390. \************************************************************************************************/
  63391. /*! exports provided: PointEmitterGridComponent */
  63392. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63393. "use strict";
  63394. __webpack_require__.r(__webpack_exports__);
  63395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointEmitterGridComponent", function() { return PointEmitterGridComponent; });
  63396. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63397. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63398. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63399. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  63400. var PointEmitterGridComponent = /** @class */ (function (_super) {
  63401. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PointEmitterGridComponent, _super);
  63402. function PointEmitterGridComponent(props) {
  63403. return _super.call(this, props) || this;
  63404. }
  63405. PointEmitterGridComponent.prototype.render = function () {
  63406. var emitter = this.props.emitter;
  63407. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63408. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Direction 1", target: emitter, propertyName: "direction1", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63409. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Direction 2", target: emitter, propertyName: "direction2", onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  63410. };
  63411. return PointEmitterGridComponent;
  63412. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63413. /***/ }),
  63414. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent.tsx":
  63415. /*!*************************************************************************************************!*\
  63416. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/sphereEmitterGridComponent.tsx ***!
  63417. \*************************************************************************************************/
  63418. /*! exports provided: SphereEmitterGridComponent */
  63419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63420. "use strict";
  63421. __webpack_require__.r(__webpack_exports__);
  63422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SphereEmitterGridComponent", function() { return SphereEmitterGridComponent; });
  63423. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63425. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63426. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  63427. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63428. var SphereEmitterGridComponent = /** @class */ (function (_super) {
  63429. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SphereEmitterGridComponent, _super);
  63430. function SphereEmitterGridComponent(props) {
  63431. return _super.call(this, props) || this;
  63432. }
  63433. SphereEmitterGridComponent.prototype.render = function () {
  63434. var emitter = this.props.emitter;
  63435. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { lockObject: this.props.lockObject, label: "Radius", target: emitter, propertyName: "radius", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63437. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Radius range", target: emitter, propertyName: "radiusRange", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63438. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__["SliderLineComponent"], { label: "Direction randomizer", target: emitter, propertyName: "directionRandomizer", minimum: 0, maximum: 1, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })));
  63439. };
  63440. return SphereEmitterGridComponent;
  63441. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63442. /***/ }),
  63443. /***/ "./components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent.tsx":
  63444. /*!*************************************************************************************************!*\
  63445. !*** ./components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent.tsx ***!
  63446. \*************************************************************************************************/
  63447. /*! exports provided: GradientGridMode, ValueGradientGridComponent */
  63448. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63449. "use strict";
  63450. __webpack_require__.r(__webpack_exports__);
  63451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientGridMode", function() { return GradientGridMode; });
  63452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueGradientGridComponent", function() { return ValueGradientGridComponent; });
  63453. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63454. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63455. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63456. /* harmony import */ var babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/gradients */ "babylonjs/Misc/observable");
  63457. /* harmony import */ var babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__);
  63458. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  63459. /* harmony import */ var _factorGradientStepGridComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./factorGradientStepGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/factorGradientStepGridComponent.tsx");
  63460. /* harmony import */ var _colorGradientStepGridComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./colorGradientStepGridComponent */ "./components/actionTabs/tabs/propertyGrids/particleSystems/colorGradientStepGridComponent.tsx");
  63461. /* harmony import */ var _lines_linkButtonComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/linkButtonComponent */ "./components/actionTabs/lines/linkButtonComponent.tsx");
  63462. /* 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");
  63463. var GradientGridMode;
  63464. (function (GradientGridMode) {
  63465. GradientGridMode[GradientGridMode["Factor"] = 0] = "Factor";
  63466. GradientGridMode[GradientGridMode["Color3"] = 1] = "Color3";
  63467. GradientGridMode[GradientGridMode["Color4"] = 2] = "Color4";
  63468. })(GradientGridMode || (GradientGridMode = {}));
  63469. var ValueGradientGridComponent = /** @class */ (function (_super) {
  63470. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ValueGradientGridComponent, _super);
  63471. function ValueGradientGridComponent(props) {
  63472. return _super.call(this, props) || this;
  63473. }
  63474. ValueGradientGridComponent.prototype.deleteStep = function (step) {
  63475. var gradients = this.props.gradients;
  63476. var index = gradients.indexOf(step);
  63477. if (index > -1) {
  63478. gradients.splice(index, 1);
  63479. this.updateAndSync();
  63480. }
  63481. };
  63482. ValueGradientGridComponent.prototype.addNewStep = function () {
  63483. var gradients = this.props.gradients;
  63484. switch (this.props.mode) {
  63485. case GradientGridMode.Factor:
  63486. var newStep = new babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__["FactorGradient"](1, 1, 1);
  63487. gradients.push(newStep);
  63488. break;
  63489. case GradientGridMode.Color4:
  63490. var newStepColor = new babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__["ColorGradient"](1, new babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__["Color4"](1, 1, 1, 1), new babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__["Color4"](1, 1, 1, 1));
  63491. gradients.push(newStepColor);
  63492. break;
  63493. case GradientGridMode.Color3:
  63494. var newStepColor3 = new babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__["Color3Gradient"](1, babylonjs_Misc_gradients__WEBPACK_IMPORTED_MODULE_2__["Color3"].White());
  63495. gradients.push(newStepColor3);
  63496. break;
  63497. }
  63498. this.props.host.forceRefreshGradients();
  63499. this.forceUpdate();
  63500. };
  63501. ValueGradientGridComponent.prototype.checkForReOrder = function () {
  63502. var gradients = this.props.gradients;
  63503. gradients.sort(function (a, b) {
  63504. if (a.gradient === b.gradient) {
  63505. return 0;
  63506. }
  63507. if (a.gradient > b.gradient) {
  63508. return 1;
  63509. }
  63510. return -1;
  63511. });
  63512. this.forceUpdate();
  63513. };
  63514. ValueGradientGridComponent.prototype.updateAndSync = function () {
  63515. this.props.host.forceRefreshGradients();
  63516. this.forceUpdate();
  63517. };
  63518. ValueGradientGridComponent.prototype.render = function () {
  63519. var _this = this;
  63520. var gradients = this.props.gradients;
  63521. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63522. gradients && gradients.length > 0 &&
  63523. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-container" },
  63524. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_linkButtonComponent__WEBPACK_IMPORTED_MODULE_6__["LinkButtonComponent"], { label: this.props.label, url: this.props.docLink, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_7__["faTrash"], onIconClick: function () {
  63525. gradients.length = 0;
  63526. _this.updateAndSync();
  63527. }, buttonLabel: "Add new step", onClick: function () { return _this.addNewStep(); } }),
  63528. gradients.map(function (g, i) {
  63529. var codeRecorderPropertyName = _this.props.codeRecorderPropertyName + ("[" + i + "]");
  63530. switch (_this.props.mode) {
  63531. case GradientGridMode.Factor:
  63532. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_factorGradientStepGridComponent__WEBPACK_IMPORTED_MODULE_4__["FactorGradientStepGridComponent"], { globalState: _this.props.globalState, lockObject: _this.props.lockObject, onCheckForReOrder: function () { return _this.checkForReOrder(); }, onUpdateGradient: function () { return _this.updateAndSync(); }, host: _this.props.host, codeRecorderPropertyName: codeRecorderPropertyName, key: "step-" + i, lineIndex: i, gradient: g, onDelete: function () { return _this.deleteStep(g); } }));
  63533. case GradientGridMode.Color4:
  63534. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorGradientStepGridComponent__WEBPACK_IMPORTED_MODULE_5__["ColorGradientStepGridComponent"], { globalState: _this.props.globalState, host: _this.props.host, codeRecorderPropertyName: codeRecorderPropertyName, lockObject: _this.props.lockObject, isColor3: false, onCheckForReOrder: function () { return _this.checkForReOrder(); }, onUpdateGradient: function () { return _this.updateAndSync(); }, key: "step-" + i, lineIndex: i, gradient: g, onDelete: function () { return _this.deleteStep(g); } }));
  63535. case GradientGridMode.Color3:
  63536. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorGradientStepGridComponent__WEBPACK_IMPORTED_MODULE_5__["ColorGradientStepGridComponent"], { globalState: _this.props.globalState, host: _this.props.host, codeRecorderPropertyName: codeRecorderPropertyName, lockObject: _this.props.lockObject, isColor3: true, onCheckForReOrder: function () { return _this.checkForReOrder(); }, onUpdateGradient: function () { return _this.updateAndSync(); }, key: "step-" + i, lineIndex: i, gradient: g, onDelete: function () { return _this.deleteStep(g); } }));
  63537. }
  63538. })),
  63539. (!gradients || gradients.length === 0) &&
  63540. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__["ButtonLineComponent"], { label: "Use " + this.props.label, onClick: function () {
  63541. _this.props.onCreateRequired();
  63542. _this.forceUpdate();
  63543. } })));
  63544. };
  63545. return ValueGradientGridComponent;
  63546. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63547. /***/ }),
  63548. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent.tsx":
  63549. /*!***********************************************************************************************************!*\
  63550. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent.tsx ***!
  63551. \***********************************************************************************************************/
  63552. /*! exports provided: CommonPostProcessPropertyGridComponent */
  63553. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63554. "use strict";
  63555. __webpack_require__.r(__webpack_exports__);
  63556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonPostProcessPropertyGridComponent", function() { return CommonPostProcessPropertyGridComponent; });
  63557. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63558. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63559. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63560. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  63561. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63562. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  63563. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  63564. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63565. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  63566. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  63567. var CommonPostProcessPropertyGridComponent = /** @class */ (function (_super) {
  63568. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonPostProcessPropertyGridComponent, _super);
  63569. function CommonPostProcessPropertyGridComponent(props) {
  63570. return _super.call(this, props) || this;
  63571. }
  63572. CommonPostProcessPropertyGridComponent.prototype.render = function () {
  63573. var _this = this;
  63574. var postProcess = this.props.postProcess;
  63575. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63576. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  63577. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Class", value: postProcess.getClassName() }),
  63578. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: postProcess, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63579. postProcess.width &&
  63580. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Width", value: postProcess.width.toString() }),
  63581. postProcess.height &&
  63582. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Height", value: postProcess.height.toString() }),
  63583. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__["CheckBoxLineComponent"], { label: "Auto clear", target: postProcess, propertyName: "autoClear", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63584. postProcess.clearColor &&
  63585. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Clear color", target: postProcess, propertyName: "clearColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63586. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__["CheckBoxLineComponent"], { label: "Pixel perfect", target: postProcess, propertyName: "enablePixelPerfectMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63587. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_2__["CheckBoxLineComponent"], { label: "Fullscreen viewport", target: postProcess, propertyName: "forceFullscreenViewport", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63588. 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 }),
  63589. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_7__["ButtonLineComponent"], { label: "Dispose", onClick: function () {
  63590. postProcess.dispose();
  63591. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  63592. } }))));
  63593. };
  63594. return CommonPostProcessPropertyGridComponent;
  63595. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63596. /***/ }),
  63597. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx":
  63598. /*!*****************************************************************************************************************!*\
  63599. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx ***!
  63600. \*****************************************************************************************************************/
  63601. /*! exports provided: CommonRenderingPipelinePropertyGridComponent */
  63602. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63603. "use strict";
  63604. __webpack_require__.r(__webpack_exports__);
  63605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonRenderingPipelinePropertyGridComponent", function() { return CommonRenderingPipelinePropertyGridComponent; });
  63606. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63607. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63608. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63609. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63610. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  63611. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63612. var CommonRenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  63613. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CommonRenderingPipelinePropertyGridComponent, _super);
  63614. function CommonRenderingPipelinePropertyGridComponent(props) {
  63615. return _super.call(this, props) || this;
  63616. }
  63617. CommonRenderingPipelinePropertyGridComponent.prototype.render = function () {
  63618. var renderPipeline = this.props.renderPipeline;
  63619. var renderPipelineAsAny = renderPipeline;
  63620. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63621. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  63622. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Name", value: renderPipeline.name }),
  63623. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Class", value: renderPipeline.getClassName() }),
  63624. renderPipelineAsAny.samples !== undefined &&
  63625. 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 }))));
  63626. };
  63627. return CommonRenderingPipelinePropertyGridComponent;
  63628. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63629. /***/ }),
  63630. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx":
  63631. /*!******************************************************************************************************************!*\
  63632. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/defaultRenderingPipelinePropertyGridComponent.tsx ***!
  63633. \******************************************************************************************************************/
  63634. /*! exports provided: DefaultRenderingPipelinePropertyGridComponent */
  63635. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63636. "use strict";
  63637. __webpack_require__.r(__webpack_exports__);
  63638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultRenderingPipelinePropertyGridComponent", function() { return DefaultRenderingPipelinePropertyGridComponent; });
  63639. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63640. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63641. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63642. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  63643. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63644. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63645. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  63646. /* harmony import */ var _lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector2LineComponent */ "./components/actionTabs/lines/vector2LineComponent.tsx");
  63647. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  63648. /* harmony import */ var babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! babylonjs/Materials/imageProcessingConfiguration */ "babylonjs/Misc/observable");
  63649. /* harmony import */ var babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__);
  63650. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  63651. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  63652. var DefaultRenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  63653. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DefaultRenderingPipelinePropertyGridComponent, _super);
  63654. function DefaultRenderingPipelinePropertyGridComponent(props) {
  63655. return _super.call(this, props) || this;
  63656. }
  63657. DefaultRenderingPipelinePropertyGridComponent.prototype.render = function () {
  63658. var _this = this;
  63659. var renderPipeline = this.props.renderPipeline;
  63660. var camera = renderPipeline.scene.activeCamera;
  63661. var toneMappingOptions = [
  63662. { label: "Standard", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].TONEMAPPING_STANDARD },
  63663. { label: "ACES", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].TONEMAPPING_ACES }
  63664. ];
  63665. var vignetteModeOptions = [
  63666. { label: "Multiply", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].VIGNETTEMODE_MULTIPLY },
  63667. { label: "Opaque", value: babylonjs_Materials_imageProcessingConfiguration__WEBPACK_IMPORTED_MODULE_8__["ImageProcessingConfiguration"].VIGNETTEMODE_OPAQUE }
  63668. ];
  63669. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63670. 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 }),
  63671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "BLOOM" },
  63672. 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 }),
  63673. renderPipeline.bloomEnabled &&
  63674. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63675. 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 }),
  63676. 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 }),
  63677. 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 }),
  63678. 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 }))),
  63679. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "CHROMATIC ABERRATION" },
  63680. 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 }),
  63681. renderPipeline.chromaticAberrationEnabled &&
  63682. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63683. 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 }),
  63684. 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 }),
  63685. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector2LineComponent"], { label: "Center", target: renderPipeline.chromaticAberration, propertyName: "centerPosition", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63686. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector2LineComponent"], { label: "Direction", target: renderPipeline.chromaticAberration, propertyName: "direction", onPropertyChangedObservable: this.props.onPropertyChangedObservable }))),
  63687. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEPTH OF FIELD" },
  63688. 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 }),
  63689. renderPipeline.depthOfFieldEnabled &&
  63690. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63691. 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 }),
  63692. 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 }),
  63693. 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 }),
  63694. 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 }))),
  63695. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "FXAA" },
  63696. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, propertyName: "fxaaEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  63697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLOW LAYER" },
  63698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Enabled", target: renderPipeline, propertyName: "glowLayerEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63699. renderPipeline.glowLayerEnabled &&
  63700. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63701. 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 }),
  63702. 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 }))),
  63703. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "GRAIN" },
  63704. 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 }),
  63705. renderPipeline.grainEnabled &&
  63706. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Animated", target: renderPipeline.grain, propertyName: "animated", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63708. 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 }))),
  63709. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "IMAGE PROCESSING" },
  63710. 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 }),
  63711. renderPipeline.imageProcessing &&
  63712. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Convert clear color to linear", onClick: function () { return renderPipeline.scene.clearColor = renderPipeline.scene.clearColor.toLinearSpace(); } }),
  63714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Convert clear color to gamma", onClick: function () { return renderPipeline.scene.clearColor = renderPipeline.scene.clearColor.toGammaSpace(); } }),
  63715. 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 }),
  63716. 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 }),
  63717. 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 }),
  63718. 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 }); } }),
  63719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Vignette", target: renderPipeline.imageProcessing, propertyName: "vignetteEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63720. 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 }),
  63721. 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 }),
  63722. 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 }),
  63723. 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 }),
  63724. 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 }),
  63725. 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 }),
  63726. 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 }); } }))),
  63727. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHARPEN" },
  63728. 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 }),
  63729. renderPipeline.sharpenEnabled &&
  63730. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63731. 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 }),
  63732. 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 })))));
  63733. };
  63734. return DefaultRenderingPipelinePropertyGridComponent;
  63735. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63736. /***/ }),
  63737. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent.tsx":
  63738. /*!***************************************************************************************************************!*\
  63739. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/lensRenderingPipelinePropertyGridComponent.tsx ***!
  63740. \***************************************************************************************************************/
  63741. /*! exports provided: LensRenderingPipelinePropertyGridComponent */
  63742. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63743. "use strict";
  63744. __webpack_require__.r(__webpack_exports__);
  63745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LensRenderingPipelinePropertyGridComponent", function() { return LensRenderingPipelinePropertyGridComponent; });
  63746. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63747. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63748. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63749. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  63750. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63751. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63752. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  63753. var LensRenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  63754. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LensRenderingPipelinePropertyGridComponent, _super);
  63755. function LensRenderingPipelinePropertyGridComponent(props) {
  63756. return _super.call(this, props) || this;
  63757. }
  63758. LensRenderingPipelinePropertyGridComponent.prototype.render = function () {
  63759. var renderPipeline = this.props.renderPipeline;
  63760. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63761. 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 }),
  63762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "OPTIONS" },
  63763. 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 }),
  63764. 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 }),
  63765. 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 }),
  63766. 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 }),
  63767. 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 }),
  63768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Blur noise", target: renderPipeline, propertyName: "blurNoise", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  63769. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "DEPTH OF FIELD" },
  63770. 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 }),
  63771. 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 }),
  63772. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Pentagon bokeh", target: renderPipeline, propertyName: "pentagonBokeh", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  63773. 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 }),
  63774. 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 }))));
  63775. };
  63776. return LensRenderingPipelinePropertyGridComponent;
  63777. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63778. /***/ }),
  63779. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent.tsx":
  63780. /*!*****************************************************************************************************!*\
  63781. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/postProcessPropertyGridComponent.tsx ***!
  63782. \*****************************************************************************************************/
  63783. /*! exports provided: PostProcessPropertyGridComponent */
  63784. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63785. "use strict";
  63786. __webpack_require__.r(__webpack_exports__);
  63787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostProcessPropertyGridComponent", function() { return PostProcessPropertyGridComponent; });
  63788. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63789. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63790. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63791. /* harmony import */ var _commonPostProcessPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonPostProcessPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonPostProcessPropertyGridComponent.tsx");
  63792. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63793. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  63794. var PostProcessPropertyGridComponent = /** @class */ (function (_super) {
  63795. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PostProcessPropertyGridComponent, _super);
  63796. function PostProcessPropertyGridComponent(props) {
  63797. return _super.call(this, props) || this;
  63798. }
  63799. PostProcessPropertyGridComponent.prototype.edit = function () {
  63800. var postProcess = this.props.postProcess;
  63801. postProcess.nodeMaterialSource.edit();
  63802. };
  63803. PostProcessPropertyGridComponent.prototype.render = function () {
  63804. var _this = this;
  63805. var postProcess = this.props.postProcess;
  63806. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63807. 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 }),
  63808. postProcess.nodeMaterialSource &&
  63809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CONFIGURATION" },
  63810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Node Material Editor", onClick: function () { return _this.edit(); } }))));
  63811. };
  63812. return PostProcessPropertyGridComponent;
  63813. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63814. /***/ }),
  63815. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent.tsx":
  63816. /*!***********************************************************************************************************!*\
  63817. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/renderingPipelinePropertyGridComponent.tsx ***!
  63818. \***********************************************************************************************************/
  63819. /*! exports provided: RenderingPipelinePropertyGridComponent */
  63820. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63821. "use strict";
  63822. __webpack_require__.r(__webpack_exports__);
  63823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderingPipelinePropertyGridComponent", function() { return RenderingPipelinePropertyGridComponent; });
  63824. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63825. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63826. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63827. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  63828. var RenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  63829. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RenderingPipelinePropertyGridComponent, _super);
  63830. function RenderingPipelinePropertyGridComponent(props) {
  63831. return _super.call(this, props) || this;
  63832. }
  63833. RenderingPipelinePropertyGridComponent.prototype.render = function () {
  63834. var renderPipeline = this.props.renderPipeline;
  63835. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63836. 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 })));
  63837. };
  63838. return RenderingPipelinePropertyGridComponent;
  63839. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63840. /***/ }),
  63841. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent.tsx":
  63842. /*!****************************************************************************************************************!*\
  63843. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/ssao2RenderingPipelinePropertyGridComponent.tsx ***!
  63844. \****************************************************************************************************************/
  63845. /*! exports provided: SSAO2RenderingPipelinePropertyGridComponent */
  63846. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63847. "use strict";
  63848. __webpack_require__.r(__webpack_exports__);
  63849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SSAO2RenderingPipelinePropertyGridComponent", function() { return SSAO2RenderingPipelinePropertyGridComponent; });
  63850. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63851. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63852. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63853. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  63854. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63855. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63856. var SSAO2RenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  63857. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SSAO2RenderingPipelinePropertyGridComponent, _super);
  63858. function SSAO2RenderingPipelinePropertyGridComponent(props) {
  63859. return _super.call(this, props) || this;
  63860. }
  63861. SSAO2RenderingPipelinePropertyGridComponent.prototype.render = function () {
  63862. var renderPipeline = this.props.renderPipeline;
  63863. var camera = renderPipeline.scene.activeCamera;
  63864. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63865. 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 }),
  63866. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SSAO" },
  63867. 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 }),
  63868. 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 }),
  63869. 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 }),
  63870. 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 }),
  63871. 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 }))));
  63872. };
  63873. return SSAO2RenderingPipelinePropertyGridComponent;
  63874. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63875. /***/ }),
  63876. /***/ "./components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent.tsx":
  63877. /*!***************************************************************************************************************!*\
  63878. !*** ./components/actionTabs/tabs/propertyGrids/postProcesses/ssaoRenderingPipelinePropertyGridComponent.tsx ***!
  63879. \***************************************************************************************************************/
  63880. /*! exports provided: SSAORenderingPipelinePropertyGridComponent */
  63881. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63882. "use strict";
  63883. __webpack_require__.r(__webpack_exports__);
  63884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SSAORenderingPipelinePropertyGridComponent", function() { return SSAORenderingPipelinePropertyGridComponent; });
  63885. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63886. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63887. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63888. /* harmony import */ var _commonRenderingPipelinePropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commonRenderingPipelinePropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/postProcesses/commonRenderingPipelinePropertyGridComponent.tsx");
  63889. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  63890. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  63891. var SSAORenderingPipelinePropertyGridComponent = /** @class */ (function (_super) {
  63892. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SSAORenderingPipelinePropertyGridComponent, _super);
  63893. function SSAORenderingPipelinePropertyGridComponent(props) {
  63894. return _super.call(this, props) || this;
  63895. }
  63896. SSAORenderingPipelinePropertyGridComponent.prototype.render = function () {
  63897. var renderPipeline = this.props.renderPipeline;
  63898. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63899. 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 }),
  63900. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SSAO" },
  63901. 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 }),
  63902. 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 }),
  63903. 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 }),
  63904. 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 }),
  63905. 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 }))));
  63906. };
  63907. return SSAORenderingPipelinePropertyGridComponent;
  63908. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63909. /***/ }),
  63910. /***/ "./components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent.tsx":
  63911. /*!**************************************************************************************!*\
  63912. !*** ./components/actionTabs/tabs/propertyGrids/renderGridPropertyGridComponent.tsx ***!
  63913. \**************************************************************************************/
  63914. /*! exports provided: RenderGridPropertyGridComponent */
  63915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63916. "use strict";
  63917. __webpack_require__.r(__webpack_exports__);
  63918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderGridPropertyGridComponent", function() { return RenderGridPropertyGridComponent; });
  63919. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63920. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63921. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63922. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  63923. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  63924. /* harmony import */ var babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs-materials/grid/gridMaterial */ "babylonjs-materials/grid/gridMaterial");
  63925. /* harmony import */ var babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3__);
  63926. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  63927. var RenderGridPropertyGridComponent = /** @class */ (function (_super) {
  63928. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RenderGridPropertyGridComponent, _super);
  63929. function RenderGridPropertyGridComponent(props) {
  63930. var _this = _super.call(this, props) || this;
  63931. _this.state = { isEnabled: false };
  63932. return _this;
  63933. }
  63934. RenderGridPropertyGridComponent.prototype.componentDidMount = function () {
  63935. var scene = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["UtilityLayerRenderer"].DefaultKeepDepthUtilityLayer.utilityLayerScene;
  63936. for (var _i = 0, _a = scene.meshes; _i < _a.length; _i++) {
  63937. var mesh = _a[_i];
  63938. if (mesh.reservedDataStore && mesh.reservedDataStore.isInspectorGrid) {
  63939. this._gridMesh = mesh;
  63940. this.setState({ isEnabled: true });
  63941. return;
  63942. }
  63943. }
  63944. };
  63945. RenderGridPropertyGridComponent.prototype.addOrRemoveGrid = function () {
  63946. var scene = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["UtilityLayerRenderer"].DefaultKeepDepthUtilityLayer.utilityLayerScene;
  63947. if (!this._gridMesh) {
  63948. var extend = this.props.scene.getWorldExtends();
  63949. var width = (extend.max.x - extend.min.x) * 5.0;
  63950. var depth = (extend.max.z - extend.min.z) * 5.0;
  63951. this._gridMesh = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Mesh"].CreateGround("grid", 1.0, 1.0, 1, scene);
  63952. if (!this._gridMesh.reservedDataStore) {
  63953. this._gridMesh.reservedDataStore = {};
  63954. }
  63955. this._gridMesh.scaling.x = Math.max(width, depth);
  63956. this._gridMesh.scaling.z = this._gridMesh.scaling.x;
  63957. this._gridMesh.reservedDataStore.isInspectorGrid = true;
  63958. this._gridMesh.isPickable = false;
  63959. var groundMaterial = new babylonjs_materials_grid_gridMaterial__WEBPACK_IMPORTED_MODULE_3__["GridMaterial"]("GridMaterial", scene);
  63960. groundMaterial.majorUnitFrequency = 10;
  63961. groundMaterial.minorUnitVisibility = 0.3;
  63962. groundMaterial.gridRatio = 0.01;
  63963. groundMaterial.backFaceCulling = false;
  63964. groundMaterial.mainColor = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"](1, 1, 1);
  63965. groundMaterial.lineColor = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"](1.0, 1.0, 1.0);
  63966. groundMaterial.opacity = 0.8;
  63967. groundMaterial.zOffset = 1.0;
  63968. groundMaterial.opacityTexture = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Texture"]("https://assets.babylonjs.com/environments/backgroundGround.png", scene);
  63969. this._gridMesh.material = groundMaterial;
  63970. this.setState({ isEnabled: true });
  63971. return;
  63972. }
  63973. this.setState({ isEnabled: !this.state.isEnabled });
  63974. this._gridMesh.dispose(true, true);
  63975. this._gridMesh = null;
  63976. };
  63977. RenderGridPropertyGridComponent.prototype.render = function () {
  63978. var _this = this;
  63979. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63980. 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(); } })));
  63981. };
  63982. return RenderGridPropertyGridComponent;
  63983. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63984. /***/ }),
  63985. /***/ "./components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent.tsx":
  63986. /*!*********************************************************************************!*\
  63987. !*** ./components/actionTabs/tabs/propertyGrids/scenePropertyGridComponent.tsx ***!
  63988. \*********************************************************************************/
  63989. /*! exports provided: ScenePropertyGridComponent */
  63990. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63991. "use strict";
  63992. __webpack_require__.r(__webpack_exports__);
  63993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScenePropertyGridComponent", function() { return ScenePropertyGridComponent; });
  63994. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63995. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63996. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63997. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  63998. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  63999. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64000. /* harmony import */ var _lines_radioLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/radioLineComponent */ "./components/actionTabs/lines/radioLineComponent.tsx");
  64001. /* harmony import */ var _lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/color3LineComponent */ "./components/actionTabs/lines/color3LineComponent.tsx");
  64002. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  64003. /* harmony import */ var _fogPropertyGridComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fogPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent.tsx");
  64004. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  64005. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  64006. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  64007. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  64008. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  64009. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  64010. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  64011. /* harmony import */ var _animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./animations/animationPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx");
  64012. var ScenePropertyGridComponent = /** @class */ (function (_super) {
  64013. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScenePropertyGridComponent, _super);
  64014. function ScenePropertyGridComponent(props) {
  64015. var _this = _super.call(this, props) || this;
  64016. _this._renderingModeGroupObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  64017. return _this;
  64018. }
  64019. ScenePropertyGridComponent.prototype.setRenderingModes = function (point, wireframe) {
  64020. var scene = this.props.scene;
  64021. scene.forcePointsCloud = point;
  64022. scene.forceWireframe = wireframe;
  64023. };
  64024. ScenePropertyGridComponent.prototype.switchIBL = function () {
  64025. var scene = this.props.scene;
  64026. if (scene.environmentTexture) {
  64027. this._storedEnvironmentTexture = scene.environmentTexture;
  64028. scene.environmentTexture = null;
  64029. }
  64030. else {
  64031. scene.environmentTexture = this._storedEnvironmentTexture;
  64032. this._storedEnvironmentTexture = null;
  64033. }
  64034. };
  64035. ScenePropertyGridComponent.prototype.updateEnvironmentTexture = function (file) {
  64036. var isFileDDS = file.name.toLowerCase().indexOf(".dds") > 0;
  64037. var isFileEnv = file.name.toLowerCase().indexOf(".env") > 0;
  64038. if (!isFileDDS && !isFileEnv) {
  64039. console.error("Unable to update environment texture. Please select a dds or env file.");
  64040. return;
  64041. }
  64042. var scene = this.props.scene;
  64043. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  64044. var blob = new Blob([data], { type: "octet/stream" });
  64045. var url = URL.createObjectURL(blob);
  64046. if (isFileDDS) {
  64047. scene.environmentTexture = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["CubeTexture"].CreateFromPrefilteredData(url, scene, ".dds");
  64048. }
  64049. else {
  64050. scene.environmentTexture = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["CubeTexture"](url, scene, undefined, undefined, undefined, function () {
  64051. }, function (message) {
  64052. if (message) {
  64053. console.error(message);
  64054. }
  64055. }, undefined, undefined, ".env");
  64056. }
  64057. }, undefined, true);
  64058. };
  64059. ScenePropertyGridComponent.prototype.updateGravity = function (newValue) {
  64060. var scene = this.props.scene;
  64061. var physicsEngine = scene.getPhysicsEngine();
  64062. physicsEngine.setGravity(newValue);
  64063. };
  64064. ScenePropertyGridComponent.prototype.updateTimeStep = function (newValue) {
  64065. var scene = this.props.scene;
  64066. var physicsEngine = scene.getPhysicsEngine();
  64067. physicsEngine.setTimeStep(newValue);
  64068. };
  64069. ScenePropertyGridComponent.prototype.normalizeScene = function () {
  64070. var scene = this.props.scene;
  64071. scene.meshes.forEach(function (mesh) {
  64072. mesh.normalizeToUnitCube(true);
  64073. mesh.computeWorldMatrix(true);
  64074. });
  64075. };
  64076. ScenePropertyGridComponent.prototype.render = function () {
  64077. var _this = this;
  64078. var scene = this.props.scene;
  64079. var physicsEngine = scene.getPhysicsEngine();
  64080. var dummy = null;
  64081. if (physicsEngine) {
  64082. dummy = {
  64083. gravity: physicsEngine.gravity,
  64084. timeStep: physicsEngine.getTimeStep()
  64085. };
  64086. }
  64087. var imageProcessing = scene.imageProcessingConfiguration;
  64088. var toneMappingOptions = [
  64089. { label: "Standard", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].TONEMAPPING_STANDARD },
  64090. { label: "ACES", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].TONEMAPPING_ACES }
  64091. ];
  64092. var vignetteModeOptions = [
  64093. { label: "Multiply", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].VIGNETTEMODE_MULTIPLY },
  64094. { label: "Opaque", value: babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["ImageProcessingConfiguration"].VIGNETTEMODE_OPAQUE }
  64095. ];
  64096. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  64097. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "RENDERING MODE" },
  64098. 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); } }),
  64099. 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); } }),
  64100. 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); } })),
  64101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "ENVIRONMENT" },
  64102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Clear color", target: scene, propertyName: "clearColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64103. 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 }),
  64104. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Ambient color", target: scene, propertyName: "ambientColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64105. 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(); } }),
  64106. scene.environmentTexture &&
  64107. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_9__["TextureLinkLineComponent"], { label: "Env. texture", texture: scene.environmentTexture, onSelectionChangedObservable: this.props.onSelectionChangedObservable }),
  64108. 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" }),
  64109. 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 }),
  64110. 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 })),
  64111. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_animations_animationPropertyGridComponent__WEBPACK_IMPORTED_MODULE_15__["AnimationGridComponent"], { globalState: this.props.globalState, animatable: scene, scene: scene, lockObject: this.props.lockObject }),
  64112. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "MATERIAL IMAGE PROCESSING" },
  64113. 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 }),
  64114. 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 }),
  64115. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Tone mapping", target: imageProcessing, propertyName: "toneMappingEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64116. 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 }); } }),
  64117. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Vignette", target: imageProcessing, propertyName: "vignetteEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64118. 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 }),
  64119. 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 }),
  64120. 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 }),
  64121. 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 }),
  64122. 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 }),
  64123. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_5__["Color3LineComponent"], { label: "Vignette color", target: imageProcessing, propertyName: "vignetteColor", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64124. 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 }); } })),
  64125. dummy !== null &&
  64126. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "PHYSICS", closed: true },
  64127. 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 }),
  64128. 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 })),
  64129. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "COLLISIONS", closed: true },
  64130. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_10__["Vector3LineComponent"], { label: "Gravity", target: scene, propertyName: "gravity", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  64131. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SHADOWS", closed: true },
  64132. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__["ButtonLineComponent"], { label: "Normalize scene", onClick: function () { return _this.normalizeScene(); } }))));
  64133. };
  64134. return ScenePropertyGridComponent;
  64135. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64136. /***/ }),
  64137. /***/ "./components/actionTabs/tabs/propertyGrids/sprites/spriteManagerPropertyGridComponent.tsx":
  64138. /*!*************************************************************************************************!*\
  64139. !*** ./components/actionTabs/tabs/propertyGrids/sprites/spriteManagerPropertyGridComponent.tsx ***!
  64140. \*************************************************************************************************/
  64141. /*! exports provided: SpriteManagerPropertyGridComponent */
  64142. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64143. "use strict";
  64144. __webpack_require__.r(__webpack_exports__);
  64145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpriteManagerPropertyGridComponent", function() { return SpriteManagerPropertyGridComponent; });
  64146. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64147. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64148. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64149. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64150. /* harmony import */ var babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Sprites/spriteManager */ "babylonjs/Misc/observable");
  64151. /* harmony import */ var babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__);
  64152. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  64153. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  64154. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  64155. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  64156. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  64157. /* harmony import */ var _lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/textureLinkLineComponent */ "./components/actionTabs/lines/textureLinkLineComponent.tsx");
  64158. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  64159. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  64160. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  64161. var SpriteManagerPropertyGridComponent = /** @class */ (function (_super) {
  64162. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SpriteManagerPropertyGridComponent, _super);
  64163. function SpriteManagerPropertyGridComponent(props) {
  64164. var _this = _super.call(this, props) || this;
  64165. _this._snippetUrl = "https://snippet.babylonjs.com";
  64166. return _this;
  64167. }
  64168. SpriteManagerPropertyGridComponent.prototype.addNewSprite = function () {
  64169. var _a;
  64170. var spriteManager = this.props.spriteManager;
  64171. var newSprite = new babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Sprite"]("new sprite", spriteManager);
  64172. (_a = this.props.onSelectionChangedObservable) === null || _a === void 0 ? void 0 : _a.notifyObservers(newSprite);
  64173. };
  64174. SpriteManagerPropertyGridComponent.prototype.disposeManager = function () {
  64175. var _a;
  64176. var spriteManager = this.props.spriteManager;
  64177. spriteManager.dispose();
  64178. (_a = this.props.onSelectionChangedObservable) === null || _a === void 0 ? void 0 : _a.notifyObservers(null);
  64179. };
  64180. SpriteManagerPropertyGridComponent.prototype.saveToFile = function () {
  64181. var spriteManager = this.props.spriteManager;
  64182. var content = JSON.stringify(spriteManager.serialize(true));
  64183. babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Tools"].Download(new Blob([content]), "spriteManager.json");
  64184. };
  64185. SpriteManagerPropertyGridComponent.prototype.loadFromFile = function (file) {
  64186. var _this = this;
  64187. var spriteManager = this.props.spriteManager;
  64188. var scene = spriteManager.scene;
  64189. babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  64190. var decoder = new TextDecoder("utf-8");
  64191. var jsonObject = JSON.parse(decoder.decode(data));
  64192. spriteManager.dispose();
  64193. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  64194. var newManager = babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["SpriteManager"].Parse(jsonObject, scene, "");
  64195. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newManager);
  64196. }, undefined, true);
  64197. };
  64198. SpriteManagerPropertyGridComponent.prototype.loadFromSnippet = function () {
  64199. var _this = this;
  64200. var spriteManager = this.props.spriteManager;
  64201. var scene = spriteManager.scene;
  64202. var snippedID = window.prompt("Please enter the snippet ID to use");
  64203. if (!snippedID) {
  64204. return;
  64205. }
  64206. spriteManager.dispose();
  64207. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  64208. babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["SpriteManager"].CreateFromSnippetAsync(snippedID, scene).then(function (newManager) {
  64209. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newManager);
  64210. }).catch(function (err) {
  64211. alert("Unable to load your sprite manager: " + err);
  64212. });
  64213. };
  64214. SpriteManagerPropertyGridComponent.prototype.saveToSnippet = function () {
  64215. var _this = this;
  64216. var spriteManager = this.props.spriteManager;
  64217. var content = JSON.stringify(spriteManager.serialize(true));
  64218. var xmlHttp = new XMLHttpRequest();
  64219. xmlHttp.onreadystatechange = function () {
  64220. if (xmlHttp.readyState == 4) {
  64221. if (xmlHttp.status == 200) {
  64222. var snippet = JSON.parse(xmlHttp.responseText);
  64223. var oldId = spriteManager.snippetId || "_BLANK";
  64224. spriteManager.snippetId = snippet.id;
  64225. if (snippet.version && snippet.version != "0") {
  64226. spriteManager.snippetId += "#" + snippet.version;
  64227. }
  64228. _this.forceUpdate();
  64229. if (navigator.clipboard) {
  64230. navigator.clipboard.writeText(spriteManager.snippetId);
  64231. }
  64232. var windowAsAny = window;
  64233. if (windowAsAny.Playground && oldId) {
  64234. windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
  64235. regex: new RegExp("SpriteManager.CreateFromSnippetAsync\\(\"" + oldId, "g"),
  64236. replace: "SpriteManager.CreateFromSnippetAsync(\"" + spriteManager.snippetId
  64237. });
  64238. }
  64239. alert("Sprite manager saved with ID: " + spriteManager.snippetId + " (please note that the id was also saved to your clipboard)");
  64240. }
  64241. else {
  64242. alert("Unable to save your sprite manager");
  64243. }
  64244. }
  64245. };
  64246. xmlHttp.open("POST", this._snippetUrl + (spriteManager.snippetId ? "/" + spriteManager.snippetId : ""), true);
  64247. xmlHttp.setRequestHeader("Content-Type", "application/json");
  64248. var dataToSend = {
  64249. payload: JSON.stringify({
  64250. spriteManager: content
  64251. }),
  64252. name: "",
  64253. description: "",
  64254. tags: ""
  64255. };
  64256. xmlHttp.send(JSON.stringify(dataToSend));
  64257. };
  64258. SpriteManagerPropertyGridComponent.prototype.render = function () {
  64259. var _this = this;
  64260. var spriteManager = this.props.spriteManager;
  64261. var alphaModeOptions = [
  64262. { label: "Combine", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_COMBINE },
  64263. { label: "One one", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_ONEONE },
  64264. { label: "Add", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_ADD },
  64265. { label: "Subtract", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_SUBTRACT },
  64266. { label: "Multiply", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_MULTIPLY },
  64267. { label: "Maximized", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_MAXIMIZED },
  64268. { label: "Pre-multiplied", value: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["Constants"].ALPHA_PREMULTIPLIED },
  64269. ];
  64270. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  64271. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  64272. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: spriteManager, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64273. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Unique ID", value: spriteManager.uniqueId.toString() }),
  64274. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Capacity", value: spriteManager.capacity.toString() }),
  64275. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textureLinkLineComponent__WEBPACK_IMPORTED_MODULE_9__["TextureLinkLineComponent"], { label: "Texture", texture: spriteManager.texture, onSelectionChangedObservable: this.props.onSelectionChangedObservable }),
  64276. spriteManager.sprites.length < spriteManager.capacity &&
  64277. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Add new sprite", onClick: function () { return _this.addNewSprite(); } }),
  64278. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Dispose", onClick: function () { return _this.disposeManager(); } })),
  64279. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "FILE" },
  64280. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_11__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.loadFromFile(file); }, accept: ".json" }),
  64281. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Save", onClick: function () { return _this.saveToFile(); } })),
  64282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SNIPPET" },
  64283. spriteManager.snippetId &&
  64284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Snippet ID", value: spriteManager.snippetId }),
  64285. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Load from snippet server", onClick: function () { return _this.loadFromSnippet(); } }),
  64286. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Save to snippet server", onClick: function () { return _this.saveToSnippet(); } })),
  64287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "PROPERTIES" },
  64288. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Pickable", target: spriteManager, propertyName: "isPickable", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64289. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Fog enabled", target: spriteManager, propertyName: "fogEnabled", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64290. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "No depth write", target: spriteManager, propertyName: "disableDepthWrite", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64291. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__["SliderLineComponent"], { label: "Rendering group ID", decimalCount: 0, target: spriteManager, propertyName: "renderingGroupId", minimum: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["RenderingManager"].MIN_RENDERINGGROUPS, maximum: babylonjs_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__["RenderingManager"].MAX_RENDERINGGROUPS - 1, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64292. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_12__["OptionsLineComponent"], { label: "Alpha mode", options: alphaModeOptions, target: spriteManager, propertyName: "blendMode", onPropertyChangedObservable: this.props.onPropertyChangedObservable, onSelect: function (value) { return _this.setState({ blendMode: value }); } })),
  64293. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "CELLS" },
  64294. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { label: "Cell width", isInteger: true, target: spriteManager, propertyName: "cellWidth", min: 0, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64295. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_7__["FloatLineComponent"], { label: "Cell height", isInteger: true, target: spriteManager, propertyName: "cellHeight", min: 0, onPropertyChangedObservable: this.props.onPropertyChangedObservable }))));
  64296. };
  64297. return SpriteManagerPropertyGridComponent;
  64298. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64299. /***/ }),
  64300. /***/ "./components/actionTabs/tabs/propertyGrids/sprites/spritePropertyGridComponent.tsx":
  64301. /*!******************************************************************************************!*\
  64302. !*** ./components/actionTabs/tabs/propertyGrids/sprites/spritePropertyGridComponent.tsx ***!
  64303. \******************************************************************************************/
  64304. /*! exports provided: SpritePropertyGridComponent */
  64305. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64306. "use strict";
  64307. __webpack_require__.r(__webpack_exports__);
  64308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpritePropertyGridComponent", function() { return SpritePropertyGridComponent; });
  64309. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64310. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64311. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64312. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64313. /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./components/actionTabs/lines/textInputLineComponent.tsx");
  64314. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  64315. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  64316. /* harmony import */ var _lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/vector3LineComponent */ "./components/actionTabs/lines/vector3LineComponent.tsx");
  64317. /* harmony import */ var _lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../lines/color4LineComponent */ "./components/actionTabs/lines/color4LineComponent.tsx");
  64318. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  64319. /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./components/actionTabs/lines/sliderLineComponent.tsx");
  64320. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  64321. /* harmony import */ var _textureHelper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../textureHelper */ "./textureHelper.ts");
  64322. var SpritePropertyGridComponent = /** @class */ (function (_super) {
  64323. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SpritePropertyGridComponent, _super);
  64324. function SpritePropertyGridComponent(props) {
  64325. var _this = _super.call(this, props) || this;
  64326. _this.imageData = null;
  64327. _this.cachedCellIndex = -1;
  64328. _this.canvasRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  64329. return _this;
  64330. }
  64331. SpritePropertyGridComponent.prototype.onManagerLink = function () {
  64332. if (!this.props.onSelectionChangedObservable) {
  64333. return;
  64334. }
  64335. var sprite = this.props.sprite;
  64336. this.props.onSelectionChangedObservable.notifyObservers(sprite.manager);
  64337. };
  64338. SpritePropertyGridComponent.prototype.switchPlayStopState = function () {
  64339. var sprite = this.props.sprite;
  64340. if (sprite.animationStarted) {
  64341. sprite.stopAnimation();
  64342. }
  64343. else {
  64344. sprite.playAnimation(sprite.fromIndex, sprite.toIndex, sprite.loopAnimation, sprite.delay, function () { });
  64345. }
  64346. this.forceUpdate();
  64347. };
  64348. SpritePropertyGridComponent.prototype.disposeSprite = function () {
  64349. var _a;
  64350. var sprite = this.props.sprite;
  64351. sprite.dispose();
  64352. (_a = this.props.onSelectionChangedObservable) === null || _a === void 0 ? void 0 : _a.notifyObservers(null);
  64353. };
  64354. SpritePropertyGridComponent.prototype.componentDidMount = function () {
  64355. this.updatePreview();
  64356. };
  64357. SpritePropertyGridComponent.prototype.componentDidUpdate = function () {
  64358. this.updatePreview();
  64359. };
  64360. SpritePropertyGridComponent.prototype.shouldComponentUpdate = function (nextProps) {
  64361. if (nextProps.sprite !== this.props.sprite) {
  64362. this.imageData = null;
  64363. }
  64364. return true;
  64365. };
  64366. SpritePropertyGridComponent.prototype.updatePreview = function () {
  64367. var _this = this;
  64368. var sprite = this.props.sprite;
  64369. var manager = sprite.manager;
  64370. var texture = manager.texture;
  64371. var size = texture.getSize();
  64372. if (!this.imageData) {
  64373. _textureHelper__WEBPACK_IMPORTED_MODULE_11__["TextureHelper"].GetTextureDataAsync(texture, size.width, size.height, 0, { R: true, G: true, B: true, A: true }, this.props.globalState).then(function (data) {
  64374. _this.imageData = data;
  64375. _this.forceUpdate();
  64376. });
  64377. return;
  64378. }
  64379. if (this.cachedCellIndex === sprite.cellIndex) {
  64380. return;
  64381. }
  64382. this.cachedCellIndex = sprite.cellIndex;
  64383. var previewCanvas = this.canvasRef.current;
  64384. previewCanvas.width = manager.cellWidth;
  64385. previewCanvas.height = manager.cellHeight;
  64386. var context = previewCanvas.getContext('2d');
  64387. if (context) {
  64388. // Copy the pixels to the preview canvas
  64389. var imageData = context.createImageData(manager.cellWidth, manager.cellHeight);
  64390. var castData = imageData.data;
  64391. var rowLength = size.width / manager.cellWidth | 0;
  64392. var offsetY = sprite.cellIndex / rowLength | 0;
  64393. var offsetX = sprite.cellIndex - offsetY * rowLength;
  64394. var offset = (offsetX + offsetY * size.width) * 4 * manager.cellWidth;
  64395. for (var x = 0; x < manager.cellWidth; x++) {
  64396. for (var y = 0; y < manager.cellHeight; y++) {
  64397. var targetCoord = (x + y * manager.cellWidth) * 4;
  64398. var sourceCoord = (x + y * size.width) * 4;
  64399. castData[targetCoord] = this.imageData[offset + sourceCoord];
  64400. castData[targetCoord + 1] = this.imageData[offset + sourceCoord + 1];
  64401. castData[targetCoord + 2] = this.imageData[offset + sourceCoord + 2];
  64402. castData[targetCoord + 3] = this.imageData[offset + sourceCoord + 3];
  64403. }
  64404. }
  64405. context.putImageData(imageData, 0, 0);
  64406. }
  64407. };
  64408. SpritePropertyGridComponent.prototype.render = function () {
  64409. var _this = this;
  64410. var sprite = this.props.sprite;
  64411. var manager = sprite.manager;
  64412. var textureSize = manager.texture.getSize();
  64413. var maxCellCount = 0;
  64414. if (!textureSize.width || !textureSize.height) {
  64415. maxCellCount = Math.max(sprite.fromIndex, sprite.toIndex);
  64416. }
  64417. else {
  64418. maxCellCount = (textureSize.width / manager.cellWidth) * (textureSize.height / manager.cellHeight);
  64419. }
  64420. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  64421. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GENERAL" },
  64422. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextInputLineComponent"], { lockObject: this.props.lockObject, label: "Name", target: sprite, propertyName: "name", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64423. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Unique ID", value: sprite.uniqueId.toString() }),
  64424. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Link to manager", value: manager.name, onLink: function () { return _this.onManagerLink(); } }),
  64425. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Visible", target: sprite, propertyName: "isVisible", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64426. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Dispose", onClick: function () { return _this.disposeSprite(); } })),
  64427. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "PROPERTIES" },
  64428. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_vector3LineComponent__WEBPACK_IMPORTED_MODULE_6__["Vector3LineComponent"], { label: "Position", target: sprite, propertyName: "position", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64429. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Pickable", target: sprite, propertyName: "isPickable", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64430. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Use alpha for picking", target: sprite, propertyName: "useAlphaForPicking", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64431. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_color4LineComponent__WEBPACK_IMPORTED_MODULE_7__["Color4LineComponent"], { label: "Color", target: sprite, propertyName: "color", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64432. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_9__["SliderLineComponent"], { useEuler: this.props.globalState.onlyUseEulers, label: "Angle", target: sprite, propertyName: "angle", minimum: 0, maximum: 2 * Math.PI, step: 0.01, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  64433. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "CELL" },
  64434. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: this.canvasRef, className: "preview", style: {
  64435. margin: "auto",
  64436. marginTop: "4px",
  64437. marginBottom: "4px",
  64438. display: "grid",
  64439. height: "108px"
  64440. } }),
  64441. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_9__["SliderLineComponent"], { label: "Cell index", decimalCount: 0, target: sprite, propertyName: "cellIndex", minimum: 0, maximum: maxCellCount, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable, onChange: function () { return _this.forceUpdate(); } }),
  64442. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Invert U axis", target: sprite, propertyName: "invertU", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64443. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Invert V axis", target: sprite, propertyName: "invertV", onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  64444. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCALE" },
  64445. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Width", target: sprite, propertyName: "width", min: 0, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64446. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Height", target: sprite, propertyName: "height", min: 0, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
  64447. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "ANIMATION" },
  64448. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_9__["SliderLineComponent"], { label: "Start cell", decimalCount: 0, target: sprite, propertyName: "fromIndex", minimum: 0, maximum: maxCellCount, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64449. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_9__["SliderLineComponent"], { label: "End cell", decimalCount: 0, target: sprite, propertyName: "toIndex", minimum: 0, maximum: maxCellCount, step: 1, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64450. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: "Loop", target: sprite, propertyName: "loopAnimation", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64451. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Delay", target: sprite, propertyName: "delay", digits: 0, min: 0, isInteger: true, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  64452. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: sprite.animationStarted ? "Stop" : "Start", onClick: function () { return _this.switchPlayStopState(); } }))));
  64453. };
  64454. return SpritePropertyGridComponent;
  64455. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64456. /***/ }),
  64457. /***/ "./components/actionTabs/tabs/propertyGrids/variantsPropertyGridComponent.tsx":
  64458. /*!************************************************************************************!*\
  64459. !*** ./components/actionTabs/tabs/propertyGrids/variantsPropertyGridComponent.tsx ***!
  64460. \************************************************************************************/
  64461. /*! exports provided: VariantsPropertyGridComponent */
  64462. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64463. "use strict";
  64464. __webpack_require__.r(__webpack_exports__);
  64465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VariantsPropertyGridComponent", function() { return VariantsPropertyGridComponent; });
  64466. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64467. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64468. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64469. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64470. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  64471. var VariantsPropertyGridComponent = /** @class */ (function (_super) {
  64472. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(VariantsPropertyGridComponent, _super);
  64473. function VariantsPropertyGridComponent(props) {
  64474. return _super.call(this, props) || this;
  64475. }
  64476. VariantsPropertyGridComponent.prototype._getVariantsExtension = function () {
  64477. var _a;
  64478. return (_a = this.props.globalState) === null || _a === void 0 ? void 0 : _a.glTFLoaderExtensions["KHR_materials_variants"];
  64479. };
  64480. VariantsPropertyGridComponent.prototype.render = function () {
  64481. var _this = this;
  64482. var extension = this._getVariantsExtension();
  64483. if (!extension) {
  64484. return null;
  64485. }
  64486. var variants = extension.getAvailableVariants(this.props.host);
  64487. if (!variants || variants.length === 0) {
  64488. return null;
  64489. }
  64490. var options = variants.sort().map(function (v, i) {
  64491. return { label: v, value: i + 1 };
  64492. });
  64493. options.splice(0, 0, { label: "Original", value: 0 });
  64494. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  64495. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "VARIANTS" },
  64496. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Active variant", options: options, noDirectUpdate: true, target: this.props.host, propertyName: "", onSelect: function (value) {
  64497. if (value === 0) {
  64498. extension.reset(_this.props.host);
  64499. }
  64500. else {
  64501. extension.selectVariant(_this.props.host, variants[value - 1]);
  64502. }
  64503. _this.forceUpdate();
  64504. }, extractValue: function () {
  64505. var lastPickedVariant = extension.getLastSelectedVariant(_this.props.host) || 0;
  64506. var index = 0;
  64507. if (lastPickedVariant && Object.prototype.toString.call(lastPickedVariant) === '[object String]') {
  64508. index = variants.indexOf(lastPickedVariant);
  64509. if (index > -1) {
  64510. index = index + 1;
  64511. }
  64512. }
  64513. return index;
  64514. } }))));
  64515. };
  64516. return VariantsPropertyGridComponent;
  64517. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64518. /***/ }),
  64519. /***/ "./components/actionTabs/tabs/settingsTabComponent.tsx":
  64520. /*!*************************************************************!*\
  64521. !*** ./components/actionTabs/tabs/settingsTabComponent.tsx ***!
  64522. \*************************************************************/
  64523. /*! exports provided: SettingsTabComponent */
  64524. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64525. "use strict";
  64526. __webpack_require__.r(__webpack_exports__);
  64527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SettingsTabComponent", function() { return SettingsTabComponent; });
  64528. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64529. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64530. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64531. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  64532. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  64533. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64534. var SettingsTabComponent = /** @class */ (function (_super) {
  64535. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SettingsTabComponent, _super);
  64536. function SettingsTabComponent(props) {
  64537. return _super.call(this, props) || this;
  64538. }
  64539. SettingsTabComponent.prototype.render = function () {
  64540. var state = this.props.globalState;
  64541. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  64542. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "UI" },
  64543. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Only display Euler values", target: state, propertyName: "onlyUseEulers" }),
  64544. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Ignore backfaces when picking", target: state, propertyName: "ignoreBackfacesForPicking" }))));
  64545. };
  64546. return SettingsTabComponent;
  64547. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  64548. /***/ }),
  64549. /***/ "./components/actionTabs/tabs/statisticsTabComponent.tsx":
  64550. /*!***************************************************************!*\
  64551. !*** ./components/actionTabs/tabs/statisticsTabComponent.tsx ***!
  64552. \***************************************************************/
  64553. /*! exports provided: StatisticsTabComponent */
  64554. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64555. "use strict";
  64556. __webpack_require__.r(__webpack_exports__);
  64557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticsTabComponent", function() { return StatisticsTabComponent; });
  64558. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64559. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64560. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64561. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  64562. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  64563. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64564. /* harmony import */ var babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Instrumentation/engineInstrumentation */ "babylonjs/Misc/observable");
  64565. /* harmony import */ var babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__);
  64566. /* harmony import */ var _lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lines/valueLineComponent */ "./components/actionTabs/lines/valueLineComponent.tsx");
  64567. /* harmony import */ var _lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../lines/booleanLineComponent */ "./components/actionTabs/lines/booleanLineComponent.tsx");
  64568. var StatisticsTabComponent = /** @class */ (function (_super) {
  64569. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StatisticsTabComponent, _super);
  64570. function StatisticsTabComponent(props) {
  64571. var _this = _super.call(this, props) || this;
  64572. var scene = _this.props.scene;
  64573. if (!scene) {
  64574. return _this;
  64575. }
  64576. _this._sceneInstrumentation = new babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__["SceneInstrumentation"](scene);
  64577. _this._sceneInstrumentation.captureActiveMeshesEvaluationTime = true;
  64578. _this._sceneInstrumentation.captureRenderTargetsRenderTime = true;
  64579. _this._sceneInstrumentation.captureFrameTime = true;
  64580. _this._sceneInstrumentation.captureRenderTime = true;
  64581. _this._sceneInstrumentation.captureInterFrameTime = true;
  64582. _this._sceneInstrumentation.captureParticlesRenderTime = true;
  64583. _this._sceneInstrumentation.captureSpritesRenderTime = true;
  64584. _this._sceneInstrumentation.capturePhysicsTime = true;
  64585. _this._sceneInstrumentation.captureAnimationsTime = true;
  64586. _this._engineInstrumentation = new babylonjs_Instrumentation_engineInstrumentation__WEBPACK_IMPORTED_MODULE_5__["EngineInstrumentation"](scene.getEngine());
  64587. _this._engineInstrumentation.captureGPUFrameTime = true;
  64588. _this._timerIntervalId = window.setInterval(function () { return _this.forceUpdate(); }, 500);
  64589. return _this;
  64590. }
  64591. StatisticsTabComponent.prototype.componentWillUnmount = function () {
  64592. if (this._sceneInstrumentation) {
  64593. this._sceneInstrumentation.dispose();
  64594. this._sceneInstrumentation = null;
  64595. }
  64596. if (this._engineInstrumentation) {
  64597. this._engineInstrumentation.dispose();
  64598. this._engineInstrumentation = null;
  64599. }
  64600. window.clearInterval(this._timerIntervalId);
  64601. };
  64602. StatisticsTabComponent.prototype.render = function () {
  64603. var scene = this.props.scene;
  64604. if (!scene || !this._sceneInstrumentation || !this._engineInstrumentation) {
  64605. return null;
  64606. }
  64607. var engine = scene.getEngine();
  64608. var sceneInstrumentation = this._sceneInstrumentation;
  64609. var engineInstrumentation = this._engineInstrumentation;
  64610. var caps = engine.getCaps();
  64611. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  64612. 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)" }),
  64613. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "FPS", value: engine.getFps(), fractionDigits: 0 }),
  64614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "COUNT" },
  64615. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total meshes", value: scene.meshes.length.toString() }),
  64616. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active meshes", value: scene.getActiveMeshes().length.toString() }),
  64617. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active indices", value: scene.getActiveIndices().toString() }),
  64618. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active faces", value: (scene.getActiveIndices() / 3).toString() }),
  64619. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active bones", value: scene.getActiveBones().toString() }),
  64620. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Active particles", value: scene.getActiveParticles().toString() }),
  64621. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Draw calls", value: sceneInstrumentation.drawCallsCounter.current.toString() }),
  64622. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total lights", value: scene.lights.length.toString() }),
  64623. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total vertices", value: scene.getTotalVertices().toString() }),
  64624. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total materials", value: scene.materials.length.toString() }),
  64625. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Total textures", value: scene.textures.length.toString() })),
  64626. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "FRAME STEPS DURATION" },
  64627. 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 }),
  64628. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Meshes selection", value: sceneInstrumentation.activeMeshesEvaluationTimeCounter.lastSecAverage, units: "ms" }),
  64629. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Render targets", value: sceneInstrumentation.renderTargetsRenderTimeCounter.lastSecAverage, units: "ms" }),
  64630. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Particles", value: sceneInstrumentation.particlesRenderTimeCounter.lastSecAverage, units: "ms" }),
  64631. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Sprites", value: sceneInstrumentation.spritesRenderTimeCounter.lastSecAverage, units: "ms" }),
  64632. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Animations", value: sceneInstrumentation.animationsTimeCounter.lastSecAverage, units: "ms" }),
  64633. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Physics", value: sceneInstrumentation.physicsTimeCounter.lastSecAverage, units: "ms" }),
  64634. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Render", value: sceneInstrumentation.renderTimeCounter.lastSecAverage, units: "ms" }),
  64635. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Frame total", value: sceneInstrumentation.frameTimeCounter.lastSecAverage, units: "ms" }),
  64636. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Inter-frame", value: sceneInstrumentation.interFrameTimeCounter.lastSecAverage, units: "ms" }),
  64637. 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" }),
  64638. 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" })),
  64639. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { globalState: this.props.globalState, title: "SYSTEM INFO" },
  64640. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Resolution", value: engine.getRenderWidth() + "x" + engine.getRenderHeight() }),
  64641. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Hardware scaling level", value: engine.getHardwareScalingLevel().toString() }),
  64642. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "WebGL version", value: engine.webGLVersion.toString() }),
  64643. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Std derivatives", value: caps.standardDerivatives }),
  64644. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Compressed textures", value: caps.s3tc !== undefined }),
  64645. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Hardware instances", value: caps.instancedArrays }),
  64646. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Texture float", value: caps.textureFloat }),
  64647. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Texture half-float", value: caps.textureHalfFloat }),
  64648. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Render to texture float", value: caps.textureFloatRender }),
  64649. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Render to texture half-float", value: caps.textureHalfFloatRender }),
  64650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "32bits indices", value: caps.uintIndices }),
  64651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Fragment depth", value: caps.fragmentDepthSupported }),
  64652. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "High precision shaders", value: caps.highPrecisionShaderSupported }),
  64653. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Draw buffers", value: caps.drawBuffersExtension }),
  64654. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Vertex array object", value: caps.vertexArrayObject }),
  64655. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Timer query", value: caps.timerQuery !== undefined }),
  64656. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Stencil", value: engine.isStencilEnable }),
  64657. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_booleanLineComponent__WEBPACK_IMPORTED_MODULE_7__["BooleanLineComponent"], { label: "Parallel shader compilation", value: caps.parallelShaderCompile != null }),
  64658. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Max textures units", value: caps.maxTexturesImageUnits, fractionDigits: 0 }),
  64659. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Max textures size", value: caps.maxTextureSize, fractionDigits: 0 }),
  64660. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_6__["ValueLineComponent"], { label: "Max anisotropy", value: caps.maxAnisotropy, fractionDigits: 0 }),
  64661. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Driver", value: engine.getGlInfo().renderer }))));
  64662. };
  64663. return StatisticsTabComponent;
  64664. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  64665. /***/ }),
  64666. /***/ "./components/actionTabs/tabs/tools/gltfComponent.tsx":
  64667. /*!************************************************************!*\
  64668. !*** ./components/actionTabs/tabs/tools/gltfComponent.tsx ***!
  64669. \************************************************************/
  64670. /*! exports provided: GLTFComponent */
  64671. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64672. "use strict";
  64673. __webpack_require__.r(__webpack_exports__);
  64674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GLTFComponent", function() { return GLTFComponent; });
  64675. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64676. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64677. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64678. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64679. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  64680. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  64681. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  64682. /* harmony import */ var _lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lines/messageLineComponent */ "./components/actionTabs/lines/messageLineComponent.tsx");
  64683. /* 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");
  64684. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  64685. /* harmony import */ var babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! babylonjs-loaders/glTF/index */ "babylonjs-loaders/glTF/index");
  64686. /* harmony import */ var babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__);
  64687. var GLTFComponent = /** @class */ (function (_super) {
  64688. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GLTFComponent, _super);
  64689. function GLTFComponent() {
  64690. var _this = _super !== null && _super.apply(this, arguments) || this;
  64691. _this._onValidationResultsUpdatedObserver = null;
  64692. return _this;
  64693. }
  64694. GLTFComponent.prototype.openValidationDetails = function () {
  64695. var validationResults = this.props.globalState.validationResults;
  64696. var win = window.open("", "_blank");
  64697. if (win) {
  64698. // TODO: format this better and use generator registry (https://github.com/KhronosGroup/glTF-Generator-Registry)
  64699. win.document.title = "glTF Validation Results";
  64700. win.document.body.innerText = JSON.stringify(validationResults, null, 2);
  64701. win.document.body.style.whiteSpace = "pre";
  64702. win.document.body.style.fontFamily = "monospace";
  64703. win.document.body.style.fontSize = "14px";
  64704. win.focus();
  64705. }
  64706. };
  64707. GLTFComponent.prototype.prepareText = function (singularForm, count) {
  64708. if (count) {
  64709. return count + " " + singularForm + "s";
  64710. }
  64711. return "" + singularForm;
  64712. };
  64713. GLTFComponent.prototype.componentDidMount = function () {
  64714. var _this = this;
  64715. if (this.props.globalState) {
  64716. this._onValidationResultsUpdatedObserver = this.props.globalState.onValidationResultsUpdatedObservable.add(function () {
  64717. _this.forceUpdate();
  64718. });
  64719. }
  64720. };
  64721. GLTFComponent.prototype.componentWillUnmount = function () {
  64722. if (this.props.globalState) {
  64723. if (this._onValidationResultsUpdatedObserver) {
  64724. this.props.globalState.onValidationResultsUpdatedObservable.remove(this._onValidationResultsUpdatedObserver);
  64725. }
  64726. }
  64727. };
  64728. GLTFComponent.prototype.renderValidation = function () {
  64729. var _this = this;
  64730. var validationResults = this.props.globalState.validationResults;
  64731. if (!validationResults) {
  64732. return null;
  64733. }
  64734. var issues = validationResults.issues;
  64735. 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 },
  64736. issues.numErrors !== 0 &&
  64737. 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" }),
  64738. issues.numErrors === 0 &&
  64739. 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" }),
  64740. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Errors", value: issues.numErrors.toString() }),
  64741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Warnings", value: issues.numWarnings.toString() }),
  64742. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Infos", value: issues.numInfos.toString() }),
  64743. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "Hints", value: issues.numHints.toString() }),
  64744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_8__["TextLineComponent"], { label: "More details", value: "Click here", onLink: function () { return _this.openValidationDetails(); } })));
  64745. };
  64746. GLTFComponent.prototype.render = function () {
  64747. var extensionStates = this.props.globalState.glTFLoaderExtensionDefaults;
  64748. var loaderState = this.props.globalState.glTFLoaderDefaults;
  64749. var animationStartMode = [
  64750. { label: "None", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].NONE },
  64751. { label: "First", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].FIRST },
  64752. { label: "ALL", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderAnimationStartMode"].ALL }
  64753. ];
  64754. var coordinateSystemMode = [
  64755. { label: "Auto", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderCoordinateSystemMode"].AUTO },
  64756. { label: "Right handed", value: babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_9__["GLTFLoaderCoordinateSystemMode"].FORCE_RIGHT_HANDED }
  64757. ];
  64758. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  64759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLTF LOADER", closed: true },
  64760. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Animation start mode", options: animationStartMode, target: loaderState, propertyName: "animationStartMode" }),
  64761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Capture performance counters", target: loaderState, propertyName: "capturePerformanceCounters" }),
  64762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Compile materials", target: loaderState, propertyName: "compileMaterials" }),
  64763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Compile shadow generators", target: loaderState, propertyName: "compileShadowGenerators" }),
  64764. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Coordinate system", options: coordinateSystemMode, target: loaderState, propertyName: "coordinateSystemMode" }),
  64765. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Enable logging", target: loaderState, propertyName: "loggingEnabled" }),
  64766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transparency as coverage", target: loaderState, propertyName: "transparencyAsCoverage" }),
  64767. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use clip plane", target: loaderState, propertyName: "useClipPlane" }),
  64768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Validate", target: loaderState, propertyName: "validate" }),
  64769. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "You need to reload your file to see these changes" })),
  64770. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { globalState: this.props.globalState, title: "GLTF EXTENSIONS", closed: true },
  64771. 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; } }),
  64772. 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 }),
  64773. 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; } }),
  64774. 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; } }),
  64775. 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; } }),
  64776. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_xmp", isSelected: function () { return extensionStates["KHR_xmp"].enabled; }, onSelect: function (value) { return extensionStates["KHR_xmp"].enabled = value; } }),
  64777. 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; } }),
  64778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_mesh_quantization", isSelected: function () { return extensionStates["KHR_mesh_quantization"].enabled; }, onSelect: function (value) { return extensionStates["KHR_mesh_quantization"].enabled = value; } }),
  64779. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_pbrSpecularGloss...", isSelected: function () { return extensionStates["KHR_materials_pbrSpecularGlossiness"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_pbrSpecularGlossiness"].enabled = value; } }),
  64780. 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; } }),
  64781. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_ior", isSelected: function () { return extensionStates["KHR_materials_ior"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_ior"].enabled = value; } }),
  64782. 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; } }),
  64783. 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; } }),
  64784. 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; } }),
  64785. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_variants", isSelected: function () { return extensionStates["KHR_materials_variants"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_variants"].enabled = value; } }),
  64786. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_materials_transmission", isSelected: function () { return extensionStates["KHR_materials_transmission"].enabled; }, onSelect: function (value) { return extensionStates["KHR_materials_transmission"].enabled = value; } }),
  64787. 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; } }),
  64788. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "KHR_texture_basisu", isSelected: function () { return extensionStates["KHR_texture_basisu"].enabled; }, onSelect: function (value) { return extensionStates["KHR_texture_basisu"].enabled = value; } }),
  64789. 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; } }),
  64790. 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; } }),
  64791. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "EXT_mesh_gpu_instancing", isSelected: function () { return extensionStates["EXT_mesh_gpu_instancing"].enabled; }, onSelect: function (value) { return extensionStates["EXT_mesh_gpu_instancing"].enabled = value; } }),
  64792. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "EXT_texture_webp", isSelected: function () { return extensionStates["EXT_texture_webp"].enabled; }, onSelect: function (value) { return extensionStates["EXT_texture_webp"].enabled = value; } }),
  64793. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "You need to reload your file to see these changes" })),
  64794. loaderState["validate"] && this.props.globalState.validationResults &&
  64795. this.renderValidation()));
  64796. };
  64797. return GLTFComponent;
  64798. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64799. /***/ }),
  64800. /***/ "./components/actionTabs/tabs/toolsTabComponent.tsx":
  64801. /*!**********************************************************!*\
  64802. !*** ./components/actionTabs/tabs/toolsTabComponent.tsx ***!
  64803. \**********************************************************/
  64804. /*! exports provided: ToolsTabComponent */
  64805. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64806. "use strict";
  64807. __webpack_require__.r(__webpack_exports__);
  64808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolsTabComponent", function() { return ToolsTabComponent; });
  64809. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64810. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64811. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64812. /* harmony import */ var _paneComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../paneComponent */ "./components/actionTabs/paneComponent.tsx");
  64813. /* harmony import */ var _lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../lineContainerComponent */ "./components/actionTabs/lineContainerComponent.tsx");
  64814. /* harmony import */ var _lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lines/buttonLineComponent */ "./components/actionTabs/lines/buttonLineComponent.tsx");
  64815. /* harmony import */ var babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Misc/videoRecorder */ "babylonjs/Misc/observable");
  64816. /* harmony import */ var babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__);
  64817. /* harmony import */ var _tools_gltfComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tools/gltfComponent */ "./components/actionTabs/tabs/tools/gltfComponent.tsx");
  64818. /* 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");
  64819. /* 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__);
  64820. /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../lines/floatLineComponent */ "./components/actionTabs/lines/floatLineComponent.tsx");
  64821. /* harmony import */ var _lines_numericInputComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../lines/numericInputComponent */ "./components/actionTabs/lines/numericInputComponent.tsx");
  64822. /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../lines/checkBoxLineComponent */ "./components/actionTabs/lines/checkBoxLineComponent.tsx");
  64823. /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../lines/textLineComponent */ "./components/actionTabs/lines/textLineComponent.tsx");
  64824. /* harmony import */ var _lines_fileMultipleButtonLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../lines/fileMultipleButtonLineComponent */ "./components/actionTabs/lines/fileMultipleButtonLineComponent.tsx");
  64825. /* harmony import */ var _lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../lines/optionsLineComponent */ "./components/actionTabs/lines/optionsLineComponent.tsx");
  64826. /* harmony import */ var _lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../lines/messageLineComponent */ "./components/actionTabs/lines/messageLineComponent.tsx");
  64827. /* harmony import */ var _lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../lines/fileButtonLineComponent */ "./components/actionTabs/lines/fileButtonLineComponent.tsx");
  64828. /* harmony import */ var _lines_indentedTextLineComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../lines/indentedTextLineComponent */ "./components/actionTabs/lines/indentedTextLineComponent.tsx");
  64829. var GIF = __webpack_require__(/*! gif.js.optimized */ "../../node_modules/gif.js.optimized/dist/gif.js");
  64830. var ToolsTabComponent = /** @class */ (function (_super) {
  64831. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolsTabComponent, _super);
  64832. function ToolsTabComponent(props) {
  64833. var _this = _super.call(this, props) || this;
  64834. _this._screenShotSize = { precision: 1 };
  64835. _this._gifOptions = { width: 512, frequency: 200 };
  64836. _this._useWidthHeight = false;
  64837. _this._isExporting = false;
  64838. _this._crunchingGIF = false;
  64839. _this.state = { tag: "Record video" };
  64840. var sceneImportDefaults = _this.props.globalState.sceneImportDefaults;
  64841. if (sceneImportDefaults["overwriteAnimations"] === undefined) {
  64842. sceneImportDefaults["overwriteAnimations"] = true;
  64843. }
  64844. if (sceneImportDefaults["animationGroupLoadingMode"] === undefined) {
  64845. sceneImportDefaults["animationGroupLoadingMode"] = babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Clean;
  64846. }
  64847. return _this;
  64848. }
  64849. ToolsTabComponent.prototype.componentDidMount = function () {
  64850. if (!BABYLON.GLTF2Export) {
  64851. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].LoadScript("https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js", function () {
  64852. });
  64853. return;
  64854. }
  64855. };
  64856. ToolsTabComponent.prototype.componentWillUnmount = function () {
  64857. if (this._videoRecorder) {
  64858. this._videoRecorder.stopRecording();
  64859. this._videoRecorder.dispose();
  64860. this._videoRecorder = null;
  64861. }
  64862. if (this._gifRecorder) {
  64863. this._gifRecorder.render();
  64864. this._gifRecorder = null;
  64865. return;
  64866. }
  64867. };
  64868. ToolsTabComponent.prototype.captureScreenshot = function () {
  64869. var scene = this.props.scene;
  64870. if (scene.activeCamera) {
  64871. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].CreateScreenshot(scene.getEngine(), scene.activeCamera, this._screenShotSize);
  64872. }
  64873. };
  64874. ToolsTabComponent.prototype.captureRender = function () {
  64875. var scene = this.props.scene;
  64876. var oldScreenshotSize = {
  64877. height: this._screenShotSize.height,
  64878. width: this._screenShotSize.width,
  64879. precision: this._screenShotSize.precision
  64880. };
  64881. if (!this._useWidthHeight) {
  64882. this._screenShotSize.width = undefined;
  64883. this._screenShotSize.height = undefined;
  64884. }
  64885. if (scene.activeCamera) {
  64886. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].CreateScreenshotUsingRenderTarget(scene.getEngine(), scene.activeCamera, this._screenShotSize);
  64887. }
  64888. this._screenShotSize = oldScreenshotSize;
  64889. };
  64890. ToolsTabComponent.prototype.recordVideo = function () {
  64891. var _this = this;
  64892. if (this._videoRecorder && this._videoRecorder.isRecording) {
  64893. this._videoRecorder.stopRecording();
  64894. return;
  64895. }
  64896. var scene = this.props.scene;
  64897. if (!this._videoRecorder) {
  64898. this._videoRecorder = new babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["VideoRecorder"](scene.getEngine());
  64899. }
  64900. this._videoRecorder.startRecording().then(function () {
  64901. _this.setState({ tag: "Record video" });
  64902. });
  64903. this.setState({ tag: "Stop recording" });
  64904. };
  64905. ToolsTabComponent.prototype.recordGIFInternal = function () {
  64906. var _this = this;
  64907. var workerUrl = URL.createObjectURL(this._gifWorkerBlob);
  64908. this._gifRecorder = new GIF({
  64909. workers: 2,
  64910. quality: 10,
  64911. workerScript: workerUrl
  64912. });
  64913. var scene = this.props.scene;
  64914. var engine = scene.getEngine();
  64915. this._previousRenderingScale = engine.getHardwareScalingLevel();
  64916. engine.setHardwareScalingLevel(engine.getRenderWidth() / this._gifOptions.width | 0);
  64917. var intervalId = setInterval(function () {
  64918. if (!_this._gifRecorder) {
  64919. clearInterval(intervalId);
  64920. return;
  64921. }
  64922. _this._gifRecorder.addFrame(engine.getRenderingCanvas(), { delay: _this._gifOptions.frequency });
  64923. }, this._gifOptions.frequency);
  64924. this._gifRecorder.on('finished', function (blob) {
  64925. _this._crunchingGIF = false;
  64926. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].Download(blob, "record.gif");
  64927. _this.forceUpdate();
  64928. URL.revokeObjectURL(workerUrl);
  64929. engine.setHardwareScalingLevel(_this._previousRenderingScale);
  64930. });
  64931. this.forceUpdate();
  64932. };
  64933. ToolsTabComponent.prototype.recordGIF = function () {
  64934. var _this = this;
  64935. if (this._gifRecorder) {
  64936. this._crunchingGIF = true;
  64937. this.forceUpdate();
  64938. this._gifRecorder.render();
  64939. this._gifRecorder = null;
  64940. return;
  64941. }
  64942. if (this._gifWorkerBlob) {
  64943. this.recordGIFInternal();
  64944. return;
  64945. }
  64946. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].LoadFileAsync("https://cdn.jsdelivr.net/gh//terikon/gif.js.optimized@0.1.6/dist/gif.worker.js").then(function (value) {
  64947. _this._gifWorkerBlob = new Blob([value], {
  64948. type: 'application/javascript'
  64949. });
  64950. _this.recordGIFInternal();
  64951. });
  64952. };
  64953. ToolsTabComponent.prototype.importAnimations = function (event) {
  64954. var scene = this.props.scene;
  64955. var overwriteAnimations = this.props.globalState.sceneImportDefaults["overwriteAnimations"];
  64956. var animationGroupLoadingMode = this.props.globalState.sceneImportDefaults["animationGroupLoadingMode"];
  64957. var reload = function (sceneFile) {
  64958. // If a scene file has been provided
  64959. if (sceneFile) {
  64960. var onSuccess = function (scene) {
  64961. if (scene.animationGroups.length > 0) {
  64962. var currentGroup = scene.animationGroups[0];
  64963. currentGroup.play(true);
  64964. }
  64965. };
  64966. BABYLON.SceneLoader.ImportAnimationsAsync("file:", sceneFile, scene, overwriteAnimations, animationGroupLoadingMode, null, onSuccess);
  64967. }
  64968. };
  64969. var filesInputAnimation = new babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["FilesInput"](scene.getEngine(), scene, function () { }, function () { }, function () { }, function (remaining) { }, function () { }, reload, function () { });
  64970. filesInputAnimation.loadFiles(event);
  64971. };
  64972. ToolsTabComponent.prototype.shouldExport = function (node) {
  64973. // No skybox
  64974. if (node instanceof babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Mesh"]) {
  64975. if (node.material) {
  64976. var material = node.material;
  64977. var reflectionTexture = material.reflectionTexture;
  64978. if (reflectionTexture && reflectionTexture.coordinatesMode === babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Texture"].SKYBOX_MODE) {
  64979. return false;
  64980. }
  64981. }
  64982. }
  64983. return true;
  64984. };
  64985. ToolsTabComponent.prototype.exportGLTF = function () {
  64986. var _this = this;
  64987. var scene = this.props.scene;
  64988. this._isExporting = true;
  64989. this.forceUpdate();
  64990. babylonjs_serializers_glTF_2_0_index__WEBPACK_IMPORTED_MODULE_7__["GLTF2Export"].GLBAsync(scene, "scene", {
  64991. shouldExportNode: function (node) { return _this.shouldExport(node); }
  64992. }).then(function (glb) {
  64993. glb.downloadFiles();
  64994. _this._isExporting = false;
  64995. _this.forceUpdate();
  64996. }).catch(function (reason) {
  64997. _this._isExporting = false;
  64998. _this.forceUpdate();
  64999. });
  65000. };
  65001. ToolsTabComponent.prototype.exportBabylon = function () {
  65002. var scene = this.props.scene;
  65003. var strScene = JSON.stringify(babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneSerializer"].Serialize(scene));
  65004. var blob = new Blob([strScene], { type: "octet/stream" });
  65005. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].Download(blob, "scene.babylon");
  65006. };
  65007. ToolsTabComponent.prototype.createEnvTexture = function () {
  65008. var scene = this.props.scene;
  65009. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["EnvironmentTextureTools"].CreateEnvTextureAsync(scene.environmentTexture)
  65010. .then(function (buffer) {
  65011. var blob = new Blob([buffer], { type: "octet/stream" });
  65012. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].Download(blob, "environment.env");
  65013. })
  65014. .catch(function (error) {
  65015. console.error(error);
  65016. alert(error);
  65017. });
  65018. };
  65019. ToolsTabComponent.prototype.exportReplay = function () {
  65020. this.props.globalState.recorder.export();
  65021. this.forceUpdate();
  65022. };
  65023. ToolsTabComponent.prototype.startRecording = function () {
  65024. this.props.globalState.recorder.trackScene(this.props.scene);
  65025. this.forceUpdate();
  65026. };
  65027. ToolsTabComponent.prototype.applyDelta = function (file) {
  65028. var _this = this;
  65029. babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["Tools"].ReadFile(file, function (data) {
  65030. _this.props.globalState.recorder.applyDelta(data, _this.props.scene);
  65031. _this.forceUpdate();
  65032. });
  65033. };
  65034. ToolsTabComponent.prototype.render = function () {
  65035. var _this = this;
  65036. var scene = this.props.scene;
  65037. if (!scene) {
  65038. return null;
  65039. }
  65040. var sceneImportDefaults = this.props.globalState.sceneImportDefaults;
  65041. var animationGroupLoadingModes = [
  65042. { label: "Clean", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Clean },
  65043. { label: "Stop", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Stop },
  65044. { label: "Sync", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].Sync },
  65045. { label: "NoSync", value: babylonjs_Misc_videoRecorder__WEBPACK_IMPORTED_MODULE_5__["SceneLoaderAnimationGroupLoadingMode"].NoSync },
  65046. ];
  65047. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  65048. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CAPTURE" },
  65049. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Screenshot", onClick: function () { return _this.captureScreenshot(); } }),
  65050. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: this.state.tag, onClick: function () { return _this.recordVideo(); } })),
  65051. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "CAPTURE WITH RTT" },
  65052. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Capture", onClick: function () { return _this.captureRender(); } }),
  65053. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  65054. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Precision", target: this._screenShotSize, propertyName: 'precision', onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
  65055. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_10__["CheckBoxLineComponent"], { label: "Use Width/Height", onSelect: function (value) {
  65056. _this._useWidthHeight = value;
  65057. _this.forceUpdate();
  65058. }, isSelected: function () { return _this._useWidthHeight; } }),
  65059. this._useWidthHeight &&
  65060. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65061. 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; } }),
  65062. 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; } })))),
  65063. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "GIF" },
  65064. this._crunchingGIF &&
  65065. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_14__["MessageLineComponent"], { text: "Creating the GIF file..." }),
  65066. !this._crunchingGIF &&
  65067. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: this._gifRecorder ? "Stop" : "Record", onClick: function () { return _this.recordGIF(); } }),
  65068. !this._crunchingGIF && !this._gifRecorder &&
  65069. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  65070. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Resolution", isInteger: true, target: this._gifOptions, propertyName: "width" }),
  65071. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Frequency (ms)", isInteger: true, target: this._gifOptions, propertyName: "frequency" }))),
  65072. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "REPLAY" },
  65073. !this.props.globalState.recorder.isRecording &&
  65074. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Start recording", onClick: function () { return _this.startRecording(); } }),
  65075. this.props.globalState.recorder.isRecording &&
  65076. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_indentedTextLineComponent__WEBPACK_IMPORTED_MODULE_16__["IndentedTextLineComponent"], { value: "Record in progress" }),
  65077. this.props.globalState.recorder.isRecording &&
  65078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Generate delta file", onClick: function () { return _this.exportReplay(); } }),
  65079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_15__["FileButtonLineComponent"], { label: "Apply delta file", onClick: function (file) { return _this.applyDelta(file); }, accept: ".json" })),
  65080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCENE IMPORT" },
  65081. 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); } }),
  65082. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_10__["CheckBoxLineComponent"], { label: "Overwrite animations", target: sceneImportDefaults, propertyName: "overwriteAnimations", onSelect: function (value) {
  65083. sceneImportDefaults["overwriteAnimations"] = value;
  65084. _this.forceUpdate();
  65085. } }),
  65086. sceneImportDefaults["overwriteAnimations"] === false &&
  65087. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_13__["OptionsLineComponent"], { label: "Animation merge mode", options: animationGroupLoadingModes, target: sceneImportDefaults, propertyName: "animationGroupLoadingMode" })),
  65088. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { globalState: this.props.globalState, title: "SCENE EXPORT" },
  65089. this._isExporting &&
  65090. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_11__["TextLineComponent"], { label: "Please wait..exporting", ignoreValue: true }),
  65091. !this._isExporting &&
  65092. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  65093. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Export to GLB", onClick: function () { return _this.exportGLTF(); } }),
  65094. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Export to Babylon", onClick: function () { return _this.exportBabylon(); } }),
  65095. !scene.getEngine().premultipliedAlpha && scene.environmentTexture && scene.environmentTexture._prefiltered && scene.activeCamera &&
  65096. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Generate .env texture", onClick: function () { return _this.createEnvTexture(); } }))),
  65097. BABYLON.GLTFFileLoader &&
  65098. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_tools_gltfComponent__WEBPACK_IMPORTED_MODULE_6__["GLTFComponent"], { scene: scene, globalState: this.props.globalState })));
  65099. };
  65100. return ToolsTabComponent;
  65101. }(_paneComponent__WEBPACK_IMPORTED_MODULE_2__["PaneComponent"]));
  65102. /***/ }),
  65103. /***/ "./components/actionTabs/tabsComponent.tsx":
  65104. /*!*************************************************!*\
  65105. !*** ./components/actionTabs/tabsComponent.tsx ***!
  65106. \*************************************************/
  65107. /*! exports provided: TabsComponent */
  65108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65109. "use strict";
  65110. __webpack_require__.r(__webpack_exports__);
  65111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsComponent", function() { return TabsComponent; });
  65112. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65113. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65114. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65115. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65116. var TabsComponent = /** @class */ (function (_super) {
  65117. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TabsComponent, _super);
  65118. function TabsComponent(props) {
  65119. return _super.call(this, props) || this;
  65120. }
  65121. TabsComponent.prototype.onSelect = function (index) {
  65122. this.props.onSelectedIndexChange(index);
  65123. };
  65124. TabsComponent.prototype.renderLabel = function (child, index) {
  65125. var _this = this;
  65126. var activeClass = (this.props.selectedIndex === index ? 'label active' : 'label');
  65127. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: activeClass, key: index, onClick: function () { return _this.onSelect(index); }, title: child.props.title },
  65128. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  65129. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: child.props.icon }))));
  65130. };
  65131. TabsComponent.prototype.render = function () {
  65132. var _this = this;
  65133. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "tabs", onContextMenu: function (e) { return e.preventDefault(); } },
  65134. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "labels" }, this.props.children.map(function (child, index) {
  65135. return _this.renderLabel(child, index);
  65136. })),
  65137. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" }, this.props.children[this.props.selectedIndex])));
  65138. };
  65139. return TabsComponent;
  65140. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65141. /***/ }),
  65142. /***/ "./components/embedHost/embedHost.scss":
  65143. /*!*********************************************!*\
  65144. !*** ./components/embedHost/embedHost.scss ***!
  65145. \*********************************************/
  65146. /*! no static exports found */
  65147. /***/ (function(module, exports, __webpack_require__) {
  65148. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  65149. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./embedHost.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/embedHost/embedHost.scss");
  65150. content = content.__esModule ? content.default : content;
  65151. if (typeof content === 'string') {
  65152. content = [[module.i, content, '']];
  65153. }
  65154. var options = {};
  65155. options.insert = "head";
  65156. options.singleton = false;
  65157. var update = api(content, options);
  65158. module.exports = content.locals || {};
  65159. /***/ }),
  65160. /***/ "./components/embedHost/embedHostComponent.tsx":
  65161. /*!*****************************************************!*\
  65162. !*** ./components/embedHost/embedHostComponent.tsx ***!
  65163. \*****************************************************/
  65164. /*! exports provided: EmbedHostComponent */
  65165. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65166. "use strict";
  65167. __webpack_require__.r(__webpack_exports__);
  65168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmbedHostComponent", function() { return EmbedHostComponent; });
  65169. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65170. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65171. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65172. /* harmony import */ var _headerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../headerComponent */ "./components/headerComponent.tsx");
  65173. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! re-resizable */ "../../node_modules/re-resizable/lib/index.es5.js");
  65174. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(re_resizable__WEBPACK_IMPORTED_MODULE_3__);
  65175. /* harmony import */ var _sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../sceneExplorer/sceneExplorerComponent */ "./components/sceneExplorer/sceneExplorerComponent.tsx");
  65176. /* harmony import */ var _actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../actionTabs/actionTabsComponent */ "./components/actionTabs/actionTabsComponent.tsx");
  65177. var Split = __webpack_require__(/*! split.js */ "../../node_modules/split.js/dist/split.es.js").default;
  65178. __webpack_require__(/*! ./embedHost.scss */ "./components/embedHost/embedHost.scss");
  65179. var EmbedHostComponent = /** @class */ (function (_super) {
  65180. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EmbedHostComponent, _super);
  65181. function EmbedHostComponent(props) {
  65182. var _this = _super.call(this, props) || this;
  65183. _this._once = true;
  65184. _this.splitRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  65185. _this.topPartRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  65186. _this.bottomPartRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  65187. return _this;
  65188. }
  65189. EmbedHostComponent.prototype.componentDidMount = function () {
  65190. var container = this.splitRef.current;
  65191. if (!container) {
  65192. return;
  65193. }
  65194. Split([this.topPartRef.current, this.bottomPartRef.current], {
  65195. direction: "vertical",
  65196. minSize: [200, 200],
  65197. gutterSize: 4
  65198. });
  65199. };
  65200. EmbedHostComponent.prototype.renderContent = function () {
  65201. if (this.props.popupMode) {
  65202. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "split", className: "splitPopup" },
  65203. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "topPart" },
  65204. 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 })),
  65205. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "separator" }),
  65206. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "bottomPart", style: { marginTop: "4px", overflow: "hidden" } },
  65207. 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 }))));
  65208. }
  65209. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { ref: this.splitRef, id: "split", className: "noPopup" },
  65210. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "topPart", ref: this.topPartRef },
  65211. 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 })),
  65212. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "bottomPart", ref: this.bottomPartRef, style: { marginTop: "4px", overflow: "hidden" } },
  65213. 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 }))));
  65214. };
  65215. EmbedHostComponent.prototype.render = function () {
  65216. var _this = this;
  65217. if (this.props.popupMode) {
  65218. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "embed" },
  65219. 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 }),
  65220. this.renderContent()));
  65221. }
  65222. if (this._once) {
  65223. this._once = false;
  65224. // A bit hacky but no other way to force the initial width to 300px and not auto
  65225. setTimeout(function () {
  65226. var element = document.getElementById("embed");
  65227. if (!element) {
  65228. return;
  65229. }
  65230. element.style.width = "300px";
  65231. }, 150);
  65232. }
  65233. 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 } },
  65234. 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 }),
  65235. this.renderContent()));
  65236. };
  65237. return EmbedHostComponent;
  65238. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65239. /***/ }),
  65240. /***/ "./components/globalState.ts":
  65241. /*!***********************************!*\
  65242. !*** ./components/globalState.ts ***!
  65243. \***********************************/
  65244. /*! exports provided: GlobalState */
  65245. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65246. "use strict";
  65247. __webpack_require__.r(__webpack_exports__);
  65248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  65249. /* harmony import */ var babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs-loaders/glTF/index */ "babylonjs-loaders/glTF/index");
  65250. /* harmony import */ var babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__);
  65251. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  65252. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__);
  65253. /* harmony import */ var _replayRecorder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./replayRecorder */ "./components/replayRecorder.ts");
  65254. var GlobalState = /** @class */ (function () {
  65255. function GlobalState() {
  65256. this.onInspectorClosedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]();
  65257. this.onTabChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]();
  65258. this.onSelectionRenamedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]();
  65259. this.onNewSceneObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]();
  65260. this.sceneImportDefaults = {};
  65261. this.validationResults = null;
  65262. this.onValidationResultsUpdatedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]();
  65263. this.glTFLoaderExtensionDefaults = {
  65264. "MSFT_lod": { enabled: true, maxLODsToLoad: 10 },
  65265. "MSFT_minecraftMesh": { enabled: true },
  65266. "MSFT_sRGBFactors": { enabled: true },
  65267. "MSFT_audio_emitter": { enabled: true },
  65268. "KHR_xmp": { enabled: true },
  65269. "KHR_draco_mesh_compression": { enabled: true },
  65270. "KHR_mesh_quantization": { enabled: true },
  65271. "KHR_materials_pbrSpecularGlossiness": { enabled: true },
  65272. "KHR_materials_clearcoat": { enabled: true },
  65273. "KHR_materials_ior": { enabled: true },
  65274. "KHR_materials_sheen": { enabled: true },
  65275. "KHR_materials_specular": { enabled: true },
  65276. "KHR_materials_unlit": { enabled: true },
  65277. "KHR_materials_variants": { enabled: true },
  65278. "KHR_materials_transmission": { enabled: true },
  65279. "KHR_lights_punctual": { enabled: true },
  65280. "KHR_texture_basisu": { enabled: true },
  65281. "KHR_texture_transform": { enabled: true },
  65282. "EXT_lights_image_based": { enabled: true },
  65283. "EXT_mesh_gpu_instancing": { enabled: true },
  65284. "EXT_texture_webp": { enabled: true },
  65285. };
  65286. this.glTFLoaderDefaults = {
  65287. "animationStartMode": babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__["GLTFLoaderAnimationStartMode"].FIRST,
  65288. "capturePerformanceCounters": false,
  65289. "compileMaterials": false,
  65290. "compileShadowGenerators": false,
  65291. "coordinateSystemMode": babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__["GLTFLoaderCoordinateSystemMode"].AUTO,
  65292. "loggingEnabled": false,
  65293. "transparencyAsCoverage": false,
  65294. "useClipPlane": false,
  65295. "validate": true,
  65296. };
  65297. this.glTFLoaderExtensions = {};
  65298. this.blockMutationUpdates = false;
  65299. this.selectedLineContainerTitles = [];
  65300. this.selectedLineContainerTitlesNoFocus = [];
  65301. this.recorder = new _replayRecorder__WEBPACK_IMPORTED_MODULE_2__["ReplayRecorder"]();
  65302. this._onlyUseEulers = null;
  65303. this._ignoreBackfacesForPicking = null;
  65304. // Light gizmos
  65305. this.lightGizmos = [];
  65306. // Camera gizmos
  65307. this.cameraGizmos = [];
  65308. }
  65309. Object.defineProperty(GlobalState.prototype, "onlyUseEulers", {
  65310. get: function () {
  65311. if (this._onlyUseEulers === null) {
  65312. this._onlyUseEulers = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].ReadBoolean("settings_onlyUseEulers", true);
  65313. }
  65314. return this._onlyUseEulers;
  65315. },
  65316. set: function (value) {
  65317. this._onlyUseEulers = value;
  65318. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].WriteBoolean("settings_onlyUseEulers", value);
  65319. },
  65320. enumerable: false,
  65321. configurable: true
  65322. });
  65323. Object.defineProperty(GlobalState.prototype, "ignoreBackfacesForPicking", {
  65324. get: function () {
  65325. if (this._ignoreBackfacesForPicking === null) {
  65326. this._ignoreBackfacesForPicking = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].ReadBoolean("settings_ignoreBackfacesForPicking", false);
  65327. }
  65328. return this._ignoreBackfacesForPicking;
  65329. },
  65330. set: function (value) {
  65331. this._ignoreBackfacesForPicking = value;
  65332. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].WriteBoolean("settings_ignoreBackfacesForPicking", value);
  65333. },
  65334. enumerable: false,
  65335. configurable: true
  65336. });
  65337. GlobalState.prototype.init = function (propertyChangedObservable) {
  65338. var _this = this;
  65339. this.onPropertyChangedObservable = propertyChangedObservable;
  65340. this.onNewSceneObservable.add(function (scene) {
  65341. _this.recorder.cancel();
  65342. });
  65343. };
  65344. GlobalState.prototype.prepareGLTFPlugin = function (loader) {
  65345. var _this = this;
  65346. this.glTFLoaderExtensions = {};
  65347. var loaderState = this.glTFLoaderDefaults;
  65348. if (loaderState !== undefined) {
  65349. for (var key in loaderState) {
  65350. loader[key] = loaderState[key];
  65351. }
  65352. }
  65353. loader.onExtensionLoadedObservable.add(function (extension) {
  65354. var extensionState = _this.glTFLoaderExtensionDefaults[extension.name];
  65355. if (extensionState !== undefined) {
  65356. for (var key in extensionState) {
  65357. extension[key] = extensionState[key];
  65358. }
  65359. }
  65360. _this.glTFLoaderExtensions[extension.name] = extension;
  65361. });
  65362. if (this.validationResults) {
  65363. this.validationResults = null;
  65364. this.onValidationResultsUpdatedObservable.notifyObservers(null);
  65365. }
  65366. loader.onValidatedObservable.add(function (results) {
  65367. _this.validationResults = results;
  65368. _this.onValidationResultsUpdatedObservable.notifyObservers(results);
  65369. if (results.issues.numErrors || results.issues.numWarnings) {
  65370. _this.selectedLineContainerTitlesNoFocus.push("GLTF VALIDATION");
  65371. _this.onTabChangedObservable.notifyObservers(3);
  65372. }
  65373. });
  65374. };
  65375. GlobalState.prototype.enableLightGizmo = function (light, enable) {
  65376. if (enable === void 0) { enable = true; }
  65377. if (enable) {
  65378. if (!light.reservedDataStore) {
  65379. light.reservedDataStore = {};
  65380. }
  65381. if (!light.reservedDataStore.lightGizmo) {
  65382. light.reservedDataStore.lightGizmo = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["LightGizmo"]();
  65383. this.lightGizmos.push(light.reservedDataStore.lightGizmo);
  65384. light.reservedDataStore.lightGizmo.light = light;
  65385. light.reservedDataStore.lightGizmo.material.reservedDataStore = { hidden: true };
  65386. }
  65387. }
  65388. else if (light.reservedDataStore && light.reservedDataStore.lightGizmo) {
  65389. this.lightGizmos.splice(this.lightGizmos.indexOf(light.reservedDataStore.lightGizmo), 1);
  65390. light.reservedDataStore.lightGizmo.dispose();
  65391. light.reservedDataStore.lightGizmo = null;
  65392. }
  65393. };
  65394. GlobalState.prototype.enableCameraGizmo = function (camera, enable) {
  65395. if (enable === void 0) { enable = true; }
  65396. if (enable) {
  65397. if (!camera.reservedDataStore) {
  65398. camera.reservedDataStore = {};
  65399. }
  65400. if (!camera.reservedDataStore.cameraGizmo) {
  65401. camera.reservedDataStore.cameraGizmo = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_1__["CameraGizmo"]();
  65402. this.cameraGizmos.push(camera.reservedDataStore.cameraGizmo);
  65403. camera.reservedDataStore.cameraGizmo.camera = camera;
  65404. camera.reservedDataStore.cameraGizmo.material.reservedDataStore = { hidden: true };
  65405. }
  65406. }
  65407. else if (camera.reservedDataStore && camera.reservedDataStore.cameraGizmo) {
  65408. this.cameraGizmos.splice(this.cameraGizmos.indexOf(camera.reservedDataStore.cameraGizmo), 1);
  65409. camera.reservedDataStore.cameraGizmo.dispose();
  65410. camera.reservedDataStore.cameraGizmo = null;
  65411. }
  65412. };
  65413. return GlobalState;
  65414. }());
  65415. /***/ }),
  65416. /***/ "./components/headerComponent.tsx":
  65417. /*!****************************************!*\
  65418. !*** ./components/headerComponent.tsx ***!
  65419. \****************************************/
  65420. /*! exports provided: HeaderComponent */
  65421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65422. "use strict";
  65423. __webpack_require__.r(__webpack_exports__);
  65424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderComponent", function() { return HeaderComponent; });
  65425. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65426. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65427. /* 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");
  65428. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65429. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
  65430. var HeaderComponent = /** @class */ (function (_super) {
  65431. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HeaderComponent, _super);
  65432. function HeaderComponent(props) {
  65433. var _this = _super.call(this, props) || this;
  65434. _this._backStack = new Array();
  65435. _this.state = { isBackVisible: false };
  65436. return _this;
  65437. }
  65438. HeaderComponent.prototype.componentDidMount = function () {
  65439. var _this = this;
  65440. if (!this.props.onSelectionChangedObservable) {
  65441. return;
  65442. }
  65443. this._onSelectionChangeObserver = this.props.onSelectionChangedObservable.add(function (entity) {
  65444. if (_this._backStack.length === 0 || entity !== _this._backStack[_this._backStack.length - 1]) {
  65445. _this._backStack.push(entity);
  65446. _this.setState({ isBackVisible: _this._backStack.length > 1 });
  65447. }
  65448. });
  65449. };
  65450. HeaderComponent.prototype.componentWillUnmount = function () {
  65451. if (this._onSelectionChangeObserver) {
  65452. this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  65453. }
  65454. };
  65455. HeaderComponent.prototype.goBack = function () {
  65456. this._backStack.pop(); // remove current
  65457. var entity = this._backStack[this._backStack.length - 1];
  65458. if (this.props.onSelectionChangedObservable) {
  65459. this.props.onSelectionChangedObservable.notifyObservers(entity);
  65460. }
  65461. this.setState({ isBackVisible: this._backStack.length > 1 });
  65462. };
  65463. HeaderComponent.prototype.renderLogo = function () {
  65464. var _this = this;
  65465. if (this.props.noCommands) {
  65466. return null;
  65467. }
  65468. if (this.props.handleBack) {
  65469. if (!this.state.isBackVisible) {
  65470. return null;
  65471. }
  65472. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "back", onClick: function () { return _this.goBack(); } },
  65473. 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"] })));
  65474. }
  65475. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("img", { id: "logo", style: { top: "0%" }, src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }));
  65476. };
  65477. HeaderComponent.prototype.render = function () {
  65478. var _this = this;
  65479. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "header" },
  65480. this.renderLogo(),
  65481. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "title" }, this.props.title),
  65482. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { id: "commands" },
  65483. !this.props.noCommands && !this.props.noExpand &&
  65484. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { className: "expand", onClick: function () { return _this.props.onPopup(); } },
  65485. 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"] })),
  65486. !this.props.noCommands && !this.props.noClose &&
  65487. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { className: "close", onClick: function () { return _this.props.onClose(); } },
  65488. 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"] })))));
  65489. };
  65490. return HeaderComponent;
  65491. }(react__WEBPACK_IMPORTED_MODULE_3__["Component"]));
  65492. /***/ }),
  65493. /***/ "./components/popupComponent.tsx":
  65494. /*!***************************************!*\
  65495. !*** ./components/popupComponent.tsx ***!
  65496. \***************************************/
  65497. /*! exports provided: PopupComponent */
  65498. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65499. "use strict";
  65500. __webpack_require__.r(__webpack_exports__);
  65501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PopupComponent", function() { return PopupComponent; });
  65502. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65503. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65504. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65505. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  65506. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  65507. /* harmony import */ var _inspector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../inspector */ "./inspector.ts");
  65508. var PopupComponent = /** @class */ (function (_super) {
  65509. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PopupComponent, _super);
  65510. function PopupComponent(props) {
  65511. var _this = _super.call(this, props) || this;
  65512. _this._container = document.createElement("div");
  65513. _this._container.id = _this.props.id;
  65514. _this._window;
  65515. _this.state = {
  65516. isComponentMounted: false,
  65517. blockedByBrowser: false,
  65518. };
  65519. return _this;
  65520. }
  65521. PopupComponent.prototype.componentDidMount = function () {
  65522. this.openPopup();
  65523. this.setState({ isComponentMounted: true });
  65524. };
  65525. PopupComponent.prototype.openPopup = function () {
  65526. var _this = this;
  65527. var _a = this.props, title = _a.title, size = _a.size, onClose = _a.onClose, onOpen = _a.onOpen;
  65528. var windowVariableName = "window_" + title;
  65529. this._container = _inspector__WEBPACK_IMPORTED_MODULE_3__["Inspector"]._CreatePopup(title, windowVariableName, size.width, size.height, true);
  65530. if (this._container) {
  65531. this._curveEditorHost = this._container.ownerDocument.createElement("div");
  65532. this._curveEditorHost.id = "curve-editor-host";
  65533. this._curveEditorHost.style.width = "auto";
  65534. this._container.appendChild(this._curveEditorHost);
  65535. }
  65536. this._window = _inspector__WEBPACK_IMPORTED_MODULE_3__["Inspector"][windowVariableName];
  65537. if (this._window) {
  65538. onOpen(this._window);
  65539. this._window.addEventListener("beforeunload", function () { return _this._window && onClose(_this._window); });
  65540. }
  65541. else {
  65542. if (!this._window) {
  65543. this.setState({ blockedByBrowser: true }, function () {
  65544. if (_this.state.blockedByBrowser) {
  65545. console.warn("Popup window couldn't be created");
  65546. }
  65547. });
  65548. }
  65549. }
  65550. };
  65551. PopupComponent.prototype.componentWillUnmount = function () {
  65552. if (this._window) {
  65553. this._window.close();
  65554. }
  65555. };
  65556. PopupComponent.prototype.getWindow = function () {
  65557. return this._window;
  65558. };
  65559. PopupComponent.prototype.render = function () {
  65560. if (!this.state.isComponentMounted || this._container === null) {
  65561. return null;
  65562. }
  65563. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this._curveEditorHost);
  65564. };
  65565. return PopupComponent;
  65566. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65567. /***/ }),
  65568. /***/ "./components/propertyChangedEvent.ts":
  65569. /*!********************************************!*\
  65570. !*** ./components/propertyChangedEvent.ts ***!
  65571. \********************************************/
  65572. /*! exports provided: PropertyChangedEvent */
  65573. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65574. "use strict";
  65575. __webpack_require__.r(__webpack_exports__);
  65576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyChangedEvent", function() { return PropertyChangedEvent; });
  65577. var PropertyChangedEvent = /** @class */ (function () {
  65578. function PropertyChangedEvent() {
  65579. }
  65580. return PropertyChangedEvent;
  65581. }());
  65582. /***/ }),
  65583. /***/ "./components/replayRecorder.ts":
  65584. /*!**************************************!*\
  65585. !*** ./components/replayRecorder.ts ***!
  65586. \**************************************/
  65587. /*! exports provided: ReplayRecorder */
  65588. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65589. "use strict";
  65590. __webpack_require__.r(__webpack_exports__);
  65591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplayRecorder", function() { return ReplayRecorder; });
  65592. /* harmony import */ var babylonjs_Misc_sceneRecorder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/sceneRecorder */ "babylonjs/Misc/observable");
  65593. /* harmony import */ var babylonjs_Misc_sceneRecorder__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_sceneRecorder__WEBPACK_IMPORTED_MODULE_0__);
  65594. var ReplayRecorder = /** @class */ (function () {
  65595. function ReplayRecorder() {
  65596. this._sceneRecorder = new babylonjs_Misc_sceneRecorder__WEBPACK_IMPORTED_MODULE_0__["SceneRecorder"]();
  65597. this._isRecording = false;
  65598. }
  65599. Object.defineProperty(ReplayRecorder.prototype, "isRecording", {
  65600. get: function () {
  65601. return this._isRecording;
  65602. },
  65603. enumerable: false,
  65604. configurable: true
  65605. });
  65606. ReplayRecorder.prototype.cancel = function () {
  65607. this._isRecording = false;
  65608. };
  65609. ReplayRecorder.prototype.trackScene = function (scene) {
  65610. this._sceneRecorder.track(scene);
  65611. this._isRecording = true;
  65612. };
  65613. ReplayRecorder.prototype.applyDelta = function (json, scene) {
  65614. babylonjs_Misc_sceneRecorder__WEBPACK_IMPORTED_MODULE_0__["SceneRecorder"].ApplyDelta(json, scene);
  65615. this._isRecording = false;
  65616. };
  65617. ReplayRecorder.prototype.export = function () {
  65618. var content = JSON.stringify(this._sceneRecorder.getDelta());
  65619. babylonjs_Misc_sceneRecorder__WEBPACK_IMPORTED_MODULE_0__["Tools"].Download(new Blob([content]), "diff.json");
  65620. this._isRecording = false;
  65621. };
  65622. return ReplayRecorder;
  65623. }());
  65624. /***/ }),
  65625. /***/ "./components/sceneExplorer/entities/animationGroupTreeItemComponent.tsx":
  65626. /*!*******************************************************************************!*\
  65627. !*** ./components/sceneExplorer/entities/animationGroupTreeItemComponent.tsx ***!
  65628. \*******************************************************************************/
  65629. /*! exports provided: AnimationGroupItemComponent */
  65630. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65631. "use strict";
  65632. __webpack_require__.r(__webpack_exports__);
  65633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroupItemComponent", function() { return AnimationGroupItemComponent; });
  65634. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65635. /* 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");
  65636. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65637. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65638. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65639. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  65640. var AnimationGroupItemComponent = /** @class */ (function (_super) {
  65641. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AnimationGroupItemComponent, _super);
  65642. function AnimationGroupItemComponent(props) {
  65643. return _super.call(this, props) || this;
  65644. }
  65645. AnimationGroupItemComponent.prototype.render = function () {
  65646. var _this = this;
  65647. var animationGroup = this.props.animationGroup;
  65648. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "animationGroupTools" },
  65649. 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__["faLayerGroup"], color: "cornflowerblue" }),
  65650. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: animationGroup, extensibilityGroups: this.props.extensibilityGroups })));
  65651. };
  65652. return AnimationGroupItemComponent;
  65653. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  65654. /***/ }),
  65655. /***/ "./components/sceneExplorer/entities/boneTreeItemComponent.tsx":
  65656. /*!*********************************************************************!*\
  65657. !*** ./components/sceneExplorer/entities/boneTreeItemComponent.tsx ***!
  65658. \*********************************************************************/
  65659. /*! exports provided: BoneTreeItemComponent */
  65660. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65661. "use strict";
  65662. __webpack_require__.r(__webpack_exports__);
  65663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoneTreeItemComponent", function() { return BoneTreeItemComponent; });
  65664. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65665. /* 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");
  65666. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65667. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65668. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65669. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  65670. var BoneTreeItemComponent = /** @class */ (function (_super) {
  65671. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoneTreeItemComponent, _super);
  65672. function BoneTreeItemComponent(props) {
  65673. return _super.call(this, props) || this;
  65674. }
  65675. BoneTreeItemComponent.prototype.render = function () {
  65676. var _this = this;
  65677. var bone = this.props.bone;
  65678. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "skeletonTools" },
  65679. 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" }),
  65680. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: bone, extensibilityGroups: this.props.extensibilityGroups })));
  65681. };
  65682. return BoneTreeItemComponent;
  65683. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  65684. /***/ }),
  65685. /***/ "./components/sceneExplorer/entities/cameraTreeItemComponent.tsx":
  65686. /*!***********************************************************************!*\
  65687. !*** ./components/sceneExplorer/entities/cameraTreeItemComponent.tsx ***!
  65688. \***********************************************************************/
  65689. /*! exports provided: CameraTreeItemComponent */
  65690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65691. "use strict";
  65692. __webpack_require__.r(__webpack_exports__);
  65693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CameraTreeItemComponent", function() { return CameraTreeItemComponent; });
  65694. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65695. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65696. /* 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");
  65697. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65698. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65699. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65700. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
  65701. var CameraTreeItemComponent = /** @class */ (function (_super) {
  65702. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CameraTreeItemComponent, _super);
  65703. function CameraTreeItemComponent(props) {
  65704. var _this = _super.call(this, props) || this;
  65705. var camera = _this.props.camera;
  65706. var scene = camera.getScene();
  65707. _this.state = { isActive: scene.activeCamera === camera, isGizmoEnabled: (camera.reservedDataStore && camera.reservedDataStore.cameraGizmo) };
  65708. return _this;
  65709. }
  65710. CameraTreeItemComponent.prototype.setActive = function () {
  65711. var camera = this.props.camera;
  65712. var scene = camera.getScene();
  65713. scene.activeCamera = camera;
  65714. camera.attachControl(scene.getEngine().getRenderingCanvas(), true);
  65715. this.setState({ isActive: true });
  65716. };
  65717. CameraTreeItemComponent.prototype.componentDidMount = function () {
  65718. var _this = this;
  65719. var scene = this.props.camera.getScene();
  65720. this._onBeforeRenderObserver = scene.onBeforeRenderObservable.add(function () {
  65721. var camera = _this.props.camera;
  65722. // This will deactivate the previous camera when the camera is changed. Multiple camera's cycle frequently so only do this for single cameras
  65723. if (_this.state.isActive && scene.activeCameras.length <= 1 && scene.activeCamera !== camera) {
  65724. camera.detachControl(scene.getEngine().getRenderingCanvas());
  65725. }
  65726. var newState = scene.activeCamera === camera;
  65727. if (newState !== _this.state.isActive) {
  65728. _this.setState({ isActive: newState });
  65729. }
  65730. });
  65731. };
  65732. CameraTreeItemComponent.prototype.componentWillUnmount = function () {
  65733. if (this._onBeforeRenderObserver) {
  65734. var camera = this.props.camera;
  65735. var scene = camera.getScene();
  65736. scene.onBeforeRenderObservable.remove(this._onBeforeRenderObserver);
  65737. }
  65738. };
  65739. CameraTreeItemComponent.prototype.toggleGizmo = function () {
  65740. var camera = this.props.camera;
  65741. if (camera.reservedDataStore && camera.reservedDataStore.cameraGizmo) {
  65742. if (camera.getScene().reservedDataStore && camera.getScene().reservedDataStore.gizmoManager) {
  65743. camera.getScene().reservedDataStore.gizmoManager.attachToMesh(null);
  65744. }
  65745. this.props.globalState.enableCameraGizmo(camera, false);
  65746. this.setState({ isGizmoEnabled: false });
  65747. }
  65748. else {
  65749. this.props.globalState.enableCameraGizmo(camera, true);
  65750. this.setState({ isGizmoEnabled: true });
  65751. }
  65752. };
  65753. CameraTreeItemComponent.prototype.render = function () {
  65754. var _this = this;
  65755. 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" });
  65756. var scene = this.props.camera.getScene();
  65757. var isGizmoEnabled = (this.state.isGizmoEnabled || (this.props.camera && this.props.camera.reservedDataStore && this.props.camera.reservedDataStore.cameraGizmo)) ? react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faEye"] }) : react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_2__["faEye"], className: "isNotActive" });
  65758. return (react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "cameraTools" },
  65759. 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" }),
  65760. (!scene.activeCameras || scene.activeCameras.length === 0) &&
  65761. 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),
  65762. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "enableGizmo icon", onClick: function () { return _this.toggleGizmo(); }, title: "Turn on/off the camera's gizmo" }, isGizmoEnabled),
  65763. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_4__["ExtensionsComponent"], { target: this.props.camera, extensibilityGroups: this.props.extensibilityGroups })));
  65764. };
  65765. return CameraTreeItemComponent;
  65766. }(react__WEBPACK_IMPORTED_MODULE_5__["Component"]));
  65767. /***/ }),
  65768. /***/ "./components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent.tsx":
  65769. /*!*******************************************************************************************!*\
  65770. !*** ./components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent.tsx ***!
  65771. \*******************************************************************************************/
  65772. /*! exports provided: AdvancedDynamicTextureTreeItemComponent */
  65773. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65774. "use strict";
  65775. __webpack_require__.r(__webpack_exports__);
  65776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedDynamicTextureTreeItemComponent", function() { return AdvancedDynamicTextureTreeItemComponent; });
  65777. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65778. /* 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");
  65779. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65780. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65781. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65782. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  65783. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65784. var AdvancedDynamicTextureTreeItemComponent = /** @class */ (function (_super) {
  65785. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AdvancedDynamicTextureTreeItemComponent, _super);
  65786. function AdvancedDynamicTextureTreeItemComponent(props) {
  65787. var _this = _super.call(this, props) || this;
  65788. _this.state = { isInPickingMode: false };
  65789. return _this;
  65790. }
  65791. AdvancedDynamicTextureTreeItemComponent.prototype.componentWillUnmount = function () {
  65792. var adt = this.props.texture;
  65793. if (this._onControlPickedObserver) {
  65794. adt.onControlPickedObservable.remove(this._onControlPickedObserver);
  65795. this._onControlPickedObserver = null;
  65796. }
  65797. };
  65798. AdvancedDynamicTextureTreeItemComponent.prototype.onPickingMode = function () {
  65799. var _this = this;
  65800. var adt = this.props.texture;
  65801. if (this._onControlPickedObserver) {
  65802. adt.onControlPickedObservable.remove(this._onControlPickedObserver);
  65803. this._onControlPickedObserver = null;
  65804. }
  65805. if (!this.state.isInPickingMode) {
  65806. this._onControlPickedObserver = adt.onControlPickedObservable.add(function (control) {
  65807. if (!_this.props.onSelectionChangedObservable) {
  65808. return;
  65809. }
  65810. if (control.getClassName() === "ScrollViewerWindow") {
  65811. control = control.getAscendantOfClass("ScrollViewer");
  65812. }
  65813. _this.props.onSelectionChangedObservable.notifyObservers(control);
  65814. });
  65815. }
  65816. this.setState({ isInPickingMode: !this.state.isInPickingMode });
  65817. };
  65818. AdvancedDynamicTextureTreeItemComponent.prototype.render = function () {
  65819. var _this = this;
  65820. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "adtextureTools" },
  65821. 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" }),
  65822. 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" },
  65823. 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"] })),
  65824. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.texture, extensibilityGroups: this.props.extensibilityGroups })));
  65825. };
  65826. return AdvancedDynamicTextureTreeItemComponent;
  65827. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  65828. /***/ }),
  65829. /***/ "./components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx":
  65830. /*!****************************************************************************!*\
  65831. !*** ./components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx ***!
  65832. \****************************************************************************/
  65833. /*! exports provided: ControlTreeItemComponent */
  65834. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65835. "use strict";
  65836. __webpack_require__.r(__webpack_exports__);
  65837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlTreeItemComponent", function() { return ControlTreeItemComponent; });
  65838. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65839. /* 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");
  65840. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65841. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65842. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65843. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  65844. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65845. var ControlTreeItemComponent = /** @class */ (function (_super) {
  65846. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ControlTreeItemComponent, _super);
  65847. function ControlTreeItemComponent(props) {
  65848. var _this = _super.call(this, props) || this;
  65849. var control = _this.props.control;
  65850. _this.state = { isActive: control.isHighlighted, isVisible: control.isVisible };
  65851. return _this;
  65852. }
  65853. ControlTreeItemComponent.prototype.highlight = function () {
  65854. var control = this.props.control;
  65855. control.isHighlighted = !control.isHighlighted;
  65856. this.setState({ isActive: control.isHighlighted });
  65857. };
  65858. ControlTreeItemComponent.prototype.switchVisibility = function () {
  65859. var newState = !this.state.isVisible;
  65860. this.setState({ isVisible: newState });
  65861. this.props.control.isVisible = newState;
  65862. };
  65863. ControlTreeItemComponent.prototype.render = function () {
  65864. var _this = this;
  65865. var control = this.props.control;
  65866. var name = (control.name || "No name") + (" [" + control.getClassName() + "]");
  65867. 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" });
  65868. 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" });
  65869. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "controlTools" },
  65870. 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" }),
  65871. react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "highlight icon", onClick: function () { return _this.highlight(); }, title: "Highlight this control" }, isActiveElement),
  65872. react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "visibility icon", onClick: function () { return _this.switchVisibility(); }, title: "Show/Hide control" }, visibilityElement),
  65873. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: control, extensibilityGroups: this.props.extensibilityGroups })));
  65874. };
  65875. return ControlTreeItemComponent;
  65876. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  65877. /***/ }),
  65878. /***/ "./components/sceneExplorer/entities/lightTreeItemComponent.tsx":
  65879. /*!**********************************************************************!*\
  65880. !*** ./components/sceneExplorer/entities/lightTreeItemComponent.tsx ***!
  65881. \**********************************************************************/
  65882. /*! exports provided: LightTreeItemComponent */
  65883. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65884. "use strict";
  65885. __webpack_require__.r(__webpack_exports__);
  65886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightTreeItemComponent", function() { return LightTreeItemComponent; });
  65887. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65888. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65889. /* 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");
  65890. /* 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");
  65891. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65892. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65893. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65894. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  65895. var LightTreeItemComponent = /** @class */ (function (_super) {
  65896. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightTreeItemComponent, _super);
  65897. function LightTreeItemComponent(props) {
  65898. var _this = _super.call(this, props) || this;
  65899. var light = _this.props.light;
  65900. _this.state = { isEnabled: light.isEnabled(), isGizmoEnabled: (light.reservedDataStore && light.reservedDataStore.lightGizmo) };
  65901. return _this;
  65902. }
  65903. LightTreeItemComponent.prototype.switchIsEnabled = function () {
  65904. var light = this.props.light;
  65905. light.setEnabled(!light.isEnabled());
  65906. this.setState({ isEnabled: light.isEnabled() });
  65907. };
  65908. LightTreeItemComponent.prototype.toggleGizmo = function () {
  65909. var light = this.props.light;
  65910. if (light.reservedDataStore && light.reservedDataStore.lightGizmo) {
  65911. if (light.getScene().reservedDataStore && light.getScene().reservedDataStore.gizmoManager) {
  65912. light.getScene().reservedDataStore.gizmoManager.attachToMesh(null);
  65913. }
  65914. this.props.globalState.enableLightGizmo(light, false);
  65915. this.setState({ isGizmoEnabled: false });
  65916. }
  65917. else {
  65918. this.props.globalState.enableLightGizmo(light, true);
  65919. this.setState({ isGizmoEnabled: true });
  65920. }
  65921. };
  65922. LightTreeItemComponent.prototype.render = function () {
  65923. var _this = this;
  65924. 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" });
  65925. 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" });
  65926. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "lightTools" },
  65927. 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" }),
  65928. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "visibility icon", onClick: function () { return _this.switchIsEnabled(); }, title: "Turn on/off the light" }, isEnabledElement),
  65929. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "enableGizmo icon", onClick: function () { return _this.toggleGizmo(); }, title: "Turn on/off the light's gizmo" }, isGizmoEnabled),
  65930. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_5__["ExtensionsComponent"], { target: this.props.light, extensibilityGroups: this.props.extensibilityGroups })));
  65931. };
  65932. return LightTreeItemComponent;
  65933. }(react__WEBPACK_IMPORTED_MODULE_6__["Component"]));
  65934. /***/ }),
  65935. /***/ "./components/sceneExplorer/entities/materialTreeItemComponent.tsx":
  65936. /*!*************************************************************************!*\
  65937. !*** ./components/sceneExplorer/entities/materialTreeItemComponent.tsx ***!
  65938. \*************************************************************************/
  65939. /*! exports provided: MaterialTreeItemComponent */
  65940. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65941. "use strict";
  65942. __webpack_require__.r(__webpack_exports__);
  65943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialTreeItemComponent", function() { return MaterialTreeItemComponent; });
  65944. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65945. /* 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");
  65946. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65947. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65948. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65949. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  65950. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65951. var MaterialTreeItemComponent = /** @class */ (function (_super) {
  65952. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MaterialTreeItemComponent, _super);
  65953. function MaterialTreeItemComponent(props) {
  65954. return _super.call(this, props) || this;
  65955. }
  65956. MaterialTreeItemComponent.prototype.render = function () {
  65957. var _this = this;
  65958. var nmeIcon = this.props.material.getClassName() === "NodeMaterial" ?
  65959. react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "icon", onClick: function () { _this.props.material.edit(); }, title: "Node Material Editor", color: "white" },
  65960. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faPen"] })) : null;
  65961. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "materialTools" },
  65962. 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" }),
  65963. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.material, extensibilityGroups: this.props.extensibilityGroups }),
  65964. nmeIcon));
  65965. };
  65966. return MaterialTreeItemComponent;
  65967. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  65968. /***/ }),
  65969. /***/ "./components/sceneExplorer/entities/meshTreeItemComponent.tsx":
  65970. /*!*********************************************************************!*\
  65971. !*** ./components/sceneExplorer/entities/meshTreeItemComponent.tsx ***!
  65972. \*********************************************************************/
  65973. /*! exports provided: MeshTreeItemComponent */
  65974. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65975. "use strict";
  65976. __webpack_require__.r(__webpack_exports__);
  65977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MeshTreeItemComponent", function() { return MeshTreeItemComponent; });
  65978. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65979. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65980. /* 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");
  65981. /* 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");
  65982. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  65983. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  65984. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65985. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  65986. var MeshTreeItemComponent = /** @class */ (function (_super) {
  65987. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MeshTreeItemComponent, _super);
  65988. function MeshTreeItemComponent(props) {
  65989. var _this = _super.call(this, props) || this;
  65990. var mesh = _this.props.mesh;
  65991. _this.state = { isBoundingBoxEnabled: mesh.showBoundingBox, isVisible: _this.props.mesh.isVisible };
  65992. return _this;
  65993. }
  65994. MeshTreeItemComponent.prototype.showBoundingBox = function () {
  65995. var mesh = this.props.mesh;
  65996. mesh.showBoundingBox = !this.state.isBoundingBoxEnabled;
  65997. this.setState({ isBoundingBoxEnabled: !this.state.isBoundingBoxEnabled });
  65998. };
  65999. MeshTreeItemComponent.prototype.switchVisibility = function () {
  66000. var newState = !this.state.isVisible;
  66001. this.setState({ isVisible: newState });
  66002. this.props.mesh.isVisible = newState;
  66003. };
  66004. MeshTreeItemComponent.prototype.render = function () {
  66005. var _this = this;
  66006. var mesh = this.props.mesh;
  66007. 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" });
  66008. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "meshTools" },
  66009. 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" }),
  66010. 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" },
  66011. 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"] })),
  66012. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "visibility icon", onClick: function () { return _this.switchVisibility(); }, title: "Show/Hide mesh" }, visibilityElement),
  66013. react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_5__["ExtensionsComponent"], { target: mesh, extensibilityGroups: this.props.extensibilityGroups })));
  66014. };
  66015. return MeshTreeItemComponent;
  66016. }(react__WEBPACK_IMPORTED_MODULE_6__["Component"]));
  66017. /***/ }),
  66018. /***/ "./components/sceneExplorer/entities/particleSystemTreeItemComponent.tsx":
  66019. /*!*******************************************************************************!*\
  66020. !*** ./components/sceneExplorer/entities/particleSystemTreeItemComponent.tsx ***!
  66021. \*******************************************************************************/
  66022. /*! exports provided: ParticleSystemTreeItemComponent */
  66023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66024. "use strict";
  66025. __webpack_require__.r(__webpack_exports__);
  66026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParticleSystemTreeItemComponent", function() { return ParticleSystemTreeItemComponent; });
  66027. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66028. /* 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");
  66029. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66030. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66031. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66032. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66033. var ParticleSystemTreeItemComponent = /** @class */ (function (_super) {
  66034. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParticleSystemTreeItemComponent, _super);
  66035. function ParticleSystemTreeItemComponent(props) {
  66036. return _super.call(this, props) || this;
  66037. }
  66038. ParticleSystemTreeItemComponent.prototype.render = function () {
  66039. var _this = this;
  66040. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "particleSystemTools" },
  66041. 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" }),
  66042. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.system, extensibilityGroups: this.props.extensibilityGroups })));
  66043. };
  66044. return ParticleSystemTreeItemComponent;
  66045. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66046. /***/ }),
  66047. /***/ "./components/sceneExplorer/entities/postProcessTreeItemComponent.tsx":
  66048. /*!****************************************************************************!*\
  66049. !*** ./components/sceneExplorer/entities/postProcessTreeItemComponent.tsx ***!
  66050. \****************************************************************************/
  66051. /*! exports provided: PostProcessItemComponent */
  66052. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66053. "use strict";
  66054. __webpack_require__.r(__webpack_exports__);
  66055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostProcessItemComponent", function() { return PostProcessItemComponent; });
  66056. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66057. /* 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");
  66058. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66059. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66060. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66061. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66062. var PostProcessItemComponent = /** @class */ (function (_super) {
  66063. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PostProcessItemComponent, _super);
  66064. function PostProcessItemComponent(props) {
  66065. return _super.call(this, props) || this;
  66066. }
  66067. PostProcessItemComponent.prototype.render = function () {
  66068. var _this = this;
  66069. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "postProcessTools" },
  66070. 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" }),
  66071. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.postProcess, extensibilityGroups: this.props.extensibilityGroups })));
  66072. };
  66073. return PostProcessItemComponent;
  66074. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66075. /***/ }),
  66076. /***/ "./components/sceneExplorer/entities/renderingPipelineTreeItemComponent.tsx":
  66077. /*!**********************************************************************************!*\
  66078. !*** ./components/sceneExplorer/entities/renderingPipelineTreeItemComponent.tsx ***!
  66079. \**********************************************************************************/
  66080. /*! exports provided: RenderingPipelineItemComponent */
  66081. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66082. "use strict";
  66083. __webpack_require__.r(__webpack_exports__);
  66084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderingPipelineItemComponent", function() { return RenderingPipelineItemComponent; });
  66085. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66086. /* 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");
  66087. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66088. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66089. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66090. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66091. var RenderingPipelineItemComponent = /** @class */ (function (_super) {
  66092. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RenderingPipelineItemComponent, _super);
  66093. function RenderingPipelineItemComponent(props) {
  66094. return _super.call(this, props) || this;
  66095. }
  66096. RenderingPipelineItemComponent.prototype.render = function () {
  66097. var _this = this;
  66098. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "postProcessTools" },
  66099. 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" }),
  66100. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.renderPipeline, extensibilityGroups: this.props.extensibilityGroups })));
  66101. };
  66102. return RenderingPipelineItemComponent;
  66103. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66104. /***/ }),
  66105. /***/ "./components/sceneExplorer/entities/sceneTreeItemComponent.tsx":
  66106. /*!**********************************************************************!*\
  66107. !*** ./components/sceneExplorer/entities/sceneTreeItemComponent.tsx ***!
  66108. \**********************************************************************/
  66109. /*! exports provided: SceneTreeItemComponent */
  66110. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66111. "use strict";
  66112. __webpack_require__.r(__webpack_exports__);
  66113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SceneTreeItemComponent", function() { return SceneTreeItemComponent; });
  66114. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66115. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Events/pointerEvents */ "babylonjs/Misc/observable");
  66116. /* harmony import */ var babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__);
  66117. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66118. /* 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");
  66119. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66120. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66121. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
  66122. /* harmony import */ var _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/propertyChangedEvent */ "./components/propertyChangedEvent.ts");
  66123. var SceneTreeItemComponent = /** @class */ (function (_super) {
  66124. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SceneTreeItemComponent, _super);
  66125. function SceneTreeItemComponent(props) {
  66126. var _this = _super.call(this, props) || this;
  66127. _this._posDragEnd = null;
  66128. _this._scaleDragEnd = null;
  66129. _this._rotateDragEnd = null;
  66130. var scene = _this.props.scene;
  66131. var gizmoMode = 0;
  66132. if (scene.reservedDataStore && scene.reservedDataStore.gizmoManager) {
  66133. var manager = scene.reservedDataStore.gizmoManager;
  66134. if (manager.positionGizmoEnabled) {
  66135. gizmoMode = 1;
  66136. }
  66137. else if (manager.rotationGizmoEnabled) {
  66138. gizmoMode = 2;
  66139. }
  66140. else if (manager.scaleGizmoEnabled) {
  66141. gizmoMode = 3;
  66142. }
  66143. else if (manager.boundingBoxGizmoEnabled) {
  66144. gizmoMode = 4;
  66145. }
  66146. }
  66147. _this.state = { isSelected: false, isInPickingMode: false, gizmoMode: gizmoMode };
  66148. return _this;
  66149. }
  66150. SceneTreeItemComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66151. if (nextProps.selectedEntity) {
  66152. if (nextProps.scene === nextProps.selectedEntity) {
  66153. nextState.isSelected = true;
  66154. return true;
  66155. }
  66156. else {
  66157. nextState.isSelected = false;
  66158. }
  66159. }
  66160. return true;
  66161. };
  66162. SceneTreeItemComponent.prototype.componentDidMount = function () {
  66163. var _this = this;
  66164. if (!this.props.onSelectionChangedObservable) {
  66165. return;
  66166. }
  66167. var scene = this.props.scene;
  66168. this._onSelectionChangeObserver = this.props.onSelectionChangedObservable.add(function (entity) {
  66169. _this._selectedEntity = entity;
  66170. if (entity && scene.reservedDataStore && scene.reservedDataStore.gizmoManager) {
  66171. var manager = scene.reservedDataStore.gizmoManager;
  66172. var className = entity.getClassName();
  66173. if (className === "TransformNode" || className.indexOf("Mesh") !== -1) {
  66174. manager.attachToMesh(entity);
  66175. }
  66176. else if (className.indexOf("Light") !== -1) {
  66177. if (!_this._selectedEntity.reservedDataStore || !_this._selectedEntity.reservedDataStore.lightGizmo) {
  66178. _this.props.globalState.enableLightGizmo(_this._selectedEntity, true);
  66179. _this.forceUpdate();
  66180. }
  66181. manager.attachToNode(_this._selectedEntity.reservedDataStore.lightGizmo.attachedNode);
  66182. }
  66183. else if (className.indexOf("Camera") !== -1) {
  66184. if (!_this._selectedEntity.reservedDataStore || !_this._selectedEntity.reservedDataStore.cameraGizmo) {
  66185. _this.props.globalState.enableCameraGizmo(_this._selectedEntity, true);
  66186. _this.forceUpdate();
  66187. }
  66188. manager.attachToNode(_this._selectedEntity.reservedDataStore.cameraGizmo.attachedNode);
  66189. }
  66190. else if (className.indexOf("Bone") !== -1) {
  66191. manager.attachToMesh((_this._selectedEntity._linkedTransformNode) ? _this._selectedEntity._linkedTransformNode : _this._selectedEntity);
  66192. }
  66193. else {
  66194. manager.attachToNode(null);
  66195. }
  66196. }
  66197. });
  66198. };
  66199. SceneTreeItemComponent.prototype.componentWillUnmount = function () {
  66200. var scene = this.props.scene;
  66201. if (this._onPointerObserver) {
  66202. scene.onPointerObservable.remove(this._onPointerObserver);
  66203. this._onPointerObserver = null;
  66204. }
  66205. if (this._gizmoLayerOnPointerObserver) {
  66206. scene.onPointerObservable.remove(this._gizmoLayerOnPointerObserver);
  66207. this._gizmoLayerOnPointerObserver = null;
  66208. }
  66209. if (this._onSelectionChangeObserver && this.props.onSelectionChangedObservable) {
  66210. this.props.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  66211. }
  66212. };
  66213. SceneTreeItemComponent.prototype.onSelect = function () {
  66214. if (!this.props.onSelectionChangedObservable) {
  66215. return;
  66216. }
  66217. var scene = this.props.scene;
  66218. this.props.onSelectionChangedObservable.notifyObservers(scene);
  66219. };
  66220. SceneTreeItemComponent.prototype.onPickingMode = function () {
  66221. var _this = this;
  66222. var scene = this.props.scene;
  66223. if (this._onPointerObserver) {
  66224. scene.onPointerObservable.remove(this._onPointerObserver);
  66225. this._onPointerObserver = null;
  66226. }
  66227. if (!this.state.isInPickingMode) {
  66228. this._onPointerObserver = scene.onPointerObservable.add(function () {
  66229. var pickPosition = scene.unTranslatedPointer;
  66230. 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) {
  66231. if (!_this.props.globalState.ignoreBackfacesForPicking) {
  66232. return true;
  66233. }
  66234. var p0p1 = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["TmpVectors"].Vector3[0];
  66235. var p1p2 = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["TmpVectors"].Vector3[1];
  66236. var normal = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["TmpVectors"].Vector3[2];
  66237. p1.subtractToRef(p0, p0p1);
  66238. p2.subtractToRef(p1, p1p2);
  66239. normal = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["Vector3"].Cross(p0p1, p1p2);
  66240. return babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["Vector3"].Dot(normal, ray.direction) < 0;
  66241. });
  66242. // Pick light gizmos first
  66243. if (_this.props.globalState.lightGizmos.length > 0) {
  66244. var gizmoScene = _this.props.globalState.lightGizmos[0].gizmoLayer.utilityLayerScene;
  66245. var pickInfo_1 = gizmoScene.pick(pickPosition.x, pickPosition.y, function (m) {
  66246. for (var _i = 0, _a = _this.props.globalState.lightGizmos; _i < _a.length; _i++) {
  66247. var g = _a[_i];
  66248. if (g.attachedNode == m) {
  66249. return true;
  66250. }
  66251. }
  66252. return false;
  66253. });
  66254. if (pickInfo_1 && pickInfo_1.hit && _this.props.onSelectionChangedObservable) {
  66255. _this.props.onSelectionChangedObservable.notifyObservers(pickInfo_1.pickedMesh);
  66256. return;
  66257. }
  66258. }
  66259. // Pick camera gizmos
  66260. if (_this.props.globalState.cameraGizmos.length > 0) {
  66261. var gizmoScene = _this.props.globalState.cameraGizmos[0].gizmoLayer.utilityLayerScene;
  66262. var pickInfo_2 = gizmoScene.pick(pickPosition.x, pickPosition.y, function (m) {
  66263. for (var _i = 0, _a = _this.props.globalState.cameraGizmos; _i < _a.length; _i++) {
  66264. var g = _a[_i];
  66265. if (g.attachedNode == m) {
  66266. return true;
  66267. }
  66268. }
  66269. return false;
  66270. });
  66271. if (pickInfo_2 && pickInfo_2.hit && _this.props.onSelectionChangedObservable) {
  66272. _this.props.onSelectionChangedObservable.notifyObservers(pickInfo_2.pickedMesh);
  66273. return;
  66274. }
  66275. }
  66276. if (pickInfo && pickInfo.hit && _this.props.onSelectionChangedObservable) {
  66277. _this.props.onSelectionChangedObservable.notifyObservers(pickInfo.pickedMesh);
  66278. }
  66279. }, babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERTAP);
  66280. }
  66281. this.setState({ isInPickingMode: !this.state.isInPickingMode });
  66282. };
  66283. SceneTreeItemComponent.prototype.setGizmoMode = function (mode) {
  66284. var _this = this;
  66285. var scene = this.props.scene;
  66286. if (!scene.reservedDataStore) {
  66287. scene.reservedDataStore = {};
  66288. }
  66289. if (this._gizmoLayerOnPointerObserver) {
  66290. scene.onPointerObservable.remove(this._gizmoLayerOnPointerObserver);
  66291. this._gizmoLayerOnPointerObserver = null;
  66292. }
  66293. if (!scene.reservedDataStore.gizmoManager) {
  66294. scene.reservedDataStore.gizmoManager = new babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["GizmoManager"](scene);
  66295. }
  66296. var manager = scene.reservedDataStore.gizmoManager;
  66297. // Allow picking of light gizmo when a gizmo mode is selected
  66298. this._gizmoLayerOnPointerObserver = babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["UtilityLayerRenderer"].DefaultUtilityLayer.utilityLayerScene.onPointerObservable.add(function (pointerInfo) {
  66299. if (pointerInfo.type == babylonjs_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__["PointerEventTypes"].POINTERDOWN) {
  66300. if (pointerInfo.pickInfo && pointerInfo.pickInfo.pickedMesh) {
  66301. var node = pointerInfo.pickInfo.pickedMesh;
  66302. // Attach to the most parent node
  66303. while (node && node.parent != null) {
  66304. node = node.parent;
  66305. }
  66306. for (var _i = 0, _a = _this.props.globalState.lightGizmos; _i < _a.length; _i++) {
  66307. var gizmo = _a[_i];
  66308. if (gizmo._rootMesh == node) {
  66309. manager.attachToNode(gizmo.attachedNode);
  66310. }
  66311. }
  66312. }
  66313. }
  66314. });
  66315. manager.boundingBoxGizmoEnabled = false;
  66316. manager.positionGizmoEnabled = false;
  66317. manager.rotationGizmoEnabled = false;
  66318. manager.scaleGizmoEnabled = false;
  66319. if (this.state.gizmoMode === mode) {
  66320. mode = 0;
  66321. manager.dispose();
  66322. scene.reservedDataStore.gizmoManager = null;
  66323. }
  66324. else {
  66325. switch (mode) {
  66326. case 1:
  66327. manager.positionGizmoEnabled = true;
  66328. if (!this._posDragEnd) {
  66329. // Record movement for generating replay code
  66330. this._posDragEnd = manager.gizmos.positionGizmo.onDragEndObservable.add(function () {
  66331. if (manager.gizmos.positionGizmo && manager.gizmos.positionGizmo.attachedNode) {
  66332. var lightGizmo = manager.gizmos.positionGizmo.attachedNode.reservedDataStore ? manager.gizmos.positionGizmo.attachedNode.reservedDataStore.lightGizmo : null;
  66333. var objLight = (lightGizmo && lightGizmo.light) ? lightGizmo.light : manager.gizmos.positionGizmo.attachedNode;
  66334. if (objLight.position) {
  66335. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66336. e.object = objLight;
  66337. e.property = "position";
  66338. e.value = objLight.position;
  66339. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66340. }
  66341. else {
  66342. var cameraGizmo = manager.gizmos.positionGizmo.attachedNode.reservedDataStore ? manager.gizmos.positionGizmo.attachedNode.reservedDataStore.cameraGizmo : null;
  66343. var objCamera = (cameraGizmo && cameraGizmo.camera) ? cameraGizmo.camera : manager.gizmos.positionGizmo.attachedNode;
  66344. if (objCamera.position) {
  66345. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66346. e.object = objCamera;
  66347. e.property = "position";
  66348. e.value = objCamera.position;
  66349. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66350. }
  66351. }
  66352. }
  66353. });
  66354. }
  66355. break;
  66356. case 2:
  66357. manager.rotationGizmoEnabled = true;
  66358. if (!this._rotateDragEnd) {
  66359. // Record movement for generating replay code
  66360. this._rotateDragEnd = manager.gizmos.rotationGizmo.onDragEndObservable.add(function () {
  66361. if (manager.gizmos.rotationGizmo && manager.gizmos.rotationGizmo.attachedNode) {
  66362. var lightGizmo = manager.gizmos.rotationGizmo.attachedNode.reservedDataStore ? manager.gizmos.rotationGizmo.attachedNode.reservedDataStore.lightGizmo : null;
  66363. var objLight = (lightGizmo && lightGizmo.light) ? lightGizmo.light : manager.gizmos.rotationGizmo.attachedNode;
  66364. var cameraGizmo = manager.gizmos.rotationGizmo.attachedNode.reservedDataStore ? manager.gizmos.rotationGizmo.attachedNode.reservedDataStore.cameraGizmo : null;
  66365. var objCamera = (cameraGizmo && cameraGizmo.camera) ? cameraGizmo.camera : manager.gizmos.rotationGizmo.attachedNode;
  66366. if (objLight.rotationQuaternion) {
  66367. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66368. e.object = objLight;
  66369. e.property = "rotationQuaternion";
  66370. e.value = objLight.rotationQuaternion;
  66371. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66372. }
  66373. else if (objLight.rotation) {
  66374. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66375. e.object = objLight;
  66376. e.property = "rotation";
  66377. e.value = objLight.rotation;
  66378. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66379. }
  66380. else if (objLight.direction) {
  66381. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66382. e.object = objLight;
  66383. e.property = "direction";
  66384. e.value = objLight.direction;
  66385. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66386. }
  66387. else if (objCamera.rotationQuaternion) {
  66388. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66389. e.object = objCamera;
  66390. e.property = "rotationQuaternion";
  66391. e.value = objCamera.rotationQuaternion;
  66392. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66393. }
  66394. else if (objCamera.rotation) {
  66395. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66396. e.object = objCamera;
  66397. e.property = "rotation";
  66398. e.value = objCamera.rotation;
  66399. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66400. }
  66401. }
  66402. });
  66403. }
  66404. break;
  66405. case 3:
  66406. manager.scaleGizmoEnabled = true;
  66407. if (!this._scaleDragEnd) {
  66408. // Record movement for generating replay code
  66409. this._scaleDragEnd = manager.gizmos.scaleGizmo.onDragEndObservable.add(function () {
  66410. if (manager.gizmos.scaleGizmo && manager.gizmos.scaleGizmo.attachedMesh) {
  66411. var lightGizmo = manager.gizmos.scaleGizmo.attachedMesh.reservedDataStore ? manager.gizmos.scaleGizmo.attachedMesh.reservedDataStore.lightGizmo : null;
  66412. var obj = (lightGizmo && lightGizmo.light) ? lightGizmo.light : manager.gizmos.scaleGizmo.attachedMesh;
  66413. if (obj.scaling) {
  66414. var e = new _components_propertyChangedEvent__WEBPACK_IMPORTED_MODULE_6__["PropertyChangedEvent"]();
  66415. e.object = obj;
  66416. e.property = "scaling";
  66417. e.value = obj.scaling;
  66418. _this.props.globalState.onPropertyChangedObservable.notifyObservers(e);
  66419. }
  66420. }
  66421. });
  66422. }
  66423. break;
  66424. case 4:
  66425. manager.boundingBoxGizmoEnabled = true;
  66426. if (manager.gizmos.boundingBoxGizmo) {
  66427. manager.gizmos.boundingBoxGizmo.fixedDragMeshScreenSize = true;
  66428. }
  66429. break;
  66430. }
  66431. if (this._selectedEntity && this._selectedEntity.getClassName) {
  66432. var className = this._selectedEntity.getClassName();
  66433. if (className === "TransformNode" || className.indexOf("Mesh") !== -1) {
  66434. manager.attachToMesh(this._selectedEntity);
  66435. }
  66436. else if (className.indexOf("Light") !== -1) {
  66437. if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.lightGizmo) {
  66438. this.props.globalState.enableLightGizmo(this._selectedEntity, true);
  66439. this.forceUpdate();
  66440. }
  66441. manager.attachToNode(this._selectedEntity.reservedDataStore.lightGizmo.attachedNode);
  66442. }
  66443. else if (className.indexOf("Camera") !== -1) {
  66444. if (!this._selectedEntity.reservedDataStore || !this._selectedEntity.reservedDataStore.cameraGizmo) {
  66445. this.props.globalState.enableCameraGizmo(this._selectedEntity, true);
  66446. this.forceUpdate();
  66447. }
  66448. manager.attachToNode(this._selectedEntity.reservedDataStore.cameraGizmo.attachedNode);
  66449. }
  66450. else if (className.indexOf("Bone") !== -1) {
  66451. manager.attachToMesh((this._selectedEntity._linkedTransformNode) ? this._selectedEntity._linkedTransformNode : this._selectedEntity);
  66452. }
  66453. }
  66454. }
  66455. this.setState({ gizmoMode: mode });
  66456. };
  66457. SceneTreeItemComponent.prototype.render = function () {
  66458. var _this = this;
  66459. return (react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: this.state.isSelected ? "itemContainer selected" : "itemContainer" },
  66460. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "sceneNode" },
  66461. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "sceneTitle", onClick: function () { return _this.onSelect(); } },
  66462. 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"] }),
  66463. "\u00A0Scene"),
  66464. 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" },
  66465. 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"] })),
  66466. 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" },
  66467. 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"] })),
  66468. 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" },
  66469. 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"] })),
  66470. 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" },
  66471. 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"] })),
  66472. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "separator" }),
  66473. 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" },
  66474. 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"] })),
  66475. react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", { className: "refresh icon", onClick: function () { return _this.props.onRefresh(); }, title: "Refresh the explorer" },
  66476. 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"] })),
  66477. react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_4__["ExtensionsComponent"], { target: this.props.scene, extensibilityGroups: this.props.extensibilityGroups }))));
  66478. };
  66479. return SceneTreeItemComponent;
  66480. }(react__WEBPACK_IMPORTED_MODULE_5__["Component"]));
  66481. /***/ }),
  66482. /***/ "./components/sceneExplorer/entities/skeletonTreeItemComponent.tsx":
  66483. /*!*************************************************************************!*\
  66484. !*** ./components/sceneExplorer/entities/skeletonTreeItemComponent.tsx ***!
  66485. \*************************************************************************/
  66486. /*! exports provided: SkeletonTreeItemComponent */
  66487. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66488. "use strict";
  66489. __webpack_require__.r(__webpack_exports__);
  66490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonTreeItemComponent", function() { return SkeletonTreeItemComponent; });
  66491. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66492. /* 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");
  66493. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66494. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66495. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66496. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66497. var SkeletonTreeItemComponent = /** @class */ (function (_super) {
  66498. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SkeletonTreeItemComponent, _super);
  66499. function SkeletonTreeItemComponent(props) {
  66500. return _super.call(this, props) || this;
  66501. }
  66502. SkeletonTreeItemComponent.prototype.render = function () {
  66503. var _this = this;
  66504. var skeleton = this.props.skeleton;
  66505. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "skeletonTools" },
  66506. 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" }),
  66507. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: skeleton, extensibilityGroups: this.props.extensibilityGroups })));
  66508. };
  66509. return SkeletonTreeItemComponent;
  66510. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66511. /***/ }),
  66512. /***/ "./components/sceneExplorer/entities/spriteManagerTreeItemComponent.tsx":
  66513. /*!******************************************************************************!*\
  66514. !*** ./components/sceneExplorer/entities/spriteManagerTreeItemComponent.tsx ***!
  66515. \******************************************************************************/
  66516. /*! exports provided: SpriteManagerTreeItemComponent */
  66517. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66518. "use strict";
  66519. __webpack_require__.r(__webpack_exports__);
  66520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpriteManagerTreeItemComponent", function() { return SpriteManagerTreeItemComponent; });
  66521. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66522. /* 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");
  66523. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66524. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66525. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66526. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66527. var SpriteManagerTreeItemComponent = /** @class */ (function (_super) {
  66528. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SpriteManagerTreeItemComponent, _super);
  66529. function SpriteManagerTreeItemComponent(props) {
  66530. return _super.call(this, props) || this;
  66531. }
  66532. SpriteManagerTreeItemComponent.prototype.render = function () {
  66533. var _this = this;
  66534. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "spriteManagerTools" },
  66535. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.spriteManager.name || "No name", onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faAddressBook"], color: "blanchedalmond" }),
  66536. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.spriteManager, extensibilityGroups: this.props.extensibilityGroups })));
  66537. };
  66538. return SpriteManagerTreeItemComponent;
  66539. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66540. /***/ }),
  66541. /***/ "./components/sceneExplorer/entities/spriteTreeItemComponent.tsx":
  66542. /*!***********************************************************************!*\
  66543. !*** ./components/sceneExplorer/entities/spriteTreeItemComponent.tsx ***!
  66544. \***********************************************************************/
  66545. /*! exports provided: SpriteTreeItemComponent */
  66546. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66547. "use strict";
  66548. __webpack_require__.r(__webpack_exports__);
  66549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpriteTreeItemComponent", function() { return SpriteTreeItemComponent; });
  66550. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66551. /* 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");
  66552. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66553. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66554. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66555. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66556. var SpriteTreeItemComponent = /** @class */ (function (_super) {
  66557. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SpriteTreeItemComponent, _super);
  66558. function SpriteTreeItemComponent(props) {
  66559. return _super.call(this, props) || this;
  66560. }
  66561. SpriteTreeItemComponent.prototype.render = function () {
  66562. var _this = this;
  66563. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "spriteTools" },
  66564. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: this.props.sprite.name || "No name", onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faGhost"], color: "blanchedalmond" }),
  66565. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.sprite, extensibilityGroups: this.props.extensibilityGroups })));
  66566. };
  66567. return SpriteTreeItemComponent;
  66568. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66569. /***/ }),
  66570. /***/ "./components/sceneExplorer/entities/targetedAnimationTreeItemComponent.tsx":
  66571. /*!**********************************************************************************!*\
  66572. !*** ./components/sceneExplorer/entities/targetedAnimationTreeItemComponent.tsx ***!
  66573. \**********************************************************************************/
  66574. /*! exports provided: TargetedAnimationItemComponent */
  66575. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66576. "use strict";
  66577. __webpack_require__.r(__webpack_exports__);
  66578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TargetedAnimationItemComponent", function() { return TargetedAnimationItemComponent; });
  66579. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66580. /* 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");
  66581. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66582. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66583. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66584. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66585. var TargetedAnimationItemComponent = /** @class */ (function (_super) {
  66586. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TargetedAnimationItemComponent, _super);
  66587. function TargetedAnimationItemComponent(props) {
  66588. return _super.call(this, props) || this;
  66589. }
  66590. TargetedAnimationItemComponent.prototype.render = function () {
  66591. var _this = this;
  66592. var targetedAnimation = this.props.targetedAnimation;
  66593. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "targetedAnimationTools" },
  66594. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__["TreeItemLabelComponent"], { label: targetedAnimation.animation.name, onClick: function () { return _this.props.onClick(); }, icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faFilm"], color: "cornflowerblue" }),
  66595. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: targetedAnimation, extensibilityGroups: this.props.extensibilityGroups })));
  66596. };
  66597. return TargetedAnimationItemComponent;
  66598. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66599. /***/ }),
  66600. /***/ "./components/sceneExplorer/entities/textureTreeItemComponent.tsx":
  66601. /*!************************************************************************!*\
  66602. !*** ./components/sceneExplorer/entities/textureTreeItemComponent.tsx ***!
  66603. \************************************************************************/
  66604. /*! exports provided: TextureTreeItemComponent */
  66605. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66606. "use strict";
  66607. __webpack_require__.r(__webpack_exports__);
  66608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureTreeItemComponent", function() { return TextureTreeItemComponent; });
  66609. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66610. /* 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");
  66611. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66612. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66613. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66614. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66615. var TextureTreeItemComponent = /** @class */ (function (_super) {
  66616. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureTreeItemComponent, _super);
  66617. function TextureTreeItemComponent(props) {
  66618. return _super.call(this, props) || this;
  66619. }
  66620. TextureTreeItemComponent.prototype.render = function () {
  66621. var _this = this;
  66622. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "textureTools" },
  66623. 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" }),
  66624. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: this.props.texture, extensibilityGroups: this.props.extensibilityGroups })));
  66625. };
  66626. return TextureTreeItemComponent;
  66627. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66628. /***/ }),
  66629. /***/ "./components/sceneExplorer/entities/transformNodeTreeItemComponent.tsx":
  66630. /*!******************************************************************************!*\
  66631. !*** ./components/sceneExplorer/entities/transformNodeTreeItemComponent.tsx ***!
  66632. \******************************************************************************/
  66633. /*! exports provided: TransformNodeItemComponent */
  66634. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66635. "use strict";
  66636. __webpack_require__.r(__webpack_exports__);
  66637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformNodeItemComponent", function() { return TransformNodeItemComponent; });
  66638. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66639. /* 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");
  66640. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  66641. /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
  66642. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66643. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  66644. var TransformNodeItemComponent = /** @class */ (function (_super) {
  66645. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformNodeItemComponent, _super);
  66646. function TransformNodeItemComponent(props) {
  66647. return _super.call(this, props) || this;
  66648. }
  66649. TransformNodeItemComponent.prototype.render = function () {
  66650. var _this = this;
  66651. var transformNode = this.props.transformNode;
  66652. return (react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", { className: "transformNodeTools" },
  66653. 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" }),
  66654. react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__["ExtensionsComponent"], { target: transformNode, extensibilityGroups: this.props.extensibilityGroups })));
  66655. };
  66656. return TransformNodeItemComponent;
  66657. }(react__WEBPACK_IMPORTED_MODULE_4__["Component"]));
  66658. /***/ }),
  66659. /***/ "./components/sceneExplorer/extensionsComponent.tsx":
  66660. /*!**********************************************************!*\
  66661. !*** ./components/sceneExplorer/extensionsComponent.tsx ***!
  66662. \**********************************************************/
  66663. /*! exports provided: ExtensionsComponent */
  66664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66665. "use strict";
  66666. __webpack_require__.r(__webpack_exports__);
  66667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtensionsComponent", function() { return ExtensionsComponent; });
  66668. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66669. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66670. /* 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");
  66671. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66672. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
  66673. var ExtensionsComponent = /** @class */ (function (_super) {
  66674. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ExtensionsComponent, _super);
  66675. function ExtensionsComponent(props) {
  66676. var _this = _super.call(this, props) || this;
  66677. _this.state = { popupVisible: false };
  66678. _this.extensionRef = react__WEBPACK_IMPORTED_MODULE_3__["createRef"]();
  66679. return _this;
  66680. }
  66681. ExtensionsComponent.prototype.showPopup = function () {
  66682. this.setState({ popupVisible: true });
  66683. };
  66684. ExtensionsComponent.prototype.componentDidMount = function () {
  66685. if (!this._popup) {
  66686. return;
  66687. }
  66688. this._popup.focus();
  66689. };
  66690. ExtensionsComponent.prototype.componentDidUpdate = function () {
  66691. if (!this._popup) {
  66692. return;
  66693. }
  66694. this._popup.focus();
  66695. };
  66696. ExtensionsComponent.prototype.render = function () {
  66697. var _this = this;
  66698. if (!this.props.extensibilityGroups) {
  66699. return null;
  66700. }
  66701. var options = [];
  66702. for (var _i = 0, _a = this.props.extensibilityGroups; _i < _a.length; _i++) {
  66703. var group = _a[_i];
  66704. if (group.predicate(this.props.target)) {
  66705. options.push.apply(options, group.entries);
  66706. }
  66707. }
  66708. if (options.length === 0) {
  66709. return null;
  66710. }
  66711. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { ref: this.extensionRef, className: "extensions", onClick: function () { return _this.showPopup(); } },
  66712. react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { title: "Additional options", className: "icon" },
  66713. 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"] })),
  66714. 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) {
  66715. return (react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", { key: extensibility.label, className: "popupMenu", onClick: function () { return extensibility.action(_this.props.target); } }, extensibility.label));
  66716. }))));
  66717. };
  66718. return ExtensionsComponent;
  66719. }(react__WEBPACK_IMPORTED_MODULE_3__["Component"]));
  66720. /***/ }),
  66721. /***/ "./components/sceneExplorer/sceneExplorer.scss":
  66722. /*!*****************************************************!*\
  66723. !*** ./components/sceneExplorer/sceneExplorer.scss ***!
  66724. \*****************************************************/
  66725. /*! no static exports found */
  66726. /***/ (function(module, exports, __webpack_require__) {
  66727. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  66728. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./sceneExplorer.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/sceneExplorer/sceneExplorer.scss");
  66729. content = content.__esModule ? content.default : content;
  66730. if (typeof content === 'string') {
  66731. content = [[module.i, content, '']];
  66732. }
  66733. var options = {};
  66734. options.insert = "head";
  66735. options.singleton = false;
  66736. var update = api(content, options);
  66737. module.exports = content.locals || {};
  66738. /***/ }),
  66739. /***/ "./components/sceneExplorer/sceneExplorerComponent.tsx":
  66740. /*!*************************************************************!*\
  66741. !*** ./components/sceneExplorer/sceneExplorerComponent.tsx ***!
  66742. \*************************************************************/
  66743. /*! exports provided: SceneExplorerFilterComponent, SceneExplorerComponent */
  66744. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66745. "use strict";
  66746. __webpack_require__.r(__webpack_exports__);
  66747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SceneExplorerFilterComponent", function() { return SceneExplorerFilterComponent; });
  66748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SceneExplorerComponent", function() { return SceneExplorerComponent; });
  66749. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66750. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66751. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66752. /* harmony import */ var babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/engineStore */ "babylonjs/Misc/observable");
  66753. /* harmony import */ var babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__);
  66754. /* harmony import */ var _treeItemComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./treeItemComponent */ "./components/sceneExplorer/treeItemComponent.tsx");
  66755. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! re-resizable */ "../../node_modules/re-resizable/lib/index.es5.js");
  66756. /* harmony import */ var re_resizable__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(re_resizable__WEBPACK_IMPORTED_MODULE_4__);
  66757. /* harmony import */ var _headerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../headerComponent */ "./components/headerComponent.tsx");
  66758. /* harmony import */ var _entities_sceneTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/sceneTreeItemComponent */ "./components/sceneExplorer/entities/sceneTreeItemComponent.tsx");
  66759. /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../tools */ "./tools.ts");
  66760. __webpack_require__(/*! ./sceneExplorer.scss */ "./components/sceneExplorer/sceneExplorer.scss");
  66761. var SceneExplorerFilterComponent = /** @class */ (function (_super) {
  66762. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SceneExplorerFilterComponent, _super);
  66763. function SceneExplorerFilterComponent(props) {
  66764. return _super.call(this, props) || this;
  66765. }
  66766. SceneExplorerFilterComponent.prototype.render = function () {
  66767. var _this = this;
  66768. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  66769. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onChange: function (evt) { return _this.props.onFilter(evt.target.value); } })));
  66770. };
  66771. return SceneExplorerFilterComponent;
  66772. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66773. var SceneExplorerComponent = /** @class */ (function (_super) {
  66774. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SceneExplorerComponent, _super);
  66775. function SceneExplorerComponent(props) {
  66776. var _this = _super.call(this, props) || this;
  66777. _this._once = true;
  66778. _this._hooked = false;
  66779. _this.state = { filter: null, selectedEntity: null, scene: _this.props.scene };
  66780. _this.sceneMutationFunc = _this.processMutation.bind(_this);
  66781. _this.sceneExplorerRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  66782. _this._onNewSceneObserver = _this.props.globalState.onNewSceneObservable.add(function (scene) {
  66783. _this.setState({
  66784. scene: scene
  66785. });
  66786. });
  66787. return _this;
  66788. }
  66789. SceneExplorerComponent.prototype.processMutation = function () {
  66790. var _this = this;
  66791. if (this.props.globalState.blockMutationUpdates) {
  66792. return;
  66793. }
  66794. setTimeout(function () { return _this.forceUpdate(); });
  66795. };
  66796. SceneExplorerComponent.prototype.componentDidMount = function () {
  66797. var _this = this;
  66798. this._onSelectionChangeObserver = this.props.globalState.onSelectionChangedObservable.add(function (entity) {
  66799. if (_this.state.selectedEntity !== entity) {
  66800. _this.setState({ selectedEntity: entity });
  66801. }
  66802. });
  66803. this._onSelectionRenamedObserver = this.props.globalState.onSelectionRenamedObservable.add(function () {
  66804. _this.forceUpdate();
  66805. });
  66806. };
  66807. SceneExplorerComponent.prototype.componentWillUnmount = function () {
  66808. if (this._onSelectionChangeObserver) {
  66809. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver);
  66810. }
  66811. if (this._onSelectionRenamedObserver) {
  66812. this.props.globalState.onSelectionRenamedObservable.remove(this._onSelectionRenamedObserver);
  66813. }
  66814. if (this._onNewSceneAddedObserver) {
  66815. babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["EngineStore"].LastCreatedEngine.onNewSceneAddedObservable.remove(this._onNewSceneAddedObserver);
  66816. }
  66817. if (this._onNewSceneObserver) {
  66818. this.props.globalState.onNewSceneObservable.remove(this._onNewSceneObserver);
  66819. }
  66820. var scene = this.state.scene;
  66821. scene.onNewSkeletonAddedObservable.removeCallback(this.sceneMutationFunc);
  66822. scene.onNewCameraAddedObservable.removeCallback(this.sceneMutationFunc);
  66823. scene.onNewLightAddedObservable.removeCallback(this.sceneMutationFunc);
  66824. scene.onNewMaterialAddedObservable.removeCallback(this.sceneMutationFunc);
  66825. scene.onNewMeshAddedObservable.removeCallback(this.sceneMutationFunc);
  66826. scene.onNewTextureAddedObservable.removeCallback(this.sceneMutationFunc);
  66827. scene.onNewTransformNodeAddedObservable.removeCallback(this.sceneMutationFunc);
  66828. scene.onSkeletonRemovedObservable.removeCallback(this.sceneMutationFunc);
  66829. scene.onMeshRemovedObservable.removeCallback(this.sceneMutationFunc);
  66830. scene.onCameraRemovedObservable.removeCallback(this.sceneMutationFunc);
  66831. scene.onLightRemovedObservable.removeCallback(this.sceneMutationFunc);
  66832. scene.onMaterialRemovedObservable.removeCallback(this.sceneMutationFunc);
  66833. scene.onTransformNodeRemovedObservable.removeCallback(this.sceneMutationFunc);
  66834. scene.onTextureRemovedObservable.removeCallback(this.sceneMutationFunc);
  66835. };
  66836. SceneExplorerComponent.prototype.filterContent = function (filter) {
  66837. this.setState({ filter: filter });
  66838. };
  66839. SceneExplorerComponent.prototype.findSiblings = function (parent, items, target, goNext, data) {
  66840. if (!items) {
  66841. return false;
  66842. }
  66843. var sortedItems = _tools__WEBPACK_IMPORTED_MODULE_7__["Tools"].SortAndFilter(parent, items);
  66844. if (!items || sortedItems.length === 0) {
  66845. return false;
  66846. }
  66847. for (var _i = 0, sortedItems_1 = sortedItems; _i < sortedItems_1.length; _i++) {
  66848. var item = sortedItems_1[_i];
  66849. if (item === target) { // found the current selection!
  66850. data.found = true;
  66851. if (!goNext) {
  66852. if (data.previousOne) {
  66853. this.props.globalState.onSelectionChangedObservable.notifyObservers(data.previousOne);
  66854. }
  66855. return true;
  66856. }
  66857. }
  66858. else {
  66859. if (data.found) {
  66860. this.props.globalState.onSelectionChangedObservable.notifyObservers(item);
  66861. return true;
  66862. }
  66863. data.previousOne = item;
  66864. }
  66865. if (item.getChildren && item.reservedDataStore && item.reservedDataStore.isExpanded) {
  66866. if (this.findSiblings(item, item.getChildren(), target, goNext, data)) {
  66867. return true;
  66868. }
  66869. }
  66870. }
  66871. return false;
  66872. };
  66873. SceneExplorerComponent.prototype.processKeys = function (keyEvent) {
  66874. if (!this.state.selectedEntity) {
  66875. return;
  66876. }
  66877. var scene = this.state.scene;
  66878. var search = false;
  66879. var goNext = false;
  66880. if (keyEvent.keyCode === 38) { // up
  66881. search = true;
  66882. }
  66883. else if (keyEvent.keyCode === 40) { // down
  66884. goNext = true;
  66885. search = true;
  66886. }
  66887. else if (keyEvent.keyCode === 13 || keyEvent.keyCode === 39) { // enter or right
  66888. var reservedDataStore = this.state.selectedEntity.reservedDataStore;
  66889. if (reservedDataStore && reservedDataStore.setExpandedState) {
  66890. reservedDataStore.setExpandedState(true);
  66891. }
  66892. keyEvent.preventDefault();
  66893. return;
  66894. }
  66895. else if (keyEvent.keyCode === 37) { // left
  66896. var reservedDataStore = this.state.selectedEntity.reservedDataStore;
  66897. if (reservedDataStore && reservedDataStore.setExpandedState) {
  66898. reservedDataStore.setExpandedState(false);
  66899. }
  66900. keyEvent.preventDefault();
  66901. return;
  66902. }
  66903. else if (keyEvent.keyCode === 46) { // delete
  66904. this.state.selectedEntity.dispose();
  66905. }
  66906. if (!search) {
  66907. return;
  66908. }
  66909. keyEvent.preventDefault();
  66910. var data = {};
  66911. if (!this.findSiblings(null, scene.rootNodes, this.state.selectedEntity, goNext, data)) {
  66912. if (!this.findSiblings(null, scene.materials, this.state.selectedEntity, goNext, data)) {
  66913. this.findSiblings(null, scene.textures, this.state.selectedEntity, goNext, data);
  66914. }
  66915. }
  66916. };
  66917. SceneExplorerComponent.prototype.renderContent = function () {
  66918. var _this = this;
  66919. var scene = this.state.scene;
  66920. if (!scene) {
  66921. this._onNewSceneAddedObserver = babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["EngineStore"].LastCreatedEngine.onNewSceneAddedObservable.addOnce(function (scene) { return _this.setState({ scene: scene }); });
  66922. return null;
  66923. }
  66924. if (!this._hooked) {
  66925. this._hooked = true;
  66926. scene.onNewSkeletonAddedObservable.add(this.sceneMutationFunc);
  66927. scene.onNewCameraAddedObservable.add(this.sceneMutationFunc);
  66928. scene.onNewLightAddedObservable.add(this.sceneMutationFunc);
  66929. scene.onNewMaterialAddedObservable.add(this.sceneMutationFunc);
  66930. scene.onNewMeshAddedObservable.add(this.sceneMutationFunc);
  66931. scene.onNewTextureAddedObservable.add(this.sceneMutationFunc);
  66932. scene.onNewTransformNodeAddedObservable.add(this.sceneMutationFunc);
  66933. scene.onSkeletonRemovedObservable.add(this.sceneMutationFunc);
  66934. scene.onMeshRemovedObservable.add(this.sceneMutationFunc);
  66935. scene.onCameraRemovedObservable.add(this.sceneMutationFunc);
  66936. scene.onLightRemovedObservable.add(this.sceneMutationFunc);
  66937. scene.onMaterialRemovedObservable.add(this.sceneMutationFunc);
  66938. scene.onTransformNodeRemovedObservable.add(this.sceneMutationFunc);
  66939. scene.onTextureRemovedObservable.add(this.sceneMutationFunc);
  66940. }
  66941. var guiElements = scene.textures.filter(function (t) { return t.getClassName() === "AdvancedDynamicTexture"; });
  66942. var textures = scene.textures.filter(function (t) { return t.getClassName() !== "AdvancedDynamicTexture"; });
  66943. var postProcessses = scene.postProcesses;
  66944. var pipelines = scene.postProcessRenderPipelineManager.supportedPipelines;
  66945. // Context menus
  66946. var pipelineContextMenus = [];
  66947. if (scene.activeCamera) {
  66948. if (!pipelines.some(function (p) { return p.getClassName() === "DefaultRenderingPipeline"; })) {
  66949. pipelineContextMenus.push({
  66950. label: "Add new Default Rendering Pipeline",
  66951. action: function () {
  66952. var newPipeline = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["DefaultRenderingPipeline"]("Default rendering pipeline", true, scene, scene.cameras);
  66953. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPipeline);
  66954. }
  66955. });
  66956. }
  66957. if (!pipelines.some(function (p) { return p.getClassName() === "SSAORenderingPipeline"; })) {
  66958. pipelineContextMenus.push({
  66959. label: "Add new SSAO Rendering Pipeline",
  66960. action: function () {
  66961. var newPipeline = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["SSAORenderingPipeline"]("SSAO rendering pipeline", scene, 1, scene.cameras);
  66962. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPipeline);
  66963. }
  66964. });
  66965. }
  66966. if (scene.getEngine().webGLVersion > 1 && !pipelines.some(function (p) { return p.getClassName() === "SSAORenderingPipeline"; })) {
  66967. pipelineContextMenus.push({
  66968. label: "Add new SSAO2 Rendering Pipeline",
  66969. action: function () {
  66970. var newPipeline = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["SSAO2RenderingPipeline"]("SSAO2 rendering pipeline", scene, 1, scene.cameras);
  66971. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPipeline);
  66972. }
  66973. });
  66974. }
  66975. }
  66976. var nodeContextMenus = [];
  66977. nodeContextMenus.push({
  66978. label: "Add new point light",
  66979. action: function () {
  66980. var newPointLight = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["PointLight"]("point light", babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero(), scene);
  66981. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPointLight);
  66982. }
  66983. });
  66984. nodeContextMenus.push({
  66985. label: "Add new directional light",
  66986. action: function () {
  66987. 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);
  66988. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newDirectionalLight);
  66989. }
  66990. });
  66991. nodeContextMenus.push({
  66992. label: "Add new free camera",
  66993. action: function () {
  66994. 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);
  66995. if (scene.activeCamera) {
  66996. newFreeCamera.minZ = scene.activeCamera.minZ;
  66997. newFreeCamera.maxZ = scene.activeCamera.maxZ;
  66998. if (scene.activeCamera.getTarget) {
  66999. newFreeCamera.setTarget(scene.activeCamera.getTarget());
  67000. }
  67001. }
  67002. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newFreeCamera);
  67003. }
  67004. });
  67005. // Materials
  67006. var materialsContextMenus = [];
  67007. materialsContextMenus.push({
  67008. label: "Add new standard material",
  67009. action: function () {
  67010. var newStdMaterial = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["StandardMaterial"]("Standard material", scene);
  67011. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newStdMaterial);
  67012. }
  67013. });
  67014. materialsContextMenus.push({
  67015. label: "Add new PBR material",
  67016. action: function () {
  67017. var newPBRMaterial = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["PBRMaterial"]("PBR material", scene);
  67018. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newPBRMaterial);
  67019. }
  67020. });
  67021. materialsContextMenus.push({
  67022. label: "Add new node material",
  67023. action: function () {
  67024. var newNodeMaterial = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["NodeMaterial"]("node material", scene);
  67025. newNodeMaterial.setToDefault();
  67026. newNodeMaterial.build();
  67027. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newNodeMaterial);
  67028. }
  67029. });
  67030. var materials = [];
  67031. materials.push.apply(materials, scene.materials);
  67032. if (scene.multiMaterials && scene.multiMaterials.length) {
  67033. materials.push.apply(materials, scene.multiMaterials);
  67034. }
  67035. // Sprite Managers
  67036. var spriteManagersContextMenus = [];
  67037. spriteManagersContextMenus.push({
  67038. label: "Add new sprite manager",
  67039. action: function () {
  67040. var newSpriteManager = new babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["SpriteManager"]("Default sprite manager", "//playground.babylonjs.com/textures/player.png", 500, 64, scene);
  67041. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newSpriteManager);
  67042. }
  67043. });
  67044. // Particle systems
  67045. var particleSystemsContextMenus = [];
  67046. particleSystemsContextMenus.push({
  67047. label: "Add new CPU particle system",
  67048. action: function () {
  67049. var newSystem = babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["ParticleHelper"].CreateDefault(babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero(), 10000, scene);
  67050. newSystem.name = "CPU particle system";
  67051. newSystem.start();
  67052. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newSystem);
  67053. }
  67054. });
  67055. if (babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["GPUParticleSystem"].IsSupported) {
  67056. particleSystemsContextMenus.push({
  67057. label: "Add new GPU particle system",
  67058. action: function () {
  67059. var newSystem = babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["ParticleHelper"].CreateDefault(babylonjs_Engines_engineStore__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Zero(), 10000, scene, true);
  67060. newSystem.name = "GPU particle system";
  67061. newSystem.start();
  67062. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newSystem);
  67063. }
  67064. });
  67065. }
  67066. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "tree", onContextMenu: function (e) { return e.preventDefault(); } },
  67067. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SceneExplorerFilterComponent, { onFilter: function (filter) { return _this.filterContent(filter); } }),
  67068. 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 }),
  67069. 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 }),
  67070. scene.skeletons.length > 0 &&
  67071. 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 }),
  67072. 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 }),
  67073. 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 }),
  67074. postProcessses.length > 0 &&
  67075. 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 }),
  67076. 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 }),
  67077. 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 }),
  67078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_treeItemComponent__WEBPACK_IMPORTED_MODULE_3__["TreeItemComponent"], { globalState: this.props.globalState, contextMenuItems: spriteManagersContextMenus, forceSubitems: true, extensibilityGroups: this.props.extensibilityGroups, selectedEntity: this.state.selectedEntity, items: scene.spriteManagers, label: "Sprite managers", offset: 1, filter: this.state.filter }),
  67079. guiElements && guiElements.length > 0 &&
  67080. 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 }),
  67081. scene.animationGroups.length > 0 &&
  67082. 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 })));
  67083. };
  67084. SceneExplorerComponent.prototype.onClose = function () {
  67085. if (!this.props.onClose) {
  67086. return;
  67087. }
  67088. this.props.onClose();
  67089. };
  67090. SceneExplorerComponent.prototype.onPopup = function () {
  67091. if (!this.props.onPopup) {
  67092. return;
  67093. }
  67094. this.props.onPopup();
  67095. };
  67096. SceneExplorerComponent.prototype.render = function () {
  67097. var _this = this;
  67098. if (this.props.popupMode) {
  67099. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "sceneExplorer", tabIndex: 0, onKeyDown: function (keyEvent) { return _this.processKeys(keyEvent); } },
  67100. !this.props.noHeader &&
  67101. 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(); } }),
  67102. this.renderContent()));
  67103. }
  67104. if (this._once) {
  67105. this._once = false;
  67106. // A bit hacky but no other way to force the initial width to 300px and not auto
  67107. setTimeout(function () {
  67108. var element = document.getElementById("sceneExplorer");
  67109. if (!element) {
  67110. return;
  67111. }
  67112. element.style.width = "300px";
  67113. }, 150);
  67114. }
  67115. 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); } },
  67116. !this.props.noHeader &&
  67117. 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(); } }),
  67118. this.renderContent()));
  67119. };
  67120. return SceneExplorerComponent;
  67121. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  67122. /***/ }),
  67123. /***/ "./components/sceneExplorer/treeItemComponent.tsx":
  67124. /*!********************************************************!*\
  67125. !*** ./components/sceneExplorer/treeItemComponent.tsx ***!
  67126. \********************************************************/
  67127. /*! exports provided: TreeItemComponent */
  67128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67129. "use strict";
  67130. __webpack_require__.r(__webpack_exports__);
  67131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemComponent", function() { return TreeItemComponent; });
  67132. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  67133. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  67134. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  67135. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  67136. /* 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");
  67137. /* harmony import */ var _treeItemSelectableComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./treeItemSelectableComponent */ "./components/sceneExplorer/treeItemSelectableComponent.tsx");
  67138. /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../tools */ "./tools.ts");
  67139. /* harmony import */ var react_contextmenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-contextmenu */ "../../node_modules/react-contextmenu/es6/index.js");
  67140. var TreeItemExpandableHeaderComponent = /** @class */ (function (_super) {
  67141. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemExpandableHeaderComponent, _super);
  67142. function TreeItemExpandableHeaderComponent(props) {
  67143. return _super.call(this, props) || this;
  67144. }
  67145. TreeItemExpandableHeaderComponent.prototype.expandAll = function () {
  67146. this.props.onExpandAll(!this.props.isExpanded);
  67147. };
  67148. TreeItemExpandableHeaderComponent.prototype.render = function () {
  67149. var _this = this;
  67150. 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"] });
  67151. 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"] });
  67152. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expandableHeader" },
  67153. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text" },
  67154. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "arrow icon", onClick: function () { return _this.props.onClick(); } }, chevron),
  67155. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text-value" }, this.props.label)),
  67156. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expandAll icon", onClick: function () { return _this.expandAll(); }, title: this.props.isExpanded ? "Collapse all" : "Expand all" }, expandAll)));
  67157. };
  67158. return TreeItemExpandableHeaderComponent;
  67159. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  67160. var TreeItemRootHeaderComponent = /** @class */ (function (_super) {
  67161. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemRootHeaderComponent, _super);
  67162. function TreeItemRootHeaderComponent(props) {
  67163. return _super.call(this, props) || this;
  67164. }
  67165. TreeItemRootHeaderComponent.prototype.render = function () {
  67166. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expandableHeader" },
  67167. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text" },
  67168. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "arrow icon" },
  67169. 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"] })),
  67170. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "text-value" }, this.props.label))));
  67171. };
  67172. return TreeItemRootHeaderComponent;
  67173. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  67174. var TreeItemComponent = /** @class */ (function (_super) {
  67175. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemComponent, _super);
  67176. function TreeItemComponent(props) {
  67177. var _this = _super.call(this, props) || this;
  67178. _this.state = { isExpanded: false, mustExpand: false };
  67179. return _this;
  67180. }
  67181. TreeItemComponent.prototype.switchExpandedState = function () {
  67182. this.setState({ isExpanded: !this.state.isExpanded, mustExpand: false });
  67183. };
  67184. TreeItemComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  67185. if (!nextState.isExpanded && this.state.isExpanded) {
  67186. return true;
  67187. }
  67188. var items = nextProps.items;
  67189. if (items && items.length) {
  67190. if (nextProps.selectedEntity) {
  67191. for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
  67192. var item = items_1[_i];
  67193. if (_tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].LookForItem(item, nextProps.selectedEntity)) {
  67194. nextState.isExpanded = true;
  67195. return true;
  67196. }
  67197. }
  67198. }
  67199. }
  67200. return true;
  67201. };
  67202. TreeItemComponent.prototype.expandAll = function (expand) {
  67203. this.setState({ isExpanded: expand, mustExpand: expand });
  67204. };
  67205. TreeItemComponent.prototype.renderContextMenu = function () {
  67206. if (!this.props.contextMenuItems) {
  67207. TreeItemComponent._ContextMenuUniqueIdGenerator++;
  67208. return null;
  67209. }
  67210. 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) {
  67211. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["MenuItem"], { onClick: function () { return c.action(); }, key: c.label }, c.label));
  67212. })));
  67213. };
  67214. TreeItemComponent.prototype.render = function () {
  67215. var _this = this;
  67216. var items = this.props.items;
  67217. var marginStyle = {
  67218. paddingLeft: (10 * (this.props.offset + 0.5)) + "px"
  67219. };
  67220. if (!items) {
  67221. if (this.props.forceSubitems) {
  67222. items = [];
  67223. }
  67224. else {
  67225. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  67226. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, this.props.label)));
  67227. }
  67228. }
  67229. if (!items.length) {
  67230. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  67231. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuTrigger"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator },
  67232. this.renderContextMenu(),
  67233. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](TreeItemRootHeaderComponent, { label: this.props.label }))));
  67234. }
  67235. if (!this.state.isExpanded) {
  67236. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  67237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuTrigger"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator },
  67238. this.renderContextMenu(),
  67239. 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); } }))));
  67240. }
  67241. var sortedItems = _tools__WEBPACK_IMPORTED_MODULE_5__["Tools"].SortAndFilter(null, items);
  67242. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  67243. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "groupContainer", style: marginStyle },
  67244. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuTrigger"], { id: "contextmenu#" + TreeItemComponent._ContextMenuUniqueIdGenerator },
  67245. this.renderContextMenu(),
  67246. 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); } }))),
  67247. sortedItems.map(function (item) {
  67248. 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 }));
  67249. })));
  67250. };
  67251. TreeItemComponent._ContextMenuUniqueIdGenerator = 0;
  67252. return TreeItemComponent;
  67253. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  67254. /***/ }),
  67255. /***/ "./components/sceneExplorer/treeItemLabelComponent.tsx":
  67256. /*!*************************************************************!*\
  67257. !*** ./components/sceneExplorer/treeItemLabelComponent.tsx ***!
  67258. \*************************************************************/
  67259. /*! exports provided: TreeItemLabelComponent */
  67260. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67261. "use strict";
  67262. __webpack_require__.r(__webpack_exports__);
  67263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemLabelComponent", function() { return TreeItemLabelComponent; });
  67264. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  67265. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  67266. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  67267. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  67268. var TreeItemLabelComponent = /** @class */ (function (_super) {
  67269. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemLabelComponent, _super);
  67270. function TreeItemLabelComponent(props) {
  67271. return _super.call(this, props) || this;
  67272. }
  67273. TreeItemLabelComponent.prototype.onClick = function () {
  67274. if (!this.props.onClick) {
  67275. return;
  67276. }
  67277. this.props.onClick();
  67278. };
  67279. TreeItemLabelComponent.prototype.render = function () {
  67280. var _this = this;
  67281. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title", onClick: function () { return _this.onClick(); } },
  67282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "titleIcon" },
  67283. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.icon, color: this.props.color })),
  67284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "titleText" }, this.props.label || "no name")));
  67285. };
  67286. return TreeItemLabelComponent;
  67287. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  67288. /***/ }),
  67289. /***/ "./components/sceneExplorer/treeItemSelectableComponent.tsx":
  67290. /*!******************************************************************!*\
  67291. !*** ./components/sceneExplorer/treeItemSelectableComponent.tsx ***!
  67292. \******************************************************************/
  67293. /*! exports provided: TreeItemSelectableComponent */
  67294. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67295. "use strict";
  67296. __webpack_require__.r(__webpack_exports__);
  67297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemSelectableComponent", function() { return TreeItemSelectableComponent; });
  67298. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  67299. /* harmony import */ var _treeItemSpecializedComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./treeItemSpecializedComponent */ "./components/sceneExplorer/treeItemSpecializedComponent.tsx");
  67300. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  67301. /* 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");
  67302. /* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../tools */ "./tools.ts");
  67303. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  67304. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_5__);
  67305. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  67306. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  67307. var TreeItemSelectableComponent = /** @class */ (function (_super) {
  67308. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemSelectableComponent, _super);
  67309. function TreeItemSelectableComponent(props) {
  67310. var _this = _super.call(this, props) || this;
  67311. _this._wasSelected = false;
  67312. _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) };
  67313. return _this;
  67314. }
  67315. TreeItemSelectableComponent.prototype.switchExpandedState = function () {
  67316. this.setState({ isExpanded: !this.state.isExpanded });
  67317. };
  67318. TreeItemSelectableComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  67319. if (!nextState.isExpanded && this.state.isExpanded) {
  67320. return true;
  67321. }
  67322. if (nextProps.selectedEntity) {
  67323. if (nextProps.entity === nextProps.selectedEntity) {
  67324. nextState.isSelected = true;
  67325. return true;
  67326. }
  67327. else {
  67328. nextState.isSelected = false;
  67329. }
  67330. if (_tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].LookForItem(nextProps.entity, nextProps.selectedEntity)) {
  67331. nextState.isExpanded = true;
  67332. return true;
  67333. }
  67334. }
  67335. return true;
  67336. };
  67337. TreeItemSelectableComponent.prototype.scrollIntoView = function () {
  67338. var element = react_dom__WEBPACK_IMPORTED_MODULE_5__["findDOMNode"](this);
  67339. if (element) {
  67340. element.scrollIntoView(false);
  67341. }
  67342. };
  67343. TreeItemSelectableComponent.prototype.componentDidMount = function () {
  67344. if (this.state.isSelected) {
  67345. this.scrollIntoView();
  67346. }
  67347. };
  67348. TreeItemSelectableComponent.prototype.componentDidUpdate = function () {
  67349. if (this.state.isSelected && !this._wasSelected) {
  67350. this.scrollIntoView();
  67351. }
  67352. this._wasSelected = false;
  67353. };
  67354. TreeItemSelectableComponent.prototype.onSelect = function () {
  67355. if (!this.props.globalState.onSelectionChangedObservable) {
  67356. return;
  67357. }
  67358. this._wasSelected = true;
  67359. var entity = this.props.entity;
  67360. this.props.globalState.onSelectionChangedObservable.notifyObservers(entity);
  67361. };
  67362. TreeItemSelectableComponent.prototype.renderChildren = function () {
  67363. var _this = this;
  67364. var entity = this.props.entity;
  67365. if (!entity.getChildren && !entity.children || !this.state.isExpanded) {
  67366. return null;
  67367. }
  67368. var children = _tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].SortAndFilter(entity, entity.getChildren ? entity.getChildren() : entity.children);
  67369. return (children.map(function (item, i) {
  67370. 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: i, offset: _this.props.offset + 2, entity: item, filter: _this.props.filter }));
  67371. }));
  67372. };
  67373. TreeItemSelectableComponent.prototype.render = function () {
  67374. var _this = this;
  67375. var marginStyle = {
  67376. paddingLeft: (10 * (this.props.offset + 0.5)) + "px"
  67377. };
  67378. var entity = this.props.entity;
  67379. 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"] });
  67380. var children = entity.getClassName() === "MultiMaterial" ? [] : _tools__WEBPACK_IMPORTED_MODULE_4__["Tools"].SortAndFilter(entity, entity.getChildren ? entity.getChildren() : entity.children);
  67381. var hasChildren = children.length > 0;
  67382. if (!entity.reservedDataStore) {
  67383. entity.reservedDataStore = {};
  67384. }
  67385. entity.reservedDataStore.setExpandedState = function (value) {
  67386. _this.setState({ isExpanded: value });
  67387. };
  67388. entity.reservedDataStore.isExpanded = this.state.isExpanded;
  67389. if (this.props.filter) {
  67390. var lowerCaseFilter_1 = this.props.filter.toLowerCase();
  67391. if (!entity.name || entity.name.toLowerCase().indexOf(lowerCaseFilter_1) === -1) {
  67392. if (!hasChildren) {
  67393. return null;
  67394. }
  67395. if (entity.getDescendants) {
  67396. if (entity.getDescendants(false, function (n) {
  67397. return n.name && n.name.toLowerCase().indexOf(lowerCaseFilter_1) !== -1;
  67398. }).length === 0) {
  67399. return null;
  67400. }
  67401. }
  67402. }
  67403. }
  67404. return (react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", null,
  67405. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: this.state.isSelected ? "itemContainer selected" : "itemContainer", style: marginStyle },
  67406. hasChildren &&
  67407. react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", { className: "arrow icon", onClick: function () { return _this.switchExpandedState(); } }, chevron),
  67408. 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(); } })),
  67409. this.renderChildren()));
  67410. };
  67411. return TreeItemSelectableComponent;
  67412. }(react__WEBPACK_IMPORTED_MODULE_6__["Component"]));
  67413. /***/ }),
  67414. /***/ "./components/sceneExplorer/treeItemSpecializedComponent.tsx":
  67415. /*!*******************************************************************!*\
  67416. !*** ./components/sceneExplorer/treeItemSpecializedComponent.tsx ***!
  67417. \*******************************************************************/
  67418. /*! exports provided: TreeItemSpecializedComponent */
  67419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67420. "use strict";
  67421. __webpack_require__.r(__webpack_exports__);
  67422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItemSpecializedComponent", function() { return TreeItemSpecializedComponent; });
  67423. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  67424. /* harmony import */ var _entities_meshTreeItemComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./entities/meshTreeItemComponent */ "./components/sceneExplorer/entities/meshTreeItemComponent.tsx");
  67425. /* harmony import */ var _entities_cameraTreeItemComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./entities/cameraTreeItemComponent */ "./components/sceneExplorer/entities/cameraTreeItemComponent.tsx");
  67426. /* harmony import */ var _entities_lightTreeItemComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./entities/lightTreeItemComponent */ "./components/sceneExplorer/entities/lightTreeItemComponent.tsx");
  67427. /* harmony import */ var _treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./treeItemLabelComponent */ "./components/sceneExplorer/treeItemLabelComponent.tsx");
  67428. /* 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");
  67429. /* harmony import */ var _entities_materialTreeItemComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./entities/materialTreeItemComponent */ "./components/sceneExplorer/entities/materialTreeItemComponent.tsx");
  67430. /* harmony import */ var _entities_textureTreeItemComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/textureTreeItemComponent */ "./components/sceneExplorer/entities/textureTreeItemComponent.tsx");
  67431. /* harmony import */ var _entities_transformNodeTreeItemComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities/transformNodeTreeItemComponent */ "./components/sceneExplorer/entities/transformNodeTreeItemComponent.tsx");
  67432. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  67433. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
  67434. /* harmony import */ var _entities_gui_controlTreeItemComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entities/gui/controlTreeItemComponent */ "./components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx");
  67435. /* harmony import */ var _entities_gui_advancedDynamicTextureTreeItemComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./entities/gui/advancedDynamicTextureTreeItemComponent */ "./components/sceneExplorer/entities/gui/advancedDynamicTextureTreeItemComponent.tsx");
  67436. /* harmony import */ var _entities_animationGroupTreeItemComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./entities/animationGroupTreeItemComponent */ "./components/sceneExplorer/entities/animationGroupTreeItemComponent.tsx");
  67437. /* harmony import */ var _entities_postProcessTreeItemComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./entities/postProcessTreeItemComponent */ "./components/sceneExplorer/entities/postProcessTreeItemComponent.tsx");
  67438. /* harmony import */ var _entities_renderingPipelineTreeItemComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entities/renderingPipelineTreeItemComponent */ "./components/sceneExplorer/entities/renderingPipelineTreeItemComponent.tsx");
  67439. /* harmony import */ var _entities_skeletonTreeItemComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./entities/skeletonTreeItemComponent */ "./components/sceneExplorer/entities/skeletonTreeItemComponent.tsx");
  67440. /* harmony import */ var _entities_boneTreeItemComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./entities/boneTreeItemComponent */ "./components/sceneExplorer/entities/boneTreeItemComponent.tsx");
  67441. /* harmony import */ var _entities_particleSystemTreeItemComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./entities/particleSystemTreeItemComponent */ "./components/sceneExplorer/entities/particleSystemTreeItemComponent.tsx");
  67442. /* harmony import */ var _entities_spriteManagerTreeItemComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./entities/spriteManagerTreeItemComponent */ "./components/sceneExplorer/entities/spriteManagerTreeItemComponent.tsx");
  67443. /* harmony import */ var _entities_spriteTreeItemComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./entities/spriteTreeItemComponent */ "./components/sceneExplorer/entities/spriteTreeItemComponent.tsx");
  67444. /* harmony import */ var _entities_targetedAnimationTreeItemComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./entities/targetedAnimationTreeItemComponent */ "./components/sceneExplorer/entities/targetedAnimationTreeItemComponent.tsx");
  67445. var TreeItemSpecializedComponent = /** @class */ (function (_super) {
  67446. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeItemSpecializedComponent, _super);
  67447. function TreeItemSpecializedComponent(props) {
  67448. return _super.call(this, props) || this;
  67449. }
  67450. TreeItemSpecializedComponent.prototype.onClick = function () {
  67451. if (!this.props.onClick) {
  67452. return;
  67453. }
  67454. this.props.onClick();
  67455. };
  67456. TreeItemSpecializedComponent.prototype.render = function () {
  67457. var _this = this;
  67458. var entity = this.props.entity;
  67459. if (entity && entity.getClassName) {
  67460. var className = entity.getClassName();
  67461. if (className.indexOf("Mesh") !== -1) {
  67462. var mesh = entity;
  67463. if (mesh.isAnInstance || mesh.getTotalVertices() > 0) {
  67464. 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(); } }));
  67465. }
  67466. else {
  67467. 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(); } }));
  67468. }
  67469. }
  67470. if (className.indexOf("SpriteManager") !== -1) {
  67471. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_spriteManagerTreeItemComponent__WEBPACK_IMPORTED_MODULE_18__["SpriteManagerTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, spriteManager: entity, onClick: function () { return _this.onClick(); } }));
  67472. }
  67473. if (className.indexOf("Sprite") !== -1) {
  67474. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_spriteTreeItemComponent__WEBPACK_IMPORTED_MODULE_19__["SpriteTreeItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, sprite: entity, onClick: function () { return _this.onClick(); } }));
  67475. }
  67476. if (className.indexOf("Skeleton") !== -1) {
  67477. 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(); } }));
  67478. }
  67479. if (className.indexOf("Bone") !== -1) {
  67480. 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(); } }));
  67481. }
  67482. if (className.indexOf("TransformNode") !== -1) {
  67483. 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(); } }));
  67484. }
  67485. if (className.indexOf("Camera") !== -1) {
  67486. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_cameraTreeItemComponent__WEBPACK_IMPORTED_MODULE_2__["CameraTreeItemComponent"], { globalState: this.props.globalState, extensibilityGroups: this.props.extensibilityGroups, camera: entity, onClick: function () { return _this.onClick(); } }));
  67487. }
  67488. if (className.indexOf("Light", className.length - 5) !== -1) {
  67489. 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(); } }));
  67490. }
  67491. if (className.indexOf("Material") !== -1) {
  67492. 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(); } }));
  67493. }
  67494. if (className.indexOf("ParticleSystem") !== -1) {
  67495. 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(); } }));
  67496. }
  67497. if (className === "AdvancedDynamicTexture") {
  67498. 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(); } }));
  67499. }
  67500. if (className === "AnimationGroup") {
  67501. 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(); } }));
  67502. }
  67503. if (className === "TargetedAnimation") {
  67504. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"](_entities_targetedAnimationTreeItemComponent__WEBPACK_IMPORTED_MODULE_20__["TargetedAnimationItemComponent"], { extensibilityGroups: this.props.extensibilityGroups, targetedAnimation: entity, onClick: function () { return _this.onClick(); } }));
  67505. }
  67506. if (className.indexOf("Texture") !== -1) {
  67507. 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(); } }));
  67508. }
  67509. if (className.indexOf("RenderingPipeline") !== -1) {
  67510. 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(); } }));
  67511. }
  67512. if (className.indexOf("PostProcess") !== -1) {
  67513. 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(); } }));
  67514. }
  67515. if (entity._host) {
  67516. 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(); } }));
  67517. }
  67518. }
  67519. return (react__WEBPACK_IMPORTED_MODULE_9__["createElement"]("div", { className: "meshTools" },
  67520. 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" })));
  67521. };
  67522. return TreeItemSpecializedComponent;
  67523. }(react__WEBPACK_IMPORTED_MODULE_9__["Component"]));
  67524. /***/ }),
  67525. /***/ "./index.ts":
  67526. /*!******************!*\
  67527. !*** ./index.ts ***!
  67528. \******************/
  67529. /*! exports provided: Inspector */
  67530. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67531. "use strict";
  67532. __webpack_require__.r(__webpack_exports__);
  67533. /* harmony import */ var _inspector__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inspector */ "./inspector.ts");
  67534. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Inspector", function() { return _inspector__WEBPACK_IMPORTED_MODULE_0__["Inspector"]; });
  67535. /***/ }),
  67536. /***/ "./inspector.ts":
  67537. /*!**********************!*\
  67538. !*** ./inspector.ts ***!
  67539. \**********************/
  67540. /*! exports provided: Inspector */
  67541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67542. "use strict";
  67543. __webpack_require__.r(__webpack_exports__);
  67544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Inspector", function() { return Inspector; });
  67545. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  67546. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  67547. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  67548. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  67549. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  67550. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  67551. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__);
  67552. /* harmony import */ var _components_actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/actionTabs/actionTabsComponent */ "./components/actionTabs/actionTabsComponent.tsx");
  67553. /* harmony import */ var _components_sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/sceneExplorer/sceneExplorerComponent */ "./components/sceneExplorer/sceneExplorerComponent.tsx");
  67554. /* harmony import */ var _components_embedHost_embedHostComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/embedHost/embedHostComponent */ "./components/embedHost/embedHostComponent.tsx");
  67555. /* harmony import */ var _components_globalState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/globalState */ "./components/globalState.ts");
  67556. var Inspector = /** @class */ (function () {
  67557. function Inspector() {
  67558. }
  67559. Inspector.MarkLineContainerTitleForHighlighting = function (title) {
  67560. this._GlobalState.selectedLineContainerTitles = [];
  67561. this._GlobalState.selectedLineContainerTitles.push(title);
  67562. };
  67563. Inspector.MarkMultipleLineContainerTitlesForHighlighting = function (titles) {
  67564. var _a;
  67565. this._GlobalState.selectedLineContainerTitles = [];
  67566. (_a = this._GlobalState.selectedLineContainerTitles).push.apply(_a, titles);
  67567. };
  67568. Inspector._CopyStyles = function (sourceDoc, targetDoc) {
  67569. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  67570. var styleSheet = sourceDoc.styleSheets[index];
  67571. try {
  67572. if (styleSheet.cssRules) {
  67573. // for <style> elements
  67574. var newStyleEl = sourceDoc.createElement("style");
  67575. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  67576. var cssRule = _a[_i];
  67577. // write the text of each rule into the body of the style element
  67578. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  67579. }
  67580. targetDoc.head.appendChild(newStyleEl);
  67581. }
  67582. else if (styleSheet.href) {
  67583. // for <link> elements loading CSS from a URL
  67584. var newLinkEl = sourceDoc.createElement("link");
  67585. newLinkEl.rel = "stylesheet";
  67586. newLinkEl.href = styleSheet.href;
  67587. targetDoc.head.appendChild(newLinkEl);
  67588. }
  67589. }
  67590. catch (e) {
  67591. console.log(e);
  67592. }
  67593. }
  67594. };
  67595. Inspector._CreateSceneExplorer = function (scene, options, parentControlExplorer) {
  67596. var _this = this;
  67597. // Duplicating the options as they can be different for each pane
  67598. if (options.original) {
  67599. options = {
  67600. original: false,
  67601. popup: options.popup,
  67602. overlay: options.overlay,
  67603. showExplorer: options.showExplorer,
  67604. showInspector: options.showInspector,
  67605. embedMode: options.embedMode,
  67606. handleResize: options.handleResize,
  67607. enablePopup: options.enablePopup,
  67608. enableClose: options.enableClose,
  67609. explorerExtensibility: options.explorerExtensibility,
  67610. };
  67611. }
  67612. // Prepare the scene explorer host
  67613. if (parentControlExplorer) {
  67614. this._SceneExplorerHost = parentControlExplorer.ownerDocument.createElement("div");
  67615. this._SceneExplorerHost.id = "scene-explorer-host";
  67616. this._SceneExplorerHost.style.width = options.explorerWidth || "auto";
  67617. if (!options.popup) {
  67618. parentControlExplorer.insertBefore(this._SceneExplorerHost, this._NewCanvasContainer);
  67619. }
  67620. else {
  67621. parentControlExplorer.appendChild(this._SceneExplorerHost);
  67622. }
  67623. if (!options.overlay) {
  67624. this._SceneExplorerHost.style.position = "relative";
  67625. }
  67626. }
  67627. // Scene
  67628. if (this._SceneExplorerHost) {
  67629. this._OpenedPane++;
  67630. var sceneExplorerElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_sceneExplorer_sceneExplorerComponent__WEBPACK_IMPORTED_MODULE_5__["SceneExplorerComponent"], {
  67631. scene: scene,
  67632. globalState: this._GlobalState,
  67633. extensibilityGroups: options.explorerExtensibility,
  67634. noClose: !options.enableClose,
  67635. noExpand: !options.enablePopup,
  67636. popupMode: options.popup,
  67637. onPopup: function () {
  67638. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._SceneExplorerHost);
  67639. _this._RemoveElementFromDOM(_this._SceneExplorerHost);
  67640. if (options.popup) {
  67641. _this._SceneExplorerWindow.close();
  67642. }
  67643. options.popup = !options.popup;
  67644. options.showExplorer = true;
  67645. options.showInspector = false;
  67646. options.explorerWidth = options.popup ? "100%" : "300px";
  67647. Inspector.Show(scene, options);
  67648. },
  67649. onClose: function () {
  67650. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._SceneExplorerHost);
  67651. Inspector._OpenedPane--;
  67652. _this._RemoveElementFromDOM(_this._SceneExplorerHost);
  67653. _this._Cleanup();
  67654. if (options.popup) {
  67655. _this._SceneExplorerWindow.close();
  67656. }
  67657. },
  67658. });
  67659. react_dom__WEBPACK_IMPORTED_MODULE_2__["render"](sceneExplorerElement, this._SceneExplorerHost);
  67660. }
  67661. };
  67662. Inspector._CreateActionTabs = function (scene, options, parentControlActions) {
  67663. var _this = this;
  67664. options.original = false;
  67665. // Prepare the inspector host
  67666. if (parentControlActions) {
  67667. var host = parentControlActions.ownerDocument.createElement("div");
  67668. host.id = "inspector-host";
  67669. host.style.width = options.inspectorWidth || "auto";
  67670. parentControlActions.appendChild(host);
  67671. this._ActionTabsHost = host;
  67672. if (!options.overlay) {
  67673. this._ActionTabsHost.style.position = "relative";
  67674. }
  67675. }
  67676. if (this._ActionTabsHost) {
  67677. this._OpenedPane++;
  67678. var actionTabsElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_actionTabs_actionTabsComponent__WEBPACK_IMPORTED_MODULE_4__["ActionTabsComponent"], {
  67679. globalState: this._GlobalState,
  67680. scene: scene,
  67681. noClose: !options.enableClose,
  67682. noExpand: !options.enablePopup,
  67683. popupMode: options.popup,
  67684. onPopup: function () {
  67685. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._ActionTabsHost);
  67686. _this._RemoveElementFromDOM(_this._ActionTabsHost);
  67687. if (options.popup) {
  67688. _this._ActionTabsWindow.close();
  67689. }
  67690. options.popup = !options.popup;
  67691. options.showExplorer = false;
  67692. options.showInspector = true;
  67693. options.inspectorWidth = options.popup ? "100%" : "300px";
  67694. Inspector.Show(scene, options);
  67695. },
  67696. onClose: function () {
  67697. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._ActionTabsHost);
  67698. Inspector._OpenedPane--;
  67699. _this._Cleanup();
  67700. _this._RemoveElementFromDOM(_this._ActionTabsHost);
  67701. if (options.popup) {
  67702. _this._ActionTabsWindow.close();
  67703. }
  67704. },
  67705. initialTab: options.initialTab,
  67706. });
  67707. react_dom__WEBPACK_IMPORTED_MODULE_2__["render"](actionTabsElement, this._ActionTabsHost);
  67708. }
  67709. };
  67710. Inspector._CreateEmbedHost = function (scene, options, parentControl, onSelectionChangedObservable) {
  67711. var _this = this;
  67712. // Prepare the inspector host
  67713. if (parentControl) {
  67714. var host = parentControl.ownerDocument.createElement("div");
  67715. host.id = "embed-host";
  67716. host.style.width = options.embedHostWidth || "auto";
  67717. parentControl.appendChild(host);
  67718. this._EmbedHost = host;
  67719. if (!options.overlay) {
  67720. this._EmbedHost.style.position = "relative";
  67721. }
  67722. }
  67723. if (this._EmbedHost) {
  67724. this._OpenedPane++;
  67725. var embedHostElement = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_embedHost_embedHostComponent__WEBPACK_IMPORTED_MODULE_6__["EmbedHostComponent"], {
  67726. globalState: this._GlobalState,
  67727. scene: scene,
  67728. extensibilityGroups: options.explorerExtensibility,
  67729. noExpand: !options.enablePopup,
  67730. noClose: !options.enableClose,
  67731. popupMode: options.popup,
  67732. onPopup: function () {
  67733. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._EmbedHost);
  67734. if (options.popup) {
  67735. _this._EmbedHostWindow.close();
  67736. }
  67737. _this._RemoveElementFromDOM(_this._EmbedHost);
  67738. options.popup = !options.popup;
  67739. options.embedMode = true;
  67740. options.showExplorer = true;
  67741. options.showInspector = true;
  67742. options.embedHostWidth = options.popup ? "100%" : "auto";
  67743. Inspector.Show(scene, options);
  67744. },
  67745. onClose: function () {
  67746. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](_this._EmbedHost);
  67747. _this._OpenedPane = 0;
  67748. _this._Cleanup();
  67749. _this._RemoveElementFromDOM(_this._EmbedHost);
  67750. if (options.popup) {
  67751. _this._EmbedHostWindow.close();
  67752. }
  67753. },
  67754. initialTab: options.initialTab,
  67755. });
  67756. react_dom__WEBPACK_IMPORTED_MODULE_2__["render"](embedHostElement, this._EmbedHost);
  67757. }
  67758. };
  67759. Inspector._CreatePopup = function (title, windowVariableName, width, height, lateBinding) {
  67760. var _this = this;
  67761. if (width === void 0) { width = 300; }
  67762. if (height === void 0) { height = 800; }
  67763. var windowCreationOptionsList = {
  67764. width: width,
  67765. height: height,
  67766. top: (window.innerHeight - width) / 2 + window.screenY,
  67767. left: (window.innerWidth - height) / 2 + window.screenX,
  67768. };
  67769. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  67770. .map(function (key) { return key + "=" + windowCreationOptionsList[key]; })
  67771. .join(",");
  67772. var popupWindow = window.open("", title, windowCreationOptions);
  67773. if (!popupWindow) {
  67774. return null;
  67775. }
  67776. var parentDocument = popupWindow.document;
  67777. // Font
  67778. var newLinkEl = parentDocument.createElement("link");
  67779. newLinkEl.rel = "stylesheet";
  67780. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  67781. parentDocument.head.appendChild(newLinkEl);
  67782. parentDocument.title = title;
  67783. parentDocument.body.style.width = "100%";
  67784. parentDocument.body.style.height = "100%";
  67785. parentDocument.body.style.margin = "0";
  67786. parentDocument.body.style.padding = "0";
  67787. var parentControl = parentDocument.createElement("div");
  67788. parentControl.style.width = "100%";
  67789. parentControl.style.height = "100%";
  67790. parentControl.style.margin = "0";
  67791. parentControl.style.padding = "0";
  67792. popupWindow.document.body.appendChild(parentControl);
  67793. this._CopyStyles(window.document, parentDocument);
  67794. if (lateBinding) {
  67795. setTimeout(function () {
  67796. // need this for late bindings
  67797. _this._CopyStyles(window.document, parentDocument);
  67798. }, 0);
  67799. }
  67800. this[windowVariableName] = popupWindow;
  67801. return parentControl;
  67802. };
  67803. Object.defineProperty(Inspector, "IsVisible", {
  67804. get: function () {
  67805. return this._OpenedPane > 0;
  67806. },
  67807. enumerable: false,
  67808. configurable: true
  67809. });
  67810. Inspector.EarlyAttachToLoader = function () {
  67811. var _this = this;
  67812. if (!this._GlobalState.onPluginActivatedObserver) {
  67813. this._GlobalState.onPluginActivatedObserver = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["SceneLoader"].OnPluginActivatedObservable.add(function (rawLoader) {
  67814. var loader = rawLoader;
  67815. if (loader.name === "gltf") {
  67816. _this._GlobalState.prepareGLTFPlugin(loader);
  67817. }
  67818. });
  67819. }
  67820. };
  67821. Inspector.Show = function (scene, userOptions) {
  67822. 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);
  67823. // Prepare state
  67824. if (!this._GlobalState.onPropertyChangedObservable) {
  67825. this._GlobalState.init(this.OnPropertyChangedObservable);
  67826. }
  67827. if (!this._GlobalState.onSelectionChangedObservable) {
  67828. this._GlobalState.onSelectionChangedObservable = this.OnSelectionChangeObservable;
  67829. }
  67830. // Make sure it is not already opened
  67831. if (this.IsVisible && options.original) {
  67832. this.Hide();
  67833. }
  67834. if (!scene) {
  67835. scene = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["EngineStore"].LastCreatedScene;
  67836. }
  67837. this._Scene = scene;
  67838. var rootElement = scene ? scene.getEngine().getInputElement() : babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["EngineStore"].LastCreatedEngine.getInputElement();
  67839. if (options.embedMode && options.showExplorer && options.showInspector) {
  67840. if (options.popup) {
  67841. this._CreateEmbedHost(scene, options, this._CreatePopup("INSPECTOR", "_EmbedHostWindow"), Inspector.OnSelectionChangeObservable);
  67842. }
  67843. else {
  67844. if (!rootElement) {
  67845. return;
  67846. }
  67847. var parentControl = (options.globalRoot ? options.globalRoot : rootElement.parentElement);
  67848. if (!options.overlay && !this._NewCanvasContainer) {
  67849. this._CreateCanvasContainer(parentControl);
  67850. }
  67851. else if (!options.overlay && this._NewCanvasContainer && this._NewCanvasContainer.parentElement) {
  67852. // the root is now the parent of the canvas container
  67853. parentControl = this._NewCanvasContainer.parentElement;
  67854. }
  67855. if (this._NewCanvasContainer) {
  67856. // If we move things around, let's control the resize
  67857. if (options.handleResize && scene) {
  67858. this._OnBeforeRenderObserver = scene.onBeforeRenderObservable.add(function () {
  67859. scene.getEngine().resize();
  67860. });
  67861. }
  67862. }
  67863. this._CreateEmbedHost(scene, options, parentControl, Inspector.OnSelectionChangeObservable);
  67864. }
  67865. }
  67866. else if (options.popup) {
  67867. if (options.showExplorer) {
  67868. if (this._SceneExplorerHost) {
  67869. this._SceneExplorerHost.style.width = "0";
  67870. }
  67871. this._CreateSceneExplorer(scene, options, this._CreatePopup("SCENE EXPLORER", "_SceneExplorerWindow"));
  67872. }
  67873. if (options.showInspector) {
  67874. if (this._ActionTabsHost) {
  67875. this._ActionTabsHost.style.width = "0";
  67876. }
  67877. this._CreateActionTabs(scene, options, this._CreatePopup("INSPECTOR", "_ActionTabsWindow"));
  67878. }
  67879. }
  67880. else {
  67881. var parentControl = (options.globalRoot ? options.globalRoot : rootElement.parentElement);
  67882. if (!options.overlay && !this._NewCanvasContainer) {
  67883. this._CreateCanvasContainer(parentControl);
  67884. }
  67885. else if (!options.overlay && this._NewCanvasContainer && this._NewCanvasContainer.parentElement) {
  67886. // the root is now the parent of the canvas container
  67887. parentControl = this._NewCanvasContainer.parentElement;
  67888. }
  67889. if (this._NewCanvasContainer) {
  67890. // If we move things around, let's control the resize
  67891. if (options.handleResize && scene) {
  67892. this._OnBeforeRenderObserver = scene.onBeforeRenderObservable.add(function () {
  67893. scene.getEngine().resize();
  67894. });
  67895. }
  67896. }
  67897. if (options.showExplorer) {
  67898. this._CreateSceneExplorer(scene, options, parentControl);
  67899. }
  67900. if (options.showInspector) {
  67901. this._CreateActionTabs(scene, options, parentControl);
  67902. }
  67903. }
  67904. };
  67905. Inspector._SetNewScene = function (scene) {
  67906. this._Scene = scene;
  67907. this._GlobalState.onNewSceneObservable.notifyObservers(scene);
  67908. };
  67909. Inspector._CreateCanvasContainer = function (parentControl) {
  67910. // Create a container for previous elements
  67911. this._NewCanvasContainer = parentControl.ownerDocument.createElement("div");
  67912. this._NewCanvasContainer.style.display = parentControl.style.display;
  67913. parentControl.style.display = "flex";
  67914. while (parentControl.childElementCount > 0) {
  67915. var child = parentControl.childNodes[0];
  67916. parentControl.removeChild(child);
  67917. this._NewCanvasContainer.appendChild(child);
  67918. }
  67919. parentControl.appendChild(this._NewCanvasContainer);
  67920. this._NewCanvasContainer.style.width = "100%";
  67921. this._NewCanvasContainer.style.height = "100%";
  67922. };
  67923. Inspector._DestroyCanvasContainer = function () {
  67924. if (!this._NewCanvasContainer) {
  67925. return;
  67926. }
  67927. var parentControl = this._NewCanvasContainer.parentElement;
  67928. while (this._NewCanvasContainer.childElementCount > 0) {
  67929. var child = this._NewCanvasContainer.childNodes[0];
  67930. this._NewCanvasContainer.removeChild(child);
  67931. parentControl.appendChild(child);
  67932. }
  67933. parentControl.removeChild(this._NewCanvasContainer);
  67934. parentControl.style.display = this._NewCanvasContainer.style.display;
  67935. this._NewCanvasContainer = null;
  67936. };
  67937. Inspector._Cleanup = function () {
  67938. var _this = this;
  67939. if (Inspector._OpenedPane !== 0) {
  67940. return;
  67941. }
  67942. // Gizmo disposal
  67943. this._GlobalState.lightGizmos.forEach(function (g) {
  67944. if (g.light) {
  67945. _this._GlobalState.enableLightGizmo(g.light, false);
  67946. }
  67947. });
  67948. this._GlobalState.cameraGizmos.forEach(function (g) {
  67949. if (g.camera) {
  67950. _this._GlobalState.enableCameraGizmo(g.camera, false);
  67951. }
  67952. });
  67953. if (this._Scene && this._Scene.reservedDataStore && this._Scene.reservedDataStore.gizmoManager) {
  67954. this._Scene.reservedDataStore.gizmoManager.dispose();
  67955. this._Scene.reservedDataStore.gizmoManager = null;
  67956. }
  67957. if (this._NewCanvasContainer) {
  67958. this._DestroyCanvasContainer();
  67959. }
  67960. if (this._OnBeforeRenderObserver && this._Scene) {
  67961. this._Scene.onBeforeRenderObservable.remove(this._OnBeforeRenderObserver);
  67962. this._OnBeforeRenderObserver = null;
  67963. this._Scene.getEngine().resize();
  67964. }
  67965. this._GlobalState.onInspectorClosedObservable.notifyObservers(this._Scene);
  67966. };
  67967. Inspector._RemoveElementFromDOM = function (element) {
  67968. if (element && element.parentElement) {
  67969. element.parentElement.removeChild(element);
  67970. }
  67971. };
  67972. Inspector.Hide = function () {
  67973. if (this._ActionTabsHost) {
  67974. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](this._ActionTabsHost);
  67975. this._RemoveElementFromDOM(this._ActionTabsHost);
  67976. this._ActionTabsHost = null;
  67977. }
  67978. if (this._SceneExplorerHost) {
  67979. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](this._SceneExplorerHost);
  67980. if (this._SceneExplorerHost.parentElement) {
  67981. this._SceneExplorerHost.parentElement.removeChild(this._SceneExplorerHost);
  67982. }
  67983. this._SceneExplorerHost = null;
  67984. }
  67985. if (this._EmbedHost) {
  67986. react_dom__WEBPACK_IMPORTED_MODULE_2__["unmountComponentAtNode"](this._EmbedHost);
  67987. if (this._EmbedHost.parentElement) {
  67988. this._EmbedHost.parentElement.removeChild(this._EmbedHost);
  67989. }
  67990. this._EmbedHost = null;
  67991. }
  67992. Inspector._OpenedPane = 0;
  67993. this._Cleanup();
  67994. if (!this._GlobalState.onPluginActivatedObserver) {
  67995. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["SceneLoader"].OnPluginActivatedObservable.remove(this._GlobalState.onPluginActivatedObserver);
  67996. this._GlobalState.onPluginActivatedObserver = null;
  67997. }
  67998. };
  67999. Inspector._OpenedPane = 0;
  68000. Inspector.OnSelectionChangeObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["Observable"]();
  68001. Inspector.OnPropertyChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_3__["Observable"]();
  68002. Inspector._GlobalState = new _components_globalState__WEBPACK_IMPORTED_MODULE_7__["GlobalState"]();
  68003. return Inspector;
  68004. }());
  68005. Inspector.EarlyAttachToLoader();
  68006. /***/ }),
  68007. /***/ "./legacy/legacy.ts":
  68008. /*!**************************!*\
  68009. !*** ./legacy/legacy.ts ***!
  68010. \**************************/
  68011. /*! exports provided: Inspector */
  68012. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68013. "use strict";
  68014. __webpack_require__.r(__webpack_exports__);
  68015. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  68016. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Inspector", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["Inspector"]; });
  68017. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  68018. if (typeof globalObject !== "undefined") {
  68019. globalObject.BABYLON = globalObject.BABYLON || {};
  68020. globalObject.BABYLON.Inspector = _index__WEBPACK_IMPORTED_MODULE_0__["Inspector"];
  68021. }
  68022. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  68023. /***/ }),
  68024. /***/ "./lod.ts":
  68025. /*!****************!*\
  68026. !*** ./lod.ts ***!
  68027. \****************/
  68028. /*! exports provided: lodPixelShader */
  68029. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68030. "use strict";
  68031. __webpack_require__.r(__webpack_exports__);
  68032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lodPixelShader", function() { return lodPixelShader; });
  68033. /* harmony import */ var babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/effect */ "babylonjs/Misc/observable");
  68034. /* harmony import */ var babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0__);
  68035. var name = 'lodPixelShader';
  68036. var shader = "\n#extension GL_EXT_shader_texture_lod : enable\n\nprecision highp float;\n\nvarying vec2 vUV;\nuniform sampler2D textureSampler;\nuniform float lod;\nuniform vec2 texSize;\nvoid main(void)\n{\n gl_FragColor = textureLod(textureSampler,vUV,lod);\n}";
  68037. babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0__["Effect"].ShadersStore[name] = shader;
  68038. /** @hidden */
  68039. var lodPixelShader = { name: name, shader: shader };
  68040. /***/ }),
  68041. /***/ "./lodCube.ts":
  68042. /*!********************!*\
  68043. !*** ./lodCube.ts ***!
  68044. \********************/
  68045. /*! exports provided: lodCubePixelShader */
  68046. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68047. "use strict";
  68048. __webpack_require__.r(__webpack_exports__);
  68049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lodCubePixelShader", function() { return lodCubePixelShader; });
  68050. /* harmony import */ var babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/effect */ "babylonjs/Misc/observable");
  68051. /* harmony import */ var babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0__);
  68052. var name = 'lodCubePixelShader';
  68053. var shader = "\nprecision highp float;\n\nvarying vec2 vUV;\nuniform samplerCube textureSampler;\nuniform float lod;\nvoid main(void)\n{\n vec2 uv=vUV*2.0-1.0;\n #ifdef POSITIVEX\n gl_FragColor=textureCube(textureSampler,vec3(1.001,uv.y,uv.x),lod);\n #endif\n #ifdef NEGATIVEX\n gl_FragColor=textureCube(textureSampler,vec3(-1.001,uv.y,uv.x),lod);\n #endif\n #ifdef POSITIVEY\n gl_FragColor=textureCube(textureSampler,vec3(uv.y,1.001,uv.x),lod);\n #endif\n #ifdef NEGATIVEY\n gl_FragColor=textureCube(textureSampler,vec3(uv.y,-1.001,uv.x),lod);\n #endif\n #ifdef POSITIVEZ\n gl_FragColor=textureCube(textureSampler,vec3(uv,1.001),lod);\n #endif\n #ifdef NEGATIVEZ\n gl_FragColor=textureCube(textureSampler,vec3(uv,-1.001),lod);\n #endif\n}";
  68054. babylonjs_Materials_effect__WEBPACK_IMPORTED_MODULE_0__["Effect"].ShadersStore[name] = shader;
  68055. /** @hidden */
  68056. var lodCubePixelShader = { name: name, shader: shader };
  68057. /***/ }),
  68058. /***/ "./textureHelper.ts":
  68059. /*!**************************!*\
  68060. !*** ./textureHelper.ts ***!
  68061. \**************************/
  68062. /*! exports provided: TextureHelper */
  68063. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68064. "use strict";
  68065. __webpack_require__.r(__webpack_exports__);
  68066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureHelper", function() { return TextureHelper; });
  68067. /* harmony import */ var babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/PostProcesses/postProcess */ "babylonjs/Misc/observable");
  68068. /* harmony import */ var babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__);
  68069. /* harmony import */ var _lod__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lod */ "./lod.ts");
  68070. /* harmony import */ var _lodCube__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lodCube */ "./lodCube.ts");
  68071. var TextureHelper = /** @class */ (function () {
  68072. function TextureHelper() {
  68073. }
  68074. TextureHelper._ProcessAsync = function (texture, width, height, face, channels, lod, globalState, resolve, reject) {
  68075. var _this = this;
  68076. var scene = texture.getScene();
  68077. var engine = scene.getEngine();
  68078. var lodPostProcess;
  68079. if (!texture.isCube) {
  68080. lodPostProcess = new babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__["PostProcess"]("lod", "lod", ["lod"], null, 1.0, null, babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__["Texture"].NEAREST_NEAREST_MIPNEAREST, engine);
  68081. }
  68082. else {
  68083. var faceDefines = [
  68084. "#define POSITIVEX",
  68085. "#define NEGATIVEX",
  68086. "#define POSITIVEY",
  68087. "#define NEGATIVEY",
  68088. "#define POSITIVEZ",
  68089. "#define NEGATIVEZ",
  68090. ];
  68091. lodPostProcess = new babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__["PostProcess"]("lodCube", "lodCube", ["lod"], null, 1.0, null, babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__["Texture"].NEAREST_NEAREST_MIPNEAREST, engine, false, faceDefines[face]);
  68092. }
  68093. if (!lodPostProcess.getEffect().isReady()) {
  68094. // Try again later
  68095. lodPostProcess.dispose();
  68096. setTimeout(function () {
  68097. _this._ProcessAsync(texture, width, height, face, channels, lod, globalState, resolve, reject);
  68098. }, 250);
  68099. return;
  68100. }
  68101. if (globalState) {
  68102. globalState.blockMutationUpdates = true;
  68103. }
  68104. var rtt = new babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  68105. lodPostProcess.onApply = function (effect) {
  68106. effect.setTexture("textureSampler", texture);
  68107. effect.setFloat("lod", lod);
  68108. };
  68109. var internalTexture = rtt.getInternalTexture();
  68110. if (internalTexture) {
  68111. var samplingMode = texture.samplingMode;
  68112. texture.updateSamplingMode(babylonjs_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_0__["Texture"].NEAREST_NEAREST_MIPNEAREST);
  68113. scene.postProcessManager.directRender([lodPostProcess], internalTexture);
  68114. texture.updateSamplingMode(samplingMode);
  68115. // Read the contents of the framebuffer
  68116. var numberOfChannelsByLine = width * 4;
  68117. var halfHeight = height / 2;
  68118. //Reading datas from WebGL
  68119. var data = engine.readPixels(0, 0, width, height);
  68120. if (!channels.R || !channels.G || !channels.B || !channels.A) {
  68121. for (var i = 0; i < width * height * 4; i += 4) {
  68122. // If alpha is the only channel, just display alpha across all channels
  68123. if (channels.A && !channels.R && !channels.G && !channels.B) {
  68124. data[i] = data[i + 3];
  68125. data[i + 1] = data[i + 3];
  68126. data[i + 2] = data[i + 3];
  68127. data[i + 3] = 255;
  68128. continue;
  68129. }
  68130. var r = data[i], g = data[i + 1], b = data[i + 2], a = data[i + 3];
  68131. // If alpha is not visible, make everything 100% alpha
  68132. if (!channels.A) {
  68133. a = 255;
  68134. }
  68135. // If only one color channel is selected, map both colors to it. If two are selected, the unused one gets set to 0
  68136. if (!channels.R) {
  68137. if (channels.G && !channels.B) {
  68138. r = g;
  68139. }
  68140. else if (channels.B && !channels.G) {
  68141. r = b;
  68142. }
  68143. else {
  68144. r = 0;
  68145. }
  68146. }
  68147. if (!channels.G) {
  68148. if (channels.R && !channels.B) {
  68149. g = r;
  68150. }
  68151. else if (channels.B && !channels.R) {
  68152. g = b;
  68153. }
  68154. else {
  68155. g = 0;
  68156. }
  68157. }
  68158. if (!channels.B) {
  68159. if (channels.R && !channels.G) {
  68160. b = r;
  68161. }
  68162. else if (channels.G && !channels.R) {
  68163. b = g;
  68164. }
  68165. else {
  68166. b = 0;
  68167. }
  68168. }
  68169. data[i] = r;
  68170. data[i + 1] = g;
  68171. data[i + 2] = b;
  68172. data[i + 3] = a;
  68173. }
  68174. }
  68175. //To flip image on Y axis.
  68176. if (texture.invertY || texture.isCube) {
  68177. for (var i = 0; i < halfHeight; i++) {
  68178. for (var j = 0; j < numberOfChannelsByLine; j++) {
  68179. var currentCell = j + i * numberOfChannelsByLine;
  68180. var targetLine = height - i - 1;
  68181. var targetCell = j + targetLine * numberOfChannelsByLine;
  68182. var temp = data[currentCell];
  68183. data[currentCell] = data[targetCell];
  68184. data[targetCell] = temp;
  68185. }
  68186. }
  68187. }
  68188. resolve(data);
  68189. // Unbind
  68190. engine.unBindFramebuffer(internalTexture);
  68191. }
  68192. else {
  68193. reject();
  68194. }
  68195. rtt.dispose();
  68196. lodPostProcess.dispose();
  68197. if (globalState) {
  68198. globalState.blockMutationUpdates = false;
  68199. }
  68200. };
  68201. TextureHelper.GetTextureDataAsync = function (texture, width, height, face, channels, globalState, lod) {
  68202. var _this = this;
  68203. if (lod === void 0) { lod = 0; }
  68204. return new Promise(function (resolve, reject) {
  68205. if (!texture.isReady() && texture._texture) {
  68206. texture._texture.onLoadedObservable.addOnce(function () {
  68207. _this._ProcessAsync(texture, width, height, face, channels, lod, globalState || null, resolve, reject);
  68208. });
  68209. return;
  68210. }
  68211. _this._ProcessAsync(texture, width, height, face, channels, lod, globalState || null, resolve, reject);
  68212. });
  68213. };
  68214. return TextureHelper;
  68215. }());
  68216. /***/ }),
  68217. /***/ "./tools.ts":
  68218. /*!******************!*\
  68219. !*** ./tools.ts ***!
  68220. \******************/
  68221. /*! exports provided: Tools */
  68222. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68223. "use strict";
  68224. __webpack_require__.r(__webpack_exports__);
  68225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tools", function() { return Tools; });
  68226. var Tools = /** @class */ (function () {
  68227. function Tools() {
  68228. }
  68229. Tools.LookForItem = function (item, selectedEntity) {
  68230. if (item === selectedEntity) {
  68231. return true;
  68232. }
  68233. var children = item.getChildren ? item.getChildren() : item.children;
  68234. if (children && item.getClassName() !== "MultiMaterial") {
  68235. for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {
  68236. var child = children_1[_i];
  68237. if (Tools.LookForItem(child, selectedEntity)) {
  68238. return true;
  68239. }
  68240. }
  68241. }
  68242. return false;
  68243. };
  68244. Tools._RecursiveRemoveHiddenMeshesAndHoistChildren = function (items) {
  68245. var result = [];
  68246. for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
  68247. var i = items_1[_i];
  68248. // 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
  68249. if (i.reservedDataStore && i.reservedDataStore.hidden && i.getChildMeshes) {
  68250. Tools._RecursiveRemoveHiddenMeshesAndHoistChildren(i.getChildMeshes()).forEach(function (m) {
  68251. result.push(m);
  68252. });
  68253. }
  68254. else if (!i.reservedDataStore || !i.reservedDataStore.hidden) {
  68255. result.push(i);
  68256. }
  68257. }
  68258. return result;
  68259. };
  68260. Tools.SortAndFilter = function (parent, items) {
  68261. if (!items) {
  68262. return [];
  68263. }
  68264. var finalArray = Tools._RecursiveRemoveHiddenMeshesAndHoistChildren(items);
  68265. if (parent && parent.reservedDataStore && parent.reservedDataStore.detachedChildren) {
  68266. finalArray.push.apply(finalArray, parent.reservedDataStore.detachedChildren);
  68267. }
  68268. return finalArray.sort(function (a, b) {
  68269. var lowerCaseA = (a.name || "").toLowerCase();
  68270. var lowerCaseB = (b.name || "").toLowerCase();
  68271. if (lowerCaseA === lowerCaseB) {
  68272. return 0;
  68273. }
  68274. if (lowerCaseA > lowerCaseB) {
  68275. return 1;
  68276. }
  68277. return -1;
  68278. });
  68279. };
  68280. return Tools;
  68281. }());
  68282. /***/ }),
  68283. /***/ "babylonjs-gui/2D/adtInstrumentation":
  68284. /*!************************************************************************************************************************!*\
  68285. !*** external {"root":["BABYLON","GUI"],"commonjs":"babylonjs-gui","commonjs2":"babylonjs-gui","amd":"babylonjs-gui"} ***!
  68286. \************************************************************************************************************************/
  68287. /*! no static exports found */
  68288. /***/ (function(module, exports) {
  68289. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_gui_2D_adtInstrumentation__;
  68290. /***/ }),
  68291. /***/ "babylonjs-loaders/glTF/index":
  68292. /*!****************************************************************************************************************************!*\
  68293. !*** external {"root":"BABYLON","commonjs":"babylonjs-loaders","commonjs2":"babylonjs-loaders","amd":"babylonjs-loaders"} ***!
  68294. \****************************************************************************************************************************/
  68295. /*! no static exports found */
  68296. /***/ (function(module, exports) {
  68297. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_loaders_glTF_index__;
  68298. /***/ }),
  68299. /***/ "babylonjs-materials/grid/gridMaterial":
  68300. /*!**********************************************************************************************************************************!*\
  68301. !*** external {"root":"BABYLON","commonjs":"babylonjs-materials","commonjs2":"babylonjs-materials","amd":"babylonjs-materials"} ***!
  68302. \**********************************************************************************************************************************/
  68303. /*! no static exports found */
  68304. /***/ (function(module, exports) {
  68305. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_materials_grid_gridMaterial__;
  68306. /***/ }),
  68307. /***/ "babylonjs-serializers/glTF/2.0/index":
  68308. /*!****************************************************************************************************************************************!*\
  68309. !*** external {"root":"BABYLON","commonjs":"babylonjs-serializers","commonjs2":"babylonjs-serializers","amd":"babylonjs-serializers"} ***!
  68310. \****************************************************************************************************************************************/
  68311. /*! no static exports found */
  68312. /***/ (function(module, exports) {
  68313. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_serializers_glTF_2_0_index__;
  68314. /***/ }),
  68315. /***/ "babylonjs/Misc/observable":
  68316. /*!****************************************************************************************************!*\
  68317. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  68318. \****************************************************************************************************/
  68319. /*! no static exports found */
  68320. /***/ (function(module, exports) {
  68321. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  68322. /***/ })
  68323. /******/ });
  68324. });
  68325. //# sourceMappingURL=babylon.inspector.bundle.max.js.map