babylon.nodeEditor.max.js 2.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("babylonjs"));
  4. else if(typeof define === 'function' && define.amd)
  5. define("babylonjs-node-editor", ["babylonjs"], factory);
  6. else if(typeof exports === 'object')
  7. exports["babylonjs-node-editor"] = factory(require("babylonjs"));
  8. else
  9. root["NODEEDITOR"] = factory(root["BABYLON"]);
  10. })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__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. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "icon", function() { return icon; });
  107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noAuto", function() { return noAuto; });
  108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHtml", function() { return toHtml; });
  110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layer", function() { return layer; });
  111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "text", function() { return text; });
  112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "counter", function() { return counter; });
  113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "library", function() { return library; });
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dom", function() { return dom; });
  115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
  117. function _classCallCheck(instance, Constructor) {
  118. if (!(instance instanceof Constructor)) {
  119. throw new TypeError("Cannot call a class as a function");
  120. }
  121. }
  122. function _defineProperties(target, props) {
  123. for (var i = 0; i < props.length; i++) {
  124. var descriptor = props[i];
  125. descriptor.enumerable = descriptor.enumerable || false;
  126. descriptor.configurable = true;
  127. if ("value" in descriptor) descriptor.writable = true;
  128. Object.defineProperty(target, descriptor.key, descriptor);
  129. }
  130. }
  131. function _createClass(Constructor, protoProps, staticProps) {
  132. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  133. if (staticProps) _defineProperties(Constructor, staticProps);
  134. return Constructor;
  135. }
  136. function _defineProperty(obj, key, value) {
  137. if (key in obj) {
  138. Object.defineProperty(obj, key, {
  139. value: value,
  140. enumerable: true,
  141. configurable: true,
  142. writable: true
  143. });
  144. } else {
  145. obj[key] = value;
  146. }
  147. return obj;
  148. }
  149. function _objectSpread(target) {
  150. for (var i = 1; i < arguments.length; i++) {
  151. var source = arguments[i] != null ? arguments[i] : {};
  152. var ownKeys = Object.keys(source);
  153. if (typeof Object.getOwnPropertySymbols === 'function') {
  154. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  155. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  156. }));
  157. }
  158. ownKeys.forEach(function (key) {
  159. _defineProperty(target, key, source[key]);
  160. });
  161. }
  162. return target;
  163. }
  164. function _slicedToArray(arr, i) {
  165. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  166. }
  167. function _toConsumableArray(arr) {
  168. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  169. }
  170. function _arrayWithoutHoles(arr) {
  171. if (Array.isArray(arr)) {
  172. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  173. return arr2;
  174. }
  175. }
  176. function _arrayWithHoles(arr) {
  177. if (Array.isArray(arr)) return arr;
  178. }
  179. function _iterableToArray(iter) {
  180. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  181. }
  182. function _iterableToArrayLimit(arr, i) {
  183. var _arr = [];
  184. var _n = true;
  185. var _d = false;
  186. var _e = undefined;
  187. try {
  188. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  189. _arr.push(_s.value);
  190. if (i && _arr.length === i) break;
  191. }
  192. } catch (err) {
  193. _d = true;
  194. _e = err;
  195. } finally {
  196. try {
  197. if (!_n && _i["return"] != null) _i["return"]();
  198. } finally {
  199. if (_d) throw _e;
  200. }
  201. }
  202. return _arr;
  203. }
  204. function _nonIterableSpread() {
  205. throw new TypeError("Invalid attempt to spread non-iterable instance");
  206. }
  207. function _nonIterableRest() {
  208. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  209. }
  210. var noop = function noop() {};
  211. var _WINDOW = {};
  212. var _DOCUMENT = {};
  213. var _MUTATION_OBSERVER = null;
  214. var _PERFORMANCE = {
  215. mark: noop,
  216. measure: noop
  217. };
  218. try {
  219. if (typeof window !== 'undefined') _WINDOW = window;
  220. if (typeof document !== 'undefined') _DOCUMENT = document;
  221. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  222. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  223. } catch (e) {}
  224. var _ref = _WINDOW.navigator || {},
  225. _ref$userAgent = _ref.userAgent,
  226. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  227. var WINDOW = _WINDOW;
  228. var DOCUMENT = _DOCUMENT;
  229. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  230. var PERFORMANCE = _PERFORMANCE;
  231. var IS_BROWSER = !!WINDOW.document;
  232. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  233. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  234. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  235. var UNITS_IN_GRID = 16;
  236. var DEFAULT_FAMILY_PREFIX = 'fa';
  237. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  238. var DATA_FA_I2SVG = 'data-fa-i2svg';
  239. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  240. var DATA_PREFIX = 'data-prefix';
  241. var DATA_ICON = 'data-icon';
  242. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  243. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  244. var PRODUCTION = function () {
  245. try {
  246. return "development" === 'production';
  247. } catch (e) {
  248. return false;
  249. }
  250. }();
  251. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  252. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  253. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  254. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  255. return "".concat(n, "x");
  256. })).concat(oneToTwenty.map(function (n) {
  257. return "w-".concat(n);
  258. }));
  259. var initial = WINDOW.FontAwesomeConfig || {};
  260. function getAttrConfig(attr) {
  261. var element = DOCUMENT.querySelector('script[' + attr + ']');
  262. if (element) {
  263. return element.getAttribute(attr);
  264. }
  265. }
  266. function coerce(val) {
  267. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  268. // We'll assume that this is an indication that it should be toggled to true
  269. // For example <script data-search-pseudo-elements src="..."></script>
  270. if (val === '') return true;
  271. if (val === 'false') return false;
  272. if (val === 'true') return true;
  273. return val;
  274. }
  275. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  276. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  277. attrs.forEach(function (_ref) {
  278. var _ref2 = _slicedToArray(_ref, 2),
  279. attr = _ref2[0],
  280. key = _ref2[1];
  281. var val = coerce(getAttrConfig(attr));
  282. if (val !== undefined && val !== null) {
  283. initial[key] = val;
  284. }
  285. });
  286. }
  287. var _default = _objectSpread({
  288. familyPrefix: DEFAULT_FAMILY_PREFIX,
  289. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  290. autoReplaceSvg: true,
  291. autoAddCss: true,
  292. autoA11y: true,
  293. searchPseudoElements: false,
  294. observeMutations: true,
  295. keepOriginalSource: true,
  296. measurePerformance: false,
  297. showMissingIcons: true
  298. }, initial);
  299. if (!_default.autoReplaceSvg) _default.observeMutations = false;
  300. var config = _objectSpread({}, _default);
  301. WINDOW.FontAwesomeConfig = config;
  302. var w = WINDOW || {};
  303. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  304. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  305. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  306. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  307. var namespace = w[NAMESPACE_IDENTIFIER];
  308. var functions = [];
  309. var listener = function listener() {
  310. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  311. loaded = 1;
  312. functions.map(function (fn) {
  313. return fn();
  314. });
  315. };
  316. var loaded = false;
  317. if (IS_DOM) {
  318. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  319. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  320. }
  321. function domready (fn) {
  322. if (!IS_DOM) return;
  323. loaded ? setTimeout(fn, 0) : functions.push(fn);
  324. }
  325. var d = UNITS_IN_GRID;
  326. var meaninglessTransform = {
  327. size: 16,
  328. x: 0,
  329. y: 0,
  330. rotate: 0,
  331. flipX: false,
  332. flipY: false
  333. };
  334. function isReserved(name) {
  335. return ~RESERVED_CLASSES.indexOf(name);
  336. }
  337. function insertCss(css) {
  338. if (!css || !IS_DOM) {
  339. return;
  340. }
  341. var style = DOCUMENT.createElement('style');
  342. style.setAttribute('type', 'text/css');
  343. style.innerHTML = css;
  344. var headChildren = DOCUMENT.head.childNodes;
  345. var beforeChild = null;
  346. for (var i = headChildren.length - 1; i > -1; i--) {
  347. var child = headChildren[i];
  348. var tagName = (child.tagName || '').toUpperCase();
  349. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  350. beforeChild = child;
  351. }
  352. }
  353. DOCUMENT.head.insertBefore(style, beforeChild);
  354. return css;
  355. }
  356. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  357. function nextUniqueId() {
  358. var size = 12;
  359. var id = '';
  360. while (size-- > 0) {
  361. id += idPool[Math.random() * 62 | 0];
  362. }
  363. return id;
  364. }
  365. function toArray(obj) {
  366. var array = [];
  367. for (var i = (obj || []).length >>> 0; i--;) {
  368. array[i] = obj[i];
  369. }
  370. return array;
  371. }
  372. function classArray(node) {
  373. if (node.classList) {
  374. return toArray(node.classList);
  375. } else {
  376. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  377. return i;
  378. });
  379. }
  380. }
  381. function getIconName(familyPrefix, cls) {
  382. var parts = cls.split('-');
  383. var prefix = parts[0];
  384. var iconName = parts.slice(1).join('-');
  385. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  386. return iconName;
  387. } else {
  388. return null;
  389. }
  390. }
  391. function htmlEscape(str) {
  392. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  393. }
  394. function joinAttributes(attributes) {
  395. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  396. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  397. }, '').trim();
  398. }
  399. function joinStyles(styles) {
  400. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  401. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  402. }, '');
  403. }
  404. function transformIsMeaningful(transform) {
  405. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  406. }
  407. function transformForSvg(_ref) {
  408. var transform = _ref.transform,
  409. containerWidth = _ref.containerWidth,
  410. iconWidth = _ref.iconWidth;
  411. var outer = {
  412. transform: "translate(".concat(containerWidth / 2, " 256)")
  413. };
  414. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  415. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  416. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  417. var inner = {
  418. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  419. };
  420. var path = {
  421. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  422. };
  423. return {
  424. outer: outer,
  425. inner: inner,
  426. path: path
  427. };
  428. }
  429. function transformForCss(_ref2) {
  430. var transform = _ref2.transform,
  431. _ref2$width = _ref2.width,
  432. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  433. _ref2$height = _ref2.height,
  434. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  435. _ref2$startCentered = _ref2.startCentered,
  436. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  437. var val = '';
  438. if (startCentered && IS_IE) {
  439. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  440. } else if (startCentered) {
  441. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  442. } else {
  443. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  444. }
  445. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  446. val += "rotate(".concat(transform.rotate, "deg) ");
  447. return val;
  448. }
  449. var ALL_SPACE = {
  450. x: 0,
  451. y: 0,
  452. width: '100%',
  453. height: '100%'
  454. };
  455. function makeIconMasking (_ref) {
  456. var children = _ref.children,
  457. attributes = _ref.attributes,
  458. main = _ref.main,
  459. mask = _ref.mask,
  460. transform = _ref.transform;
  461. var mainWidth = main.width,
  462. mainPath = main.icon;
  463. var maskWidth = mask.width,
  464. maskPath = mask.icon;
  465. var trans = transformForSvg({
  466. transform: transform,
  467. containerWidth: maskWidth,
  468. iconWidth: mainWidth
  469. });
  470. var maskRect = {
  471. tag: 'rect',
  472. attributes: _objectSpread({}, ALL_SPACE, {
  473. fill: 'white'
  474. })
  475. };
  476. var maskInnerGroup = {
  477. tag: 'g',
  478. attributes: _objectSpread({}, trans.inner),
  479. children: [{
  480. tag: 'path',
  481. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  482. fill: 'black'
  483. })
  484. }]
  485. };
  486. var maskOuterGroup = {
  487. tag: 'g',
  488. attributes: _objectSpread({}, trans.outer),
  489. children: [maskInnerGroup]
  490. };
  491. var maskId = "mask-".concat(nextUniqueId());
  492. var clipId = "clip-".concat(nextUniqueId());
  493. var maskTag = {
  494. tag: 'mask',
  495. attributes: _objectSpread({}, ALL_SPACE, {
  496. id: maskId,
  497. maskUnits: 'userSpaceOnUse',
  498. maskContentUnits: 'userSpaceOnUse'
  499. }),
  500. children: [maskRect, maskOuterGroup]
  501. };
  502. var defs = {
  503. tag: 'defs',
  504. children: [{
  505. tag: 'clipPath',
  506. attributes: {
  507. id: clipId
  508. },
  509. children: [maskPath]
  510. }, maskTag]
  511. };
  512. children.push(defs, {
  513. tag: 'rect',
  514. attributes: _objectSpread({
  515. fill: 'currentColor',
  516. 'clip-path': "url(#".concat(clipId, ")"),
  517. mask: "url(#".concat(maskId, ")")
  518. }, ALL_SPACE)
  519. });
  520. return {
  521. children: children,
  522. attributes: attributes
  523. };
  524. }
  525. function makeIconStandard (_ref) {
  526. var children = _ref.children,
  527. attributes = _ref.attributes,
  528. main = _ref.main,
  529. transform = _ref.transform,
  530. styles = _ref.styles;
  531. var styleString = joinStyles(styles);
  532. if (styleString.length > 0) {
  533. attributes['style'] = styleString;
  534. }
  535. if (transformIsMeaningful(transform)) {
  536. var trans = transformForSvg({
  537. transform: transform,
  538. containerWidth: main.width,
  539. iconWidth: main.width
  540. });
  541. children.push({
  542. tag: 'g',
  543. attributes: _objectSpread({}, trans.outer),
  544. children: [{
  545. tag: 'g',
  546. attributes: _objectSpread({}, trans.inner),
  547. children: [{
  548. tag: main.icon.tag,
  549. children: main.icon.children,
  550. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  551. }]
  552. }]
  553. });
  554. } else {
  555. children.push(main.icon);
  556. }
  557. return {
  558. children: children,
  559. attributes: attributes
  560. };
  561. }
  562. function asIcon (_ref) {
  563. var children = _ref.children,
  564. main = _ref.main,
  565. mask = _ref.mask,
  566. attributes = _ref.attributes,
  567. styles = _ref.styles,
  568. transform = _ref.transform;
  569. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  570. var width = main.width,
  571. height = main.height;
  572. var offset = {
  573. x: width / height / 2,
  574. y: 0.5
  575. };
  576. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  577. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  578. }));
  579. }
  580. return [{
  581. tag: 'svg',
  582. attributes: attributes,
  583. children: children
  584. }];
  585. }
  586. function asSymbol (_ref) {
  587. var prefix = _ref.prefix,
  588. iconName = _ref.iconName,
  589. children = _ref.children,
  590. attributes = _ref.attributes,
  591. symbol = _ref.symbol;
  592. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  593. return [{
  594. tag: 'svg',
  595. attributes: {
  596. style: 'display: none;'
  597. },
  598. children: [{
  599. tag: 'symbol',
  600. attributes: _objectSpread({}, attributes, {
  601. id: id
  602. }),
  603. children: children
  604. }]
  605. }];
  606. }
  607. function makeInlineSvgAbstract(params) {
  608. var _params$icons = params.icons,
  609. main = _params$icons.main,
  610. mask = _params$icons.mask,
  611. prefix = params.prefix,
  612. iconName = params.iconName,
  613. transform = params.transform,
  614. symbol = params.symbol,
  615. title = params.title,
  616. extra = params.extra,
  617. _params$watchable = params.watchable,
  618. watchable = _params$watchable === void 0 ? false : _params$watchable;
  619. var _ref = mask.found ? mask : main,
  620. width = _ref.width,
  621. height = _ref.height;
  622. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  623. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  624. return extra.classes.indexOf(c) === -1;
  625. }).concat(extra.classes).join(' ');
  626. var content = {
  627. children: [],
  628. attributes: _objectSpread({}, extra.attributes, {
  629. 'data-prefix': prefix,
  630. 'data-icon': iconName,
  631. 'class': attrClass,
  632. 'role': 'img',
  633. 'xmlns': 'http://www.w3.org/2000/svg',
  634. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  635. })
  636. };
  637. if (watchable) {
  638. content.attributes[DATA_FA_I2SVG] = '';
  639. }
  640. if (title) content.children.push({
  641. tag: 'title',
  642. attributes: {
  643. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  644. },
  645. children: [title]
  646. });
  647. var args = _objectSpread({}, content, {
  648. prefix: prefix,
  649. iconName: iconName,
  650. main: main,
  651. mask: mask,
  652. transform: transform,
  653. symbol: symbol,
  654. styles: extra.styles
  655. });
  656. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  657. children = _ref2.children,
  658. attributes = _ref2.attributes;
  659. args.children = children;
  660. args.attributes = attributes;
  661. if (symbol) {
  662. return asSymbol(args);
  663. } else {
  664. return asIcon(args);
  665. }
  666. }
  667. function makeLayersTextAbstract(params) {
  668. var content = params.content,
  669. width = params.width,
  670. height = params.height,
  671. transform = params.transform,
  672. title = params.title,
  673. extra = params.extra,
  674. _params$watchable2 = params.watchable,
  675. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  676. var attributes = _objectSpread({}, extra.attributes, title ? {
  677. 'title': title
  678. } : {}, {
  679. 'class': extra.classes.join(' ')
  680. });
  681. if (watchable) {
  682. attributes[DATA_FA_I2SVG] = '';
  683. }
  684. var styles = _objectSpread({}, extra.styles);
  685. if (transformIsMeaningful(transform)) {
  686. styles['transform'] = transformForCss({
  687. transform: transform,
  688. startCentered: true,
  689. width: width,
  690. height: height
  691. });
  692. styles['-webkit-transform'] = styles['transform'];
  693. }
  694. var styleString = joinStyles(styles);
  695. if (styleString.length > 0) {
  696. attributes['style'] = styleString;
  697. }
  698. var val = [];
  699. val.push({
  700. tag: 'span',
  701. attributes: attributes,
  702. children: [content]
  703. });
  704. if (title) {
  705. val.push({
  706. tag: 'span',
  707. attributes: {
  708. class: 'sr-only'
  709. },
  710. children: [title]
  711. });
  712. }
  713. return val;
  714. }
  715. function makeLayersCounterAbstract(params) {
  716. var content = params.content,
  717. title = params.title,
  718. extra = params.extra;
  719. var attributes = _objectSpread({}, extra.attributes, title ? {
  720. 'title': title
  721. } : {}, {
  722. 'class': extra.classes.join(' ')
  723. });
  724. var styleString = joinStyles(extra.styles);
  725. if (styleString.length > 0) {
  726. attributes['style'] = styleString;
  727. }
  728. var val = [];
  729. val.push({
  730. tag: 'span',
  731. attributes: attributes,
  732. children: [content]
  733. });
  734. if (title) {
  735. val.push({
  736. tag: 'span',
  737. attributes: {
  738. class: 'sr-only'
  739. },
  740. children: [title]
  741. });
  742. }
  743. return val;
  744. }
  745. var noop$1 = function noop() {};
  746. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  747. mark: noop$1,
  748. measure: noop$1
  749. };
  750. var preamble = "FA \"5.6.3\"";
  751. var begin = function begin(name) {
  752. p.mark("".concat(preamble, " ").concat(name, " begins"));
  753. return function () {
  754. return end(name);
  755. };
  756. };
  757. var end = function end(name) {
  758. p.mark("".concat(preamble, " ").concat(name, " ends"));
  759. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  760. };
  761. var perf = {
  762. begin: begin,
  763. end: end
  764. };
  765. /**
  766. * Internal helper to bind a function known to have 4 arguments
  767. * to a given context.
  768. */
  769. var bindInternal4 = function bindInternal4(func, thisContext) {
  770. return function (a, b, c, d) {
  771. return func.call(thisContext, a, b, c, d);
  772. };
  773. };
  774. /**
  775. * # Reduce
  776. *
  777. * A fast object `.reduce()` implementation.
  778. *
  779. * @param {Object} subject The object to reduce over.
  780. * @param {Function} fn The reducer function.
  781. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  782. * @param {Object} thisContext The context for the reducer.
  783. * @return {mixed} The final result.
  784. */
  785. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  786. var keys = Object.keys(subject),
  787. length = keys.length,
  788. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  789. i,
  790. key,
  791. result;
  792. if (initialValue === undefined) {
  793. i = 1;
  794. result = subject[keys[0]];
  795. } else {
  796. i = 0;
  797. result = initialValue;
  798. }
  799. for (; i < length; i++) {
  800. key = keys[i];
  801. result = iterator(result, subject[key], key, subject);
  802. }
  803. return result;
  804. };
  805. var styles = namespace.styles,
  806. shims = namespace.shims;
  807. var _byUnicode = {};
  808. var _byLigature = {};
  809. var _byOldName = {};
  810. var build = function build() {
  811. var lookup = function lookup(reducer) {
  812. return reduce(styles, function (o, style, prefix) {
  813. o[prefix] = reduce(style, reducer, {});
  814. return o;
  815. }, {});
  816. };
  817. _byUnicode = lookup(function (acc, icon, iconName) {
  818. acc[icon[3]] = iconName;
  819. return acc;
  820. });
  821. _byLigature = lookup(function (acc, icon, iconName) {
  822. var ligatures = icon[2];
  823. acc[iconName] = iconName;
  824. ligatures.forEach(function (ligature) {
  825. acc[ligature] = iconName;
  826. });
  827. return acc;
  828. });
  829. var hasRegular = 'far' in styles;
  830. _byOldName = reduce(shims, function (acc, shim) {
  831. var oldName = shim[0];
  832. var prefix = shim[1];
  833. var iconName = shim[2];
  834. if (prefix === 'far' && !hasRegular) {
  835. prefix = 'fas';
  836. }
  837. acc[oldName] = {
  838. prefix: prefix,
  839. iconName: iconName
  840. };
  841. return acc;
  842. }, {});
  843. };
  844. build();
  845. function byUnicode(prefix, unicode) {
  846. return _byUnicode[prefix][unicode];
  847. }
  848. function byLigature(prefix, ligature) {
  849. return _byLigature[prefix][ligature];
  850. }
  851. function byOldName(name) {
  852. return _byOldName[name] || {
  853. prefix: null,
  854. iconName: null
  855. };
  856. }
  857. var styles$1 = namespace.styles;
  858. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  859. return {
  860. prefix: null,
  861. iconName: null,
  862. rest: []
  863. };
  864. };
  865. function getCanonicalIcon(values) {
  866. return values.reduce(function (acc, cls) {
  867. var iconName = getIconName(config.familyPrefix, cls);
  868. if (styles$1[cls]) {
  869. acc.prefix = cls;
  870. } else if (iconName) {
  871. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  872. acc.iconName = shim.iconName || iconName;
  873. acc.prefix = shim.prefix || acc.prefix;
  874. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  875. acc.rest.push(cls);
  876. }
  877. return acc;
  878. }, emptyCanonicalIcon());
  879. }
  880. function iconFromMapping(mapping, prefix, iconName) {
  881. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  882. return {
  883. prefix: prefix,
  884. iconName: iconName,
  885. icon: mapping[prefix][iconName]
  886. };
  887. }
  888. }
  889. function toHtml(abstractNodes) {
  890. var tag = abstractNodes.tag,
  891. _abstractNodes$attrib = abstractNodes.attributes,
  892. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  893. _abstractNodes$childr = abstractNodes.children,
  894. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  895. if (typeof abstractNodes === 'string') {
  896. return htmlEscape(abstractNodes);
  897. } else {
  898. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  899. }
  900. }
  901. var noop$2 = function noop() {};
  902. function isWatched(node) {
  903. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  904. return typeof i2svg === 'string';
  905. }
  906. function getMutator() {
  907. if (config.autoReplaceSvg === true) {
  908. return mutators.replace;
  909. }
  910. var mutator = mutators[config.autoReplaceSvg];
  911. return mutator || mutators.replace;
  912. }
  913. var mutators = {
  914. replace: function replace(mutation) {
  915. var node = mutation[0];
  916. var abstract = mutation[1];
  917. var newOuterHTML = abstract.map(function (a) {
  918. return toHtml(a);
  919. }).join('\n');
  920. if (node.parentNode && node.outerHTML) {
  921. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  922. } else if (node.parentNode) {
  923. var newNode = document.createElement('span');
  924. node.parentNode.replaceChild(newNode, node);
  925. newNode.outerHTML = newOuterHTML;
  926. }
  927. },
  928. nest: function nest(mutation) {
  929. var node = mutation[0];
  930. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  931. // Short-circuit to the standard replacement
  932. if (~classArray(node).indexOf(config.replacementClass)) {
  933. return mutators.replace(mutation);
  934. }
  935. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  936. delete abstract[0].attributes.style;
  937. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  938. if (cls === config.replacementClass || cls.match(forSvg)) {
  939. acc.toSvg.push(cls);
  940. } else {
  941. acc.toNode.push(cls);
  942. }
  943. return acc;
  944. }, {
  945. toNode: [],
  946. toSvg: []
  947. });
  948. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  949. var newInnerHTML = abstract.map(function (a) {
  950. return toHtml(a);
  951. }).join('\n');
  952. node.setAttribute('class', splitClasses.toNode.join(' '));
  953. node.setAttribute(DATA_FA_I2SVG, '');
  954. node.innerHTML = newInnerHTML;
  955. }
  956. };
  957. function perform(mutations, callback) {
  958. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  959. if (mutations.length === 0) {
  960. callbackFunction();
  961. } else {
  962. var frame = WINDOW.requestAnimationFrame || function (op) {
  963. return op();
  964. };
  965. frame(function () {
  966. var mutator = getMutator();
  967. var mark = perf.begin('mutate');
  968. mutations.map(mutator);
  969. mark();
  970. callbackFunction();
  971. });
  972. }
  973. }
  974. var disabled = false;
  975. function disableObservation(operation) {
  976. disabled = true;
  977. operation();
  978. disabled = false;
  979. }
  980. var mo = null;
  981. function observe(options) {
  982. if (!MUTATION_OBSERVER) {
  983. return;
  984. }
  985. if (!config.observeMutations) {
  986. return;
  987. }
  988. var treeCallback = options.treeCallback,
  989. nodeCallback = options.nodeCallback,
  990. pseudoElementsCallback = options.pseudoElementsCallback,
  991. _options$observeMutat = options.observeMutationsRoot,
  992. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT.body : _options$observeMutat;
  993. mo = new MUTATION_OBSERVER(function (objects) {
  994. if (disabled) return;
  995. toArray(objects).forEach(function (mutationRecord) {
  996. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  997. if (config.searchPseudoElements) {
  998. pseudoElementsCallback(mutationRecord.target);
  999. }
  1000. treeCallback(mutationRecord.target);
  1001. }
  1002. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1003. pseudoElementsCallback(mutationRecord.target.parentNode);
  1004. }
  1005. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1006. if (mutationRecord.attributeName === 'class') {
  1007. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1008. prefix = _getCanonicalIcon.prefix,
  1009. iconName = _getCanonicalIcon.iconName;
  1010. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1011. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1012. } else {
  1013. nodeCallback(mutationRecord.target);
  1014. }
  1015. }
  1016. });
  1017. });
  1018. if (!IS_DOM) return;
  1019. mo.observe(observeMutationsRoot, {
  1020. childList: true,
  1021. attributes: true,
  1022. characterData: true,
  1023. subtree: true
  1024. });
  1025. }
  1026. function disconnect() {
  1027. if (!mo) return;
  1028. mo.disconnect();
  1029. }
  1030. function styleParser (node) {
  1031. var style = node.getAttribute('style');
  1032. var val = [];
  1033. if (style) {
  1034. val = style.split(';').reduce(function (acc, style) {
  1035. var styles = style.split(':');
  1036. var prop = styles[0];
  1037. var value = styles.slice(1);
  1038. if (prop && value.length > 0) {
  1039. acc[prop] = value.join(':').trim();
  1040. }
  1041. return acc;
  1042. }, {});
  1043. }
  1044. return val;
  1045. }
  1046. function toHex(unicode) {
  1047. var result = '';
  1048. for (var i = 0; i < unicode.length; i++) {
  1049. var hex = unicode.charCodeAt(i).toString(16);
  1050. result += ('000' + hex).slice(-4);
  1051. }
  1052. return result;
  1053. }
  1054. function classParser (node) {
  1055. var existingPrefix = node.getAttribute('data-prefix');
  1056. var existingIconName = node.getAttribute('data-icon');
  1057. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1058. var val = getCanonicalIcon(classArray(node));
  1059. if (existingPrefix && existingIconName) {
  1060. val.prefix = existingPrefix;
  1061. val.iconName = existingIconName;
  1062. }
  1063. if (val.prefix && innerText.length > 1) {
  1064. val.iconName = byLigature(val.prefix, node.innerText);
  1065. } else if (val.prefix && innerText.length === 1) {
  1066. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1067. }
  1068. return val;
  1069. }
  1070. var parseTransformString = function parseTransformString(transformString) {
  1071. var transform = {
  1072. size: 16,
  1073. x: 0,
  1074. y: 0,
  1075. flipX: false,
  1076. flipY: false,
  1077. rotate: 0
  1078. };
  1079. if (!transformString) {
  1080. return transform;
  1081. } else {
  1082. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1083. var parts = n.toLowerCase().split('-');
  1084. var first = parts[0];
  1085. var rest = parts.slice(1).join('-');
  1086. if (first && rest === 'h') {
  1087. acc.flipX = true;
  1088. return acc;
  1089. }
  1090. if (first && rest === 'v') {
  1091. acc.flipY = true;
  1092. return acc;
  1093. }
  1094. rest = parseFloat(rest);
  1095. if (isNaN(rest)) {
  1096. return acc;
  1097. }
  1098. switch (first) {
  1099. case 'grow':
  1100. acc.size = acc.size + rest;
  1101. break;
  1102. case 'shrink':
  1103. acc.size = acc.size - rest;
  1104. break;
  1105. case 'left':
  1106. acc.x = acc.x - rest;
  1107. break;
  1108. case 'right':
  1109. acc.x = acc.x + rest;
  1110. break;
  1111. case 'up':
  1112. acc.y = acc.y - rest;
  1113. break;
  1114. case 'down':
  1115. acc.y = acc.y + rest;
  1116. break;
  1117. case 'rotate':
  1118. acc.rotate = acc.rotate + rest;
  1119. break;
  1120. }
  1121. return acc;
  1122. }, transform);
  1123. }
  1124. };
  1125. function transformParser (node) {
  1126. return parseTransformString(node.getAttribute('data-fa-transform'));
  1127. }
  1128. function symbolParser (node) {
  1129. var symbol = node.getAttribute('data-fa-symbol');
  1130. return symbol === null ? false : symbol === '' ? true : symbol;
  1131. }
  1132. function attributesParser (node) {
  1133. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1134. if (acc.name !== 'class' && acc.name !== 'style') {
  1135. acc[attr.name] = attr.value;
  1136. }
  1137. return acc;
  1138. }, {});
  1139. var title = node.getAttribute('title');
  1140. if (config.autoA11y) {
  1141. if (title) {
  1142. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1143. } else {
  1144. extraAttributes['aria-hidden'] = 'true';
  1145. }
  1146. }
  1147. return extraAttributes;
  1148. }
  1149. function maskParser (node) {
  1150. var mask = node.getAttribute('data-fa-mask');
  1151. if (!mask) {
  1152. return emptyCanonicalIcon();
  1153. } else {
  1154. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1155. return i.trim();
  1156. }));
  1157. }
  1158. }
  1159. var blankMeta = {
  1160. iconName: null,
  1161. title: null,
  1162. prefix: null,
  1163. transform: meaninglessTransform,
  1164. symbol: false,
  1165. mask: null,
  1166. extra: {
  1167. classes: [],
  1168. styles: {},
  1169. attributes: {}
  1170. }
  1171. };
  1172. function parseMeta(node) {
  1173. var _classParser = classParser(node),
  1174. iconName = _classParser.iconName,
  1175. prefix = _classParser.prefix,
  1176. extraClasses = _classParser.rest;
  1177. var extraStyles = styleParser(node);
  1178. var transform = transformParser(node);
  1179. var symbol = symbolParser(node);
  1180. var extraAttributes = attributesParser(node);
  1181. var mask = maskParser(node);
  1182. return {
  1183. iconName: iconName,
  1184. title: node.getAttribute('title'),
  1185. prefix: prefix,
  1186. transform: transform,
  1187. symbol: symbol,
  1188. mask: mask,
  1189. extra: {
  1190. classes: extraClasses,
  1191. styles: extraStyles,
  1192. attributes: extraAttributes
  1193. }
  1194. };
  1195. }
  1196. function MissingIcon(error) {
  1197. this.name = 'MissingIcon';
  1198. this.message = error || 'Icon unavailable';
  1199. this.stack = new Error().stack;
  1200. }
  1201. MissingIcon.prototype = Object.create(Error.prototype);
  1202. MissingIcon.prototype.constructor = MissingIcon;
  1203. var FILL = {
  1204. fill: 'currentColor'
  1205. };
  1206. var ANIMATION_BASE = {
  1207. attributeType: 'XML',
  1208. repeatCount: 'indefinite',
  1209. dur: '2s'
  1210. };
  1211. var RING = {
  1212. tag: 'path',
  1213. attributes: _objectSpread({}, FILL, {
  1214. d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
  1215. })
  1216. };
  1217. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1218. attributeName: 'opacity'
  1219. });
  1220. var DOT = {
  1221. tag: 'circle',
  1222. attributes: _objectSpread({}, FILL, {
  1223. cx: '256',
  1224. cy: '364',
  1225. r: '28'
  1226. }),
  1227. children: [{
  1228. tag: 'animate',
  1229. attributes: _objectSpread({}, ANIMATION_BASE, {
  1230. attributeName: 'r',
  1231. values: '28;14;28;28;14;28;'
  1232. })
  1233. }, {
  1234. tag: 'animate',
  1235. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1236. values: '1;0;1;1;0;1;'
  1237. })
  1238. }]
  1239. };
  1240. var QUESTION = {
  1241. tag: 'path',
  1242. attributes: _objectSpread({}, FILL, {
  1243. opacity: '1',
  1244. d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
  1245. }),
  1246. children: [{
  1247. tag: 'animate',
  1248. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1249. values: '1;0;0;0;0;1;'
  1250. })
  1251. }]
  1252. };
  1253. var EXCLAMATION = {
  1254. tag: 'path',
  1255. attributes: _objectSpread({}, FILL, {
  1256. opacity: '0',
  1257. d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
  1258. }),
  1259. children: [{
  1260. tag: 'animate',
  1261. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1262. values: '0;0;1;1;0;0;'
  1263. })
  1264. }]
  1265. };
  1266. var missing = {
  1267. tag: 'g',
  1268. children: [RING, DOT, QUESTION, EXCLAMATION]
  1269. };
  1270. var styles$2 = namespace.styles;
  1271. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  1272. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  1273. var STYLE_TO_PREFIX = {
  1274. 'Solid': 'fas',
  1275. 'Regular': 'far',
  1276. 'Light': 'fal',
  1277. 'Brands': 'fab'
  1278. };
  1279. var FONT_WEIGHT_TO_PREFIX = {
  1280. '900': 'fas',
  1281. '400': 'far',
  1282. '300': 'fal'
  1283. };
  1284. function findIcon(iconName, prefix) {
  1285. var val = {
  1286. found: false,
  1287. width: 512,
  1288. height: 512,
  1289. icon: missing
  1290. };
  1291. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1292. var icon = styles$2[prefix][iconName];
  1293. var width = icon[0];
  1294. var height = icon[1];
  1295. var vectorData = icon.slice(4);
  1296. val = {
  1297. found: true,
  1298. width: width,
  1299. height: height,
  1300. icon: {
  1301. tag: 'path',
  1302. attributes: {
  1303. fill: 'currentColor',
  1304. d: vectorData[0]
  1305. }
  1306. }
  1307. };
  1308. } else if (iconName && prefix && !config.showMissingIcons) {
  1309. throw new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName));
  1310. }
  1311. return val;
  1312. }
  1313. function generateSvgReplacementMutation(node, nodeMeta) {
  1314. var iconName = nodeMeta.iconName,
  1315. title = nodeMeta.title,
  1316. prefix = nodeMeta.prefix,
  1317. transform = nodeMeta.transform,
  1318. symbol = nodeMeta.symbol,
  1319. mask = nodeMeta.mask,
  1320. extra = nodeMeta.extra;
  1321. return [node, makeInlineSvgAbstract({
  1322. icons: {
  1323. main: findIcon(iconName, prefix),
  1324. mask: findIcon(mask.iconName, mask.prefix)
  1325. },
  1326. prefix: prefix,
  1327. iconName: iconName,
  1328. transform: transform,
  1329. symbol: symbol,
  1330. mask: mask,
  1331. title: title,
  1332. extra: extra,
  1333. watchable: true
  1334. })];
  1335. }
  1336. function generateLayersText(node, nodeMeta) {
  1337. var title = nodeMeta.title,
  1338. transform = nodeMeta.transform,
  1339. extra = nodeMeta.extra;
  1340. var width = null;
  1341. var height = null;
  1342. if (IS_IE) {
  1343. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1344. var boundingClientRect = node.getBoundingClientRect();
  1345. width = boundingClientRect.width / computedFontSize;
  1346. height = boundingClientRect.height / computedFontSize;
  1347. }
  1348. if (config.autoA11y && !title) {
  1349. extra.attributes['aria-hidden'] = 'true';
  1350. }
  1351. return [node, makeLayersTextAbstract({
  1352. content: node.innerHTML,
  1353. width: width,
  1354. height: height,
  1355. transform: transform,
  1356. title: title,
  1357. extra: extra,
  1358. watchable: true
  1359. })];
  1360. }
  1361. function generateMutation(node) {
  1362. var nodeMeta = parseMeta(node);
  1363. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1364. return generateLayersText(node, nodeMeta);
  1365. } else {
  1366. return generateSvgReplacementMutation(node, nodeMeta);
  1367. }
  1368. }
  1369. function searchPseudoElements(root) {
  1370. if (!IS_DOM) return;
  1371. var end = perf.begin('searchPseudoElements');
  1372. disableObservation(function () {
  1373. toArray(root.querySelectorAll('*')).filter(function (n) {
  1374. return n.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(n.tagName.toUpperCase()) && !n.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!n.parentNode || n.parentNode.tagName !== 'svg');
  1375. }).forEach(function (node) {
  1376. [':before', ':after'].forEach(function (pos) {
  1377. var children = toArray(node.children);
  1378. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1379. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === pos;
  1380. })[0];
  1381. var styles = WINDOW.getComputedStyle(node, pos);
  1382. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1383. var fontWeight = styles.getPropertyValue('font-weight');
  1384. if (alreadyProcessedPseudoElement && !fontFamily) {
  1385. // If we've already processed it but the current computed style does not result in a font-family,
  1386. // that probably means that a class name that was previously present to make the icon has been
  1387. // removed. So we now should delete the icon.
  1388. node.removeChild(alreadyProcessedPseudoElement);
  1389. } else if (fontFamily) {
  1390. var content = styles.getPropertyValue('content');
  1391. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1]] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1392. var iconName = byUnicode(prefix, toHex(content.length === 3 ? content.substr(1, 1) : content)); // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1393. // already done so with the same prefix and iconName
  1394. if (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconName) {
  1395. if (alreadyProcessedPseudoElement) {
  1396. // Delete the old one, since we're replacing it with a new one
  1397. node.removeChild(alreadyProcessedPseudoElement);
  1398. }
  1399. var extra = blankMeta.extra;
  1400. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = pos;
  1401. var abstract = makeInlineSvgAbstract(_objectSpread({}, blankMeta, {
  1402. icons: {
  1403. main: findIcon(iconName, prefix),
  1404. mask: emptyCanonicalIcon()
  1405. },
  1406. prefix: prefix,
  1407. iconName: iconName,
  1408. extra: extra,
  1409. watchable: true
  1410. }));
  1411. var element = DOCUMENT.createElement('svg');
  1412. if (pos === ':before') {
  1413. node.insertBefore(element, node.firstChild);
  1414. } else {
  1415. node.appendChild(element);
  1416. }
  1417. element.outerHTML = abstract.map(function (a) {
  1418. return toHtml(a);
  1419. }).join('\n');
  1420. }
  1421. }
  1422. });
  1423. });
  1424. });
  1425. end();
  1426. }
  1427. function onTree(root) {
  1428. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1429. if (!IS_DOM) return;
  1430. var htmlClassList = DOCUMENT.documentElement.classList;
  1431. var hclAdd = function hclAdd(suffix) {
  1432. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1433. };
  1434. var hclRemove = function hclRemove(suffix) {
  1435. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1436. };
  1437. var prefixes = Object.keys(styles$2);
  1438. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1439. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1440. })).join(', ');
  1441. if (prefixesDomQuery.length === 0) {
  1442. return;
  1443. }
  1444. var candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1445. if (candidates.length > 0) {
  1446. hclAdd('pending');
  1447. hclRemove('complete');
  1448. } else {
  1449. return;
  1450. }
  1451. var mark = perf.begin('onTree');
  1452. var mutations = candidates.reduce(function (acc, node) {
  1453. try {
  1454. var mutation = generateMutation(node);
  1455. if (mutation) {
  1456. acc.push(mutation);
  1457. }
  1458. } catch (e) {
  1459. if (!PRODUCTION) {
  1460. if (e instanceof MissingIcon) {
  1461. console.error(e);
  1462. }
  1463. }
  1464. }
  1465. return acc;
  1466. }, []);
  1467. mark();
  1468. perform(mutations, function () {
  1469. hclAdd('active');
  1470. hclAdd('complete');
  1471. hclRemove('pending');
  1472. if (typeof callback === 'function') callback();
  1473. });
  1474. }
  1475. function onNode(node) {
  1476. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1477. var mutation = generateMutation(node);
  1478. if (mutation) {
  1479. perform([mutation], callback);
  1480. }
  1481. }
  1482. var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}";
  1483. function css () {
  1484. var dfp = DEFAULT_FAMILY_PREFIX;
  1485. var drc = DEFAULT_REPLACEMENT_CLASS;
  1486. var fp = config.familyPrefix;
  1487. var rc = config.replacementClass;
  1488. var s = baseStyles;
  1489. if (fp !== dfp || rc !== drc) {
  1490. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1491. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1492. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1493. }
  1494. return s;
  1495. }
  1496. function define(prefix, icons) {
  1497. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1498. var icon = icons[iconName];
  1499. var expanded = !!icon.icon;
  1500. if (expanded) {
  1501. acc[icon.iconName] = icon.icon;
  1502. } else {
  1503. acc[iconName] = icon;
  1504. }
  1505. return acc;
  1506. }, {});
  1507. if (typeof namespace.hooks.addPack === 'function') {
  1508. namespace.hooks.addPack(prefix, normalized);
  1509. } else {
  1510. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1511. }
  1512. /**
  1513. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1514. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1515. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1516. * this as well.
  1517. */
  1518. if (prefix === 'fas') {
  1519. define('fa', icons);
  1520. }
  1521. }
  1522. var Library =
  1523. /*#__PURE__*/
  1524. function () {
  1525. function Library() {
  1526. _classCallCheck(this, Library);
  1527. this.definitions = {};
  1528. }
  1529. _createClass(Library, [{
  1530. key: "add",
  1531. value: function add() {
  1532. var _this = this;
  1533. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1534. definitions[_key] = arguments[_key];
  1535. }
  1536. var additions = definitions.reduce(this._pullDefinitions, {});
  1537. Object.keys(additions).forEach(function (key) {
  1538. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1539. define(key, additions[key]);
  1540. build();
  1541. });
  1542. }
  1543. }, {
  1544. key: "reset",
  1545. value: function reset() {
  1546. this.definitions = {};
  1547. }
  1548. }, {
  1549. key: "_pullDefinitions",
  1550. value: function _pullDefinitions(additions, definition) {
  1551. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1552. 0: definition
  1553. } : definition;
  1554. Object.keys(normalized).map(function (key) {
  1555. var _normalized$key = normalized[key],
  1556. prefix = _normalized$key.prefix,
  1557. iconName = _normalized$key.iconName,
  1558. icon = _normalized$key.icon;
  1559. if (!additions[prefix]) additions[prefix] = {};
  1560. additions[prefix][iconName] = icon;
  1561. });
  1562. return additions;
  1563. }
  1564. }]);
  1565. return Library;
  1566. }();
  1567. function prepIcon(icon) {
  1568. var width = icon[0];
  1569. var height = icon[1];
  1570. var vectorData = icon.slice(4);
  1571. return {
  1572. found: true,
  1573. width: width,
  1574. height: height,
  1575. icon: {
  1576. tag: 'path',
  1577. attributes: {
  1578. fill: 'currentColor',
  1579. d: vectorData[0]
  1580. }
  1581. }
  1582. };
  1583. }
  1584. function ensureCss() {
  1585. if (config.autoAddCss && !_cssInserted) {
  1586. insertCss(css());
  1587. _cssInserted = true;
  1588. }
  1589. }
  1590. function apiObject(val, abstractCreator) {
  1591. Object.defineProperty(val, 'abstract', {
  1592. get: abstractCreator
  1593. });
  1594. Object.defineProperty(val, 'html', {
  1595. get: function get() {
  1596. return val.abstract.map(function (a) {
  1597. return toHtml(a);
  1598. });
  1599. }
  1600. });
  1601. Object.defineProperty(val, 'node', {
  1602. get: function get() {
  1603. if (!IS_DOM) return;
  1604. var container = DOCUMENT.createElement('div');
  1605. container.innerHTML = val.html;
  1606. return container.children;
  1607. }
  1608. });
  1609. return val;
  1610. }
  1611. function findIconDefinition(params) {
  1612. var _params$prefix = params.prefix,
  1613. prefix = _params$prefix === void 0 ? 'fa' : _params$prefix,
  1614. iconName = params.iconName;
  1615. if (!iconName) return;
  1616. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1617. }
  1618. function resolveIcons(next) {
  1619. return function (maybeIconDefinition) {
  1620. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1621. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1622. var mask = params.mask;
  1623. if (mask) {
  1624. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1625. }
  1626. return next(iconDefinition, _objectSpread({}, params, {
  1627. mask: mask
  1628. }));
  1629. };
  1630. }
  1631. var library = new Library();
  1632. var noAuto = function noAuto() {
  1633. config.autoReplaceSvg = false;
  1634. config.observeMutations = false;
  1635. disconnect();
  1636. };
  1637. var _cssInserted = false;
  1638. var dom = {
  1639. i2svg: function i2svg() {
  1640. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1641. if (IS_DOM) {
  1642. ensureCss();
  1643. var _params$node = params.node,
  1644. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1645. _params$callback = params.callback,
  1646. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1647. if (config.searchPseudoElements) {
  1648. searchPseudoElements(node);
  1649. }
  1650. onTree(node, callback);
  1651. }
  1652. },
  1653. css: css,
  1654. insertCss: function insertCss$$1() {
  1655. if (!_cssInserted) {
  1656. insertCss(css());
  1657. _cssInserted = true;
  1658. }
  1659. },
  1660. watch: function watch() {
  1661. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1662. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1663. observeMutationsRoot = params.observeMutationsRoot;
  1664. if (config.autoReplaceSvg === false) {
  1665. config.autoReplaceSvg = true;
  1666. }
  1667. config.observeMutations = true;
  1668. domready(function () {
  1669. autoReplace({
  1670. autoReplaceSvgRoot: autoReplaceSvgRoot
  1671. });
  1672. observe({
  1673. treeCallback: onTree,
  1674. nodeCallback: onNode,
  1675. pseudoElementsCallback: searchPseudoElements,
  1676. observeMutationsRoot: observeMutationsRoot
  1677. });
  1678. });
  1679. }
  1680. };
  1681. var parse = {
  1682. transform: function transform(transformString) {
  1683. return parseTransformString(transformString);
  1684. }
  1685. };
  1686. var icon = resolveIcons(function (iconDefinition) {
  1687. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1688. var _params$transform = params.transform,
  1689. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  1690. _params$symbol = params.symbol,
  1691. symbol = _params$symbol === void 0 ? false : _params$symbol,
  1692. _params$mask = params.mask,
  1693. mask = _params$mask === void 0 ? null : _params$mask,
  1694. _params$title = params.title,
  1695. title = _params$title === void 0 ? null : _params$title,
  1696. _params$classes = params.classes,
  1697. classes = _params$classes === void 0 ? [] : _params$classes,
  1698. _params$attributes = params.attributes,
  1699. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  1700. _params$styles = params.styles,
  1701. styles = _params$styles === void 0 ? {} : _params$styles;
  1702. if (!iconDefinition) return;
  1703. var prefix = iconDefinition.prefix,
  1704. iconName = iconDefinition.iconName,
  1705. icon = iconDefinition.icon;
  1706. return apiObject(_objectSpread({
  1707. type: 'icon'
  1708. }, iconDefinition), function () {
  1709. ensureCss();
  1710. if (config.autoA11y) {
  1711. if (title) {
  1712. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1713. } else {
  1714. attributes['aria-hidden'] = 'true';
  1715. }
  1716. }
  1717. return makeInlineSvgAbstract({
  1718. icons: {
  1719. main: prepIcon(icon),
  1720. mask: mask ? prepIcon(mask.icon) : {
  1721. found: false,
  1722. width: null,
  1723. height: null,
  1724. icon: {}
  1725. }
  1726. },
  1727. prefix: prefix,
  1728. iconName: iconName,
  1729. transform: _objectSpread({}, meaninglessTransform, transform),
  1730. symbol: symbol,
  1731. title: title,
  1732. extra: {
  1733. attributes: attributes,
  1734. styles: styles,
  1735. classes: classes
  1736. }
  1737. });
  1738. });
  1739. });
  1740. var text = function text(content) {
  1741. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1742. var _params$transform2 = params.transform,
  1743. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  1744. _params$title2 = params.title,
  1745. title = _params$title2 === void 0 ? null : _params$title2,
  1746. _params$classes2 = params.classes,
  1747. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  1748. _params$attributes2 = params.attributes,
  1749. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  1750. _params$styles2 = params.styles,
  1751. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  1752. return apiObject({
  1753. type: 'text',
  1754. content: content
  1755. }, function () {
  1756. ensureCss();
  1757. return makeLayersTextAbstract({
  1758. content: content,
  1759. transform: _objectSpread({}, meaninglessTransform, transform),
  1760. title: title,
  1761. extra: {
  1762. attributes: attributes,
  1763. styles: styles,
  1764. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  1765. }
  1766. });
  1767. });
  1768. };
  1769. var counter = function counter(content) {
  1770. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1771. var _params$title3 = params.title,
  1772. title = _params$title3 === void 0 ? null : _params$title3,
  1773. _params$classes3 = params.classes,
  1774. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  1775. _params$attributes3 = params.attributes,
  1776. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  1777. _params$styles3 = params.styles,
  1778. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  1779. return apiObject({
  1780. type: 'counter',
  1781. content: content
  1782. }, function () {
  1783. ensureCss();
  1784. return makeLayersCounterAbstract({
  1785. content: content.toString(),
  1786. title: title,
  1787. extra: {
  1788. attributes: attributes,
  1789. styles: styles,
  1790. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  1791. }
  1792. });
  1793. });
  1794. };
  1795. var layer = function layer(assembler) {
  1796. return apiObject({
  1797. type: 'layer'
  1798. }, function () {
  1799. ensureCss();
  1800. var children = [];
  1801. assembler(function (args) {
  1802. Array.isArray(args) ? args.map(function (a) {
  1803. children = children.concat(a.abstract);
  1804. }) : children = children.concat(args.abstract);
  1805. });
  1806. return [{
  1807. tag: 'span',
  1808. attributes: {
  1809. class: "".concat(config.familyPrefix, "-layers")
  1810. },
  1811. children: children
  1812. }];
  1813. });
  1814. };
  1815. var api = {
  1816. noAuto: noAuto,
  1817. config: config,
  1818. dom: dom,
  1819. library: library,
  1820. parse: parse,
  1821. findIconDefinition: findIconDefinition,
  1822. icon: icon,
  1823. text: text,
  1824. counter: counter,
  1825. layer: layer,
  1826. toHtml: toHtml
  1827. };
  1828. var autoReplace = function autoReplace() {
  1829. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1830. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  1831. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  1832. if (Object.keys(namespace.styles).length > 0 && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  1833. node: autoReplaceSvgRoot
  1834. });
  1835. };
  1836. /***/ }),
  1837. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  1838. /*!**************************************************************************************!*\
  1839. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  1840. \**************************************************************************************/
  1841. /*! exports provided: fas, prefix, faAd, faAddressBook, faAddressCard, faAdjust, faAirFreshener, faAlignCenter, faAlignJustify, faAlignLeft, faAlignRight, faAllergies, faAmbulance, faAmericanSignLanguageInterpreting, faAnchor, faAngleDoubleDown, faAngleDoubleLeft, faAngleDoubleRight, faAngleDoubleUp, faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAngry, faAnkh, faAppleAlt, faArchive, faArchway, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faArrowCircleDown, faArrowCircleLeft, faArrowCircleRight, faArrowCircleUp, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAlt, faArrowsAltH, faArrowsAltV, faAssistiveListeningSystems, faAsterisk, faAt, faAtlas, faAtom, faAudioDescription, faAward, faBackspace, faBackward, faBalanceScale, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBinoculars, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookOpen, faBookReader, faBookmark, faBowlingBall, faBox, faBoxOpen, faBoxes, faBraille, faBrain, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCamera, faCameraRetro, faCampground, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCartArrowDown, faCartPlus, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMoon, faCloudSun, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCube, faCubes, faCut, faDatabase, faDeaf, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDungeon, faEdit, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFastBackward, faFastForward, faFax, faFeather, faFeatherAlt, faFemale, faFighterJet, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileContract, faFileCsv, faFileDownload, faFileExcel, faFileExport, faFileImage, faFileImport, faFileInvoice, faFileInvoiceDollar, faFileMedical, faFileMedicalAlt, faFilePdf, faFilePowerpoint, faFilePrescription, faFileSignature, faFileUpload, faFileVideo, faFileWord, faFill, faFillDrip, faFilm, faFilter, faFingerprint, faFire, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGlassMartini, faGlassMartiniAlt, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripVertical, faHSquare, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingUsd, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHands, faHandsHelping, faHandshake, faHanukiah, faHashtag, faHatWizard, faHaykal, faHdd, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHome, faHorse, faHospital, faHospitalAlt, faHospitalSymbol, faHotTub, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHryvnia, faICursor, faIdBadge, faIdCard, faIdCardAlt, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLayerGroup, faLeaf, faLemon, faLessThan, faLessThanEqual, faLevelDownAlt, faLevelUpAlt, faLifeRing, faLightbulb, faLink, faLiraSign, faList, faListAlt, faListOl, faListUl, faLocationArrow, faLock, faLockOpen, faLongArrowAltDown, faLongArrowAltLeft, faLongArrowAltRight, faLongArrowAltUp, faLowVision, faLuggageCart, faMagic, faMagnet, faMailBulk, faMale, faMap, faMapMarked, faMapMarkedAlt, faMapMarker, faMapMarkerAlt, faMapPin, faMapSigns, faMarker, faMars, faMarsDouble, faMarsStroke, faMarsStrokeH, faMarsStrokeV, faMask, faMedal, faMedkit, faMeh, faMehBlank, faMehRollingEyes, faMemory, faMenorah, faMercury, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMousePointer, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleCarry, faPercent, faPercentage, faPhone, faPhoneSlash, faPhoneSquare, faPhoneVolume, faPiggyBank, faPills, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRandom, faReceipt, faRecycle, faRedo, faRedoAlt, faRegistered, faReply, faReplyAll, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSave, faSchool, faScrewdriver, faScroll, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSitemap, faSkull, faSkullCrossbones, faSlash, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmoking, faSmokingBan, faSnowflake, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaUp, faSortAmountDown, faSortAmountUp, faSortDown, faSortNumericDown, faSortNumericUp, faSortUp, faSpa, faSpaceShuttle, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStore, faStoreAlt, faStream, faStreetView, faStrikethrough, faStroopwafel, faSubscript, faSubway, faSuitcase, faSuitcaseRolling, faSun, faSuperscript, faSurprise, faSwatchbook, faSwimmer, faSwimmingPool, faSynagogue, faSync, faSyncAlt, faSyringe, faTable, faTableTennis, faTablet, faTabletAlt, faTablets, faTachometerAlt, faTag, faTags, faTape, faTasks, faTaxi, faTeeth, faTeethOpen, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToiletPaper, faToolbox, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrain, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTree, faTrophy, faTruck, faTruckLoading, faTruckMonster, faTruckMoving, faTruckPickup, faTshirt, faTty, faTv, faUmbrella, faUmbrellaBeach, faUnderline, faUndo, faUndoAlt, faUniversalAccess, faUniversity, faUnlink, faUnlock, faUnlockAlt, faUpload, faUser, faUserAlt, faUserAltSlash, faUserAstronaut, faUserCheck, faUserCircle, faUserClock, faUserCog, faUserEdit, faUserFriends, faUserGraduate, faUserInjured, faUserLock, faUserMd, faUserMinus, faUserNinja, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVrCardboard, faWalking, faWallet, faWarehouse, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  1842. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1843. "use strict";
  1844. __webpack_require__.r(__webpack_exports__);
  1845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  1846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  1847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  1848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  1849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  1850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  1851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  1852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  1853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  1854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  1855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  1856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  1857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  1858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  1859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  1860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  1861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  1862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  1863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  1864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  1865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  1866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  1867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  1868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  1869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  1870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  1871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  1872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  1873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  1874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  1875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  1876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  1877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  1878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  1879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  1880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  1881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  1882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  1883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  1884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  1885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  1886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  1887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  1888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  1889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  1890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  1891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  1892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  1893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  1894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  1895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  1896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  1897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  1898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  1899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  1900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  1901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  1902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  1903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  1904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  1905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  1906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  1907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  1908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  1909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  1910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  1911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  1912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  1913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  1914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  1915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  1916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  1917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  1918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  1919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  1920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  1921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  1922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  1923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  1924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  1925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  1926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  1927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  1928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  1929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  1930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  1931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  1932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  1933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  1934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  1935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  1936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  1937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  1938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  1939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  1940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  1941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  1942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  1943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  1944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  1945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  1946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  1947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  1948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  1949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  1950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  1951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  1952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  1953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  1954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  1955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  1956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  1957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  1958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  1959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  1960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  1961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  1962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  1963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  1964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  1965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  1966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  1967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  1968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  1969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  1970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  1971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  1972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  1973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  1974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  1975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  1976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  1977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  1978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  1979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  1980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  1981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  1982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  1983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  1984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  1985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  1986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  1987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  1988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  1989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  1990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  1991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  1992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  1993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  1994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  1995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  1996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  1997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  1998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  1999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  2699. /*!
  2700. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  2701. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  2702. */
  2703. var prefix = "fas";
  2704. var faAd = { prefix: 'fas', iconName: 'ad', icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"] };
  2705. var faAddressBook = { prefix: 'fas', iconName: 'address-book', icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  2706. var faAddressCard = { prefix: 'fas', iconName: 'address-card', icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  2707. var faAdjust = { prefix: 'fas', iconName: 'adjust', icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"] };
  2708. var faAirFreshener = { prefix: 'fas', iconName: 'air-freshener', icon: [384, 512, [], "f5d0", "M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"] };
  2709. var faAlignCenter = { prefix: 'fas', iconName: 'align-center', icon: [448, 512, [], "f037", "M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  2710. var faAlignJustify = { prefix: 'fas', iconName: 'align-justify', icon: [448, 512, [], "f039", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2711. var faAlignLeft = { prefix: 'fas', iconName: 'align-left', icon: [448, 512, [], "f036", "M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  2712. var faAlignRight = { prefix: 'fas', iconName: 'align-right', icon: [448, 512, [], "f038", "M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2713. var faAllergies = { prefix: 'fas', iconName: 'allergies', icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  2714. var faAmbulance = { prefix: 'fas', iconName: 'ambulance', icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  2715. var faAmericanSignLanguageInterpreting = { prefix: 'fas', iconName: 'american-sign-language-interpreting', icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"] };
  2716. var faAnchor = { prefix: 'fas', iconName: 'anchor', icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"] };
  2717. var faAngleDoubleDown = { prefix: 'fas', iconName: 'angle-double-down', icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"] };
  2718. var faAngleDoubleLeft = { prefix: 'fas', iconName: 'angle-double-left', icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"] };
  2719. var faAngleDoubleRight = { prefix: 'fas', iconName: 'angle-double-right', icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"] };
  2720. var faAngleDoubleUp = { prefix: 'fas', iconName: 'angle-double-up', icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"] };
  2721. var faAngleDown = { prefix: 'fas', iconName: 'angle-down', icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"] };
  2722. var faAngleLeft = { prefix: 'fas', iconName: 'angle-left', icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"] };
  2723. var faAngleRight = { prefix: 'fas', iconName: 'angle-right', icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"] };
  2724. var faAngleUp = { prefix: 'fas', iconName: 'angle-up', icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"] };
  2725. var faAngry = { prefix: 'fas', iconName: 'angry', icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"] };
  2726. var faAnkh = { prefix: 'fas', iconName: 'ankh', icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"] };
  2727. var faAppleAlt = { prefix: 'fas', iconName: 'apple-alt', icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"] };
  2728. var faArchive = { prefix: 'fas', iconName: 'archive', icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"] };
  2729. var faArchway = { prefix: 'fas', iconName: 'archway', icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  2730. var faArrowAltCircleDown = { prefix: 'fas', iconName: 'arrow-alt-circle-down', icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"] };
  2731. var faArrowAltCircleLeft = { prefix: 'fas', iconName: 'arrow-alt-circle-left', icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"] };
  2732. var faArrowAltCircleRight = { prefix: 'fas', iconName: 'arrow-alt-circle-right', icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"] };
  2733. var faArrowAltCircleUp = { prefix: 'fas', iconName: 'arrow-alt-circle-up', icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"] };
  2734. var faArrowCircleDown = { prefix: 'fas', iconName: 'arrow-circle-down', icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"] };
  2735. var faArrowCircleLeft = { prefix: 'fas', iconName: 'arrow-circle-left', icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"] };
  2736. var faArrowCircleRight = { prefix: 'fas', iconName: 'arrow-circle-right', icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"] };
  2737. var faArrowCircleUp = { prefix: 'fas', iconName: 'arrow-circle-up', icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"] };
  2738. var faArrowDown = { prefix: 'fas', iconName: 'arrow-down', icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"] };
  2739. var faArrowLeft = { prefix: 'fas', iconName: 'arrow-left', icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"] };
  2740. var faArrowRight = { prefix: 'fas', iconName: 'arrow-right', icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"] };
  2741. var faArrowUp = { prefix: 'fas', iconName: 'arrow-up', icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"] };
  2742. var faArrowsAlt = { prefix: 'fas', iconName: 'arrows-alt', icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"] };
  2743. var faArrowsAltH = { prefix: 'fas', iconName: 'arrows-alt-h', icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"] };
  2744. var faArrowsAltV = { prefix: 'fas', iconName: 'arrows-alt-v', icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"] };
  2745. var faAssistiveListeningSystems = { prefix: 'fas', iconName: 'assistive-listening-systems', icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"] };
  2746. var faAsterisk = { prefix: 'fas', iconName: 'asterisk', icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"] };
  2747. var faAt = { prefix: 'fas', iconName: 'at', icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"] };
  2748. var faAtlas = { prefix: 'fas', iconName: 'atlas', icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"] };
  2749. var faAtom = { prefix: 'fas', iconName: 'atom', icon: [448, 512, [], "f5d2", "M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  2750. var faAudioDescription = { prefix: 'fas', iconName: 'audio-description', icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"] };
  2751. var faAward = { prefix: 'fas', iconName: 'award', icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"] };
  2752. var faBackspace = { prefix: 'fas', iconName: 'backspace', icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"] };
  2753. var faBackward = { prefix: 'fas', iconName: 'backward', icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"] };
  2754. var faBalanceScale = { prefix: 'fas', iconName: 'balance-scale', icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2755. var faBan = { prefix: 'fas', iconName: 'ban', icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"] };
  2756. var faBandAid = { prefix: 'fas', iconName: 'band-aid', icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"] };
  2757. var faBarcode = { prefix: 'fas', iconName: 'barcode', icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"] };
  2758. var faBars = { prefix: 'fas', iconName: 'bars', icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2759. var faBaseballBall = { prefix: 'fas', iconName: 'baseball-ball', icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"] };
  2760. var faBasketballBall = { prefix: 'fas', iconName: 'basketball-ball', icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"] };
  2761. var faBath = { prefix: 'fas', iconName: 'bath', icon: [512, 512, [], "f2cd", "M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  2762. var faBatteryEmpty = { prefix: 'fas', iconName: 'battery-empty', icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"] };
  2763. var faBatteryFull = { prefix: 'fas', iconName: 'battery-full', icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"] };
  2764. var faBatteryHalf = { prefix: 'fas', iconName: 'battery-half', icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"] };
  2765. var faBatteryQuarter = { prefix: 'fas', iconName: 'battery-quarter', icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"] };
  2766. var faBatteryThreeQuarters = { prefix: 'fas', iconName: 'battery-three-quarters', icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"] };
  2767. var faBed = { prefix: 'fas', iconName: 'bed', icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"] };
  2768. var faBeer = { prefix: 'fas', iconName: 'beer', icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"] };
  2769. var faBell = { prefix: 'fas', iconName: 'bell', icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"] };
  2770. var faBellSlash = { prefix: 'fas', iconName: 'bell-slash', icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"] };
  2771. var faBezierCurve = { prefix: 'fas', iconName: 'bezier-curve', icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  2772. var faBible = { prefix: 'fas', iconName: 'bible', icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  2773. var faBicycle = { prefix: 'fas', iconName: 'bicycle', icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"] };
  2774. var faBinoculars = { prefix: 'fas', iconName: 'binoculars', icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"] };
  2775. var faBirthdayCake = { prefix: 'fas', iconName: 'birthday-cake', icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"] };
  2776. var faBlender = { prefix: 'fas', iconName: 'blender', icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"] };
  2777. var faBlenderPhone = { prefix: 'fas', iconName: 'blender-phone', icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2778. var faBlind = { prefix: 'fas', iconName: 'blind', icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"] };
  2779. var faBold = { prefix: 'fas', iconName: 'bold', icon: [384, 512, [], "f032", "M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"] };
  2780. var faBolt = { prefix: 'fas', iconName: 'bolt', icon: [320, 512, [], "f0e7", "M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"] };
  2781. var faBomb = { prefix: 'fas', iconName: 'bomb', icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"] };
  2782. var faBone = { prefix: 'fas', iconName: 'bone', icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"] };
  2783. var faBong = { prefix: 'fas', iconName: 'bong', icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"] };
  2784. var faBook = { prefix: 'fas', iconName: 'book', icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"] };
  2785. var faBookDead = { prefix: 'fas', iconName: 'book-dead', icon: [448, 512, [], "f6b7", "M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"] };
  2786. var faBookOpen = { prefix: 'fas', iconName: 'book-open', icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"] };
  2787. var faBookReader = { prefix: 'fas', iconName: 'book-reader', icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"] };
  2788. var faBookmark = { prefix: 'fas', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"] };
  2789. var faBowlingBall = { prefix: 'fas', iconName: 'bowling-ball', icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  2790. var faBox = { prefix: 'fas', iconName: 'box', icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"] };
  2791. var faBoxOpen = { prefix: 'fas', iconName: 'box-open', icon: [640, 512, [], "f49e", "M53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9zm585.1 102.8L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9z"] };
  2792. var faBoxes = { prefix: 'fas', iconName: 'boxes', icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"] };
  2793. var faBraille = { prefix: 'fas', iconName: 'braille', icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  2794. var faBrain = { prefix: 'fas', iconName: 'brain', icon: [576, 512, [], "f5dc", "M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"] };
  2795. var faBriefcase = { prefix: 'fas', iconName: 'briefcase', icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"] };
  2796. var faBriefcaseMedical = { prefix: 'fas', iconName: 'briefcase-medical', icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"] };
  2797. var faBroadcastTower = { prefix: 'fas', iconName: 'broadcast-tower', icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"] };
  2798. var faBroom = { prefix: 'fas', iconName: 'broom', icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"] };
  2799. var faBrush = { prefix: 'fas', iconName: 'brush', icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"] };
  2800. var faBug = { prefix: 'fas', iconName: 'bug', icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"] };
  2801. var faBuilding = { prefix: 'fas', iconName: 'building', icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"] };
  2802. var faBullhorn = { prefix: 'fas', iconName: 'bullhorn', icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"] };
  2803. var faBullseye = { prefix: 'fas', iconName: 'bullseye', icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"] };
  2804. var faBurn = { prefix: 'fas', iconName: 'burn', icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"] };
  2805. var faBus = { prefix: 'fas', iconName: 'bus', icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2806. var faBusAlt = { prefix: 'fas', iconName: 'bus-alt', icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2807. var faBusinessTime = { prefix: 'fas', iconName: 'business-time', icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"] };
  2808. var faCalculator = { prefix: 'fas', iconName: 'calculator', icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"] };
  2809. var faCalendar = { prefix: 'fas', iconName: 'calendar', icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"] };
  2810. var faCalendarAlt = { prefix: 'fas', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"] };
  2811. var faCalendarCheck = { prefix: 'fas', iconName: 'calendar-check', icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"] };
  2812. var faCalendarMinus = { prefix: 'fas', iconName: 'calendar-minus', icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"] };
  2813. var faCalendarPlus = { prefix: 'fas', iconName: 'calendar-plus', icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"] };
  2814. var faCalendarTimes = { prefix: 'fas', iconName: 'calendar-times', icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"] };
  2815. var faCamera = { prefix: 'fas', iconName: 'camera', icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"] };
  2816. var faCameraRetro = { prefix: 'fas', iconName: 'camera-retro', icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"] };
  2817. var faCampground = { prefix: 'fas', iconName: 'campground', icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"] };
  2818. var faCannabis = { prefix: 'fas', iconName: 'cannabis', icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"] };
  2819. var faCapsules = { prefix: 'fas', iconName: 'capsules', icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"] };
  2820. var faCar = { prefix: 'fas', iconName: 'car', icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  2821. var faCarAlt = { prefix: 'fas', iconName: 'car-alt', icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  2822. var faCarBattery = { prefix: 'fas', iconName: 'car-battery', icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"] };
  2823. var faCarCrash = { prefix: 'fas', iconName: 'car-crash', icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"] };
  2824. var faCarSide = { prefix: 'fas', iconName: 'car-side', icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  2825. var faCaretDown = { prefix: 'fas', iconName: 'caret-down', icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"] };
  2826. var faCaretLeft = { prefix: 'fas', iconName: 'caret-left', icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"] };
  2827. var faCaretRight = { prefix: 'fas', iconName: 'caret-right', icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"] };
  2828. var faCaretSquareDown = { prefix: 'fas', iconName: 'caret-square-down', icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"] };
  2829. var faCaretSquareLeft = { prefix: 'fas', iconName: 'caret-square-left', icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"] };
  2830. var faCaretSquareRight = { prefix: 'fas', iconName: 'caret-square-right', icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"] };
  2831. var faCaretSquareUp = { prefix: 'fas', iconName: 'caret-square-up', icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"] };
  2832. var faCaretUp = { prefix: 'fas', iconName: 'caret-up', icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"] };
  2833. var faCartArrowDown = { prefix: 'fas', iconName: 'cart-arrow-down', icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"] };
  2834. var faCartPlus = { prefix: 'fas', iconName: 'cart-plus', icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"] };
  2835. var faCat = { prefix: 'fas', iconName: 'cat', icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  2836. var faCertificate = { prefix: 'fas', iconName: 'certificate', icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"] };
  2837. var faChair = { prefix: 'fas', iconName: 'chair', icon: [448, 512, [], "f6c0", "M446.33 341.88l-10.67-32A31.996 31.996 0 0 0 405.3 288H42.69c-13.77 0-26 8.81-30.36 21.88l-10.67 32C-5.24 362.6 10.18 384 32.03 384H32v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h256v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-.03c21.85 0 37.27-21.4 30.36-42.12zM112 128c0-29.48 16.2-54.99 40-68.87V256h48V48h48v208h48V59.13c23.8 13.88 40 39.39 40 68.87v128h48V128C384 57.31 326.69 0 256 0h-64C121.31 0 64 57.31 64 128v128h48V128z"] };
  2838. var faChalkboard = { prefix: 'fas', iconName: 'chalkboard', icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2839. var faChalkboardTeacher = { prefix: 'fas', iconName: 'chalkboard-teacher', icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"] };
  2840. var faChargingStation = { prefix: 'fas', iconName: 'charging-station', icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"] };
  2841. var faChartArea = { prefix: 'fas', iconName: 'chart-area', icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"] };
  2842. var faChartBar = { prefix: 'fas', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2843. var faChartLine = { prefix: 'fas', iconName: 'chart-line', icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"] };
  2844. var faChartPie = { prefix: 'fas', iconName: 'chart-pie', icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"] };
  2845. var faCheck = { prefix: 'fas', iconName: 'check', icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"] };
  2846. var faCheckCircle = { prefix: 'fas', iconName: 'check-circle', icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"] };
  2847. var faCheckDouble = { prefix: 'fas', iconName: 'check-double', icon: [512, 512, [], "f560", "M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"] };
  2848. var faCheckSquare = { prefix: 'fas', iconName: 'check-square', icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"] };
  2849. var faChess = { prefix: 'fas', iconName: 'chess', icon: [512, 512, [], "f439", "M199.821 217.633a6 6 0 0 1 6 6l-.001 20.766a6 6 0 0 1-6 6h-25.805c0 31.715-2.153 96.201 17.398 153.229H64.597C84.54 345.452 82.02 279.245 82.02 250.399H56.183a6 6 0 0 1-6-6l.002-20.766a6 6 0 0 1 6-6h143.636zM41.554 115.088l34.58 95.071h103.734l34.572-95.072c2.846-7.826-2.95-16.101-11.278-16.101H152v-30.22h21.57a6 6 0 0 0 6-6V40.383a6 6 0 0 0-6-6h-28.367V6a6 6 0 0 0-6-6H116.82a6 6 0 0 0-6 6v28.383H82.421a6 6 0 0 0-6 6v22.383a6 6 0 0 0 6 6H104v30.219H52.831c-8.328.001-14.124 8.276-11.277 16.103zM222.678 445.17v-28.067a6 6 0 0 0-6-6H39.322a6 6 0 0 0-6 6v28.067l-22.148 14.164a6 6 0 0 0-2.767 5.055V506a6 6 0 0 0 6 6h227.187a6 6 0 0 0 6-6v-41.612a6 6 0 0 0-2.767-5.055l-22.149-14.163zm90.578-144.225l24.88 16.963c.09 18.124-.167 63.904-11.905 114.522h147.526c-11.713-50.475-11.969-96.324-11.882-114.537l24.859-16.949a3.856 3.856 0 0 0 1.684-3.187v-69.901a3.857 3.857 0 0 0-3.857-3.857h-27.655a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.858-3.857h-52.918a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.857-3.857H315.43a3.857 3.857 0 0 0-3.857 3.857v69.901a3.855 3.855 0 0 0 1.683 3.188zm71.585 51.906c0-8.372 6.787-15.158 15.159-15.158s15.158 6.787 15.158 15.158v30.318h-30.317v-30.318zM504.62 470.059l-13.664-10.639v-15.552a3.857 3.857 0 0 0-3.857-3.857H312.915a3.857 3.857 0 0 0-3.857 3.857v15.552l-13.677 10.639a3.857 3.857 0 0 0-1.488 3.044v35.039a3.857 3.857 0 0 0 3.857 3.857h204.5a3.857 3.857 0 0 0 3.857-3.857v-35.04a3.859 3.859 0 0 0-1.487-3.043z"] };
  2850. var faChessBishop = { prefix: 'fas', iconName: 'chess-bishop', icon: [320, 512, [], "f43a", "M123.158 77.881C107.369 72.53 96 57.597 96 40c0-22.091 17.909-40 40-40h47.796c22.091 0 40 17.909 40 40 0 17.541-11.295 32.434-27.005 37.829 23.993 16.657 48.577 46.839 68.703 82.05L144.929 280.443a6 6 0 0 0 0 8.485l14.142 14.142a6 6 0 0 0 8.485 0L280.9 189.726c17.758 38.297 29.371 79.443 29.371 114.273 0 53.786-22.897 75.788-58.446 86.033V448H68.174v-57.97C32.631 379.784 9.739 357.781 9.739 304c0-78.029 58.281-187.766 113.419-226.119zM320 500v-24c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12z"] };
  2851. var faChessBoard = { prefix: 'fas', iconName: 'chess-board', icon: [512, 512, [], "f43c", "M256 256v64h-64v-64h64zm0-256h-64v64h64V0zm0 256h64v-64h-64v64zM384 0h-64v64h64V0zm0 512h64v-64h-64v64zm128-64v-64h-64v64h64zm-384 64h64v-64h-64v64zm0-512H64v64h64V0zm384 192v-64h-64v64h64zm0 128v-64h-64v64h64zM0 512h64v-64H0v64zM0 64v64h64V64H0zm0 128v64h64v-64H0zm0 128v64h64v-64H0zm256 192h64v-64h-64v64zm-64-128v64h64v-64h-64zm64-192v-64h-64v64h64zM64 384v64h64v-64H64zm64-128H64v64h64v-64zm256 128h64v-64h-64v64zM512 0h-64v64h64V0zM384 256h64v-64h-64v64zm0-192v64h64V64h-64zm-64 320v64h64v-64h-64zm-192-64v64h64v-64h-64zm128 0v64h64v-64h-64zm-64-128h-64v64h64v-64zm-64-64H64v64h64v-64zm192 192h64v-64h-64v64zM192 128V64h-64v64h64zm128 0V64h-64v64h64zm0 64h64v-64h-64v64z"] };
  2852. var faChessKing = { prefix: 'fas', iconName: 'chess-king', icon: [448, 512, [], "f43f", "M416 476v24c0 6.627-5.373 12-12 12H44c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12zm-8.033-324H248v-48h50a6 6 0 0 0 6-6V62a6 6 0 0 0-6-6h-50V6a6 6 0 0 0-6-6h-36a6 6 0 0 0-6 6v50h-50a6 6 0 0 0-6 6v36a6 6 0 0 0 6 6h50v48H40.033c-27.574 0-46.879 27.244-37.738 53.259L87.582 448h272.836l85.287-242.741C454.846 179.244 435.541 152 407.967 152z"] };
  2853. var faChessKnight = { prefix: 'fas', iconName: 'chess-knight', icon: [384, 512, [], "f441", "M352 224v224H32v-46.557c0-30.302 17.12-58.003 44.223-71.554l57.243-28.622A48 48 0 0 0 160 258.334V208l-22.127 11.063a23.996 23.996 0 0 0-12.55 15.645l-11.835 47.338a12 12 0 0 1-7.185 8.231l-29.601 11.84a11.998 11.998 0 0 1-9.33-.176L7.126 275.167A12 12 0 0 1 0 264.201v-158.26c0-6.365 2.529-12.47 7.03-16.971L16 80 1.789 51.578A16.937 16.937 0 0 1 0 44c0-6.627 5.373-12 12-12h148c106.039 0 192 85.961 192 192zm20 240H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12zM52 128c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  2854. var faChessPawn = { prefix: 'fas', iconName: 'chess-pawn', icon: [320, 512, [], "f443", "M264 448H56s60-42.743 60-176H84c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h40.209C95.721 210.56 76 181.588 76 148c0-46.392 37.608-84 84-84s84 37.608 84 84c0 33.588-19.721 62.56-48.209 76H236c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-32c0 133.257 60 176 60 176zm28 16H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h264c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12z"] };
  2855. var faChessQueen = { prefix: 'fas', iconName: 'chess-queen', icon: [512, 512, [], "f445", "M436 512H76c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12zM255.579 0c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zm204.568 154.634c-5.768-3.045-12.916-.932-16.082 4.77-8.616 15.516-22.747 37.801-44.065 37.801-28.714 0-30.625-19.804-31.686-57.542-.183-6.492-5.501-11.664-11.995-11.664h-41.006c-5.175 0-9.754 3.328-11.388 8.238-8.89 26.709-26.073 40.992-47.925 40.992s-39.034-14.283-47.925-40.992c-1.634-4.91-6.213-8.238-11.388-8.238h-41.005c-6.495 0-11.813 5.174-11.995 11.667-1.052 37.642-2.934 57.539-31.688 57.539-20.691 0-33.817-20.224-44.425-38.025-3.266-5.48-10.258-7.431-15.899-4.453l-39.179 20.679a12 12 0 0 0-5.51 15.145L112 448h288l105.014-257.448a12 12 0 0 0-5.51-15.145l-39.357-20.773z"] };
  2856. var faChessRook = { prefix: 'fas', iconName: 'chess-rook', icon: [384, 512, [], "f447", "M81.241 215.027C80.957 258.92 77.411 348.076 48 448h287.982c-29.4-99.604-32.936-188.912-33.221-232.975l45.418-42.312a11.998 11.998 0 0 0 3.82-8.78V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v44h-48V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v44H96V44c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v119.932c0 3.33 1.384 6.51 3.82 8.78l45.421 42.315zM160 256c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v64.004h-64V256zm224 220v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12z"] };
  2857. var faChevronCircleDown = { prefix: 'fas', iconName: 'chevron-circle-down', icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"] };
  2858. var faChevronCircleLeft = { prefix: 'fas', iconName: 'chevron-circle-left', icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"] };
  2859. var faChevronCircleRight = { prefix: 'fas', iconName: 'chevron-circle-right', icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"] };
  2860. var faChevronCircleUp = { prefix: 'fas', iconName: 'chevron-circle-up', icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"] };
  2861. var faChevronDown = { prefix: 'fas', iconName: 'chevron-down', icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"] };
  2862. var faChevronLeft = { prefix: 'fas', iconName: 'chevron-left', icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"] };
  2863. var faChevronRight = { prefix: 'fas', iconName: 'chevron-right', icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"] };
  2864. var faChevronUp = { prefix: 'fas', iconName: 'chevron-up', icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"] };
  2865. var faChild = { prefix: 'fas', iconName: 'child', icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"] };
  2866. var faChurch = { prefix: 'fas', iconName: 'church', icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"] };
  2867. var faCircle = { prefix: 'fas', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"] };
  2868. var faCircleNotch = { prefix: 'fas', iconName: 'circle-notch', icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"] };
  2869. var faCity = { prefix: 'fas', iconName: 'city', icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"] };
  2870. var faClipboard = { prefix: 'fas', iconName: 'clipboard', icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"] };
  2871. var faClipboardCheck = { prefix: 'fas', iconName: 'clipboard-check', icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"] };
  2872. var faClipboardList = { prefix: 'fas', iconName: 'clipboard-list', icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  2873. var faClock = { prefix: 'fas', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  2874. var faClone = { prefix: 'fas', iconName: 'clone', icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"] };
  2875. var faClosedCaptioning = { prefix: 'fas', iconName: 'closed-captioning', icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"] };
  2876. var faCloud = { prefix: 'fas', iconName: 'cloud', icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"] };
  2877. var faCloudDownloadAlt = { prefix: 'fas', iconName: 'cloud-download-alt', icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"] };
  2878. var faCloudMoon = { prefix: 'fas', iconName: 'cloud-moon', icon: [640, 512, [], "f6c3", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.3 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm285.26-29.42c-104.23 19.22-199.95-58.16-199.95-160.03 0-58.68 32.45-112.64 85.18-141.7 8.13-4.48 6.08-16.41-3.15-18.06C497.14 1.17 484 0 470.84 0 352.25 0 256 93.04 256 208c0 7.26.4 14.44 1.15 21.51 9.87-3.38 20.18-5.51 30.85-5.51 52.94 0 96 43.06 96 96 0 3.59-.21 7.17-.63 10.73 33.49 15.39 57.47 46.55 63.24 83.86 7.96.87 16.03 1.41 24.23 1.41 66.26 0 126.79-29.19 166.88-77.02 5.93-7.07-.54-17.41-9.71-15.72z"] };
  2879. var faCloudSun = { prefix: 'fas', iconName: 'cloud-sun', icon: [640, 512, [], "f6c4", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.31 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm243.19-99.8c-7.85-6.79-7.85-18.97 0-25.76L633.41 186c12.76-11.05 5.84-32.02-11-33.3l-61.59-4.67c-10.19-.78-17.28-10.49-14.9-20.43l14.95-62.48c3.89-16.26-13.96-29.02-28.08-20.07l-52.51 33.26c-8.61 5.46-20.06 1.75-23.85-7.72l-23.47-58.74c-6.32-15.81-28.19-15.81-34.51 0l-23.38 58.49c-3.83 9.59-15.44 13.35-24.17 7.82l-52.29-33.12c-14.13-8.95-31.98 3.81-28.08 20.07l14.95 62.48c2.38 9.94-4.7 19.65-14.9 20.43l-61.15 4.64c-17 1.29-23.99 22.46-11.1 33.62l31.23 27.05c7.82 5.17 15.21 11.01 21.78 17.84 11.42-4.71 23.73-7.18 36.37-7.18 5.97 0 11.77.71 17.44 1.76 7.09-54.98 53.68-97.76 110.56-97.76 61.76 0 112 50.24 112 112s-50.24 112-112 112c-.95 0-1.83-.26-2.77-.28 13.83 13.2 24.61 29.47 30.16 48.28h27.02c6.25 0 12.37 1.83 17.6 5.27l45.08 29.68c14.19 8.99 31.89-4.17 27.92-20.76l-14.69-61.38c-2.43-10.16 4.8-20.08 15.22-20.87l61.16-4.64c16.84-1.28 23.76-22.25 11-33.3l-47.47-41.11zm-202.66 59.94C393.3 317.34 404.32 320 416 320c44.11 0 80-35.89 80-80s-35.89-80-80-80c-43.25 0-78.39 34.56-79.75 77.49 26.44 15.53 44.59 43.13 47.03 75.33z"] };
  2880. var faCloudUploadAlt = { prefix: 'fas', iconName: 'cloud-upload-alt', icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"] };
  2881. var faCocktail = { prefix: 'fas', iconName: 'cocktail', icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"] };
  2882. var faCode = { prefix: 'fas', iconName: 'code', icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"] };
  2883. var faCodeBranch = { prefix: 'fas', iconName: 'code-branch', icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"] };
  2884. var faCoffee = { prefix: 'fas', iconName: 'coffee', icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"] };
  2885. var faCog = { prefix: 'fas', iconName: 'cog', icon: [512, 512, [], "f013", "M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"] };
  2886. var faCogs = { prefix: 'fas', iconName: 'cogs', icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"] };
  2887. var faCoins = { prefix: 'fas', iconName: 'coins', icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"] };
  2888. var faColumns = { prefix: 'fas', iconName: 'columns', icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"] };
  2889. var faComment = { prefix: 'fas', iconName: 'comment', icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"] };
  2890. var faCommentAlt = { prefix: 'fas', iconName: 'comment-alt', icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"] };
  2891. var faCommentDollar = { prefix: 'fas', iconName: 'comment-dollar', icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"] };
  2892. var faCommentDots = { prefix: 'fas', iconName: 'comment-dots', icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  2893. var faCommentSlash = { prefix: 'fas', iconName: 'comment-slash', icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  2894. var faComments = { prefix: 'fas', iconName: 'comments', icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"] };
  2895. var faCommentsDollar = { prefix: 'fas', iconName: 'comments-dollar', icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"] };
  2896. var faCompactDisc = { prefix: 'fas', iconName: 'compact-disc', icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  2897. var faCompass = { prefix: 'fas', iconName: 'compass', icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"] };
  2898. var faCompress = { prefix: 'fas', iconName: 'compress', icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  2899. var faConciergeBell = { prefix: 'fas', iconName: 'concierge-bell', icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2900. var faCookie = { prefix: 'fas', iconName: 'cookie', icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2901. var faCookieBite = { prefix: 'fas', iconName: 'cookie-bite', icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2902. var faCopy = { prefix: 'fas', iconName: 'copy', icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"] };
  2903. var faCopyright = { prefix: 'fas', iconName: 'copyright', icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"] };
  2904. var faCouch = { prefix: 'fas', iconName: 'couch', icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"] };
  2905. var faCreditCard = { prefix: 'fas', iconName: 'credit-card', icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"] };
  2906. var faCrop = { prefix: 'fas', iconName: 'crop', icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  2907. var faCropAlt = { prefix: 'fas', iconName: 'crop-alt', icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"] };
  2908. var faCross = { prefix: 'fas', iconName: 'cross', icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  2909. var faCrosshairs = { prefix: 'fas', iconName: 'crosshairs', icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"] };
  2910. var faCrow = { prefix: 'fas', iconName: 'crow', icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  2911. var faCrown = { prefix: 'fas', iconName: 'crown', icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"] };
  2912. var faCube = { prefix: 'fas', iconName: 'cube', icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"] };
  2913. var faCubes = { prefix: 'fas', iconName: 'cubes', icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"] };
  2914. var faCut = { prefix: 'fas', iconName: 'cut', icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  2915. var faDatabase = { prefix: 'fas', iconName: 'database', icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"] };
  2916. var faDeaf = { prefix: 'fas', iconName: 'deaf', icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"] };
  2917. var faDesktop = { prefix: 'fas', iconName: 'desktop', icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"] };
  2918. var faDharmachakra = { prefix: 'fas', iconName: 'dharmachakra', icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"] };
  2919. var faDiagnoses = { prefix: 'fas', iconName: 'diagnoses', icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  2920. var faDice = { prefix: 'fas', iconName: 'dice', icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  2921. var faDiceD20 = { prefix: 'fas', iconName: 'dice-d20', icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"] };
  2922. var faDiceD6 = { prefix: 'fas', iconName: 'dice-d6', icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"] };
  2923. var faDiceFive = { prefix: 'fas', iconName: 'dice-five', icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2924. var faDiceFour = { prefix: 'fas', iconName: 'dice-four', icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2925. var faDiceOne = { prefix: 'fas', iconName: 'dice-one', icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2926. var faDiceSix = { prefix: 'fas', iconName: 'dice-six', icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2927. var faDiceThree = { prefix: 'fas', iconName: 'dice-three', icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2928. var faDiceTwo = { prefix: 'fas', iconName: 'dice-two', icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2929. var faDigitalTachograph = { prefix: 'fas', iconName: 'digital-tachograph', icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"] };
  2930. var faDirections = { prefix: 'fas', iconName: 'directions', icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"] };
  2931. var faDivide = { prefix: 'fas', iconName: 'divide', icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  2932. var faDizzy = { prefix: 'fas', iconName: 'dizzy', icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"] };
  2933. var faDna = { prefix: 'fas', iconName: 'dna', icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"] };
  2934. var faDog = { prefix: 'fas', iconName: 'dog', icon: [512, 512, [], "f6d3", "M496 96h-64l-7.16-14.31A32 32 0 0 0 396.22 64H342.6l-27.28-27.28C305.23 26.64 288 33.78 288 48.03v149.84l128 45.71V208h32c35.35 0 64-28.65 64-64v-32c0-8.84-7.16-16-16-16zm-112 48c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM96 224c-17.64 0-32-14.36-32-32 0-17.67-14.33-32-32-32S0 174.33 0 192c0 41.66 26.83 76.85 64 90.1V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V384h160v112c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V277.55L266.05 224H96z"] };
  2935. var faDollarSign = { prefix: 'fas', iconName: 'dollar-sign', icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"] };
  2936. var faDolly = { prefix: 'fas', iconName: 'dolly', icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  2937. var faDollyFlatbed = { prefix: 'fas', iconName: 'dolly-flatbed', icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  2938. var faDonate = { prefix: 'fas', iconName: 'donate', icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"] };
  2939. var faDoorClosed = { prefix: 'fas', iconName: 'door-closed', icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"] };
  2940. var faDoorOpen = { prefix: 'fas', iconName: 'door-open', icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"] };
  2941. var faDotCircle = { prefix: 'fas', iconName: 'dot-circle', icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"] };
  2942. var faDove = { prefix: 'fas', iconName: 'dove', icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  2943. var faDownload = { prefix: 'fas', iconName: 'download', icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  2944. var faDraftingCompass = { prefix: 'fas', iconName: 'drafting-compass', icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"] };
  2945. var faDragon = { prefix: 'fas', iconName: 'dragon', icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"] };
  2946. var faDrawPolygon = { prefix: 'fas', iconName: 'draw-polygon', icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"] };
  2947. var faDrum = { prefix: 'fas', iconName: 'drum', icon: [576, 512, [], "f569", "M458.08 120.88l102.39-61.43c15.16-9.09 20.06-28.75 10.97-43.91C562.34.39 542.7-4.53 527.53 4.57l-160.69 96.41A629.32 629.32 0 0 0 288 96C128.94 96 0 153.31 0 224v160.83c0 30.46 24.03 58.4 64 80.37v-96.37c0-17.6 14.4-32 32-32s32 14.4 32 32v122.41c37.4 11.13 81 18.44 128 20.75V400.84c0-17.6 14.4-32 32-32s32 14.4 32 32V512c47-2.31 90.6-9.62 128-20.75V368.84c0-17.6 14.4-32 32-32s32 14.4 32 32v96.37c39.97-21.97 64-49.91 64-80.37V224.01c-.01-42.38-46.54-79.84-117.92-103.13zM288 304c-132.55 0-240-35.82-240-80s107.45-80 240-80c2.34 0 4.62.1 6.94.12l-87.41 52.44c-15.16 9.09-20.06 28.75-10.97 43.91 9.56 15.93 29.51 19.61 43.91 10.97l162.71-97.62C477.55 167.41 528 193.74 528 224.01 528 268.19 420.54 304 288 304z"] };
  2948. var faDrumSteelpan = { prefix: 'fas', iconName: 'drum-steelpan', icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"] };
  2949. var faDrumstickBite = { prefix: 'fas', iconName: 'drumstick-bite', icon: [512, 512, [], "f6d7", "M462.79 49.57c-66.14-66.09-173.36-66.09-239.5 0C187.81 85.02 160.12 128 160.12 192v85.83l-40.62 40.59c-9.7 9.69-24.04 11.07-36.78 5.98-21.72-8.68-47.42-4.29-65.02 13.29-23.61 23.59-23.61 61.84 0 85.43 15.28 15.27 36.53 19.58 56.14 15.09-4.5 19.6-.18 40.83 15.1 56.1 23.61 23.59 61.88 23.59 85.49 0 17.6-17.58 21.99-43.26 13.31-64.97-5.09-12.73-3.72-27.05 5.99-36.75L234.35 352h85.89c23.2 0 43.57-3.72 61.89-10.03-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.93-14.81-90.25-49.13-124.53z"] };
  2950. var faDumbbell = { prefix: 'fas', iconName: 'dumbbell', icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"] };
  2951. var faDungeon = { prefix: 'fas', iconName: 'dungeon', icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"] };
  2952. var faEdit = { prefix: 'fas', iconName: 'edit', icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"] };
  2953. var faEject = { prefix: 'fas', iconName: 'eject', icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"] };
  2954. var faEllipsisH = { prefix: 'fas', iconName: 'ellipsis-h', icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"] };
  2955. var faEllipsisV = { prefix: 'fas', iconName: 'ellipsis-v', icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"] };
  2956. var faEnvelope = { prefix: 'fas', iconName: 'envelope', icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"] };
  2957. var faEnvelopeOpen = { prefix: 'fas', iconName: 'envelope-open', icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"] };
  2958. var faEnvelopeOpenText = { prefix: 'fas', iconName: 'envelope-open-text', icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"] };
  2959. var faEnvelopeSquare = { prefix: 'fas', iconName: 'envelope-square', icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"] };
  2960. var faEquals = { prefix: 'fas', iconName: 'equals', icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  2961. var faEraser = { prefix: 'fas', iconName: 'eraser', icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"] };
  2962. var faEuroSign = { prefix: 'fas', iconName: 'euro-sign', icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"] };
  2963. var faExchangeAlt = { prefix: 'fas', iconName: 'exchange-alt', icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  2964. var faExclamation = { prefix: 'fas', iconName: 'exclamation', icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"] };
  2965. var faExclamationCircle = { prefix: 'fas', iconName: 'exclamation-circle', icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  2966. var faExclamationTriangle = { prefix: 'fas', iconName: 'exclamation-triangle', icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  2967. var faExpand = { prefix: 'fas', iconName: 'expand', icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"] };
  2968. var faExpandArrowsAlt = { prefix: 'fas', iconName: 'expand-arrows-alt', icon: [448, 512, [], "f31e", "M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"] };
  2969. var faExternalLinkAlt = { prefix: 'fas', iconName: 'external-link-alt', icon: [576, 512, [], "f35d", "M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"] };
  2970. var faExternalLinkSquareAlt = { prefix: 'fas', iconName: 'external-link-square-alt', icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"] };
  2971. var faEye = { prefix: 'fas', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"] };
  2972. var faEyeDropper = { prefix: 'fas', iconName: 'eye-dropper', icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"] };
  2973. var faEyeSlash = { prefix: 'fas', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"] };
  2974. var faFastBackward = { prefix: 'fas', iconName: 'fast-backward', icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"] };
  2975. var faFastForward = { prefix: 'fas', iconName: 'fast-forward', icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"] };
  2976. var faFax = { prefix: 'fas', iconName: 'fax', icon: [512, 512, [], "f1ac", "M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"] };
  2977. var faFeather = { prefix: 'fas', iconName: 'feather', icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"] };
  2978. var faFeatherAlt = { prefix: 'fas', iconName: 'feather-alt', icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"] };
  2979. var faFemale = { prefix: 'fas', iconName: 'female', icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"] };
  2980. var faFighterJet = { prefix: 'fas', iconName: 'fighter-jet', icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"] };
  2981. var faFile = { prefix: 'fas', iconName: 'file', icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2982. var faFileAlt = { prefix: 'fas', iconName: 'file-alt', icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2983. var faFileArchive = { prefix: 'fas', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32V32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6zm32.7-53c0 14.9-14.5 27-32.4 27S96 378 96 363c0-14.9 14.5-27 32.4-27s32.5 12.1 32.5 27zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2984. var faFileAudio = { prefix: 'fas', iconName: 'file-audio', icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2985. var faFileCode = { prefix: 'fas', iconName: 'file-code', icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"] };
  2986. var faFileContract = { prefix: 'fas', iconName: 'file-contract', icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2987. var faFileCsv = { prefix: 'fas', iconName: 'file-csv', icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2988. var faFileDownload = { prefix: 'fas', iconName: 'file-download', icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2989. var faFileExcel = { prefix: 'fas', iconName: 'file-excel', icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2990. var faFileExport = { prefix: 'fas', iconName: 'file-export', icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zM192 336v-32c0-8.84 7.16-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.84 0-16-7.16-16-16zm379.05-28.02l-95.7-96.43c-10.06-10.14-27.36-3.01-27.36 11.27V288H384v64h63.99v65.18c0 14.28 17.29 21.41 27.36 11.27l95.7-96.42c6.6-6.66 6.6-17.4 0-24.05z"] };
  2991. var faFileImage = { prefix: 'fas', iconName: 'file-image', icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"] };
  2992. var faFileImport = { prefix: 'fas', iconName: 'file-import', icon: [512, 512, [], "f56f", "M16 288c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h112v-64H16zm336-152V0H152c-13.3 0-24 10.7-24 24v264h127.99v-65.18c0-14.28 17.29-21.41 27.36-11.27l95.7 96.43c6.6 6.65 6.6 17.39 0 24.04l-95.7 96.42c-10.06 10.14-27.36 3.01-27.36-11.27V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24zm153-31L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2993. var faFileInvoice = { prefix: 'fas', iconName: 'file-invoice', icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"] };
  2994. var faFileInvoiceDollar = { prefix: 'fas', iconName: 'file-invoice-dollar', icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"] };
  2995. var faFileMedical = { prefix: 'fas', iconName: 'file-medical', icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"] };
  2996. var faFileMedicalAlt = { prefix: 'fas', iconName: 'file-medical-alt', icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2997. var faFilePdf = { prefix: 'fas', iconName: 'file-pdf', icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"] };
  2998. var faFilePowerpoint = { prefix: 'fas', iconName: 'file-powerpoint', icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"] };
  2999. var faFilePrescription = { prefix: 'fas', iconName: 'file-prescription', icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3000. var faFileSignature = { prefix: 'fas', iconName: 'file-signature', icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"] };
  3001. var faFileUpload = { prefix: 'fas', iconName: 'file-upload', icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3002. var faFileVideo = { prefix: 'fas', iconName: 'file-video', icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"] };
  3003. var faFileWord = { prefix: 'fas', iconName: 'file-word', icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3004. var faFill = { prefix: 'fas', iconName: 'fill', icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"] };
  3005. var faFillDrip = { prefix: 'fas', iconName: 'fill-drip', icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"] };
  3006. var faFilm = { prefix: 'fas', iconName: 'film', icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3007. var faFilter = { prefix: 'fas', iconName: 'filter', icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"] };
  3008. var faFingerprint = { prefix: 'fas', iconName: 'fingerprint', icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"] };
  3009. var faFire = { prefix: 'fas', iconName: 'fire', icon: [384, 512, [], "f06d", "M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"] };
  3010. var faFireExtinguisher = { prefix: 'fas', iconName: 'fire-extinguisher', icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"] };
  3011. var faFirstAid = { prefix: 'fas', iconName: 'first-aid', icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3012. var faFish = { prefix: 'fas', iconName: 'fish', icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3013. var faFistRaised = { prefix: 'fas', iconName: 'fist-raised', icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"] };
  3014. var faFlag = { prefix: 'fas', iconName: 'flag', icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"] };
  3015. var faFlagCheckered = { prefix: 'fas', iconName: 'flag-checkered', icon: [512, 512, [], "f11e", "M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"] };
  3016. var faFlask = { prefix: 'fas', iconName: 'flask', icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"] };
  3017. var faFlushed = { prefix: 'fas', iconName: 'flushed', icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"] };
  3018. var faFolder = { prefix: 'fas', iconName: 'folder', icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"] };
  3019. var faFolderMinus = { prefix: 'fas', iconName: 'folder-minus', icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"] };
  3020. var faFolderOpen = { prefix: 'fas', iconName: 'folder-open', icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"] };
  3021. var faFolderPlus = { prefix: 'fas', iconName: 'folder-plus', icon: [512, 512, [], "f65e", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16h-72v72c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-72h-72c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h72v-72c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v72h72c8.84 0 16 7.16 16 16v16z"] };
  3022. var faFont = { prefix: 'fas', iconName: 'font', icon: [448, 512, [], "f031", "M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"] };
  3023. var faFontAwesomeLogoFull = { prefix: 'fas', iconName: 'font-awesome-logo-full', icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"] };
  3024. var faFootballBall = { prefix: 'fas', iconName: 'football-ball', icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"] };
  3025. var faForward = { prefix: 'fas', iconName: 'forward', icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"] };
  3026. var faFrog = { prefix: 'fas', iconName: 'frog', icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3027. var faFrown = { prefix: 'fas', iconName: 'frown', icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"] };
  3028. var faFrownOpen = { prefix: 'fas', iconName: 'frown-open', icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3029. var faFunnelDollar = { prefix: 'fas', iconName: 'funnel-dollar', icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"] };
  3030. var faFutbol = { prefix: 'fas', iconName: 'futbol', icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"] };
  3031. var faGamepad = { prefix: 'fas', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3032. var faGasPump = { prefix: 'fas', iconName: 'gas-pump', icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"] };
  3033. var faGavel = { prefix: 'fas', iconName: 'gavel', icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"] };
  3034. var faGem = { prefix: 'fas', iconName: 'gem', icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"] };
  3035. var faGenderless = { prefix: 'fas', iconName: 'genderless', icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"] };
  3036. var faGhost = { prefix: 'fas', iconName: 'ghost', icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3037. var faGift = { prefix: 'fas', iconName: 'gift', icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"] };
  3038. var faGlassMartini = { prefix: 'fas', iconName: 'glass-martini', icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"] };
  3039. var faGlassMartiniAlt = { prefix: 'fas', iconName: 'glass-martini-alt', icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"] };
  3040. var faGlasses = { prefix: 'fas', iconName: 'glasses', icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"] };
  3041. var faGlobe = { prefix: 'fas', iconName: 'globe', icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"] };
  3042. var faGlobeAfrica = { prefix: 'fas', iconName: 'globe-africa', icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"] };
  3043. var faGlobeAmericas = { prefix: 'fas', iconName: 'globe-americas', icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"] };
  3044. var faGlobeAsia = { prefix: 'fas', iconName: 'globe-asia', icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"] };
  3045. var faGolfBall = { prefix: 'fas', iconName: 'golf-ball', icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"] };
  3046. var faGopuram = { prefix: 'fas', iconName: 'gopuram', icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.84-7.16-16-16-16h-16v-80c0-8.84-7.16-16-16-16h-16V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16S96 7.16 96 16v112H80c-8.84 0-16 7.16-16 16v80H48c-8.84 0-16 7.16-16 16v112H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zm-272 0v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64h-64zm8-128v-48c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v48h-48z"] };
  3047. var faGraduationCap = { prefix: 'fas', iconName: 'graduation-cap', icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"] };
  3048. var faGreaterThan = { prefix: 'fas', iconName: 'greater-than', icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"] };
  3049. var faGreaterThanEqual = { prefix: 'fas', iconName: 'greater-than-equal', icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3050. var faGrimace = { prefix: 'fas', iconName: 'grimace', icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"] };
  3051. var faGrin = { prefix: 'fas', iconName: 'grin', icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3052. var faGrinAlt = { prefix: 'fas', iconName: 'grin-alt', icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3053. var faGrinBeam = { prefix: 'fas', iconName: 'grin-beam', icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3054. var faGrinBeamSweat = { prefix: 'fas', iconName: 'grin-beam-sweat', icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3055. var faGrinHearts = { prefix: 'fas', iconName: 'grin-hearts', icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"] };
  3056. var faGrinSquint = { prefix: 'fas', iconName: 'grin-squint', icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3057. var faGrinSquintTears = { prefix: 'fas', iconName: 'grin-squint-tears', icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"] };
  3058. var faGrinStars = { prefix: 'fas', iconName: 'grin-stars', icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"] };
  3059. var faGrinTears = { prefix: 'fas', iconName: 'grin-tears', icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3060. var faGrinTongue = { prefix: 'fas', iconName: 'grin-tongue', icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3061. var faGrinTongueSquint = { prefix: 'fas', iconName: 'grin-tongue-squint', icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"] };
  3062. var faGrinTongueWink = { prefix: 'fas', iconName: 'grin-tongue-wink', icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3063. var faGrinWink = { prefix: 'fas', iconName: 'grin-wink', icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"] };
  3064. var faGripHorizontal = { prefix: 'fas', iconName: 'grip-horizontal', icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3065. var faGripVertical = { prefix: 'fas', iconName: 'grip-vertical', icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3066. var faHSquare = { prefix: 'fas', iconName: 'h-square', icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"] };
  3067. var faHammer = { prefix: 'fas', iconName: 'hammer', icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"] };
  3068. var faHamsa = { prefix: 'fas', iconName: 'hamsa', icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3069. var faHandHolding = { prefix: 'fas', iconName: 'hand-holding', icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3070. var faHandHoldingHeart = { prefix: 'fas', iconName: 'hand-holding-heart', icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3071. var faHandHoldingUsd = { prefix: 'fas', iconName: 'hand-holding-usd', icon: [544, 512, [], "f4c0", "M257.6 144.3l50 14.3c3.6 1 6.1 4.4 6.1 8.1 0 4.6-3.8 8.4-8.4 8.4h-32.8c-3.6 0-7.1-.8-10.3-2.2-4.8-2.2-10.4-1.7-14.1 2l-17.5 17.5c-5.3 5.3-4.7 14.3 1.5 18.4 9.5 6.3 20.3 10.1 31.8 11.5V240c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-17.6c30.3-3.6 53.3-31 49.3-63-2.9-23-20.7-41.3-42.9-47.7l-50-14.3c-3.6-1-6.1-4.4-6.1-8.1 0-4.6 3.8-8.4 8.4-8.4h32.8c3.6 0 7.1.8 10.3 2.2 4.8 2.2 10.4 1.7 14.1-2l17.5-17.5c5.3-5.3 4.7-14.3-1.5-18.4-9.5-6.3-20.3-10.1-31.8-11.5V16c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v17.6c-30.3 3.6-53.3 31-49.3 63 2.9 23 20.7 41.3 42.9 47.7zm276.3 183.8c-11.2-10.7-28.5-10-40.3 0L406.4 402c-10.7 9.1-24 14-37.8 14H256.9c-8.3 0-15.1-7.2-15.1-16s6.8-16 15.1-16h73.9c15.1 0 29-10.9 31.4-26.6 3.1-20-11.5-37.4-29.8-37.4H181.3c-25.5 0-50.2 9.3-69.9 26.3L67.5 384H15.1C6.8 384 0 391.2 0 400v96c0 8.8 6.8 16 15.1 16H352c13.7 0 27-4.9 37.8-14l142.8-121c14.4-12.1 15.5-35.3 1.3-48.9z"] };
  3072. var faHandLizard = { prefix: 'fas', iconName: 'hand-lizard', icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"] };
  3073. var faHandPaper = { prefix: 'fas', iconName: 'hand-paper', icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"] };
  3074. var faHandPeace = { prefix: 'fas', iconName: 'hand-peace', icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"] };
  3075. var faHandPointDown = { prefix: 'fas', iconName: 'hand-point-down', icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3076. var faHandPointLeft = { prefix: 'fas', iconName: 'hand-point-left', icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"] };
  3077. var faHandPointRight = { prefix: 'fas', iconName: 'hand-point-right', icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3078. var faHandPointUp = { prefix: 'fas', iconName: 'hand-point-up', icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3079. var faHandPointer = { prefix: 'fas', iconName: 'hand-pointer', icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"] };
  3080. var faHandRock = { prefix: 'fas', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M512 128.79c0-26.322-20.861-48.344-47.18-48.783C437.935 79.558 416 101.217 416 128h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C333.935 47.558 312 69.217 312 96v32h-8V80.79c0-26.322-20.861-48.344-47.18-48.783C229.935 31.558 208 53.217 208 80v48h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C125.935 47.558 104 69.217 104 96v136l-8-7.111V176.79c0-26.322-20.861-48.344-47.18-48.783C21.935 127.558 0 149.217 0 176v66.445a95.998 95.998 0 0 0 32.221 71.751l111.668 99.261A47.999 47.999 0 0 1 160 449.333V456c0 13.255 10.745 24 24 24h240c13.255 0 24-10.745 24-24v-2.921a96.01 96.01 0 0 1 7.523-37.254l48.954-116.265A96.002 96.002 0 0 0 512 262.306V128.79z"] };
  3081. var faHandScissors = { prefix: 'fas', iconName: 'hand-scissors', icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"] };
  3082. var faHandSpock = { prefix: 'fas', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M10.872 316.585c15.139-16.086 40.454-16.854 56.543-1.713L128 371.893v-79.405L88.995 120.865c-4.896-21.542 8.598-42.974 30.14-47.87 21.549-4.894 42.975 8.599 47.87 30.141L201.747 256h9.833L164.016 48.966c-4.946-21.531 8.498-42.994 30.028-47.94 21.532-4.95 42.994 8.498 47.94 30.028L293.664 256h15.105l48.425-193.702c5.357-21.432 27.075-34.462 48.507-29.104 21.432 5.358 34.463 27.075 29.104 48.507L391.231 256h11.08l30.768-129.265c5.117-21.491 26.685-34.768 48.177-29.647 21.491 5.117 34.765 26.686 29.647 48.177l-36.292 152.467A96.024 96.024 0 0 0 472 319.967v42.102a96.002 96.002 0 0 1-3.96 27.287l-26.174 88.287C435.825 498.022 417.101 512 395.846 512H179.172a48.002 48.002 0 0 1-32.898-13.046L12.585 373.128c-16.087-15.141-16.853-40.456-1.713-56.543z"] };
  3083. var faHands = { prefix: 'fas', iconName: 'hands', icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"] };
  3084. var faHandsHelping = { prefix: 'fas', iconName: 'hands-helping', icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"] };
  3085. var faHandshake = { prefix: 'fas', iconName: 'handshake', icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"] };
  3086. var faHanukiah = { prefix: 'fas', iconName: 'hanukiah', icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"] };
  3087. var faHashtag = { prefix: 'fas', iconName: 'hashtag', icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"] };
  3088. var faHatWizard = { prefix: 'fas', iconName: 'hat-wizard', icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"] };
  3089. var faHaykal = { prefix: 'fas', iconName: 'haykal', icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"] };
  3090. var faHdd = { prefix: 'fas', iconName: 'hdd', icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3091. var faHeading = { prefix: 'fas', iconName: 'heading', icon: [512, 512, [], "f1dc", "M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"] };
  3092. var faHeadphones = { prefix: 'fas', iconName: 'headphones', icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"] };
  3093. var faHeadphonesAlt = { prefix: 'fas', iconName: 'headphones-alt', icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"] };
  3094. var faHeadset = { prefix: 'fas', iconName: 'headset', icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"] };
  3095. var faHeart = { prefix: 'fas', iconName: 'heart', icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"] };
  3096. var faHeartbeat = { prefix: 'fas', iconName: 'heartbeat', icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"] };
  3097. var faHelicopter = { prefix: 'fas', iconName: 'helicopter', icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"] };
  3098. var faHighlighter = { prefix: 'fas', iconName: 'highlighter', icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"] };
  3099. var faHiking = { prefix: 'fas', iconName: 'hiking', icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"] };
  3100. var faHippo = { prefix: 'fas', iconName: 'hippo', icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3101. var faHistory = { prefix: 'fas', iconName: 'history', icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"] };
  3102. var faHockeyPuck = { prefix: 'fas', iconName: 'hockey-puck', icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"] };
  3103. var faHome = { prefix: 'fas', iconName: 'home', icon: [576, 512, [], "f015", "M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"] };
  3104. var faHorse = { prefix: 'fas', iconName: 'horse', icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3105. var faHospital = { prefix: 'fas', iconName: 'hospital', icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"] };
  3106. var faHospitalAlt = { prefix: 'fas', iconName: 'hospital-alt', icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3107. var faHospitalSymbol = { prefix: 'fas', iconName: 'hospital-symbol', icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"] };
  3108. var faHotTub = { prefix: 'fas', iconName: 'hot-tub', icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"] };
  3109. var faHotel = { prefix: 'fas', iconName: 'hotel', icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3110. var faHourglass = { prefix: 'fas', iconName: 'hourglass', icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"] };
  3111. var faHourglassEnd = { prefix: 'fas', iconName: 'hourglass-end', icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"] };
  3112. var faHourglassHalf = { prefix: 'fas', iconName: 'hourglass-half', icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"] };
  3113. var faHourglassStart = { prefix: 'fas', iconName: 'hourglass-start', icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"] };
  3114. var faHouseDamage = { prefix: 'fas', iconName: 'house-damage', icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"] };
  3115. var faHryvnia = { prefix: 'fas', iconName: 'hryvnia', icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"] };
  3116. var faICursor = { prefix: 'fas', iconName: 'i-cursor', icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"] };
  3117. var faIdBadge = { prefix: 'fas', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3118. var faIdCard = { prefix: 'fas', iconName: 'id-card', icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"] };
  3119. var faIdCardAlt = { prefix: 'fas', iconName: 'id-card-alt', icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"] };
  3120. var faImage = { prefix: 'fas', iconName: 'image', icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"] };
  3121. var faImages = { prefix: 'fas', iconName: 'images', icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"] };
  3122. var faInbox = { prefix: 'fas', iconName: 'inbox', icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"] };
  3123. var faIndent = { prefix: 'fas', iconName: 'indent', icon: [448, 512, [], "f03c", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"] };
  3124. var faIndustry = { prefix: 'fas', iconName: 'industry', icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"] };
  3125. var faInfinity = { prefix: 'fas', iconName: 'infinity', icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"] };
  3126. var faInfo = { prefix: 'fas', iconName: 'info', icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"] };
  3127. var faInfoCircle = { prefix: 'fas', iconName: 'info-circle', icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"] };
  3128. var faItalic = { prefix: 'fas', iconName: 'italic', icon: [320, 512, [], "f033", "M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"] };
  3129. var faJedi = { prefix: 'fas', iconName: 'jedi', icon: [544, 512, [], "f669", "M479.99 352l58.88-58.87c3.29-16.8 5.13-34.12 5.13-51.86 0-5.81-.68-11.51-1.05-17.27H496l41.25-41.24c-14.5-64.79-52.43-123.05-107.91-162.27-2.77-1.96-5.97-2.99-9.25-2.99-5.37 0-10.41 2.71-13.49 7.24-3.05 4.49-3.64 9.99-1.61 15.09 6.55 16.46 9.86 33.73 9.86 51.31 0 45.12-21.03 86.57-57.69 113.73-4.02 2.98-6.46 7.5-6.7 12.4-.24 4.92 1.76 9.66 5.49 13.03 32.93 29.75 47.35 73.51 38.57 117.07-9.74 48.35-48.84 87.1-97.31 96.5l-2.5-65.34L321.88 397c2.98 2.06 7.39 1.69 10.02-.8a8.002 8.002 0 0 0 1.34-9.92l-20.11-33.73 42.07-8.72c3.7-.75 6.38-4.05 6.38-7.83 0-3.77-2.69-7.06-6.38-7.83l-42.07-8.73 20.13-33.77c1.92-3.23 1.34-7.31-1.38-9.91-2.7-2.55-6.97-2.89-10-.8l-30.39 20.67L279.96 7.7a7.964 7.964 0 0 0-8-7.7c-4.33 0-7.84 3.38-8 7.67l-11.52 287.97-30.39-20.66c-3.14-2.12-7.27-1.83-10 .78-2.72 2.59-3.3 6.67-1.36 9.94l20.11 33.73-42.07 8.73c-3.7.75-6.38 4.05-6.38 7.83s2.67 7.08 6.38 7.83l42.07 8.72-20.13 33.77c-1.92 3.23-1.34 7.33 1.39 9.94 2.59 2.45 7.03 2.75 10 .75l27.16-18.48-2.5 65.26c-56.94-11.64-99.89-61.89-99.89-121.92 0-35.08 14.62-67.6 41.17-91.58 3.72-3.36 5.72-8.11 5.48-13.01-.24-4.9-2.68-9.41-6.69-12.38-36.67-27.16-57.71-68.62-57.71-113.74 0-17.56 3.31-34.81 9.84-51.26 2.02-5.09 1.43-10.59-1.62-15.09-3.08-4.54-8.13-7.25-13.51-7.25-3.3 0-6.5 1.04-9.27 3-55.87 39.52-93.6 97.37-107.97 162.07L47.93 224H.72c-.63 9.92-.97 19.91-.5 29.99.62 13.43 2.54 26.53 5.11 39.41l58.6 58.6H24.02c41.25 90.23 131.13 154.94 235.1 159.71 4.3.2 8.59.29 12.85.29 110.34 0 205.35-65.83 247.98-160h-39.96z"] };
  3130. var faJoint = { prefix: 'fas', iconName: 'joint', icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"] };
  3131. var faJournalWhills = { prefix: 'fas', iconName: 'journal-whills', icon: [448, 512, [], "f66a", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM133.08 144.39l21.26 21.26c1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34c3.12-3.12 3.12-8.19 0-11.31l-26.42-26.42c10-20.9 26.24-37.97 46.37-49.26C179.62 88.4 176 99.74 176 112c0 19.96 9.33 37.57 23.66 49.31C190.01 171.37 184 184.96 184 200c0 26.94 19.04 49.4 44.38 54.76l1.36-32.71-10.37 7.04c-.69.45-1.47.69-2.25.69-1 0-1.98-.38-2.75-1.09a4.006 4.006 0 0 1-.69-4.95l8.54-14.31-17.91-3.72c-1.86-.39-3.19-2.03-3.19-3.92s1.33-3.53 3.19-3.92l17.91-3.72-8.54-14.31c-.95-1.61-.67-3.67.69-4.95 1.36-1.3 3.44-1.44 5-.41l12.01 8.16L236 71.83c.09-2.14 1.86-3.83 4-3.83s3.91 1.69 4 3.83l4.68 112.29 14.2-9.65a4.067 4.067 0 0 1 5 .41 4.006 4.006 0 0 1 .69 4.95l-8.54 14.31 17.91 3.72c1.86.39 3.19 2.03 3.19 3.92s-1.33 3.53-3.19 3.92l-17.91 3.72 8.54 14.31c.95 1.61.67 3.67-.69 4.95-.77.72-1.77 1.09-2.75 1.09-.78 0-1.56-.23-2.25-.69l-12.68-8.62 1.43 34.28C276.96 249.4 296 226.94 296 200c0-15.04-6.01-28.63-15.66-38.69C294.67 149.57 304 131.96 304 112c0-12.26-3.62-23.6-9.6-33.33 20.13 11.28 36.37 28.36 46.37 49.26l-26.42 26.42c-3.12 3.12-3.12 8.19 0 11.31 1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34l21.26-21.26c2.97 10.08 5.07 20.55 5.07 31.6 0 .52-.14.99-.15 1.51l-37.11 32.47a7.975 7.975 0 0 0-.75 11.28 7.97 7.97 0 0 0 6.02 2.73c1.88 0 3.75-.66 5.27-1.98l23.59-20.64C337.32 250.96 293.09 288 240 288s-97.32-37.04-108.86-86.62l23.59 20.64A7.957 7.957 0 0 0 160 224c2.22 0 4.44-.92 6.02-2.73 2.92-3.33 2.58-8.38-.75-11.28l-37.11-32.47c-.01-.52-.15-.99-.15-1.51-.01-11.06 2.09-21.53 5.07-31.62zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3132. var faKaaba = { prefix: 'fas', iconName: 'kaaba', icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"] };
  3133. var faKey = { prefix: 'fas', iconName: 'key', icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"] };
  3134. var faKeyboard = { prefix: 'fas', iconName: 'keyboard', icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3135. var faKhanda = { prefix: 'fas', iconName: 'khanda', icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"] };
  3136. var faKiss = { prefix: 'fas', iconName: 'kiss', icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3137. var faKissBeam = { prefix: 'fas', iconName: 'kiss-beam', icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"] };
  3138. var faKissWinkHeart = { prefix: 'fas', iconName: 'kiss-wink-heart', icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"] };
  3139. var faKiwiBird = { prefix: 'fas', iconName: 'kiwi-bird', icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"] };
  3140. var faLandmark = { prefix: 'fas', iconName: 'landmark', icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3141. var faLanguage = { prefix: 'fas', iconName: 'language', icon: [640, 512, [], "f1ab", "M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"] };
  3142. var faLaptop = { prefix: 'fas', iconName: 'laptop', icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3143. var faLaptopCode = { prefix: 'fas', iconName: 'laptop-code', icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3144. var faLaugh = { prefix: 'fas', iconName: 'laugh', icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"] };
  3145. var faLaughBeam = { prefix: 'fas', iconName: 'laugh-beam', icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3146. var faLaughSquint = { prefix: 'fas', iconName: 'laugh-squint', icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3147. var faLaughWink = { prefix: 'fas', iconName: 'laugh-wink', icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3148. var faLayerGroup = { prefix: 'fas', iconName: 'layer-group', icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"] };
  3149. var faLeaf = { prefix: 'fas', iconName: 'leaf', icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"] };
  3150. var faLemon = { prefix: 'fas', iconName: 'lemon', icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"] };
  3151. var faLessThan = { prefix: 'fas', iconName: 'less-than', icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"] };
  3152. var faLessThanEqual = { prefix: 'fas', iconName: 'less-than-equal', icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3153. var faLevelDownAlt = { prefix: 'fas', iconName: 'level-down-alt', icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"] };
  3154. var faLevelUpAlt = { prefix: 'fas', iconName: 'level-up-alt', icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"] };
  3155. var faLifeRing = { prefix: 'fas', iconName: 'life-ring', icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"] };
  3156. var faLightbulb = { prefix: 'fas', iconName: 'lightbulb', icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3157. var faLink = { prefix: 'fas', iconName: 'link', icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"] };
  3158. var faLiraSign = { prefix: 'fas', iconName: 'lira-sign', icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"] };
  3159. var faList = { prefix: 'fas', iconName: 'list', icon: [512, 512, [], "f03a", "M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"] };
  3160. var faListAlt = { prefix: 'fas', iconName: 'list-alt', icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"] };
  3161. var faListOl = { prefix: 'fas', iconName: 'list-ol', icon: [512, 512, [], "f0cb", "M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3162. var faListUl = { prefix: 'fas', iconName: 'list-ul', icon: [512, 512, [], "f0ca", "M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3163. var faLocationArrow = { prefix: 'fas', iconName: 'location-arrow', icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"] };
  3164. var faLock = { prefix: 'fas', iconName: 'lock', icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"] };
  3165. var faLockOpen = { prefix: 'fas', iconName: 'lock-open', icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"] };
  3166. var faLongArrowAltDown = { prefix: 'fas', iconName: 'long-arrow-alt-down', icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"] };
  3167. var faLongArrowAltLeft = { prefix: 'fas', iconName: 'long-arrow-alt-left', icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"] };
  3168. var faLongArrowAltRight = { prefix: 'fas', iconName: 'long-arrow-alt-right', icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"] };
  3169. var faLongArrowAltUp = { prefix: 'fas', iconName: 'long-arrow-alt-up', icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"] };
  3170. var faLowVision = { prefix: 'fas', iconName: 'low-vision', icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"] };
  3171. var faLuggageCart = { prefix: 'fas', iconName: 'luggage-cart', icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"] };
  3172. var faMagic = { prefix: 'fas', iconName: 'magic', icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"] };
  3173. var faMagnet = { prefix: 'fas', iconName: 'magnet', icon: [512, 512, [], "f076", "M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"] };
  3174. var faMailBulk = { prefix: 'fas', iconName: 'mail-bulk', icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"] };
  3175. var faMale = { prefix: 'fas', iconName: 'male', icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"] };
  3176. var faMap = { prefix: 'fas', iconName: 'map', icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3177. var faMapMarked = { prefix: 'fas', iconName: 'map-marked', icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3178. var faMapMarkedAlt = { prefix: 'fas', iconName: 'map-marked-alt', icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3179. var faMapMarker = { prefix: 'fas', iconName: 'map-marker', icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"] };
  3180. var faMapMarkerAlt = { prefix: 'fas', iconName: 'map-marker-alt', icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"] };
  3181. var faMapPin = { prefix: 'fas', iconName: 'map-pin', icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"] };
  3182. var faMapSigns = { prefix: 'fas', iconName: 'map-signs', icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"] };
  3183. var faMarker = { prefix: 'fas', iconName: 'marker', icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"] };
  3184. var faMars = { prefix: 'fas', iconName: 'mars', icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3185. var faMarsDouble = { prefix: 'fas', iconName: 'mars-double', icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"] };
  3186. var faMarsStroke = { prefix: 'fas', iconName: 'mars-stroke', icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3187. var faMarsStrokeH = { prefix: 'fas', iconName: 'mars-stroke-h', icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3188. var faMarsStrokeV = { prefix: 'fas', iconName: 'mars-stroke-v', icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3189. var faMask = { prefix: 'fas', iconName: 'mask', icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"] };
  3190. var faMedal = { prefix: 'fas', iconName: 'medal', icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"] };
  3191. var faMedkit = { prefix: 'fas', iconName: 'medkit', icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"] };
  3192. var faMeh = { prefix: 'fas', iconName: 'meh', icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3193. var faMehBlank = { prefix: 'fas', iconName: 'meh-blank', icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3194. var faMehRollingEyes = { prefix: 'fas', iconName: 'meh-rolling-eyes', icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"] };
  3195. var faMemory = { prefix: 'fas', iconName: 'memory', icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"] };
  3196. var faMenorah = { prefix: 'fas', iconName: 'menorah', icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"] };
  3197. var faMercury = { prefix: 'fas', iconName: 'mercury', icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3198. var faMicrochip = { prefix: 'fas', iconName: 'microchip', icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"] };
  3199. var faMicrophone = { prefix: 'fas', iconName: 'microphone', icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"] };
  3200. var faMicrophoneAlt = { prefix: 'fas', iconName: 'microphone-alt', icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"] };
  3201. var faMicrophoneAltSlash = { prefix: 'fas', iconName: 'microphone-alt-slash', icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3202. var faMicrophoneSlash = { prefix: 'fas', iconName: 'microphone-slash', icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3203. var faMicroscope = { prefix: 'fas', iconName: 'microscope', icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"] };
  3204. var faMinus = { prefix: 'fas', iconName: 'minus', icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3205. var faMinusCircle = { prefix: 'fas', iconName: 'minus-circle', icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"] };
  3206. var faMinusSquare = { prefix: 'fas', iconName: 'minus-square', icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"] };
  3207. var faMobile = { prefix: 'fas', iconName: 'mobile', icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3208. var faMobileAlt = { prefix: 'fas', iconName: 'mobile-alt', icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"] };
  3209. var faMoneyBill = { prefix: 'fas', iconName: 'money-bill', icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3210. var faMoneyBillAlt = { prefix: 'fas', iconName: 'money-bill-alt', icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3211. var faMoneyBillWave = { prefix: 'fas', iconName: 'money-bill-wave', icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"] };
  3212. var faMoneyBillWaveAlt = { prefix: 'fas', iconName: 'money-bill-wave-alt', icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"] };
  3213. var faMoneyCheck = { prefix: 'fas', iconName: 'money-check', icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"] };
  3214. var faMoneyCheckAlt = { prefix: 'fas', iconName: 'money-check-alt', icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"] };
  3215. var faMonument = { prefix: 'fas', iconName: 'monument', icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3216. var faMoon = { prefix: 'fas', iconName: 'moon', icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"] };
  3217. var faMortarPestle = { prefix: 'fas', iconName: 'mortar-pestle', icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3218. var faMosque = { prefix: 'fas', iconName: 'mosque', icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"] };
  3219. var faMotorcycle = { prefix: 'fas', iconName: 'motorcycle', icon: [640, 512, [], "f21c", "M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"] };
  3220. var faMountain = { prefix: 'fas', iconName: 'mountain', icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"] };
  3221. var faMousePointer = { prefix: 'fas', iconName: 'mouse-pointer', icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"] };
  3222. var faMusic = { prefix: 'fas', iconName: 'music', icon: [512, 512, [], "f001", "M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"] };
  3223. var faNetworkWired = { prefix: 'fas', iconName: 'network-wired', icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"] };
  3224. var faNeuter = { prefix: 'fas', iconName: 'neuter', icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3225. var faNewspaper = { prefix: 'fas', iconName: 'newspaper', icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"] };
  3226. var faNotEqual = { prefix: 'fas', iconName: 'not-equal', icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"] };
  3227. var faNotesMedical = { prefix: 'fas', iconName: 'notes-medical', icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"] };
  3228. var faObjectGroup = { prefix: 'fas', iconName: 'object-group', icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"] };
  3229. var faObjectUngroup = { prefix: 'fas', iconName: 'object-ungroup', icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"] };
  3230. var faOilCan = { prefix: 'fas', iconName: 'oil-can', icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"] };
  3231. var faOm = { prefix: 'fas', iconName: 'om', icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"] };
  3232. var faOtter = { prefix: 'fas', iconName: 'otter', icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"] };
  3233. var faOutdent = { prefix: 'fas', iconName: 'outdent', icon: [448, 512, [], "f03b", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"] };
  3234. var faPaintBrush = { prefix: 'fas', iconName: 'paint-brush', icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"] };
  3235. var faPaintRoller = { prefix: 'fas', iconName: 'paint-roller', icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"] };
  3236. var faPalette = { prefix: 'fas', iconName: 'palette', icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3237. var faPallet = { prefix: 'fas', iconName: 'pallet', icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"] };
  3238. var faPaperPlane = { prefix: 'fas', iconName: 'paper-plane', icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"] };
  3239. var faPaperclip = { prefix: 'fas', iconName: 'paperclip', icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"] };
  3240. var faParachuteBox = { prefix: 'fas', iconName: 'parachute-box', icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"] };
  3241. var faParagraph = { prefix: 'fas', iconName: 'paragraph', icon: [448, 512, [], "f1dd", "M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"] };
  3242. var faParking = { prefix: 'fas', iconName: 'parking', icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"] };
  3243. var faPassport = { prefix: 'fas', iconName: 'passport', icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"] };
  3244. var faPastafarianism = { prefix: 'fas', iconName: 'pastafarianism', icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"] };
  3245. var faPaste = { prefix: 'fas', iconName: 'paste', icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"] };
  3246. var faPause = { prefix: 'fas', iconName: 'pause', icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"] };
  3247. var faPauseCircle = { prefix: 'fas', iconName: 'pause-circle', icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"] };
  3248. var faPaw = { prefix: 'fas', iconName: 'paw', icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"] };
  3249. var faPeace = { prefix: 'fas', iconName: 'peace', icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"] };
  3250. var faPen = { prefix: 'fas', iconName: 'pen', icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"] };
  3251. var faPenAlt = { prefix: 'fas', iconName: 'pen-alt', icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"] };
  3252. var faPenFancy = { prefix: 'fas', iconName: 'pen-fancy', icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"] };
  3253. var faPenNib = { prefix: 'fas', iconName: 'pen-nib', icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"] };
  3254. var faPenSquare = { prefix: 'fas', iconName: 'pen-square', icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"] };
  3255. var faPencilAlt = { prefix: 'fas', iconName: 'pencil-alt', icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"] };
  3256. var faPencilRuler = { prefix: 'fas', iconName: 'pencil-ruler', icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"] };
  3257. var faPeopleCarry = { prefix: 'fas', iconName: 'people-carry', icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"] };
  3258. var faPercent = { prefix: 'fas', iconName: 'percent', icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"] };
  3259. var faPercentage = { prefix: 'fas', iconName: 'percentage', icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"] };
  3260. var faPhone = { prefix: 'fas', iconName: 'phone', icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"] };
  3261. var faPhoneSlash = { prefix: 'fas', iconName: 'phone-slash', icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3262. var faPhoneSquare = { prefix: 'fas', iconName: 'phone-square', icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"] };
  3263. var faPhoneVolume = { prefix: 'fas', iconName: 'phone-volume', icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"] };
  3264. var faPiggyBank = { prefix: 'fas', iconName: 'piggy-bank', icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"] };
  3265. var faPills = { prefix: 'fas', iconName: 'pills', icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"] };
  3266. var faPlaceOfWorship = { prefix: 'fas', iconName: 'place-of-worship', icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"] };
  3267. var faPlane = { prefix: 'fas', iconName: 'plane', icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"] };
  3268. var faPlaneArrival = { prefix: 'fas', iconName: 'plane-arrival', icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"] };
  3269. var faPlaneDeparture = { prefix: 'fas', iconName: 'plane-departure', icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"] };
  3270. var faPlay = { prefix: 'fas', iconName: 'play', icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"] };
  3271. var faPlayCircle = { prefix: 'fas', iconName: 'play-circle', icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"] };
  3272. var faPlug = { prefix: 'fas', iconName: 'plug', icon: [384, 512, [], "f1e6", "M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"] };
  3273. var faPlus = { prefix: 'fas', iconName: 'plus', icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3274. var faPlusCircle = { prefix: 'fas', iconName: 'plus-circle', icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3275. var faPlusSquare = { prefix: 'fas', iconName: 'plus-square', icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3276. var faPodcast = { prefix: 'fas', iconName: 'podcast', icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"] };
  3277. var faPoll = { prefix: 'fas', iconName: 'poll', icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"] };
  3278. var faPollH = { prefix: 'fas', iconName: 'poll-h', icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"] };
  3279. var faPoo = { prefix: 'fas', iconName: 'poo', icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3280. var faPoop = { prefix: 'fas', iconName: 'poop', icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"] };
  3281. var faPortrait = { prefix: 'fas', iconName: 'portrait', icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3282. var faPoundSign = { prefix: 'fas', iconName: 'pound-sign', icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"] };
  3283. var faPowerOff = { prefix: 'fas', iconName: 'power-off', icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"] };
  3284. var faPray = { prefix: 'fas', iconName: 'pray', icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"] };
  3285. var faPrayingHands = { prefix: 'fas', iconName: 'praying-hands', icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"] };
  3286. var faPrescription = { prefix: 'fas', iconName: 'prescription', icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"] };
  3287. var faPrescriptionBottle = { prefix: 'fas', iconName: 'prescription-bottle', icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"] };
  3288. var faPrescriptionBottleAlt = { prefix: 'fas', iconName: 'prescription-bottle-alt', icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"] };
  3289. var faPrint = { prefix: 'fas', iconName: 'print', icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3290. var faProcedures = { prefix: 'fas', iconName: 'procedures', icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"] };
  3291. var faProjectDiagram = { prefix: 'fas', iconName: 'project-diagram', icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"] };
  3292. var faPuzzlePiece = { prefix: 'fas', iconName: 'puzzle-piece', icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"] };
  3293. var faQrcode = { prefix: 'fas', iconName: 'qrcode', icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"] };
  3294. var faQuestion = { prefix: 'fas', iconName: 'question', icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"] };
  3295. var faQuestionCircle = { prefix: 'fas', iconName: 'question-circle', icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"] };
  3296. var faQuidditch = { prefix: 'fas', iconName: 'quidditch', icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"] };
  3297. var faQuoteLeft = { prefix: 'fas', iconName: 'quote-left', icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3298. var faQuoteRight = { prefix: 'fas', iconName: 'quote-right', icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"] };
  3299. var faQuran = { prefix: 'fas', iconName: 'quran', icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3300. var faRandom = { prefix: 'fas', iconName: 'random', icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"] };
  3301. var faReceipt = { prefix: 'fas', iconName: 'receipt', icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"] };
  3302. var faRecycle = { prefix: 'fas', iconName: 'recycle', icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"] };
  3303. var faRedo = { prefix: 'fas', iconName: 'redo', icon: [512, 512, [], "f01e", "M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"] };
  3304. var faRedoAlt = { prefix: 'fas', iconName: 'redo-alt', icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"] };
  3305. var faRegistered = { prefix: 'fas', iconName: 'registered', icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"] };
  3306. var faReply = { prefix: 'fas', iconName: 'reply', icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"] };
  3307. var faReplyAll = { prefix: 'fas', iconName: 'reply-all', icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"] };
  3308. var faRetweet = { prefix: 'fas', iconName: 'retweet', icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"] };
  3309. var faRibbon = { prefix: 'fas', iconName: 'ribbon', icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"] };
  3310. var faRing = { prefix: 'fas', iconName: 'ring', icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"] };
  3311. var faRoad = { prefix: 'fas', iconName: 'road', icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"] };
  3312. var faRobot = { prefix: 'fas', iconName: 'robot', icon: [640, 512, [], "f544", "M0 256v128c0 17.7 14.3 32 32 32h32V224H32c-17.7 0-32 14.3-32 32zM464 96H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H176c-44.2 0-80 35.8-80 80v272c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V176c0-44.2-35.8-80-80-80zM256 416h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm128 120h-64v-32h64v32zm96 0h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm192-72h-32v192h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32z"] };
  3313. var faRocket = { prefix: 'fas', iconName: 'rocket', icon: [512, 512, [], "f135", "M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3314. var faRoute = { prefix: 'fas', iconName: 'route', icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3315. var faRss = { prefix: 'fas', iconName: 'rss', icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"] };
  3316. var faRssSquare = { prefix: 'fas', iconName: 'rss-square', icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"] };
  3317. var faRubleSign = { prefix: 'fas', iconName: 'ruble-sign', icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"] };
  3318. var faRuler = { prefix: 'fas', iconName: 'ruler', icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"] };
  3319. var faRulerCombined = { prefix: 'fas', iconName: 'ruler-combined', icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3320. var faRulerHorizontal = { prefix: 'fas', iconName: 'ruler-horizontal', icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"] };
  3321. var faRulerVertical = { prefix: 'fas', iconName: 'ruler-vertical', icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"] };
  3322. var faRunning = { prefix: 'fas', iconName: 'running', icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"] };
  3323. var faRupeeSign = { prefix: 'fas', iconName: 'rupee-sign', icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"] };
  3324. var faSadCry = { prefix: 'fas', iconName: 'sad-cry', icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"] };
  3325. var faSadTear = { prefix: 'fas', iconName: 'sad-tear', icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"] };
  3326. var faSave = { prefix: 'fas', iconName: 'save', icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"] };
  3327. var faSchool = { prefix: 'fas', iconName: 'school', icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"] };
  3328. var faScrewdriver = { prefix: 'fas', iconName: 'screwdriver', icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"] };
  3329. var faScroll = { prefix: 'fas', iconName: 'scroll', icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"] };
  3330. var faSearch = { prefix: 'fas', iconName: 'search', icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"] };
  3331. var faSearchDollar = { prefix: 'fas', iconName: 'search-dollar', icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"] };
  3332. var faSearchLocation = { prefix: 'fas', iconName: 'search-location', icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3333. var faSearchMinus = { prefix: 'fas', iconName: 'search-minus', icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3334. var faSearchPlus = { prefix: 'fas', iconName: 'search-plus', icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3335. var faSeedling = { prefix: 'fas', iconName: 'seedling', icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"] };
  3336. var faServer = { prefix: 'fas', iconName: 'server', icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"] };
  3337. var faShapes = { prefix: 'fas', iconName: 'shapes', icon: [512, 512, [], "f61f", "M512 320v160c0 17.67-14.33 32-32 32H320c-17.67 0-32-14.33-32-32V320c0-17.67 14.33-32 32-32h160c17.67 0 32 14.33 32 32zm-384-64C57.31 256 0 313.31 0 384s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm351.03-32c25.34 0 41.18-26.67 28.51-48L412.51 16c-12.67-21.33-44.35-21.33-57.02 0l-95.03 160c-12.67 21.33 3.17 48 28.51 48h190.06z"] };
  3338. var faShare = { prefix: 'fas', iconName: 'share', icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"] };
  3339. var faShareAlt = { prefix: 'fas', iconName: 'share-alt', icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"] };
  3340. var faShareAltSquare = { prefix: 'fas', iconName: 'share-alt-square', icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"] };
  3341. var faShareSquare = { prefix: 'fas', iconName: 'share-square', icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"] };
  3342. var faShekelSign = { prefix: 'fas', iconName: 'shekel-sign', icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"] };
  3343. var faShieldAlt = { prefix: 'fas', iconName: 'shield-alt', icon: [512, 512, [], "f3ed", "M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"] };
  3344. var faShip = { prefix: 'fas', iconName: 'ship', icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"] };
  3345. var faShippingFast = { prefix: 'fas', iconName: 'shipping-fast', icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3346. var faShoePrints = { prefix: 'fas', iconName: 'shoe-prints', icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"] };
  3347. var faShoppingBag = { prefix: 'fas', iconName: 'shopping-bag', icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"] };
  3348. var faShoppingBasket = { prefix: 'fas', iconName: 'shopping-basket', icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"] };
  3349. var faShoppingCart = { prefix: 'fas', iconName: 'shopping-cart', icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"] };
  3350. var faShower = { prefix: 'fas', iconName: 'shower', icon: [512, 512, [], "f2cc", "M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"] };
  3351. var faShuttleVan = { prefix: 'fas', iconName: 'shuttle-van', icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"] };
  3352. var faSign = { prefix: 'fas', iconName: 'sign', icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"] };
  3353. var faSignInAlt = { prefix: 'fas', iconName: 'sign-in-alt', icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"] };
  3354. var faSignLanguage = { prefix: 'fas', iconName: 'sign-language', icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"] };
  3355. var faSignOutAlt = { prefix: 'fas', iconName: 'sign-out-alt', icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"] };
  3356. var faSignal = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3357. var faSignature = { prefix: 'fas', iconName: 'signature', icon: [512, 512, [], "f5b7", "M496 320h-91.86c-9.27 0-19.72-11.31-25.78-28.52-15.23-43.36-48.11-70.3-85.8-70.3-30.84 0-58.47 18.05-76.11 49.23L194.8 106.5C188.84 81.08 169.34 64 146.28 64c-23.05 0-42.55 17.08-48.5 42.5L56.16 284.2C50.7 307.45 37.75 320 28.33 320H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h12.33c41.97 0 78.19-34.23 90.14-85.2l23.84-101.78 29.25 222.11c1.98 15.05 13.82 27.45 28.94 28.75.99.09 1.96.13 2.93.13 14.08 0 26.64-9.27 30.69-22.95l33.03-112.34c5.88-16.72 15.84-27.52 25.41-27.52 9.58 0 19.55 10.8 25.78 28.52 15.23 43.36 48.11 70.3 85.8 70.3H496c8.84 0 16-7.16 16-16v-32c0-8.86-7.16-16.02-16-16.02z"] };
  3358. var faSitemap = { prefix: 'fas', iconName: 'sitemap', icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3359. var faSkull = { prefix: 'fas', iconName: 'skull', icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"] };
  3360. var faSkullCrossbones = { prefix: 'fas', iconName: 'skull-crossbones', icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"] };
  3361. var faSlash = { prefix: 'fas', iconName: 'slash', icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"] };
  3362. var faSlidersH = { prefix: 'fas', iconName: 'sliders-h', icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"] };
  3363. var faSmile = { prefix: 'fas', iconName: 'smile', icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"] };
  3364. var faSmileBeam = { prefix: 'fas', iconName: 'smile-beam', icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"] };
  3365. var faSmileWink = { prefix: 'fas', iconName: 'smile-wink', icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"] };
  3366. var faSmoking = { prefix: 'fas', iconName: 'smoking', icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"] };
  3367. var faSmokingBan = { prefix: 'fas', iconName: 'smoking-ban', icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"] };
  3368. var faSnowflake = { prefix: 'fas', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M444.816 301.639a24.12 24.12 0 0 0 2.661-16.978c-2.725-12.966-15.339-21.245-28.174-18.492l-87.407 25.046L264 256l67.896-35.215 87.407 25.046c12.835 2.753 25.449-5.526 28.174-18.492 2.725-12.966-5.471-25.708-18.305-28.461l-47.477-7.137 53.077-30.956c11.363-6.627 15.257-21.306 8.696-32.785-6.561-11.479-21.091-15.412-32.454-8.785l-53.077 30.956 17.621-45.104c4.057-12.606-2.768-26.146-15.247-30.245-12.478-4.099-25.883 2.797-29.94 15.402l-22.232 88.99-60.38 35.215V144l65.175-63.945c8.778-9.852 7.987-25.027-1.766-33.894-9.753-8.867-24.775-8.068-33.552 1.784l-29.857 37.967V24c0-13.255-10.637-24-23.758-24s-23.758 10.745-23.758 24v61.912l-29.857-37.967c-8.779-9.852-23.799-10.652-33.552-1.784-9.753 8.867-10.543 24.042-1.766 33.894L200.242 144v70.431l-60.38-35.215-22.232-88.99c-4.057-12.605-17.462-19.501-29.94-15.402-12.478 4.099-19.304 17.64-15.247 30.245l17.62 45.104-53.077-30.956c-11.363-6.627-25.893-2.694-32.454 8.785s-2.667 26.157 8.696 32.785l53.077 30.956-47.477 7.137C5.993 201.634-2.203 214.375.523 227.341c2.725 12.965 15.339 21.245 28.174 18.492l87.407-25.046L184 256l-67.896 35.215-87.406-25.045c-12.835-2.753-25.449 5.526-28.174 18.492-2.725 12.967 5.47 25.708 18.305 28.461l47.477 7.137-53.077 30.956C1.866 357.843-2.027 372.521 4.533 384s21.091 15.412 32.454 8.785l53.077-30.956-17.62 45.104a24.157 24.157 0 0 0 2.022 19.428c2.831 4.953 7.416 8.909 13.224 10.816 12.478 4.099 25.883-2.797 29.94-15.402l22.232-88.99 60.38-35.215V368l-65.175 63.945c-8.778 9.852-7.987 25.027 1.766 33.894 9.754 8.868 24.774 8.068 33.552-1.784l29.857-37.967V488c0 13.255 10.637 24 23.758 24s23.758-10.745 23.758-24v-61.912l29.857 37.967A23.59 23.59 0 0 0 295.282 472a23.534 23.534 0 0 0 15.885-6.161c9.753-8.867 10.544-24.042 1.766-33.894L247.758 368v-70.431l60.38 35.215 22.232 88.99c4.057 12.605 17.462 19.501 29.94 15.402 12.479-4.099 19.304-17.64 15.247-30.245l-17.621-45.104 53.077 30.956c11.363 6.627 25.893 2.694 32.454-8.785s2.667-26.157-8.696-32.785l-53.077-30.956 47.477-7.137c6.86-1.469 12.394-5.793 15.645-11.481z"] };
  3369. var faSocks = { prefix: 'fas', iconName: 'socks', icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"] };
  3370. var faSolarPanel = { prefix: 'fas', iconName: 'solar-panel', icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"] };
  3371. var faSort = { prefix: 'fas', iconName: 'sort', icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"] };
  3372. var faSortAlphaDown = { prefix: 'fas', iconName: 'sort-alpha-down', icon: [448, 512, [], "f15d", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3373. var faSortAlphaUp = { prefix: 'fas', iconName: 'sort-alpha-up', icon: [448, 512, [], "f15e", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3374. var faSortAmountDown = { prefix: 'fas', iconName: 'sort-amount-down', icon: [512, 512, [], "f160", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3375. var faSortAmountUp = { prefix: 'fas', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3376. var faSortDown = { prefix: 'fas', iconName: 'sort-down', icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"] };
  3377. var faSortNumericDown = { prefix: 'fas', iconName: 'sort-numeric-down', icon: [448, 512, [], "f162", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"] };
  3378. var faSortNumericUp = { prefix: 'fas', iconName: 'sort-numeric-up', icon: [448, 512, [], "f163", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"] };
  3379. var faSortUp = { prefix: 'fas', iconName: 'sort-up', icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"] };
  3380. var faSpa = { prefix: 'fas', iconName: 'spa', icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"] };
  3381. var faSpaceShuttle = { prefix: 'fas', iconName: 'space-shuttle', icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"] };
  3382. var faSpider = { prefix: 'fas', iconName: 'spider', icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"] };
  3383. var faSpinner = { prefix: 'fas', iconName: 'spinner', icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"] };
  3384. var faSplotch = { prefix: 'fas', iconName: 'splotch', icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"] };
  3385. var faSprayCan = { prefix: 'fas', iconName: 'spray-can', icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3386. var faSquare = { prefix: 'fas', iconName: 'square', icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3387. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3388. var faSquareRootAlt = { prefix: 'fas', iconName: 'square-root-alt', icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"] };
  3389. var faStamp = { prefix: 'fas', iconName: 'stamp', icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"] };
  3390. var faStar = { prefix: 'fas', iconName: 'star', icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"] };
  3391. var faStarAndCrescent = { prefix: 'fas', iconName: 'star-and-crescent', icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"] };
  3392. var faStarHalf = { prefix: 'fas', iconName: 'star-half', icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"] };
  3393. var faStarHalfAlt = { prefix: 'fas', iconName: 'star-half-alt', icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"] };
  3394. var faStarOfDavid = { prefix: 'fas', iconName: 'star-of-david', icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"] };
  3395. var faStarOfLife = { prefix: 'fas', iconName: 'star-of-life', icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"] };
  3396. var faStepBackward = { prefix: 'fas', iconName: 'step-backward', icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"] };
  3397. var faStepForward = { prefix: 'fas', iconName: 'step-forward', icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"] };
  3398. var faStethoscope = { prefix: 'fas', iconName: 'stethoscope', icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3399. var faStickyNote = { prefix: 'fas', iconName: 'sticky-note', icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"] };
  3400. var faStop = { prefix: 'fas', iconName: 'stop', icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3401. var faStopCircle = { prefix: 'fas', iconName: 'stop-circle', icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"] };
  3402. var faStopwatch = { prefix: 'fas', iconName: 'stopwatch', icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3403. var faStore = { prefix: 'fas', iconName: 'store', icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"] };
  3404. var faStoreAlt = { prefix: 'fas', iconName: 'store-alt', icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"] };
  3405. var faStream = { prefix: 'fas', iconName: 'stream', icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"] };
  3406. var faStreetView = { prefix: 'fas', iconName: 'street-view', icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"] };
  3407. var faStrikethrough = { prefix: 'fas', iconName: 'strikethrough', icon: [512, 512, [], "f0cc", "M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"] };
  3408. var faStroopwafel = { prefix: 'fas', iconName: 'stroopwafel', icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"] };
  3409. var faSubscript = { prefix: 'fas', iconName: 'subscript', icon: [512, 512, [], "f12c", "M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"] };
  3410. var faSubway = { prefix: 'fas', iconName: 'subway', icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3411. var faSuitcase = { prefix: 'fas', iconName: 'suitcase', icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"] };
  3412. var faSuitcaseRolling = { prefix: 'fas', iconName: 'suitcase-rolling', icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"] };
  3413. var faSun = { prefix: 'fas', iconName: 'sun', icon: [512, 512, [], "f185", "M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"] };
  3414. var faSuperscript = { prefix: 'fas', iconName: 'superscript', icon: [512, 512, [], "f12b", "M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"] };
  3415. var faSurprise = { prefix: 'fas', iconName: 'surprise', icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3416. var faSwatchbook = { prefix: 'fas', iconName: 'swatchbook', icon: [511, 512, [], "f5c3", "M479.06 320H372.29L186.15 506.51c-2.06 2.07-4.49 3.58-6.67 5.49h299.58c17.64 0 31.94-14.33 31.94-32V352c0-17.67-14.3-32-31.94-32zm-44.5-152.9l-90.33-90.51c-12.47-12.5-32.69-12.5-45.17 0l-75.5 75.65V416c0 2.96-.67 5.73-.87 8.64l211.87-212.28c12.47-12.5 12.47-32.77 0-45.26zM191.62 32c0-17.67-14.3-32-31.94-32H31.94C14.3 0 0 14.33 0 32v384c0 53.02 42.9 96 95.81 96s95.81-42.98 95.81-96V32zM95.81 440c-13.23 0-23.95-10.75-23.95-24 0-13.26 10.73-24 23.95-24s23.95 10.74 23.95 24c.01 13.25-10.72 24-23.95 24zm31.94-184H63.88v-64h63.88v64zm0-128H63.88V64h63.88v64z"] };
  3417. var faSwimmer = { prefix: 'fas', iconName: 'swimmer', icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"] };
  3418. var faSwimmingPool = { prefix: 'fas', iconName: 'swimming-pool', icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"] };
  3419. var faSynagogue = { prefix: 'fas', iconName: 'synagogue', icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"] };
  3420. var faSync = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.104 77.801l-101.53-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12h-47.411c-6.853 0-12.315 5.729-11.987 12.574zM256 432c-60.895 0-114.517-30.858-146.109-77.805l101.868 4.871c6.845.327 12.573-5.134 12.573-11.986v-47.412c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12V500c0 6.627 5.373 12 12 12h47.385c6.863 0 12.328-5.745 11.985-12.599l-4.129-82.575C112.725 470.166 180.405 504 256 504c121.187 0 222.067-86.924 243.704-201.824 1.388-7.369-4.308-14.176-11.807-14.176h-49.084c-5.57 0-10.377 3.842-11.676 9.259C408.593 374.592 339.069 432 256 432z"] };
  3421. var faSyncAlt = { prefix: 'fas', iconName: 'sync-alt', icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"] };
  3422. var faSyringe = { prefix: 'fas', iconName: 'syringe', icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"] };
  3423. var faTable = { prefix: 'fas', iconName: 'table', icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"] };
  3424. var faTableTennis = { prefix: 'fas', iconName: 'table-tennis', icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"] };
  3425. var faTablet = { prefix: 'fas', iconName: 'tablet', icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3426. var faTabletAlt = { prefix: 'fas', iconName: 'tablet-alt', icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"] };
  3427. var faTablets = { prefix: 'fas', iconName: 'tablets', icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"] };
  3428. var faTachometerAlt = { prefix: 'fas', iconName: 'tachometer-alt', icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3429. var faTag = { prefix: 'fas', iconName: 'tag', icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3430. var faTags = { prefix: 'fas', iconName: 'tags', icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"] };
  3431. var faTape = { prefix: 'fas', iconName: 'tape', icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"] };
  3432. var faTasks = { prefix: 'fas', iconName: 'tasks', icon: [512, 512, [], "f0ae", "M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"] };
  3433. var faTaxi = { prefix: 'fas', iconName: 'taxi', icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3434. var faTeeth = { prefix: 'fas', iconName: 'teeth', icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"] };
  3435. var faTeethOpen = { prefix: 'fas', iconName: 'teeth-open', icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"] };
  3436. var faTerminal = { prefix: 'fas', iconName: 'terminal', icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"] };
  3437. var faTextHeight = { prefix: 'fas', iconName: 'text-height', icon: [576, 512, [], "f034", "M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"] };
  3438. var faTextWidth = { prefix: 'fas', iconName: 'text-width', icon: [448, 512, [], "f035", "M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"] };
  3439. var faTh = { prefix: 'fas', iconName: 'th', icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"] };
  3440. var faThLarge = { prefix: 'fas', iconName: 'th-large', icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"] };
  3441. var faThList = { prefix: 'fas', iconName: 'th-list', icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"] };
  3442. var faTheaterMasks = { prefix: 'fas', iconName: 'theater-masks', icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"] };
  3443. var faThermometer = { prefix: 'fas', iconName: 'thermometer', icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"] };
  3444. var faThermometerEmpty = { prefix: 'fas', iconName: 'thermometer-empty', icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3445. var faThermometerFull = { prefix: 'fas', iconName: 'thermometer-full', icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"] };
  3446. var faThermometerHalf = { prefix: 'fas', iconName: 'thermometer-half', icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3447. var faThermometerQuarter = { prefix: 'fas', iconName: 'thermometer-quarter', icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3448. var faThermometerThreeQuarters = { prefix: 'fas', iconName: 'thermometer-three-quarters', icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3449. var faThumbsDown = { prefix: 'fas', iconName: 'thumbs-down', icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"] };
  3450. var faThumbsUp = { prefix: 'fas', iconName: 'thumbs-up', icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"] };
  3451. var faThumbtack = { prefix: 'fas', iconName: 'thumbtack', icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"] };
  3452. var faTicketAlt = { prefix: 'fas', iconName: 'ticket-alt', icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"] };
  3453. var faTimes = { prefix: 'fas', iconName: 'times', icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"] };
  3454. var faTimesCircle = { prefix: 'fas', iconName: 'times-circle', icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"] };
  3455. var faTint = { prefix: 'fas', iconName: 'tint', icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3456. var faTintSlash = { prefix: 'fas', iconName: 'tint-slash', icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"] };
  3457. var faTired = { prefix: 'fas', iconName: 'tired', icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"] };
  3458. var faToggleOff = { prefix: 'fas', iconName: 'toggle-off', icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"] };
  3459. var faToggleOn = { prefix: 'fas', iconName: 'toggle-on', icon: [576, 512, [], "f205", "M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"] };
  3460. var faToiletPaper = { prefix: 'fas', iconName: 'toilet-paper', icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"] };
  3461. var faToolbox = { prefix: 'fas', iconName: 'toolbox', icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"] };
  3462. var faTooth = { prefix: 'fas', iconName: 'tooth', icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"] };
  3463. var faTorah = { prefix: 'fas', iconName: 'torah', icon: [448, 512, [], "f6a0", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM139.11 141.21c-2.77-4.41.4-10.14 5.6-10.14h53.08c.9 0 1.73-.46 2.21-1.22l34.4-54.76c2.6-4.13 8.61-4.13 11.21 0l34.4 54.76a2.61 2.61 0 0 0 2.21 1.22h53.08c5.2 0 8.37 5.73 5.6 10.14L314.01 184l26.88 42.79c2.77 4.4-.4 10.13-5.6 10.13h-53.08c-.9 0-1.73.46-2.21 1.22l-34.4 54.76c-2.6 4.13-8.61 4.13-11.21 0L200 238.15a2.61 2.61 0 0 0-2.21-1.22h-53.08c-5.2 0-8.37-5.73-5.6-10.13l26.88-42.8-26.88-42.79zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3464. var faToriiGate = { prefix: 'fas', iconName: 'torii-gate', icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"] };
  3465. var faTractor = { prefix: 'fas', iconName: 'tractor', icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"] };
  3466. var faTrademark = { prefix: 'fas', iconName: 'trademark', icon: [640, 512, [], "f25c", "M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"] };
  3467. var faTrafficLight = { prefix: 'fas', iconName: 'traffic-light', icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3468. var faTrain = { prefix: 'fas', iconName: 'train', icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"] };
  3469. var faTransgender = { prefix: 'fas', iconName: 'transgender', icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3470. var faTransgenderAlt = { prefix: 'fas', iconName: 'transgender-alt', icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3471. var faTrash = { prefix: 'fas', iconName: 'trash', icon: [448, 512, [], "f1f8", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"] };
  3472. var faTrashAlt = { prefix: 'fas', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm416 56v324c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V140c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12zm-272 68c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208z"] };
  3473. var faTree = { prefix: 'fas', iconName: 'tree', icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"] };
  3474. var faTrophy = { prefix: 'fas', iconName: 'trophy', icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"] };
  3475. var faTruck = { prefix: 'fas', iconName: 'truck', icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3476. var faTruckLoading = { prefix: 'fas', iconName: 'truck-loading', icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3477. var faTruckMonster = { prefix: 'fas', iconName: 'truck-monster', icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3478. var faTruckMoving = { prefix: 'fas', iconName: 'truck-moving', icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"] };
  3479. var faTruckPickup = { prefix: 'fas', iconName: 'truck-pickup', icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3480. var faTshirt = { prefix: 'fas', iconName: 'tshirt', icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"] };
  3481. var faTty = { prefix: 'fas', iconName: 'tty', icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3482. var faTv = { prefix: 'fas', iconName: 'tv', icon: [640, 512, [], "f26c", "M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"] };
  3483. var faUmbrella = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.406-158.567-30.731-10.21 8.264-20.912-1.109-18.696-9.481C32.146 134.573 158.516 64.612 288.001 64.612c128.793 0 256.546 69.961 287.706 193.538 2.206 8.322-8.426 17.793-18.696 9.481zM256 261.001V416c0 17.645-14.355 32-32 32s-32-14.355-32-32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 52.935 43.065 96 96 96s96-43.065 96-96V261.288c-21.836-10.806-45.425-9.737-64-.287zm64-211.007V32c0-17.673-14.327-32-32-32s-32 14.327-32 32v17.987a372.105 372.105 0 0 1 64 .007z"] };
  3484. var faUmbrellaBeach = { prefix: 'fas', iconName: 'umbrella-beach', icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"] };
  3485. var faUnderline = { prefix: 'fas', iconName: 'underline', icon: [448, 512, [], "f0cd", "M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"] };
  3486. var faUndo = { prefix: 'fas', iconName: 'undo', icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"] };
  3487. var faUndoAlt = { prefix: 'fas', iconName: 'undo-alt', icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"] };
  3488. var faUniversalAccess = { prefix: 'fas', iconName: 'universal-access', icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"] };
  3489. var faUniversity = { prefix: 'fas', iconName: 'university', icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"] };
  3490. var faUnlink = { prefix: 'fas', iconName: 'unlink', icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"] };
  3491. var faUnlock = { prefix: 'fas', iconName: 'unlock', icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3492. var faUnlockAlt = { prefix: 'fas', iconName: 'unlock-alt', icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"] };
  3493. var faUpload = { prefix: 'fas', iconName: 'upload', icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3494. var faUser = { prefix: 'fas', iconName: 'user', icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3495. var faUserAlt = { prefix: 'fas', iconName: 'user-alt', icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"] };
  3496. var faUserAltSlash = { prefix: 'fas', iconName: 'user-alt-slash', icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"] };
  3497. var faUserAstronaut = { prefix: 'fas', iconName: 'user-astronaut', icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"] };
  3498. var faUserCheck = { prefix: 'fas', iconName: 'user-check', icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"] };
  3499. var faUserCircle = { prefix: 'fas', iconName: 'user-circle', icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"] };
  3500. var faUserClock = { prefix: 'fas', iconName: 'user-clock', icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"] };
  3501. var faUserCog = { prefix: 'fas', iconName: 'user-cog', icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"] };
  3502. var faUserEdit = { prefix: 'fas', iconName: 'user-edit', icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"] };
  3503. var faUserFriends = { prefix: 'fas', iconName: 'user-friends', icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"] };
  3504. var faUserGraduate = { prefix: 'fas', iconName: 'user-graduate', icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"] };
  3505. var faUserInjured = { prefix: 'fas', iconName: 'user-injured', icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"] };
  3506. var faUserLock = { prefix: 'fas', iconName: 'user-lock', icon: [640, 512, [], "f502", "M320 320c0-11.1 3.1-21.4 8.1-30.5-4.8-.5-9.5-1.5-14.5-1.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h280.9c-5.5-9.5-8.9-20.3-8.9-32V320zm-96-64c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm384 32h-32v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80v48h-32c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V320c0-17.7-14.3-32-32-32zm-80 0h-64v-48c0-17.6 14.4-32 32-32s32 14.4 32 32v48z"] };
  3507. var faUserMd = { prefix: 'fas', iconName: 'user-md', icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"] };
  3508. var faUserMinus = { prefix: 'fas', iconName: 'user-minus', icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3509. var faUserNinja = { prefix: 'fas', iconName: 'user-ninja', icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"] };
  3510. var faUserPlus = { prefix: 'fas', iconName: 'user-plus', icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3511. var faUserSecret = { prefix: 'fas', iconName: 'user-secret', icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"] };
  3512. var faUserShield = { prefix: 'fas', iconName: 'user-shield', icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"] };
  3513. var faUserSlash = { prefix: 'fas', iconName: 'user-slash', icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"] };
  3514. var faUserTag = { prefix: 'fas', iconName: 'user-tag', icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"] };
  3515. var faUserTie = { prefix: 'fas', iconName: 'user-tie', icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"] };
  3516. var faUserTimes = { prefix: 'fas', iconName: 'user-times', icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3517. var faUsers = { prefix: 'fas', iconName: 'users', icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3518. var faUsersCog = { prefix: 'fas', iconName: 'users-cog', icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3519. var faUtensilSpoon = { prefix: 'fas', iconName: 'utensil-spoon', icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"] };
  3520. var faUtensils = { prefix: 'fas', iconName: 'utensils', icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"] };
  3521. var faVectorSquare = { prefix: 'fas', iconName: 'vector-square', icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"] };
  3522. var faVenus = { prefix: 'fas', iconName: 'venus', icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3523. var faVenusDouble = { prefix: 'fas', iconName: 'venus-double', icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"] };
  3524. var faVenusMars = { prefix: 'fas', iconName: 'venus-mars', icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3525. var faVial = { prefix: 'fas', iconName: 'vial', icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"] };
  3526. var faVials = { prefix: 'fas', iconName: 'vials', icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"] };
  3527. var faVideo = { prefix: 'fas', iconName: 'video', icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"] };
  3528. var faVideoSlash = { prefix: 'fas', iconName: 'video-slash', icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"] };
  3529. var faVihara = { prefix: 'fas', iconName: 'vihara', icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"] };
  3530. var faVolleyballBall = { prefix: 'fas', iconName: 'volleyball-ball', icon: [495, 512, [], "f45f", "M223.3 243.4c-.9-37-8.6-72.8-22.7-105.7-90.8 42.4-157.5 122.4-180.3 216.8 13.4 30.8 32.9 58.3 56.9 81.1 22.7-79.2 74.2-147.8 146.1-192.2zM186.4 109c-15-26.4-34.5-50.1-57.4-70.7C38 88.1-15.8 191.2 4 300.5c33.4-83.1 98.4-152 182.4-191.5zM374 274.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5 57.3 59.3 91 138.2 93.5 222.7 32.5 17.7 67.3 29 102.9 33.2zm-124.7 9.5c-31.6 19.3-58.7 43.9-80.2 72.6 82 57.3 184.5 75.1 277.5 47.8 19.7-26.4 34.2-56.8 42.2-89.9-26.6 6.6-53.7 10.4-80.9 10.4-54.6-.1-108.9-14.1-158.6-40.9zM151 383.3c-15.2 26-25.7 54.4-32.1 84.2 37.6 23 81.7 36.5 129.1 36.5 61 0 116.7-22.1 159.9-58.6C295 461.5 204.6 420.6 151 383.3zM331.3 22.7c55.3 70.4 82.5 161.2 74.6 253.6 30.3.2 60.5-4.8 89.7-14.2 0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"] };
  3531. var faVolumeDown = { prefix: 'fas', iconName: 'volume-down', icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"] };
  3532. var faVolumeMute = { prefix: 'fas', iconName: 'volume-mute', icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"] };
  3533. var faVolumeOff = { prefix: 'fas', iconName: 'volume-off', icon: [257, 512, [], "f026", "M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"] };
  3534. var faVolumeUp = { prefix: 'fas', iconName: 'volume-up', icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"] };
  3535. var faVrCardboard = { prefix: 'fas', iconName: 'vr-cardboard', icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"] };
  3536. var faWalking = { prefix: 'fas', iconName: 'walking', icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"] };
  3537. var faWallet = { prefix: 'fas', iconName: 'wallet', icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3538. var faWarehouse = { prefix: 'fas', iconName: 'warehouse', icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"] };
  3539. var faWeight = { prefix: 'fas', iconName: 'weight', icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"] };
  3540. var faWeightHanging = { prefix: 'fas', iconName: 'weight-hanging', icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3541. var faWheelchair = { prefix: 'fas', iconName: 'wheelchair', icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"] };
  3542. var faWifi = { prefix: 'fas', iconName: 'wifi', icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"] };
  3543. var faWind = { prefix: 'fas', iconName: 'wind', icon: [512, 512, [], "f72e", "M156.66 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h142.19c15.95 0 30.77 10.85 33.37 26.58C194.86 366.6 179.42 384 160 384c-14.11 0-26.13-9.19-30.37-21.9-2.11-6.31-8.6-10.1-15.25-10.1H81.63c-9.8 0-17.73 8.81-15.86 18.43C74.39 414.58 113.37 448 160 448c57.09 0 102.7-50.09 95.19-108.63-6.21-48.39-49.74-83.37-98.53-83.37zM16 224h336c59.7 0 106.83-54.76 93.83-116.69-7.61-36.23-36.91-65.53-73.14-73.14-55.44-11.64-105.13 24.91-114.93 75.53-1.86 9.57 6.09 18.3 15.84 18.3h32.8c6.65 0 13.14-3.79 15.25-10.1C325.88 105.19 337.89 96 352 96c19.42 0 34.86 17.39 31.55 37.41-2.6 15.73-17.42 26.59-33.37 26.59H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16zm384 32H243.68c19.34 16.57 33.19 38.79 39.77 64H400c26.47 0 48 21.53 48 48s-21.53 48-48 48c-17.86 0-33.33-9.86-41.56-24.38-2.85-5.03-8.69-7.62-14.47-7.62h-33.82c-10.91 0-18.96 10.81-15.35 21.1 17.77 50.6 70.54 84.75 129.41 72.35 41.22-8.69 75.1-41.65 84.67-82.68C525.98 321.46 470.48 256 400 256z"] };
  3544. var faWindowClose = { prefix: 'fas', iconName: 'window-close', icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"] };
  3545. var faWindowMaximize = { prefix: 'fas', iconName: 'window-maximize', icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"] };
  3546. var faWindowMinimize = { prefix: 'fas', iconName: 'window-minimize', icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"] };
  3547. var faWindowRestore = { prefix: 'fas', iconName: 'window-restore', icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"] };
  3548. var faWineBottle = { prefix: 'fas', iconName: 'wine-bottle', icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"] };
  3549. var faWineGlass = { prefix: 'fas', iconName: 'wine-glass', icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"] };
  3550. var faWineGlassAlt = { prefix: 'fas', iconName: 'wine-glass-alt', icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"] };
  3551. var faWonSign = { prefix: 'fas', iconName: 'won-sign', icon: [576, 512, [], "f159", "M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"] };
  3552. var faWrench = { prefix: 'fas', iconName: 'wrench', icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3553. var faXRay = { prefix: 'fas', iconName: 'x-ray', icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"] };
  3554. var faYenSign = { prefix: 'fas', iconName: 'yen-sign', icon: [384, 512, [], "f157", "M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"] };
  3555. var faYinYang = { prefix: 'fas', iconName: 'yin-yang', icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3556. var _iconsCache = {
  3557. faAd: faAd,
  3558. faAddressBook: faAddressBook,
  3559. faAddressCard: faAddressCard,
  3560. faAdjust: faAdjust,
  3561. faAirFreshener: faAirFreshener,
  3562. faAlignCenter: faAlignCenter,
  3563. faAlignJustify: faAlignJustify,
  3564. faAlignLeft: faAlignLeft,
  3565. faAlignRight: faAlignRight,
  3566. faAllergies: faAllergies,
  3567. faAmbulance: faAmbulance,
  3568. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3569. faAnchor: faAnchor,
  3570. faAngleDoubleDown: faAngleDoubleDown,
  3571. faAngleDoubleLeft: faAngleDoubleLeft,
  3572. faAngleDoubleRight: faAngleDoubleRight,
  3573. faAngleDoubleUp: faAngleDoubleUp,
  3574. faAngleDown: faAngleDown,
  3575. faAngleLeft: faAngleLeft,
  3576. faAngleRight: faAngleRight,
  3577. faAngleUp: faAngleUp,
  3578. faAngry: faAngry,
  3579. faAnkh: faAnkh,
  3580. faAppleAlt: faAppleAlt,
  3581. faArchive: faArchive,
  3582. faArchway: faArchway,
  3583. faArrowAltCircleDown: faArrowAltCircleDown,
  3584. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3585. faArrowAltCircleRight: faArrowAltCircleRight,
  3586. faArrowAltCircleUp: faArrowAltCircleUp,
  3587. faArrowCircleDown: faArrowCircleDown,
  3588. faArrowCircleLeft: faArrowCircleLeft,
  3589. faArrowCircleRight: faArrowCircleRight,
  3590. faArrowCircleUp: faArrowCircleUp,
  3591. faArrowDown: faArrowDown,
  3592. faArrowLeft: faArrowLeft,
  3593. faArrowRight: faArrowRight,
  3594. faArrowUp: faArrowUp,
  3595. faArrowsAlt: faArrowsAlt,
  3596. faArrowsAltH: faArrowsAltH,
  3597. faArrowsAltV: faArrowsAltV,
  3598. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3599. faAsterisk: faAsterisk,
  3600. faAt: faAt,
  3601. faAtlas: faAtlas,
  3602. faAtom: faAtom,
  3603. faAudioDescription: faAudioDescription,
  3604. faAward: faAward,
  3605. faBackspace: faBackspace,
  3606. faBackward: faBackward,
  3607. faBalanceScale: faBalanceScale,
  3608. faBan: faBan,
  3609. faBandAid: faBandAid,
  3610. faBarcode: faBarcode,
  3611. faBars: faBars,
  3612. faBaseballBall: faBaseballBall,
  3613. faBasketballBall: faBasketballBall,
  3614. faBath: faBath,
  3615. faBatteryEmpty: faBatteryEmpty,
  3616. faBatteryFull: faBatteryFull,
  3617. faBatteryHalf: faBatteryHalf,
  3618. faBatteryQuarter: faBatteryQuarter,
  3619. faBatteryThreeQuarters: faBatteryThreeQuarters,
  3620. faBed: faBed,
  3621. faBeer: faBeer,
  3622. faBell: faBell,
  3623. faBellSlash: faBellSlash,
  3624. faBezierCurve: faBezierCurve,
  3625. faBible: faBible,
  3626. faBicycle: faBicycle,
  3627. faBinoculars: faBinoculars,
  3628. faBirthdayCake: faBirthdayCake,
  3629. faBlender: faBlender,
  3630. faBlenderPhone: faBlenderPhone,
  3631. faBlind: faBlind,
  3632. faBold: faBold,
  3633. faBolt: faBolt,
  3634. faBomb: faBomb,
  3635. faBone: faBone,
  3636. faBong: faBong,
  3637. faBook: faBook,
  3638. faBookDead: faBookDead,
  3639. faBookOpen: faBookOpen,
  3640. faBookReader: faBookReader,
  3641. faBookmark: faBookmark,
  3642. faBowlingBall: faBowlingBall,
  3643. faBox: faBox,
  3644. faBoxOpen: faBoxOpen,
  3645. faBoxes: faBoxes,
  3646. faBraille: faBraille,
  3647. faBrain: faBrain,
  3648. faBriefcase: faBriefcase,
  3649. faBriefcaseMedical: faBriefcaseMedical,
  3650. faBroadcastTower: faBroadcastTower,
  3651. faBroom: faBroom,
  3652. faBrush: faBrush,
  3653. faBug: faBug,
  3654. faBuilding: faBuilding,
  3655. faBullhorn: faBullhorn,
  3656. faBullseye: faBullseye,
  3657. faBurn: faBurn,
  3658. faBus: faBus,
  3659. faBusAlt: faBusAlt,
  3660. faBusinessTime: faBusinessTime,
  3661. faCalculator: faCalculator,
  3662. faCalendar: faCalendar,
  3663. faCalendarAlt: faCalendarAlt,
  3664. faCalendarCheck: faCalendarCheck,
  3665. faCalendarMinus: faCalendarMinus,
  3666. faCalendarPlus: faCalendarPlus,
  3667. faCalendarTimes: faCalendarTimes,
  3668. faCamera: faCamera,
  3669. faCameraRetro: faCameraRetro,
  3670. faCampground: faCampground,
  3671. faCannabis: faCannabis,
  3672. faCapsules: faCapsules,
  3673. faCar: faCar,
  3674. faCarAlt: faCarAlt,
  3675. faCarBattery: faCarBattery,
  3676. faCarCrash: faCarCrash,
  3677. faCarSide: faCarSide,
  3678. faCaretDown: faCaretDown,
  3679. faCaretLeft: faCaretLeft,
  3680. faCaretRight: faCaretRight,
  3681. faCaretSquareDown: faCaretSquareDown,
  3682. faCaretSquareLeft: faCaretSquareLeft,
  3683. faCaretSquareRight: faCaretSquareRight,
  3684. faCaretSquareUp: faCaretSquareUp,
  3685. faCaretUp: faCaretUp,
  3686. faCartArrowDown: faCartArrowDown,
  3687. faCartPlus: faCartPlus,
  3688. faCat: faCat,
  3689. faCertificate: faCertificate,
  3690. faChair: faChair,
  3691. faChalkboard: faChalkboard,
  3692. faChalkboardTeacher: faChalkboardTeacher,
  3693. faChargingStation: faChargingStation,
  3694. faChartArea: faChartArea,
  3695. faChartBar: faChartBar,
  3696. faChartLine: faChartLine,
  3697. faChartPie: faChartPie,
  3698. faCheck: faCheck,
  3699. faCheckCircle: faCheckCircle,
  3700. faCheckDouble: faCheckDouble,
  3701. faCheckSquare: faCheckSquare,
  3702. faChess: faChess,
  3703. faChessBishop: faChessBishop,
  3704. faChessBoard: faChessBoard,
  3705. faChessKing: faChessKing,
  3706. faChessKnight: faChessKnight,
  3707. faChessPawn: faChessPawn,
  3708. faChessQueen: faChessQueen,
  3709. faChessRook: faChessRook,
  3710. faChevronCircleDown: faChevronCircleDown,
  3711. faChevronCircleLeft: faChevronCircleLeft,
  3712. faChevronCircleRight: faChevronCircleRight,
  3713. faChevronCircleUp: faChevronCircleUp,
  3714. faChevronDown: faChevronDown,
  3715. faChevronLeft: faChevronLeft,
  3716. faChevronRight: faChevronRight,
  3717. faChevronUp: faChevronUp,
  3718. faChild: faChild,
  3719. faChurch: faChurch,
  3720. faCircle: faCircle,
  3721. faCircleNotch: faCircleNotch,
  3722. faCity: faCity,
  3723. faClipboard: faClipboard,
  3724. faClipboardCheck: faClipboardCheck,
  3725. faClipboardList: faClipboardList,
  3726. faClock: faClock,
  3727. faClone: faClone,
  3728. faClosedCaptioning: faClosedCaptioning,
  3729. faCloud: faCloud,
  3730. faCloudDownloadAlt: faCloudDownloadAlt,
  3731. faCloudMoon: faCloudMoon,
  3732. faCloudSun: faCloudSun,
  3733. faCloudUploadAlt: faCloudUploadAlt,
  3734. faCocktail: faCocktail,
  3735. faCode: faCode,
  3736. faCodeBranch: faCodeBranch,
  3737. faCoffee: faCoffee,
  3738. faCog: faCog,
  3739. faCogs: faCogs,
  3740. faCoins: faCoins,
  3741. faColumns: faColumns,
  3742. faComment: faComment,
  3743. faCommentAlt: faCommentAlt,
  3744. faCommentDollar: faCommentDollar,
  3745. faCommentDots: faCommentDots,
  3746. faCommentSlash: faCommentSlash,
  3747. faComments: faComments,
  3748. faCommentsDollar: faCommentsDollar,
  3749. faCompactDisc: faCompactDisc,
  3750. faCompass: faCompass,
  3751. faCompress: faCompress,
  3752. faConciergeBell: faConciergeBell,
  3753. faCookie: faCookie,
  3754. faCookieBite: faCookieBite,
  3755. faCopy: faCopy,
  3756. faCopyright: faCopyright,
  3757. faCouch: faCouch,
  3758. faCreditCard: faCreditCard,
  3759. faCrop: faCrop,
  3760. faCropAlt: faCropAlt,
  3761. faCross: faCross,
  3762. faCrosshairs: faCrosshairs,
  3763. faCrow: faCrow,
  3764. faCrown: faCrown,
  3765. faCube: faCube,
  3766. faCubes: faCubes,
  3767. faCut: faCut,
  3768. faDatabase: faDatabase,
  3769. faDeaf: faDeaf,
  3770. faDesktop: faDesktop,
  3771. faDharmachakra: faDharmachakra,
  3772. faDiagnoses: faDiagnoses,
  3773. faDice: faDice,
  3774. faDiceD20: faDiceD20,
  3775. faDiceD6: faDiceD6,
  3776. faDiceFive: faDiceFive,
  3777. faDiceFour: faDiceFour,
  3778. faDiceOne: faDiceOne,
  3779. faDiceSix: faDiceSix,
  3780. faDiceThree: faDiceThree,
  3781. faDiceTwo: faDiceTwo,
  3782. faDigitalTachograph: faDigitalTachograph,
  3783. faDirections: faDirections,
  3784. faDivide: faDivide,
  3785. faDizzy: faDizzy,
  3786. faDna: faDna,
  3787. faDog: faDog,
  3788. faDollarSign: faDollarSign,
  3789. faDolly: faDolly,
  3790. faDollyFlatbed: faDollyFlatbed,
  3791. faDonate: faDonate,
  3792. faDoorClosed: faDoorClosed,
  3793. faDoorOpen: faDoorOpen,
  3794. faDotCircle: faDotCircle,
  3795. faDove: faDove,
  3796. faDownload: faDownload,
  3797. faDraftingCompass: faDraftingCompass,
  3798. faDragon: faDragon,
  3799. faDrawPolygon: faDrawPolygon,
  3800. faDrum: faDrum,
  3801. faDrumSteelpan: faDrumSteelpan,
  3802. faDrumstickBite: faDrumstickBite,
  3803. faDumbbell: faDumbbell,
  3804. faDungeon: faDungeon,
  3805. faEdit: faEdit,
  3806. faEject: faEject,
  3807. faEllipsisH: faEllipsisH,
  3808. faEllipsisV: faEllipsisV,
  3809. faEnvelope: faEnvelope,
  3810. faEnvelopeOpen: faEnvelopeOpen,
  3811. faEnvelopeOpenText: faEnvelopeOpenText,
  3812. faEnvelopeSquare: faEnvelopeSquare,
  3813. faEquals: faEquals,
  3814. faEraser: faEraser,
  3815. faEuroSign: faEuroSign,
  3816. faExchangeAlt: faExchangeAlt,
  3817. faExclamation: faExclamation,
  3818. faExclamationCircle: faExclamationCircle,
  3819. faExclamationTriangle: faExclamationTriangle,
  3820. faExpand: faExpand,
  3821. faExpandArrowsAlt: faExpandArrowsAlt,
  3822. faExternalLinkAlt: faExternalLinkAlt,
  3823. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  3824. faEye: faEye,
  3825. faEyeDropper: faEyeDropper,
  3826. faEyeSlash: faEyeSlash,
  3827. faFastBackward: faFastBackward,
  3828. faFastForward: faFastForward,
  3829. faFax: faFax,
  3830. faFeather: faFeather,
  3831. faFeatherAlt: faFeatherAlt,
  3832. faFemale: faFemale,
  3833. faFighterJet: faFighterJet,
  3834. faFile: faFile,
  3835. faFileAlt: faFileAlt,
  3836. faFileArchive: faFileArchive,
  3837. faFileAudio: faFileAudio,
  3838. faFileCode: faFileCode,
  3839. faFileContract: faFileContract,
  3840. faFileCsv: faFileCsv,
  3841. faFileDownload: faFileDownload,
  3842. faFileExcel: faFileExcel,
  3843. faFileExport: faFileExport,
  3844. faFileImage: faFileImage,
  3845. faFileImport: faFileImport,
  3846. faFileInvoice: faFileInvoice,
  3847. faFileInvoiceDollar: faFileInvoiceDollar,
  3848. faFileMedical: faFileMedical,
  3849. faFileMedicalAlt: faFileMedicalAlt,
  3850. faFilePdf: faFilePdf,
  3851. faFilePowerpoint: faFilePowerpoint,
  3852. faFilePrescription: faFilePrescription,
  3853. faFileSignature: faFileSignature,
  3854. faFileUpload: faFileUpload,
  3855. faFileVideo: faFileVideo,
  3856. faFileWord: faFileWord,
  3857. faFill: faFill,
  3858. faFillDrip: faFillDrip,
  3859. faFilm: faFilm,
  3860. faFilter: faFilter,
  3861. faFingerprint: faFingerprint,
  3862. faFire: faFire,
  3863. faFireExtinguisher: faFireExtinguisher,
  3864. faFirstAid: faFirstAid,
  3865. faFish: faFish,
  3866. faFistRaised: faFistRaised,
  3867. faFlag: faFlag,
  3868. faFlagCheckered: faFlagCheckered,
  3869. faFlask: faFlask,
  3870. faFlushed: faFlushed,
  3871. faFolder: faFolder,
  3872. faFolderMinus: faFolderMinus,
  3873. faFolderOpen: faFolderOpen,
  3874. faFolderPlus: faFolderPlus,
  3875. faFont: faFont,
  3876. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  3877. faFootballBall: faFootballBall,
  3878. faForward: faForward,
  3879. faFrog: faFrog,
  3880. faFrown: faFrown,
  3881. faFrownOpen: faFrownOpen,
  3882. faFunnelDollar: faFunnelDollar,
  3883. faFutbol: faFutbol,
  3884. faGamepad: faGamepad,
  3885. faGasPump: faGasPump,
  3886. faGavel: faGavel,
  3887. faGem: faGem,
  3888. faGenderless: faGenderless,
  3889. faGhost: faGhost,
  3890. faGift: faGift,
  3891. faGlassMartini: faGlassMartini,
  3892. faGlassMartiniAlt: faGlassMartiniAlt,
  3893. faGlasses: faGlasses,
  3894. faGlobe: faGlobe,
  3895. faGlobeAfrica: faGlobeAfrica,
  3896. faGlobeAmericas: faGlobeAmericas,
  3897. faGlobeAsia: faGlobeAsia,
  3898. faGolfBall: faGolfBall,
  3899. faGopuram: faGopuram,
  3900. faGraduationCap: faGraduationCap,
  3901. faGreaterThan: faGreaterThan,
  3902. faGreaterThanEqual: faGreaterThanEqual,
  3903. faGrimace: faGrimace,
  3904. faGrin: faGrin,
  3905. faGrinAlt: faGrinAlt,
  3906. faGrinBeam: faGrinBeam,
  3907. faGrinBeamSweat: faGrinBeamSweat,
  3908. faGrinHearts: faGrinHearts,
  3909. faGrinSquint: faGrinSquint,
  3910. faGrinSquintTears: faGrinSquintTears,
  3911. faGrinStars: faGrinStars,
  3912. faGrinTears: faGrinTears,
  3913. faGrinTongue: faGrinTongue,
  3914. faGrinTongueSquint: faGrinTongueSquint,
  3915. faGrinTongueWink: faGrinTongueWink,
  3916. faGrinWink: faGrinWink,
  3917. faGripHorizontal: faGripHorizontal,
  3918. faGripVertical: faGripVertical,
  3919. faHSquare: faHSquare,
  3920. faHammer: faHammer,
  3921. faHamsa: faHamsa,
  3922. faHandHolding: faHandHolding,
  3923. faHandHoldingHeart: faHandHoldingHeart,
  3924. faHandHoldingUsd: faHandHoldingUsd,
  3925. faHandLizard: faHandLizard,
  3926. faHandPaper: faHandPaper,
  3927. faHandPeace: faHandPeace,
  3928. faHandPointDown: faHandPointDown,
  3929. faHandPointLeft: faHandPointLeft,
  3930. faHandPointRight: faHandPointRight,
  3931. faHandPointUp: faHandPointUp,
  3932. faHandPointer: faHandPointer,
  3933. faHandRock: faHandRock,
  3934. faHandScissors: faHandScissors,
  3935. faHandSpock: faHandSpock,
  3936. faHands: faHands,
  3937. faHandsHelping: faHandsHelping,
  3938. faHandshake: faHandshake,
  3939. faHanukiah: faHanukiah,
  3940. faHashtag: faHashtag,
  3941. faHatWizard: faHatWizard,
  3942. faHaykal: faHaykal,
  3943. faHdd: faHdd,
  3944. faHeading: faHeading,
  3945. faHeadphones: faHeadphones,
  3946. faHeadphonesAlt: faHeadphonesAlt,
  3947. faHeadset: faHeadset,
  3948. faHeart: faHeart,
  3949. faHeartbeat: faHeartbeat,
  3950. faHelicopter: faHelicopter,
  3951. faHighlighter: faHighlighter,
  3952. faHiking: faHiking,
  3953. faHippo: faHippo,
  3954. faHistory: faHistory,
  3955. faHockeyPuck: faHockeyPuck,
  3956. faHome: faHome,
  3957. faHorse: faHorse,
  3958. faHospital: faHospital,
  3959. faHospitalAlt: faHospitalAlt,
  3960. faHospitalSymbol: faHospitalSymbol,
  3961. faHotTub: faHotTub,
  3962. faHotel: faHotel,
  3963. faHourglass: faHourglass,
  3964. faHourglassEnd: faHourglassEnd,
  3965. faHourglassHalf: faHourglassHalf,
  3966. faHourglassStart: faHourglassStart,
  3967. faHouseDamage: faHouseDamage,
  3968. faHryvnia: faHryvnia,
  3969. faICursor: faICursor,
  3970. faIdBadge: faIdBadge,
  3971. faIdCard: faIdCard,
  3972. faIdCardAlt: faIdCardAlt,
  3973. faImage: faImage,
  3974. faImages: faImages,
  3975. faInbox: faInbox,
  3976. faIndent: faIndent,
  3977. faIndustry: faIndustry,
  3978. faInfinity: faInfinity,
  3979. faInfo: faInfo,
  3980. faInfoCircle: faInfoCircle,
  3981. faItalic: faItalic,
  3982. faJedi: faJedi,
  3983. faJoint: faJoint,
  3984. faJournalWhills: faJournalWhills,
  3985. faKaaba: faKaaba,
  3986. faKey: faKey,
  3987. faKeyboard: faKeyboard,
  3988. faKhanda: faKhanda,
  3989. faKiss: faKiss,
  3990. faKissBeam: faKissBeam,
  3991. faKissWinkHeart: faKissWinkHeart,
  3992. faKiwiBird: faKiwiBird,
  3993. faLandmark: faLandmark,
  3994. faLanguage: faLanguage,
  3995. faLaptop: faLaptop,
  3996. faLaptopCode: faLaptopCode,
  3997. faLaugh: faLaugh,
  3998. faLaughBeam: faLaughBeam,
  3999. faLaughSquint: faLaughSquint,
  4000. faLaughWink: faLaughWink,
  4001. faLayerGroup: faLayerGroup,
  4002. faLeaf: faLeaf,
  4003. faLemon: faLemon,
  4004. faLessThan: faLessThan,
  4005. faLessThanEqual: faLessThanEqual,
  4006. faLevelDownAlt: faLevelDownAlt,
  4007. faLevelUpAlt: faLevelUpAlt,
  4008. faLifeRing: faLifeRing,
  4009. faLightbulb: faLightbulb,
  4010. faLink: faLink,
  4011. faLiraSign: faLiraSign,
  4012. faList: faList,
  4013. faListAlt: faListAlt,
  4014. faListOl: faListOl,
  4015. faListUl: faListUl,
  4016. faLocationArrow: faLocationArrow,
  4017. faLock: faLock,
  4018. faLockOpen: faLockOpen,
  4019. faLongArrowAltDown: faLongArrowAltDown,
  4020. faLongArrowAltLeft: faLongArrowAltLeft,
  4021. faLongArrowAltRight: faLongArrowAltRight,
  4022. faLongArrowAltUp: faLongArrowAltUp,
  4023. faLowVision: faLowVision,
  4024. faLuggageCart: faLuggageCart,
  4025. faMagic: faMagic,
  4026. faMagnet: faMagnet,
  4027. faMailBulk: faMailBulk,
  4028. faMale: faMale,
  4029. faMap: faMap,
  4030. faMapMarked: faMapMarked,
  4031. faMapMarkedAlt: faMapMarkedAlt,
  4032. faMapMarker: faMapMarker,
  4033. faMapMarkerAlt: faMapMarkerAlt,
  4034. faMapPin: faMapPin,
  4035. faMapSigns: faMapSigns,
  4036. faMarker: faMarker,
  4037. faMars: faMars,
  4038. faMarsDouble: faMarsDouble,
  4039. faMarsStroke: faMarsStroke,
  4040. faMarsStrokeH: faMarsStrokeH,
  4041. faMarsStrokeV: faMarsStrokeV,
  4042. faMask: faMask,
  4043. faMedal: faMedal,
  4044. faMedkit: faMedkit,
  4045. faMeh: faMeh,
  4046. faMehBlank: faMehBlank,
  4047. faMehRollingEyes: faMehRollingEyes,
  4048. faMemory: faMemory,
  4049. faMenorah: faMenorah,
  4050. faMercury: faMercury,
  4051. faMicrochip: faMicrochip,
  4052. faMicrophone: faMicrophone,
  4053. faMicrophoneAlt: faMicrophoneAlt,
  4054. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4055. faMicrophoneSlash: faMicrophoneSlash,
  4056. faMicroscope: faMicroscope,
  4057. faMinus: faMinus,
  4058. faMinusCircle: faMinusCircle,
  4059. faMinusSquare: faMinusSquare,
  4060. faMobile: faMobile,
  4061. faMobileAlt: faMobileAlt,
  4062. faMoneyBill: faMoneyBill,
  4063. faMoneyBillAlt: faMoneyBillAlt,
  4064. faMoneyBillWave: faMoneyBillWave,
  4065. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4066. faMoneyCheck: faMoneyCheck,
  4067. faMoneyCheckAlt: faMoneyCheckAlt,
  4068. faMonument: faMonument,
  4069. faMoon: faMoon,
  4070. faMortarPestle: faMortarPestle,
  4071. faMosque: faMosque,
  4072. faMotorcycle: faMotorcycle,
  4073. faMountain: faMountain,
  4074. faMousePointer: faMousePointer,
  4075. faMusic: faMusic,
  4076. faNetworkWired: faNetworkWired,
  4077. faNeuter: faNeuter,
  4078. faNewspaper: faNewspaper,
  4079. faNotEqual: faNotEqual,
  4080. faNotesMedical: faNotesMedical,
  4081. faObjectGroup: faObjectGroup,
  4082. faObjectUngroup: faObjectUngroup,
  4083. faOilCan: faOilCan,
  4084. faOm: faOm,
  4085. faOtter: faOtter,
  4086. faOutdent: faOutdent,
  4087. faPaintBrush: faPaintBrush,
  4088. faPaintRoller: faPaintRoller,
  4089. faPalette: faPalette,
  4090. faPallet: faPallet,
  4091. faPaperPlane: faPaperPlane,
  4092. faPaperclip: faPaperclip,
  4093. faParachuteBox: faParachuteBox,
  4094. faParagraph: faParagraph,
  4095. faParking: faParking,
  4096. faPassport: faPassport,
  4097. faPastafarianism: faPastafarianism,
  4098. faPaste: faPaste,
  4099. faPause: faPause,
  4100. faPauseCircle: faPauseCircle,
  4101. faPaw: faPaw,
  4102. faPeace: faPeace,
  4103. faPen: faPen,
  4104. faPenAlt: faPenAlt,
  4105. faPenFancy: faPenFancy,
  4106. faPenNib: faPenNib,
  4107. faPenSquare: faPenSquare,
  4108. faPencilAlt: faPencilAlt,
  4109. faPencilRuler: faPencilRuler,
  4110. faPeopleCarry: faPeopleCarry,
  4111. faPercent: faPercent,
  4112. faPercentage: faPercentage,
  4113. faPhone: faPhone,
  4114. faPhoneSlash: faPhoneSlash,
  4115. faPhoneSquare: faPhoneSquare,
  4116. faPhoneVolume: faPhoneVolume,
  4117. faPiggyBank: faPiggyBank,
  4118. faPills: faPills,
  4119. faPlaceOfWorship: faPlaceOfWorship,
  4120. faPlane: faPlane,
  4121. faPlaneArrival: faPlaneArrival,
  4122. faPlaneDeparture: faPlaneDeparture,
  4123. faPlay: faPlay,
  4124. faPlayCircle: faPlayCircle,
  4125. faPlug: faPlug,
  4126. faPlus: faPlus,
  4127. faPlusCircle: faPlusCircle,
  4128. faPlusSquare: faPlusSquare,
  4129. faPodcast: faPodcast,
  4130. faPoll: faPoll,
  4131. faPollH: faPollH,
  4132. faPoo: faPoo,
  4133. faPoop: faPoop,
  4134. faPortrait: faPortrait,
  4135. faPoundSign: faPoundSign,
  4136. faPowerOff: faPowerOff,
  4137. faPray: faPray,
  4138. faPrayingHands: faPrayingHands,
  4139. faPrescription: faPrescription,
  4140. faPrescriptionBottle: faPrescriptionBottle,
  4141. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4142. faPrint: faPrint,
  4143. faProcedures: faProcedures,
  4144. faProjectDiagram: faProjectDiagram,
  4145. faPuzzlePiece: faPuzzlePiece,
  4146. faQrcode: faQrcode,
  4147. faQuestion: faQuestion,
  4148. faQuestionCircle: faQuestionCircle,
  4149. faQuidditch: faQuidditch,
  4150. faQuoteLeft: faQuoteLeft,
  4151. faQuoteRight: faQuoteRight,
  4152. faQuran: faQuran,
  4153. faRandom: faRandom,
  4154. faReceipt: faReceipt,
  4155. faRecycle: faRecycle,
  4156. faRedo: faRedo,
  4157. faRedoAlt: faRedoAlt,
  4158. faRegistered: faRegistered,
  4159. faReply: faReply,
  4160. faReplyAll: faReplyAll,
  4161. faRetweet: faRetweet,
  4162. faRibbon: faRibbon,
  4163. faRing: faRing,
  4164. faRoad: faRoad,
  4165. faRobot: faRobot,
  4166. faRocket: faRocket,
  4167. faRoute: faRoute,
  4168. faRss: faRss,
  4169. faRssSquare: faRssSquare,
  4170. faRubleSign: faRubleSign,
  4171. faRuler: faRuler,
  4172. faRulerCombined: faRulerCombined,
  4173. faRulerHorizontal: faRulerHorizontal,
  4174. faRulerVertical: faRulerVertical,
  4175. faRunning: faRunning,
  4176. faRupeeSign: faRupeeSign,
  4177. faSadCry: faSadCry,
  4178. faSadTear: faSadTear,
  4179. faSave: faSave,
  4180. faSchool: faSchool,
  4181. faScrewdriver: faScrewdriver,
  4182. faScroll: faScroll,
  4183. faSearch: faSearch,
  4184. faSearchDollar: faSearchDollar,
  4185. faSearchLocation: faSearchLocation,
  4186. faSearchMinus: faSearchMinus,
  4187. faSearchPlus: faSearchPlus,
  4188. faSeedling: faSeedling,
  4189. faServer: faServer,
  4190. faShapes: faShapes,
  4191. faShare: faShare,
  4192. faShareAlt: faShareAlt,
  4193. faShareAltSquare: faShareAltSquare,
  4194. faShareSquare: faShareSquare,
  4195. faShekelSign: faShekelSign,
  4196. faShieldAlt: faShieldAlt,
  4197. faShip: faShip,
  4198. faShippingFast: faShippingFast,
  4199. faShoePrints: faShoePrints,
  4200. faShoppingBag: faShoppingBag,
  4201. faShoppingBasket: faShoppingBasket,
  4202. faShoppingCart: faShoppingCart,
  4203. faShower: faShower,
  4204. faShuttleVan: faShuttleVan,
  4205. faSign: faSign,
  4206. faSignInAlt: faSignInAlt,
  4207. faSignLanguage: faSignLanguage,
  4208. faSignOutAlt: faSignOutAlt,
  4209. faSignal: faSignal,
  4210. faSignature: faSignature,
  4211. faSitemap: faSitemap,
  4212. faSkull: faSkull,
  4213. faSkullCrossbones: faSkullCrossbones,
  4214. faSlash: faSlash,
  4215. faSlidersH: faSlidersH,
  4216. faSmile: faSmile,
  4217. faSmileBeam: faSmileBeam,
  4218. faSmileWink: faSmileWink,
  4219. faSmoking: faSmoking,
  4220. faSmokingBan: faSmokingBan,
  4221. faSnowflake: faSnowflake,
  4222. faSocks: faSocks,
  4223. faSolarPanel: faSolarPanel,
  4224. faSort: faSort,
  4225. faSortAlphaDown: faSortAlphaDown,
  4226. faSortAlphaUp: faSortAlphaUp,
  4227. faSortAmountDown: faSortAmountDown,
  4228. faSortAmountUp: faSortAmountUp,
  4229. faSortDown: faSortDown,
  4230. faSortNumericDown: faSortNumericDown,
  4231. faSortNumericUp: faSortNumericUp,
  4232. faSortUp: faSortUp,
  4233. faSpa: faSpa,
  4234. faSpaceShuttle: faSpaceShuttle,
  4235. faSpider: faSpider,
  4236. faSpinner: faSpinner,
  4237. faSplotch: faSplotch,
  4238. faSprayCan: faSprayCan,
  4239. faSquare: faSquare,
  4240. faSquareFull: faSquareFull,
  4241. faSquareRootAlt: faSquareRootAlt,
  4242. faStamp: faStamp,
  4243. faStar: faStar,
  4244. faStarAndCrescent: faStarAndCrescent,
  4245. faStarHalf: faStarHalf,
  4246. faStarHalfAlt: faStarHalfAlt,
  4247. faStarOfDavid: faStarOfDavid,
  4248. faStarOfLife: faStarOfLife,
  4249. faStepBackward: faStepBackward,
  4250. faStepForward: faStepForward,
  4251. faStethoscope: faStethoscope,
  4252. faStickyNote: faStickyNote,
  4253. faStop: faStop,
  4254. faStopCircle: faStopCircle,
  4255. faStopwatch: faStopwatch,
  4256. faStore: faStore,
  4257. faStoreAlt: faStoreAlt,
  4258. faStream: faStream,
  4259. faStreetView: faStreetView,
  4260. faStrikethrough: faStrikethrough,
  4261. faStroopwafel: faStroopwafel,
  4262. faSubscript: faSubscript,
  4263. faSubway: faSubway,
  4264. faSuitcase: faSuitcase,
  4265. faSuitcaseRolling: faSuitcaseRolling,
  4266. faSun: faSun,
  4267. faSuperscript: faSuperscript,
  4268. faSurprise: faSurprise,
  4269. faSwatchbook: faSwatchbook,
  4270. faSwimmer: faSwimmer,
  4271. faSwimmingPool: faSwimmingPool,
  4272. faSynagogue: faSynagogue,
  4273. faSync: faSync,
  4274. faSyncAlt: faSyncAlt,
  4275. faSyringe: faSyringe,
  4276. faTable: faTable,
  4277. faTableTennis: faTableTennis,
  4278. faTablet: faTablet,
  4279. faTabletAlt: faTabletAlt,
  4280. faTablets: faTablets,
  4281. faTachometerAlt: faTachometerAlt,
  4282. faTag: faTag,
  4283. faTags: faTags,
  4284. faTape: faTape,
  4285. faTasks: faTasks,
  4286. faTaxi: faTaxi,
  4287. faTeeth: faTeeth,
  4288. faTeethOpen: faTeethOpen,
  4289. faTerminal: faTerminal,
  4290. faTextHeight: faTextHeight,
  4291. faTextWidth: faTextWidth,
  4292. faTh: faTh,
  4293. faThLarge: faThLarge,
  4294. faThList: faThList,
  4295. faTheaterMasks: faTheaterMasks,
  4296. faThermometer: faThermometer,
  4297. faThermometerEmpty: faThermometerEmpty,
  4298. faThermometerFull: faThermometerFull,
  4299. faThermometerHalf: faThermometerHalf,
  4300. faThermometerQuarter: faThermometerQuarter,
  4301. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4302. faThumbsDown: faThumbsDown,
  4303. faThumbsUp: faThumbsUp,
  4304. faThumbtack: faThumbtack,
  4305. faTicketAlt: faTicketAlt,
  4306. faTimes: faTimes,
  4307. faTimesCircle: faTimesCircle,
  4308. faTint: faTint,
  4309. faTintSlash: faTintSlash,
  4310. faTired: faTired,
  4311. faToggleOff: faToggleOff,
  4312. faToggleOn: faToggleOn,
  4313. faToiletPaper: faToiletPaper,
  4314. faToolbox: faToolbox,
  4315. faTooth: faTooth,
  4316. faTorah: faTorah,
  4317. faToriiGate: faToriiGate,
  4318. faTractor: faTractor,
  4319. faTrademark: faTrademark,
  4320. faTrafficLight: faTrafficLight,
  4321. faTrain: faTrain,
  4322. faTransgender: faTransgender,
  4323. faTransgenderAlt: faTransgenderAlt,
  4324. faTrash: faTrash,
  4325. faTrashAlt: faTrashAlt,
  4326. faTree: faTree,
  4327. faTrophy: faTrophy,
  4328. faTruck: faTruck,
  4329. faTruckLoading: faTruckLoading,
  4330. faTruckMonster: faTruckMonster,
  4331. faTruckMoving: faTruckMoving,
  4332. faTruckPickup: faTruckPickup,
  4333. faTshirt: faTshirt,
  4334. faTty: faTty,
  4335. faTv: faTv,
  4336. faUmbrella: faUmbrella,
  4337. faUmbrellaBeach: faUmbrellaBeach,
  4338. faUnderline: faUnderline,
  4339. faUndo: faUndo,
  4340. faUndoAlt: faUndoAlt,
  4341. faUniversalAccess: faUniversalAccess,
  4342. faUniversity: faUniversity,
  4343. faUnlink: faUnlink,
  4344. faUnlock: faUnlock,
  4345. faUnlockAlt: faUnlockAlt,
  4346. faUpload: faUpload,
  4347. faUser: faUser,
  4348. faUserAlt: faUserAlt,
  4349. faUserAltSlash: faUserAltSlash,
  4350. faUserAstronaut: faUserAstronaut,
  4351. faUserCheck: faUserCheck,
  4352. faUserCircle: faUserCircle,
  4353. faUserClock: faUserClock,
  4354. faUserCog: faUserCog,
  4355. faUserEdit: faUserEdit,
  4356. faUserFriends: faUserFriends,
  4357. faUserGraduate: faUserGraduate,
  4358. faUserInjured: faUserInjured,
  4359. faUserLock: faUserLock,
  4360. faUserMd: faUserMd,
  4361. faUserMinus: faUserMinus,
  4362. faUserNinja: faUserNinja,
  4363. faUserPlus: faUserPlus,
  4364. faUserSecret: faUserSecret,
  4365. faUserShield: faUserShield,
  4366. faUserSlash: faUserSlash,
  4367. faUserTag: faUserTag,
  4368. faUserTie: faUserTie,
  4369. faUserTimes: faUserTimes,
  4370. faUsers: faUsers,
  4371. faUsersCog: faUsersCog,
  4372. faUtensilSpoon: faUtensilSpoon,
  4373. faUtensils: faUtensils,
  4374. faVectorSquare: faVectorSquare,
  4375. faVenus: faVenus,
  4376. faVenusDouble: faVenusDouble,
  4377. faVenusMars: faVenusMars,
  4378. faVial: faVial,
  4379. faVials: faVials,
  4380. faVideo: faVideo,
  4381. faVideoSlash: faVideoSlash,
  4382. faVihara: faVihara,
  4383. faVolleyballBall: faVolleyballBall,
  4384. faVolumeDown: faVolumeDown,
  4385. faVolumeMute: faVolumeMute,
  4386. faVolumeOff: faVolumeOff,
  4387. faVolumeUp: faVolumeUp,
  4388. faVrCardboard: faVrCardboard,
  4389. faWalking: faWalking,
  4390. faWallet: faWallet,
  4391. faWarehouse: faWarehouse,
  4392. faWeight: faWeight,
  4393. faWeightHanging: faWeightHanging,
  4394. faWheelchair: faWheelchair,
  4395. faWifi: faWifi,
  4396. faWind: faWind,
  4397. faWindowClose: faWindowClose,
  4398. faWindowMaximize: faWindowMaximize,
  4399. faWindowMinimize: faWindowMinimize,
  4400. faWindowRestore: faWindowRestore,
  4401. faWineBottle: faWineBottle,
  4402. faWineGlass: faWineGlass,
  4403. faWineGlassAlt: faWineGlassAlt,
  4404. faWonSign: faWonSign,
  4405. faWrench: faWrench,
  4406. faXRay: faXRay,
  4407. faYenSign: faYenSign,
  4408. faYinYang: faYinYang
  4409. };
  4410. /***/ }),
  4411. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4412. /*!***********************************************************************************!*\
  4413. !*** D:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4414. \***********************************************************************************/
  4415. /*! exports provided: FontAwesomeIcon */
  4416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4417. "use strict";
  4418. __webpack_require__.r(__webpack_exports__);
  4419. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4420. /* 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");
  4421. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4422. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4423. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4425. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4426. function createCommonjsModule(fn, module) {
  4427. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4428. }
  4429. var humps = createCommonjsModule(function (module) {
  4430. (function(global) {
  4431. var _processKeys = function(convert, obj, options) {
  4432. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4433. return obj;
  4434. }
  4435. var output,
  4436. i = 0,
  4437. l = 0;
  4438. if(_isArray(obj)) {
  4439. output = [];
  4440. for(l=obj.length; i<l; i++) {
  4441. output.push(_processKeys(convert, obj[i], options));
  4442. }
  4443. }
  4444. else {
  4445. output = {};
  4446. for(var key in obj) {
  4447. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4448. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4449. }
  4450. }
  4451. }
  4452. return output;
  4453. };
  4454. // String conversion methods
  4455. var separateWords = function(string, options) {
  4456. options = options || {};
  4457. var separator = options.separator || '_';
  4458. var split = options.split || /(?=[A-Z])/;
  4459. return string.split(split).join(separator);
  4460. };
  4461. var camelize = function(string) {
  4462. if (_isNumerical(string)) {
  4463. return string;
  4464. }
  4465. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4466. return chr ? chr.toUpperCase() : '';
  4467. });
  4468. // Ensure 1st char is always lowercase
  4469. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4470. };
  4471. var pascalize = function(string) {
  4472. var camelized = camelize(string);
  4473. // Ensure 1st char is always uppercase
  4474. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4475. };
  4476. var decamelize = function(string, options) {
  4477. return separateWords(string, options).toLowerCase();
  4478. };
  4479. // Utilities
  4480. // Taken from Underscore.js
  4481. var toString = Object.prototype.toString;
  4482. var _isFunction = function(obj) {
  4483. return typeof(obj) === 'function';
  4484. };
  4485. var _isObject = function(obj) {
  4486. return obj === Object(obj);
  4487. };
  4488. var _isArray = function(obj) {
  4489. return toString.call(obj) == '[object Array]';
  4490. };
  4491. var _isDate = function(obj) {
  4492. return toString.call(obj) == '[object Date]';
  4493. };
  4494. var _isRegExp = function(obj) {
  4495. return toString.call(obj) == '[object RegExp]';
  4496. };
  4497. var _isBoolean = function(obj) {
  4498. return toString.call(obj) == '[object Boolean]';
  4499. };
  4500. // Performant way to determine if obj coerces to a number
  4501. var _isNumerical = function(obj) {
  4502. obj = obj - 0;
  4503. return obj === obj;
  4504. };
  4505. // Sets up function which handles processing keys
  4506. // allowing the convert function to be modified by a callback
  4507. var _processor = function(convert, options) {
  4508. var callback = options && 'process' in options ? options.process : options;
  4509. if(typeof(callback) !== 'function') {
  4510. return convert;
  4511. }
  4512. return function(string, options) {
  4513. return callback(string, convert, options);
  4514. }
  4515. };
  4516. var humps = {
  4517. camelize: camelize,
  4518. decamelize: decamelize,
  4519. pascalize: pascalize,
  4520. depascalize: decamelize,
  4521. camelizeKeys: function(object, options) {
  4522. return _processKeys(_processor(camelize, options), object);
  4523. },
  4524. decamelizeKeys: function(object, options) {
  4525. return _processKeys(_processor(decamelize, options), object, options);
  4526. },
  4527. pascalizeKeys: function(object, options) {
  4528. return _processKeys(_processor(pascalize, options), object);
  4529. },
  4530. depascalizeKeys: function () {
  4531. return this.decamelizeKeys.apply(this, arguments);
  4532. }
  4533. };
  4534. if (module.exports) {
  4535. module.exports = humps;
  4536. } else {
  4537. global.humps = humps;
  4538. }
  4539. })(commonjsGlobal);
  4540. });
  4541. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  4542. return typeof obj;
  4543. } : function (obj) {
  4544. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4545. };
  4546. var defineProperty = function (obj, key, value) {
  4547. if (key in obj) {
  4548. Object.defineProperty(obj, key, {
  4549. value: value,
  4550. enumerable: true,
  4551. configurable: true,
  4552. writable: true
  4553. });
  4554. } else {
  4555. obj[key] = value;
  4556. }
  4557. return obj;
  4558. };
  4559. var _extends = Object.assign || function (target) {
  4560. for (var i = 1; i < arguments.length; i++) {
  4561. var source = arguments[i];
  4562. for (var key in source) {
  4563. if (Object.prototype.hasOwnProperty.call(source, key)) {
  4564. target[key] = source[key];
  4565. }
  4566. }
  4567. }
  4568. return target;
  4569. };
  4570. var objectWithoutProperties = function (obj, keys) {
  4571. var target = {};
  4572. for (var i in obj) {
  4573. if (keys.indexOf(i) >= 0) continue;
  4574. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  4575. target[i] = obj[i];
  4576. }
  4577. return target;
  4578. };
  4579. var toConsumableArray = function (arr) {
  4580. if (Array.isArray(arr)) {
  4581. for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4582. return arr2;
  4583. } else {
  4584. return Array.from(arr);
  4585. }
  4586. };
  4587. function capitalize(val) {
  4588. return val.charAt(0).toUpperCase() + val.slice(1);
  4589. }
  4590. function styleToObject(style) {
  4591. return style.split(';').map(function (s) {
  4592. return s.trim();
  4593. }).filter(function (s) {
  4594. return s;
  4595. }).reduce(function (acc, pair) {
  4596. var i = pair.indexOf(':');
  4597. var prop = humps.camelize(pair.slice(0, i));
  4598. var value = pair.slice(i + 1).trim();
  4599. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4600. return acc;
  4601. }, {});
  4602. }
  4603. function convert(createElement, element) {
  4604. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4605. if (typeof element === 'string') {
  4606. return element;
  4607. }
  4608. var children = (element.children || []).map(convert.bind(null, createElement));
  4609. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4610. var val = element.attributes[key];
  4611. switch (key) {
  4612. case 'class':
  4613. acc.attrs['className'] = val;
  4614. delete element.attributes['class'];
  4615. break;
  4616. case 'style':
  4617. acc.attrs['style'] = styleToObject(val);
  4618. break;
  4619. default:
  4620. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4621. acc.attrs[key.toLowerCase()] = val;
  4622. } else {
  4623. acc.attrs[humps.camelize(key)] = val;
  4624. }
  4625. }
  4626. return acc;
  4627. }, { attrs: {} });
  4628. var _extraProps$style = extraProps.style,
  4629. existingStyle = _extraProps$style === undefined ? {} : _extraProps$style,
  4630. remaining = objectWithoutProperties(extraProps, ['style']);
  4631. mixins.attrs['style'] = _extends({}, mixins.attrs['style'], existingStyle);
  4632. return createElement.apply(undefined, [element.tag, _extends({}, mixins.attrs, remaining)].concat(toConsumableArray(children)));
  4633. }
  4634. var PRODUCTION = false;
  4635. try {
  4636. PRODUCTION = "development" === 'production';
  4637. } catch (e) {}
  4638. function log () {
  4639. if (!PRODUCTION && console && typeof console.error === 'function') {
  4640. var _console;
  4641. (_console = console).error.apply(_console, arguments);
  4642. }
  4643. }
  4644. function objectWithKey(key, value) {
  4645. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? defineProperty({}, key, value) : {};
  4646. }
  4647. function classList(props) {
  4648. var _classes;
  4649. var classes = (_classes = {
  4650. 'fa-spin': props.spin,
  4651. 'fa-pulse': props.pulse,
  4652. 'fa-fw': props.fixedWidth,
  4653. 'fa-inverse': props.inverse,
  4654. 'fa-border': props.border,
  4655. 'fa-li': props.listItem,
  4656. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  4657. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  4658. }, defineProperty(_classes, 'fa-' + props.size, props.size !== null), defineProperty(_classes, 'fa-rotate-' + props.rotation, props.rotation !== null), defineProperty(_classes, 'fa-pull-' + props.pull, props.pull !== null), _classes);
  4659. return Object.keys(classes).map(function (key) {
  4660. return classes[key] ? key : null;
  4661. }).filter(function (key) {
  4662. return key;
  4663. });
  4664. }
  4665. function normalizeIconArgs(icon$$1) {
  4666. if (icon$$1 === null) {
  4667. return null;
  4668. }
  4669. if ((typeof icon$$1 === 'undefined' ? 'undefined' : _typeof(icon$$1)) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  4670. return icon$$1;
  4671. }
  4672. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  4673. return { prefix: icon$$1[0], iconName: icon$$1[1] };
  4674. }
  4675. if (typeof icon$$1 === 'string') {
  4676. return { prefix: 'fas', iconName: icon$$1 };
  4677. }
  4678. }
  4679. function FontAwesomeIcon(props) {
  4680. var iconArgs = props.icon,
  4681. maskArgs = props.mask,
  4682. symbol = props.symbol,
  4683. className = props.className,
  4684. title = props.title;
  4685. var iconLookup = normalizeIconArgs(iconArgs);
  4686. var classes = objectWithKey('classes', [].concat(toConsumableArray(classList(props)), toConsumableArray(className.split(' '))));
  4687. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  4688. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  4689. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _extends({}, classes, transform, mask, {
  4690. symbol: symbol,
  4691. title: title
  4692. }));
  4693. if (!renderedIcon) {
  4694. log('Could not find icon', iconLookup);
  4695. return null;
  4696. }
  4697. var abstract = renderedIcon.abstract;
  4698. var extraProps = {};
  4699. Object.keys(props).forEach(function (key) {
  4700. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  4701. extraProps[key] = props[key];
  4702. }
  4703. });
  4704. return convertCurry(abstract[0], extraProps);
  4705. }
  4706. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  4707. FontAwesomeIcon.propTypes = {
  4708. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4709. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  4710. 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]),
  4711. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4712. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4713. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  4714. 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]),
  4715. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4716. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  4717. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4718. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  4719. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  4720. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4721. 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]),
  4722. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  4723. 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])
  4724. };
  4725. FontAwesomeIcon.defaultProps = {
  4726. border: false,
  4727. className: '',
  4728. mask: null,
  4729. fixedWidth: false,
  4730. inverse: false,
  4731. flip: null,
  4732. icon: null,
  4733. listItem: false,
  4734. pull: null,
  4735. pulse: false,
  4736. rotation: null,
  4737. size: null,
  4738. spin: false,
  4739. symbol: false,
  4740. title: '',
  4741. transform: null
  4742. };
  4743. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  4744. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  4745. /***/ }),
  4746. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss":
  4747. /*!************************************************************************************************************************************************!*\
  4748. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss ***!
  4749. \************************************************************************************************************************************************/
  4750. /*! no static exports found */
  4751. /***/ (function(module, exports, __webpack_require__) {
  4752. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4753. // imports
  4754. // module
  4755. exports.push([module.i, ".diagramBlock {\n background: white;\n width: 200px;\n border: 4px solid black; }\n .diagramBlock.input {\n background: green;\n color: white; }\n .diagramBlock.attribute {\n background: orange; }\n .diagramBlock.output {\n background: blue;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n margin: 10px;\n font-size: 16px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .value {\n height: 34px;\n text-align: center;\n font-size: 20px;\n font-weight: bold; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 4px calc(100% - 4px);\n grid-template-rows: 100%; }\n .diagramBlock .inputs .input-port .input-port-plug {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-content: center;\n margin-left: -11px; }\n .diagramBlock .inputs .input-port .input-port-plug .srd-port {\n background: grey; }\n .diagramBlock .inputs .input-port .input-port-label {\n margin-left: 10px;\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 4px) 4px;\n grid-template-rows: 100%; }\n .diagramBlock .outputs .output-port .output-port-plug {\n grid-column: 2;\n grid-row: 1;\n display: grid;\n align-content: center; }\n .diagramBlock .outputs .output-port .output-port-plug .srd-port {\n background: grey; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n margin-right: 10px;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px; }\n", ""]);
  4756. // exports
  4757. /***/ }),
  4758. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss":
  4759. /*!****************************************************************************************************************************************!*\
  4760. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/log/log.scss ***!
  4761. \****************************************************************************************************************************************/
  4762. /*! no static exports found */
  4763. /***/ (function(module, exports, __webpack_require__) {
  4764. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4765. // imports
  4766. // module
  4767. exports.push([module.i, "#log-console {\n background: #333333;\n height: 100px;\n margin: 0;\n padding: 10px;\n width: calc(100% - 20px);\n overflow: hidden;\n overflow-y: auto; }\n #log-console .log {\n color: white;\n font-size: 14px;\n font-family: 'Courier New', Courier, monospace; }\n", ""]);
  4768. // exports
  4769. /***/ }),
  4770. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss":
  4771. /*!**************************************************************************************************************************************************!*\
  4772. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss ***!
  4773. \**************************************************************************************************************************************************/
  4774. /*! no static exports found */
  4775. /***/ (function(module, exports, __webpack_require__) {
  4776. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4777. // imports
  4778. // module
  4779. exports.push([module.i, "#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 200px;\n overflow: hidden; }\n #nodeList .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 #nodeList .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .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 #nodeList .pane .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .pane .buttonLine button:active {\n background: #282828; }\n #nodeList .pane .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #nodeList .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .pane .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #nodeList .pane .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #nodeList .pane .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #nodeList .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .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 #nodeList .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 #nodeList .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 #nodeList .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #nodeList .pane .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n", ""]);
  4780. // exports
  4781. /***/ }),
  4782. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss":
  4783. /*!********************************************************************************************************************************************************!*\
  4784. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss ***!
  4785. \********************************************************************************************************************************************************/
  4786. /*! no static exports found */
  4787. /***/ (function(module, exports, __webpack_require__) {
  4788. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4789. // imports
  4790. // module
  4791. exports.push([module.i, "#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #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 #propertyTab #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 #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: 110px; }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .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 #propertyTab .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 #propertyTab .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 #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .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 #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #propertyTab .buttonLine input[type=\"file\"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .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 #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .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 #propertyTab .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 #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .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 #propertyTab .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab .color3Line .firstLine .color3 input[type=\"color\"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #propertyTab .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .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 #propertyTab .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n", ""]);
  4792. // exports
  4793. /***/ }),
  4794. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss":
  4795. /*!**************************************************************************************************************************!*\
  4796. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./main.scss ***!
  4797. \**************************************************************************************************************************/
  4798. /*! no static exports found */
  4799. /***/ (function(module, exports, __webpack_require__) {
  4800. exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4801. // imports
  4802. // module
  4803. exports.push([module.i, "#node-editor-graph-root {\n display: grid;\n grid-template-rows: calc(100% - 120px) 120px;\n grid-template-columns: 200px calc(100% - 500px) 300px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px \"acumin-pro\"; }\n\n#nodeList {\n grid-row: 1 / span 2;\n grid-column: 1; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 2;\n background: #222222; }\n\n#propertyTab {\n grid-row: 1 / span 2;\n grid-column: 3; }\n\n#log-console {\n grid-row: 2;\n grid-column: 2; }\n", ""]);
  4804. // exports
  4805. /***/ }),
  4806. /***/ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css":
  4807. /*!****************************************************************************************************************************!*\
  4808. !*** D:/Repos/Babylon.js/node_modules/css-loader!D:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  4809. \****************************************************************************************************************************/
  4810. /*! no static exports found */
  4811. /***/ (function(module, exports, __webpack_require__) {
  4812. exports = module.exports = __webpack_require__(/*! ../../css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4813. // imports
  4814. // module
  4815. exports.push([module.i, ".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n", ""]);
  4816. // exports
  4817. /***/ }),
  4818. /***/ "../../node_modules/css-loader/lib/css-base.js":
  4819. /*!*******************************************************************!*\
  4820. !*** D:/Repos/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  4821. \*******************************************************************/
  4822. /*! no static exports found */
  4823. /***/ (function(module, exports) {
  4824. /*
  4825. MIT License http://www.opensource.org/licenses/mit-license.php
  4826. Author Tobias Koppers @sokra
  4827. */
  4828. // css base code, injected by the css-loader
  4829. module.exports = function(useSourceMap) {
  4830. var list = [];
  4831. // return the list of modules as css string
  4832. list.toString = function toString() {
  4833. return this.map(function (item) {
  4834. var content = cssWithMappingToString(item, useSourceMap);
  4835. if(item[2]) {
  4836. return "@media " + item[2] + "{" + content + "}";
  4837. } else {
  4838. return content;
  4839. }
  4840. }).join("");
  4841. };
  4842. // import a list of modules into the list
  4843. list.i = function(modules, mediaQuery) {
  4844. if(typeof modules === "string")
  4845. modules = [[null, modules, ""]];
  4846. var alreadyImportedModules = {};
  4847. for(var i = 0; i < this.length; i++) {
  4848. var id = this[i][0];
  4849. if(typeof id === "number")
  4850. alreadyImportedModules[id] = true;
  4851. }
  4852. for(i = 0; i < modules.length; i++) {
  4853. var item = modules[i];
  4854. // skip already imported module
  4855. // this implementation is not 100% perfect for weird media query combinations
  4856. // when a module is imported multiple times with different media queries.
  4857. // I hope this will never occur (Hey this way we have smaller bundles)
  4858. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  4859. if(mediaQuery && !item[2]) {
  4860. item[2] = mediaQuery;
  4861. } else if(mediaQuery) {
  4862. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  4863. }
  4864. list.push(item);
  4865. }
  4866. }
  4867. };
  4868. return list;
  4869. };
  4870. function cssWithMappingToString(item, useSourceMap) {
  4871. var content = item[1] || '';
  4872. var cssMapping = item[3];
  4873. if (!cssMapping) {
  4874. return content;
  4875. }
  4876. if (useSourceMap && typeof btoa === 'function') {
  4877. var sourceMapping = toComment(cssMapping);
  4878. var sourceURLs = cssMapping.sources.map(function (source) {
  4879. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  4880. });
  4881. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  4882. }
  4883. return [content].join('\n');
  4884. }
  4885. // Adapted from convert-source-map (MIT)
  4886. function toComment(sourceMap) {
  4887. // eslint-disable-next-line no-undef
  4888. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  4889. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  4890. return '/*# ' + data + ' */';
  4891. }
  4892. /***/ }),
  4893. /***/ "../../node_modules/lodash/lodash.js":
  4894. /*!*********************************************************!*\
  4895. !*** D:/Repos/Babylon.js/node_modules/lodash/lodash.js ***!
  4896. \*********************************************************/
  4897. /*! no static exports found */
  4898. /***/ (function(module, exports, __webpack_require__) {
  4899. /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
  4900. * @license
  4901. * Lodash <https://lodash.com/>
  4902. * Copyright JS Foundation and other contributors <https://js.foundation/>
  4903. * Released under MIT license <https://lodash.com/license>
  4904. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  4905. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  4906. */
  4907. ;(function() {
  4908. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  4909. var undefined;
  4910. /** Used as the semantic version number. */
  4911. var VERSION = '4.17.11';
  4912. /** Used as the size to enable large array optimizations. */
  4913. var LARGE_ARRAY_SIZE = 200;
  4914. /** Error message constants. */
  4915. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  4916. FUNC_ERROR_TEXT = 'Expected a function';
  4917. /** Used to stand-in for `undefined` hash values. */
  4918. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  4919. /** Used as the maximum memoize cache size. */
  4920. var MAX_MEMOIZE_SIZE = 500;
  4921. /** Used as the internal argument placeholder. */
  4922. var PLACEHOLDER = '__lodash_placeholder__';
  4923. /** Used to compose bitmasks for cloning. */
  4924. var CLONE_DEEP_FLAG = 1,
  4925. CLONE_FLAT_FLAG = 2,
  4926. CLONE_SYMBOLS_FLAG = 4;
  4927. /** Used to compose bitmasks for value comparisons. */
  4928. var COMPARE_PARTIAL_FLAG = 1,
  4929. COMPARE_UNORDERED_FLAG = 2;
  4930. /** Used to compose bitmasks for function metadata. */
  4931. var WRAP_BIND_FLAG = 1,
  4932. WRAP_BIND_KEY_FLAG = 2,
  4933. WRAP_CURRY_BOUND_FLAG = 4,
  4934. WRAP_CURRY_FLAG = 8,
  4935. WRAP_CURRY_RIGHT_FLAG = 16,
  4936. WRAP_PARTIAL_FLAG = 32,
  4937. WRAP_PARTIAL_RIGHT_FLAG = 64,
  4938. WRAP_ARY_FLAG = 128,
  4939. WRAP_REARG_FLAG = 256,
  4940. WRAP_FLIP_FLAG = 512;
  4941. /** Used as default options for `_.truncate`. */
  4942. var DEFAULT_TRUNC_LENGTH = 30,
  4943. DEFAULT_TRUNC_OMISSION = '...';
  4944. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  4945. var HOT_COUNT = 800,
  4946. HOT_SPAN = 16;
  4947. /** Used to indicate the type of lazy iteratees. */
  4948. var LAZY_FILTER_FLAG = 1,
  4949. LAZY_MAP_FLAG = 2,
  4950. LAZY_WHILE_FLAG = 3;
  4951. /** Used as references for various `Number` constants. */
  4952. var INFINITY = 1 / 0,
  4953. MAX_SAFE_INTEGER = 9007199254740991,
  4954. MAX_INTEGER = 1.7976931348623157e+308,
  4955. NAN = 0 / 0;
  4956. /** Used as references for the maximum length and index of an array. */
  4957. var MAX_ARRAY_LENGTH = 4294967295,
  4958. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  4959. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  4960. /** Used to associate wrap methods with their bit flags. */
  4961. var wrapFlags = [
  4962. ['ary', WRAP_ARY_FLAG],
  4963. ['bind', WRAP_BIND_FLAG],
  4964. ['bindKey', WRAP_BIND_KEY_FLAG],
  4965. ['curry', WRAP_CURRY_FLAG],
  4966. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  4967. ['flip', WRAP_FLIP_FLAG],
  4968. ['partial', WRAP_PARTIAL_FLAG],
  4969. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  4970. ['rearg', WRAP_REARG_FLAG]
  4971. ];
  4972. /** `Object#toString` result references. */
  4973. var argsTag = '[object Arguments]',
  4974. arrayTag = '[object Array]',
  4975. asyncTag = '[object AsyncFunction]',
  4976. boolTag = '[object Boolean]',
  4977. dateTag = '[object Date]',
  4978. domExcTag = '[object DOMException]',
  4979. errorTag = '[object Error]',
  4980. funcTag = '[object Function]',
  4981. genTag = '[object GeneratorFunction]',
  4982. mapTag = '[object Map]',
  4983. numberTag = '[object Number]',
  4984. nullTag = '[object Null]',
  4985. objectTag = '[object Object]',
  4986. promiseTag = '[object Promise]',
  4987. proxyTag = '[object Proxy]',
  4988. regexpTag = '[object RegExp]',
  4989. setTag = '[object Set]',
  4990. stringTag = '[object String]',
  4991. symbolTag = '[object Symbol]',
  4992. undefinedTag = '[object Undefined]',
  4993. weakMapTag = '[object WeakMap]',
  4994. weakSetTag = '[object WeakSet]';
  4995. var arrayBufferTag = '[object ArrayBuffer]',
  4996. dataViewTag = '[object DataView]',
  4997. float32Tag = '[object Float32Array]',
  4998. float64Tag = '[object Float64Array]',
  4999. int8Tag = '[object Int8Array]',
  5000. int16Tag = '[object Int16Array]',
  5001. int32Tag = '[object Int32Array]',
  5002. uint8Tag = '[object Uint8Array]',
  5003. uint8ClampedTag = '[object Uint8ClampedArray]',
  5004. uint16Tag = '[object Uint16Array]',
  5005. uint32Tag = '[object Uint32Array]';
  5006. /** Used to match empty string literals in compiled template source. */
  5007. var reEmptyStringLeading = /\b__p \+= '';/g,
  5008. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  5009. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  5010. /** Used to match HTML entities and HTML characters. */
  5011. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  5012. reUnescapedHtml = /[&<>"']/g,
  5013. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  5014. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  5015. /** Used to match template delimiters. */
  5016. var reEscape = /<%-([\s\S]+?)%>/g,
  5017. reEvaluate = /<%([\s\S]+?)%>/g,
  5018. reInterpolate = /<%=([\s\S]+?)%>/g;
  5019. /** Used to match property names within property paths. */
  5020. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  5021. reIsPlainProp = /^\w*$/,
  5022. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  5023. /**
  5024. * Used to match `RegExp`
  5025. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  5026. */
  5027. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  5028. reHasRegExpChar = RegExp(reRegExpChar.source);
  5029. /** Used to match leading and trailing whitespace. */
  5030. var reTrim = /^\s+|\s+$/g,
  5031. reTrimStart = /^\s+/,
  5032. reTrimEnd = /\s+$/;
  5033. /** Used to match wrap detail comments. */
  5034. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  5035. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  5036. reSplitDetails = /,? & /;
  5037. /** Used to match words composed of alphanumeric characters. */
  5038. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  5039. /** Used to match backslashes in property paths. */
  5040. var reEscapeChar = /\\(\\)?/g;
  5041. /**
  5042. * Used to match
  5043. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  5044. */
  5045. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  5046. /** Used to match `RegExp` flags from their coerced string values. */
  5047. var reFlags = /\w*$/;
  5048. /** Used to detect bad signed hexadecimal string values. */
  5049. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  5050. /** Used to detect binary string values. */
  5051. var reIsBinary = /^0b[01]+$/i;
  5052. /** Used to detect host constructors (Safari). */
  5053. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  5054. /** Used to detect octal string values. */
  5055. var reIsOctal = /^0o[0-7]+$/i;
  5056. /** Used to detect unsigned integer values. */
  5057. var reIsUint = /^(?:0|[1-9]\d*)$/;
  5058. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  5059. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  5060. /** Used to ensure capturing order of template delimiters. */
  5061. var reNoMatch = /($^)/;
  5062. /** Used to match unescaped characters in compiled string literals. */
  5063. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  5064. /** Used to compose unicode character classes. */
  5065. var rsAstralRange = '\\ud800-\\udfff',
  5066. rsComboMarksRange = '\\u0300-\\u036f',
  5067. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  5068. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  5069. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  5070. rsDingbatRange = '\\u2700-\\u27bf',
  5071. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  5072. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  5073. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  5074. rsPunctuationRange = '\\u2000-\\u206f',
  5075. rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  5076. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  5077. rsVarRange = '\\ufe0e\\ufe0f',
  5078. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  5079. /** Used to compose unicode capture groups. */
  5080. var rsApos = "['\u2019]",
  5081. rsAstral = '[' + rsAstralRange + ']',
  5082. rsBreak = '[' + rsBreakRange + ']',
  5083. rsCombo = '[' + rsComboRange + ']',
  5084. rsDigits = '\\d+',
  5085. rsDingbat = '[' + rsDingbatRange + ']',
  5086. rsLower = '[' + rsLowerRange + ']',
  5087. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  5088. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  5089. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  5090. rsNonAstral = '[^' + rsAstralRange + ']',
  5091. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  5092. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  5093. rsUpper = '[' + rsUpperRange + ']',
  5094. rsZWJ = '\\u200d';
  5095. /** Used to compose unicode regexes. */
  5096. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  5097. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  5098. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  5099. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  5100. reOptMod = rsModifier + '?',
  5101. rsOptVar = '[' + rsVarRange + ']?',
  5102. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  5103. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  5104. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  5105. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  5106. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  5107. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  5108. /** Used to match apostrophes. */
  5109. var reApos = RegExp(rsApos, 'g');
  5110. /**
  5111. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  5112. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  5113. */
  5114. var reComboMark = RegExp(rsCombo, 'g');
  5115. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  5116. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  5117. /** Used to match complex or compound words. */
  5118. var reUnicodeWord = RegExp([
  5119. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  5120. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  5121. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  5122. rsUpper + '+' + rsOptContrUpper,
  5123. rsOrdUpper,
  5124. rsOrdLower,
  5125. rsDigits,
  5126. rsEmoji
  5127. ].join('|'), 'g');
  5128. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  5129. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  5130. /** Used to detect strings that need a more robust regexp to match words. */
  5131. var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  5132. /** Used to assign default `context` object properties. */
  5133. var contextProps = [
  5134. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  5135. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  5136. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  5137. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  5138. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  5139. ];
  5140. /** Used to make template sourceURLs easier to identify. */
  5141. var templateCounter = -1;
  5142. /** Used to identify `toStringTag` values of typed arrays. */
  5143. var typedArrayTags = {};
  5144. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  5145. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  5146. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  5147. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  5148. typedArrayTags[uint32Tag] = true;
  5149. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  5150. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  5151. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  5152. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  5153. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  5154. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  5155. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  5156. typedArrayTags[weakMapTag] = false;
  5157. /** Used to identify `toStringTag` values supported by `_.clone`. */
  5158. var cloneableTags = {};
  5159. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  5160. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  5161. cloneableTags[boolTag] = cloneableTags[dateTag] =
  5162. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  5163. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  5164. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  5165. cloneableTags[numberTag] = cloneableTags[objectTag] =
  5166. cloneableTags[regexpTag] = cloneableTags[setTag] =
  5167. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  5168. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  5169. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  5170. cloneableTags[errorTag] = cloneableTags[funcTag] =
  5171. cloneableTags[weakMapTag] = false;
  5172. /** Used to map Latin Unicode letters to basic Latin letters. */
  5173. var deburredLetters = {
  5174. // Latin-1 Supplement block.
  5175. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  5176. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  5177. '\xc7': 'C', '\xe7': 'c',
  5178. '\xd0': 'D', '\xf0': 'd',
  5179. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  5180. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  5181. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  5182. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  5183. '\xd1': 'N', '\xf1': 'n',
  5184. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  5185. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  5186. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  5187. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  5188. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  5189. '\xc6': 'Ae', '\xe6': 'ae',
  5190. '\xde': 'Th', '\xfe': 'th',
  5191. '\xdf': 'ss',
  5192. // Latin Extended-A block.
  5193. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  5194. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  5195. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  5196. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  5197. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  5198. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  5199. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  5200. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  5201. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  5202. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  5203. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  5204. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  5205. '\u0134': 'J', '\u0135': 'j',
  5206. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  5207. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  5208. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  5209. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  5210. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  5211. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  5212. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  5213. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  5214. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  5215. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  5216. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  5217. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  5218. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  5219. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  5220. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  5221. '\u0174': 'W', '\u0175': 'w',
  5222. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  5223. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  5224. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  5225. '\u0132': 'IJ', '\u0133': 'ij',
  5226. '\u0152': 'Oe', '\u0153': 'oe',
  5227. '\u0149': "'n", '\u017f': 's'
  5228. };
  5229. /** Used to map characters to HTML entities. */
  5230. var htmlEscapes = {
  5231. '&': '&amp;',
  5232. '<': '&lt;',
  5233. '>': '&gt;',
  5234. '"': '&quot;',
  5235. "'": '&#39;'
  5236. };
  5237. /** Used to map HTML entities to characters. */
  5238. var htmlUnescapes = {
  5239. '&amp;': '&',
  5240. '&lt;': '<',
  5241. '&gt;': '>',
  5242. '&quot;': '"',
  5243. '&#39;': "'"
  5244. };
  5245. /** Used to escape characters for inclusion in compiled string literals. */
  5246. var stringEscapes = {
  5247. '\\': '\\',
  5248. "'": "'",
  5249. '\n': 'n',
  5250. '\r': 'r',
  5251. '\u2028': 'u2028',
  5252. '\u2029': 'u2029'
  5253. };
  5254. /** Built-in method references without a dependency on `root`. */
  5255. var freeParseFloat = parseFloat,
  5256. freeParseInt = parseInt;
  5257. /** Detect free variable `global` from Node.js. */
  5258. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  5259. /** Detect free variable `self`. */
  5260. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  5261. /** Used as a reference to the global object. */
  5262. var root = freeGlobal || freeSelf || Function('return this')();
  5263. /** Detect free variable `exports`. */
  5264. var freeExports = true && exports && !exports.nodeType && exports;
  5265. /** Detect free variable `module`. */
  5266. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  5267. /** Detect the popular CommonJS extension `module.exports`. */
  5268. var moduleExports = freeModule && freeModule.exports === freeExports;
  5269. /** Detect free variable `process` from Node.js. */
  5270. var freeProcess = moduleExports && freeGlobal.process;
  5271. /** Used to access faster Node.js helpers. */
  5272. var nodeUtil = (function() {
  5273. try {
  5274. // Use `util.types` for Node.js 10+.
  5275. var types = freeModule && freeModule.require && freeModule.require('util').types;
  5276. if (types) {
  5277. return types;
  5278. }
  5279. // Legacy `process.binding('util')` for Node.js < 10.
  5280. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  5281. } catch (e) {}
  5282. }());
  5283. /* Node.js helper references. */
  5284. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  5285. nodeIsDate = nodeUtil && nodeUtil.isDate,
  5286. nodeIsMap = nodeUtil && nodeUtil.isMap,
  5287. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  5288. nodeIsSet = nodeUtil && nodeUtil.isSet,
  5289. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  5290. /*--------------------------------------------------------------------------*/
  5291. /**
  5292. * A faster alternative to `Function#apply`, this function invokes `func`
  5293. * with the `this` binding of `thisArg` and the arguments of `args`.
  5294. *
  5295. * @private
  5296. * @param {Function} func The function to invoke.
  5297. * @param {*} thisArg The `this` binding of `func`.
  5298. * @param {Array} args The arguments to invoke `func` with.
  5299. * @returns {*} Returns the result of `func`.
  5300. */
  5301. function apply(func, thisArg, args) {
  5302. switch (args.length) {
  5303. case 0: return func.call(thisArg);
  5304. case 1: return func.call(thisArg, args[0]);
  5305. case 2: return func.call(thisArg, args[0], args[1]);
  5306. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  5307. }
  5308. return func.apply(thisArg, args);
  5309. }
  5310. /**
  5311. * A specialized version of `baseAggregator` for arrays.
  5312. *
  5313. * @private
  5314. * @param {Array} [array] The array to iterate over.
  5315. * @param {Function} setter The function to set `accumulator` values.
  5316. * @param {Function} iteratee The iteratee to transform keys.
  5317. * @param {Object} accumulator The initial aggregated object.
  5318. * @returns {Function} Returns `accumulator`.
  5319. */
  5320. function arrayAggregator(array, setter, iteratee, accumulator) {
  5321. var index = -1,
  5322. length = array == null ? 0 : array.length;
  5323. while (++index < length) {
  5324. var value = array[index];
  5325. setter(accumulator, value, iteratee(value), array);
  5326. }
  5327. return accumulator;
  5328. }
  5329. /**
  5330. * A specialized version of `_.forEach` for arrays without support for
  5331. * iteratee shorthands.
  5332. *
  5333. * @private
  5334. * @param {Array} [array] The array to iterate over.
  5335. * @param {Function} iteratee The function invoked per iteration.
  5336. * @returns {Array} Returns `array`.
  5337. */
  5338. function arrayEach(array, iteratee) {
  5339. var index = -1,
  5340. length = array == null ? 0 : array.length;
  5341. while (++index < length) {
  5342. if (iteratee(array[index], index, array) === false) {
  5343. break;
  5344. }
  5345. }
  5346. return array;
  5347. }
  5348. /**
  5349. * A specialized version of `_.forEachRight` for arrays without support for
  5350. * iteratee shorthands.
  5351. *
  5352. * @private
  5353. * @param {Array} [array] The array to iterate over.
  5354. * @param {Function} iteratee The function invoked per iteration.
  5355. * @returns {Array} Returns `array`.
  5356. */
  5357. function arrayEachRight(array, iteratee) {
  5358. var length = array == null ? 0 : array.length;
  5359. while (length--) {
  5360. if (iteratee(array[length], length, array) === false) {
  5361. break;
  5362. }
  5363. }
  5364. return array;
  5365. }
  5366. /**
  5367. * A specialized version of `_.every` for arrays without support for
  5368. * iteratee shorthands.
  5369. *
  5370. * @private
  5371. * @param {Array} [array] The array to iterate over.
  5372. * @param {Function} predicate The function invoked per iteration.
  5373. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  5374. * else `false`.
  5375. */
  5376. function arrayEvery(array, predicate) {
  5377. var index = -1,
  5378. length = array == null ? 0 : array.length;
  5379. while (++index < length) {
  5380. if (!predicate(array[index], index, array)) {
  5381. return false;
  5382. }
  5383. }
  5384. return true;
  5385. }
  5386. /**
  5387. * A specialized version of `_.filter` for arrays without support for
  5388. * iteratee shorthands.
  5389. *
  5390. * @private
  5391. * @param {Array} [array] The array to iterate over.
  5392. * @param {Function} predicate The function invoked per iteration.
  5393. * @returns {Array} Returns the new filtered array.
  5394. */
  5395. function arrayFilter(array, predicate) {
  5396. var index = -1,
  5397. length = array == null ? 0 : array.length,
  5398. resIndex = 0,
  5399. result = [];
  5400. while (++index < length) {
  5401. var value = array[index];
  5402. if (predicate(value, index, array)) {
  5403. result[resIndex++] = value;
  5404. }
  5405. }
  5406. return result;
  5407. }
  5408. /**
  5409. * A specialized version of `_.includes` for arrays without support for
  5410. * specifying an index to search from.
  5411. *
  5412. * @private
  5413. * @param {Array} [array] The array to inspect.
  5414. * @param {*} target The value to search for.
  5415. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  5416. */
  5417. function arrayIncludes(array, value) {
  5418. var length = array == null ? 0 : array.length;
  5419. return !!length && baseIndexOf(array, value, 0) > -1;
  5420. }
  5421. /**
  5422. * This function is like `arrayIncludes` except that it accepts a comparator.
  5423. *
  5424. * @private
  5425. * @param {Array} [array] The array to inspect.
  5426. * @param {*} target The value to search for.
  5427. * @param {Function} comparator The comparator invoked per element.
  5428. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  5429. */
  5430. function arrayIncludesWith(array, value, comparator) {
  5431. var index = -1,
  5432. length = array == null ? 0 : array.length;
  5433. while (++index < length) {
  5434. if (comparator(value, array[index])) {
  5435. return true;
  5436. }
  5437. }
  5438. return false;
  5439. }
  5440. /**
  5441. * A specialized version of `_.map` for arrays without support for iteratee
  5442. * shorthands.
  5443. *
  5444. * @private
  5445. * @param {Array} [array] The array to iterate over.
  5446. * @param {Function} iteratee The function invoked per iteration.
  5447. * @returns {Array} Returns the new mapped array.
  5448. */
  5449. function arrayMap(array, iteratee) {
  5450. var index = -1,
  5451. length = array == null ? 0 : array.length,
  5452. result = Array(length);
  5453. while (++index < length) {
  5454. result[index] = iteratee(array[index], index, array);
  5455. }
  5456. return result;
  5457. }
  5458. /**
  5459. * Appends the elements of `values` to `array`.
  5460. *
  5461. * @private
  5462. * @param {Array} array The array to modify.
  5463. * @param {Array} values The values to append.
  5464. * @returns {Array} Returns `array`.
  5465. */
  5466. function arrayPush(array, values) {
  5467. var index = -1,
  5468. length = values.length,
  5469. offset = array.length;
  5470. while (++index < length) {
  5471. array[offset + index] = values[index];
  5472. }
  5473. return array;
  5474. }
  5475. /**
  5476. * A specialized version of `_.reduce` for arrays without support for
  5477. * iteratee shorthands.
  5478. *
  5479. * @private
  5480. * @param {Array} [array] The array to iterate over.
  5481. * @param {Function} iteratee The function invoked per iteration.
  5482. * @param {*} [accumulator] The initial value.
  5483. * @param {boolean} [initAccum] Specify using the first element of `array` as
  5484. * the initial value.
  5485. * @returns {*} Returns the accumulated value.
  5486. */
  5487. function arrayReduce(array, iteratee, accumulator, initAccum) {
  5488. var index = -1,
  5489. length = array == null ? 0 : array.length;
  5490. if (initAccum && length) {
  5491. accumulator = array[++index];
  5492. }
  5493. while (++index < length) {
  5494. accumulator = iteratee(accumulator, array[index], index, array);
  5495. }
  5496. return accumulator;
  5497. }
  5498. /**
  5499. * A specialized version of `_.reduceRight` for arrays without support for
  5500. * iteratee shorthands.
  5501. *
  5502. * @private
  5503. * @param {Array} [array] The array to iterate over.
  5504. * @param {Function} iteratee The function invoked per iteration.
  5505. * @param {*} [accumulator] The initial value.
  5506. * @param {boolean} [initAccum] Specify using the last element of `array` as
  5507. * the initial value.
  5508. * @returns {*} Returns the accumulated value.
  5509. */
  5510. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  5511. var length = array == null ? 0 : array.length;
  5512. if (initAccum && length) {
  5513. accumulator = array[--length];
  5514. }
  5515. while (length--) {
  5516. accumulator = iteratee(accumulator, array[length], length, array);
  5517. }
  5518. return accumulator;
  5519. }
  5520. /**
  5521. * A specialized version of `_.some` for arrays without support for iteratee
  5522. * shorthands.
  5523. *
  5524. * @private
  5525. * @param {Array} [array] The array to iterate over.
  5526. * @param {Function} predicate The function invoked per iteration.
  5527. * @returns {boolean} Returns `true` if any element passes the predicate check,
  5528. * else `false`.
  5529. */
  5530. function arraySome(array, predicate) {
  5531. var index = -1,
  5532. length = array == null ? 0 : array.length;
  5533. while (++index < length) {
  5534. if (predicate(array[index], index, array)) {
  5535. return true;
  5536. }
  5537. }
  5538. return false;
  5539. }
  5540. /**
  5541. * Gets the size of an ASCII `string`.
  5542. *
  5543. * @private
  5544. * @param {string} string The string inspect.
  5545. * @returns {number} Returns the string size.
  5546. */
  5547. var asciiSize = baseProperty('length');
  5548. /**
  5549. * Converts an ASCII `string` to an array.
  5550. *
  5551. * @private
  5552. * @param {string} string The string to convert.
  5553. * @returns {Array} Returns the converted array.
  5554. */
  5555. function asciiToArray(string) {
  5556. return string.split('');
  5557. }
  5558. /**
  5559. * Splits an ASCII `string` into an array of its words.
  5560. *
  5561. * @private
  5562. * @param {string} The string to inspect.
  5563. * @returns {Array} Returns the words of `string`.
  5564. */
  5565. function asciiWords(string) {
  5566. return string.match(reAsciiWord) || [];
  5567. }
  5568. /**
  5569. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  5570. * without support for iteratee shorthands, which iterates over `collection`
  5571. * using `eachFunc`.
  5572. *
  5573. * @private
  5574. * @param {Array|Object} collection The collection to inspect.
  5575. * @param {Function} predicate The function invoked per iteration.
  5576. * @param {Function} eachFunc The function to iterate over `collection`.
  5577. * @returns {*} Returns the found element or its key, else `undefined`.
  5578. */
  5579. function baseFindKey(collection, predicate, eachFunc) {
  5580. var result;
  5581. eachFunc(collection, function(value, key, collection) {
  5582. if (predicate(value, key, collection)) {
  5583. result = key;
  5584. return false;
  5585. }
  5586. });
  5587. return result;
  5588. }
  5589. /**
  5590. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  5591. * support for iteratee shorthands.
  5592. *
  5593. * @private
  5594. * @param {Array} array The array to inspect.
  5595. * @param {Function} predicate The function invoked per iteration.
  5596. * @param {number} fromIndex The index to search from.
  5597. * @param {boolean} [fromRight] Specify iterating from right to left.
  5598. * @returns {number} Returns the index of the matched value, else `-1`.
  5599. */
  5600. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  5601. var length = array.length,
  5602. index = fromIndex + (fromRight ? 1 : -1);
  5603. while ((fromRight ? index-- : ++index < length)) {
  5604. if (predicate(array[index], index, array)) {
  5605. return index;
  5606. }
  5607. }
  5608. return -1;
  5609. }
  5610. /**
  5611. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  5612. *
  5613. * @private
  5614. * @param {Array} array The array to inspect.
  5615. * @param {*} value The value to search for.
  5616. * @param {number} fromIndex The index to search from.
  5617. * @returns {number} Returns the index of the matched value, else `-1`.
  5618. */
  5619. function baseIndexOf(array, value, fromIndex) {
  5620. return value === value
  5621. ? strictIndexOf(array, value, fromIndex)
  5622. : baseFindIndex(array, baseIsNaN, fromIndex);
  5623. }
  5624. /**
  5625. * This function is like `baseIndexOf` except that it accepts a comparator.
  5626. *
  5627. * @private
  5628. * @param {Array} array The array to inspect.
  5629. * @param {*} value The value to search for.
  5630. * @param {number} fromIndex The index to search from.
  5631. * @param {Function} comparator The comparator invoked per element.
  5632. * @returns {number} Returns the index of the matched value, else `-1`.
  5633. */
  5634. function baseIndexOfWith(array, value, fromIndex, comparator) {
  5635. var index = fromIndex - 1,
  5636. length = array.length;
  5637. while (++index < length) {
  5638. if (comparator(array[index], value)) {
  5639. return index;
  5640. }
  5641. }
  5642. return -1;
  5643. }
  5644. /**
  5645. * The base implementation of `_.isNaN` without support for number objects.
  5646. *
  5647. * @private
  5648. * @param {*} value The value to check.
  5649. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  5650. */
  5651. function baseIsNaN(value) {
  5652. return value !== value;
  5653. }
  5654. /**
  5655. * The base implementation of `_.mean` and `_.meanBy` without support for
  5656. * iteratee shorthands.
  5657. *
  5658. * @private
  5659. * @param {Array} array The array to iterate over.
  5660. * @param {Function} iteratee The function invoked per iteration.
  5661. * @returns {number} Returns the mean.
  5662. */
  5663. function baseMean(array, iteratee) {
  5664. var length = array == null ? 0 : array.length;
  5665. return length ? (baseSum(array, iteratee) / length) : NAN;
  5666. }
  5667. /**
  5668. * The base implementation of `_.property` without support for deep paths.
  5669. *
  5670. * @private
  5671. * @param {string} key The key of the property to get.
  5672. * @returns {Function} Returns the new accessor function.
  5673. */
  5674. function baseProperty(key) {
  5675. return function(object) {
  5676. return object == null ? undefined : object[key];
  5677. };
  5678. }
  5679. /**
  5680. * The base implementation of `_.propertyOf` without support for deep paths.
  5681. *
  5682. * @private
  5683. * @param {Object} object The object to query.
  5684. * @returns {Function} Returns the new accessor function.
  5685. */
  5686. function basePropertyOf(object) {
  5687. return function(key) {
  5688. return object == null ? undefined : object[key];
  5689. };
  5690. }
  5691. /**
  5692. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  5693. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  5694. *
  5695. * @private
  5696. * @param {Array|Object} collection The collection to iterate over.
  5697. * @param {Function} iteratee The function invoked per iteration.
  5698. * @param {*} accumulator The initial value.
  5699. * @param {boolean} initAccum Specify using the first or last element of
  5700. * `collection` as the initial value.
  5701. * @param {Function} eachFunc The function to iterate over `collection`.
  5702. * @returns {*} Returns the accumulated value.
  5703. */
  5704. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  5705. eachFunc(collection, function(value, index, collection) {
  5706. accumulator = initAccum
  5707. ? (initAccum = false, value)
  5708. : iteratee(accumulator, value, index, collection);
  5709. });
  5710. return accumulator;
  5711. }
  5712. /**
  5713. * The base implementation of `_.sortBy` which uses `comparer` to define the
  5714. * sort order of `array` and replaces criteria objects with their corresponding
  5715. * values.
  5716. *
  5717. * @private
  5718. * @param {Array} array The array to sort.
  5719. * @param {Function} comparer The function to define sort order.
  5720. * @returns {Array} Returns `array`.
  5721. */
  5722. function baseSortBy(array, comparer) {
  5723. var length = array.length;
  5724. array.sort(comparer);
  5725. while (length--) {
  5726. array[length] = array[length].value;
  5727. }
  5728. return array;
  5729. }
  5730. /**
  5731. * The base implementation of `_.sum` and `_.sumBy` without support for
  5732. * iteratee shorthands.
  5733. *
  5734. * @private
  5735. * @param {Array} array The array to iterate over.
  5736. * @param {Function} iteratee The function invoked per iteration.
  5737. * @returns {number} Returns the sum.
  5738. */
  5739. function baseSum(array, iteratee) {
  5740. var result,
  5741. index = -1,
  5742. length = array.length;
  5743. while (++index < length) {
  5744. var current = iteratee(array[index]);
  5745. if (current !== undefined) {
  5746. result = result === undefined ? current : (result + current);
  5747. }
  5748. }
  5749. return result;
  5750. }
  5751. /**
  5752. * The base implementation of `_.times` without support for iteratee shorthands
  5753. * or max array length checks.
  5754. *
  5755. * @private
  5756. * @param {number} n The number of times to invoke `iteratee`.
  5757. * @param {Function} iteratee The function invoked per iteration.
  5758. * @returns {Array} Returns the array of results.
  5759. */
  5760. function baseTimes(n, iteratee) {
  5761. var index = -1,
  5762. result = Array(n);
  5763. while (++index < n) {
  5764. result[index] = iteratee(index);
  5765. }
  5766. return result;
  5767. }
  5768. /**
  5769. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  5770. * of key-value pairs for `object` corresponding to the property names of `props`.
  5771. *
  5772. * @private
  5773. * @param {Object} object The object to query.
  5774. * @param {Array} props The property names to get values for.
  5775. * @returns {Object} Returns the key-value pairs.
  5776. */
  5777. function baseToPairs(object, props) {
  5778. return arrayMap(props, function(key) {
  5779. return [key, object[key]];
  5780. });
  5781. }
  5782. /**
  5783. * The base implementation of `_.unary` without support for storing metadata.
  5784. *
  5785. * @private
  5786. * @param {Function} func The function to cap arguments for.
  5787. * @returns {Function} Returns the new capped function.
  5788. */
  5789. function baseUnary(func) {
  5790. return function(value) {
  5791. return func(value);
  5792. };
  5793. }
  5794. /**
  5795. * The base implementation of `_.values` and `_.valuesIn` which creates an
  5796. * array of `object` property values corresponding to the property names
  5797. * of `props`.
  5798. *
  5799. * @private
  5800. * @param {Object} object The object to query.
  5801. * @param {Array} props The property names to get values for.
  5802. * @returns {Object} Returns the array of property values.
  5803. */
  5804. function baseValues(object, props) {
  5805. return arrayMap(props, function(key) {
  5806. return object[key];
  5807. });
  5808. }
  5809. /**
  5810. * Checks if a `cache` value for `key` exists.
  5811. *
  5812. * @private
  5813. * @param {Object} cache The cache to query.
  5814. * @param {string} key The key of the entry to check.
  5815. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  5816. */
  5817. function cacheHas(cache, key) {
  5818. return cache.has(key);
  5819. }
  5820. /**
  5821. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  5822. * that is not found in the character symbols.
  5823. *
  5824. * @private
  5825. * @param {Array} strSymbols The string symbols to inspect.
  5826. * @param {Array} chrSymbols The character symbols to find.
  5827. * @returns {number} Returns the index of the first unmatched string symbol.
  5828. */
  5829. function charsStartIndex(strSymbols, chrSymbols) {
  5830. var index = -1,
  5831. length = strSymbols.length;
  5832. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  5833. return index;
  5834. }
  5835. /**
  5836. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  5837. * that is not found in the character symbols.
  5838. *
  5839. * @private
  5840. * @param {Array} strSymbols The string symbols to inspect.
  5841. * @param {Array} chrSymbols The character symbols to find.
  5842. * @returns {number} Returns the index of the last unmatched string symbol.
  5843. */
  5844. function charsEndIndex(strSymbols, chrSymbols) {
  5845. var index = strSymbols.length;
  5846. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  5847. return index;
  5848. }
  5849. /**
  5850. * Gets the number of `placeholder` occurrences in `array`.
  5851. *
  5852. * @private
  5853. * @param {Array} array The array to inspect.
  5854. * @param {*} placeholder The placeholder to search for.
  5855. * @returns {number} Returns the placeholder count.
  5856. */
  5857. function countHolders(array, placeholder) {
  5858. var length = array.length,
  5859. result = 0;
  5860. while (length--) {
  5861. if (array[length] === placeholder) {
  5862. ++result;
  5863. }
  5864. }
  5865. return result;
  5866. }
  5867. /**
  5868. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  5869. * letters to basic Latin letters.
  5870. *
  5871. * @private
  5872. * @param {string} letter The matched letter to deburr.
  5873. * @returns {string} Returns the deburred letter.
  5874. */
  5875. var deburrLetter = basePropertyOf(deburredLetters);
  5876. /**
  5877. * Used by `_.escape` to convert characters to HTML entities.
  5878. *
  5879. * @private
  5880. * @param {string} chr The matched character to escape.
  5881. * @returns {string} Returns the escaped character.
  5882. */
  5883. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  5884. /**
  5885. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  5886. *
  5887. * @private
  5888. * @param {string} chr The matched character to escape.
  5889. * @returns {string} Returns the escaped character.
  5890. */
  5891. function escapeStringChar(chr) {
  5892. return '\\' + stringEscapes[chr];
  5893. }
  5894. /**
  5895. * Gets the value at `key` of `object`.
  5896. *
  5897. * @private
  5898. * @param {Object} [object] The object to query.
  5899. * @param {string} key The key of the property to get.
  5900. * @returns {*} Returns the property value.
  5901. */
  5902. function getValue(object, key) {
  5903. return object == null ? undefined : object[key];
  5904. }
  5905. /**
  5906. * Checks if `string` contains Unicode symbols.
  5907. *
  5908. * @private
  5909. * @param {string} string The string to inspect.
  5910. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  5911. */
  5912. function hasUnicode(string) {
  5913. return reHasUnicode.test(string);
  5914. }
  5915. /**
  5916. * Checks if `string` contains a word composed of Unicode symbols.
  5917. *
  5918. * @private
  5919. * @param {string} string The string to inspect.
  5920. * @returns {boolean} Returns `true` if a word is found, else `false`.
  5921. */
  5922. function hasUnicodeWord(string) {
  5923. return reHasUnicodeWord.test(string);
  5924. }
  5925. /**
  5926. * Converts `iterator` to an array.
  5927. *
  5928. * @private
  5929. * @param {Object} iterator The iterator to convert.
  5930. * @returns {Array} Returns the converted array.
  5931. */
  5932. function iteratorToArray(iterator) {
  5933. var data,
  5934. result = [];
  5935. while (!(data = iterator.next()).done) {
  5936. result.push(data.value);
  5937. }
  5938. return result;
  5939. }
  5940. /**
  5941. * Converts `map` to its key-value pairs.
  5942. *
  5943. * @private
  5944. * @param {Object} map The map to convert.
  5945. * @returns {Array} Returns the key-value pairs.
  5946. */
  5947. function mapToArray(map) {
  5948. var index = -1,
  5949. result = Array(map.size);
  5950. map.forEach(function(value, key) {
  5951. result[++index] = [key, value];
  5952. });
  5953. return result;
  5954. }
  5955. /**
  5956. * Creates a unary function that invokes `func` with its argument transformed.
  5957. *
  5958. * @private
  5959. * @param {Function} func The function to wrap.
  5960. * @param {Function} transform The argument transform.
  5961. * @returns {Function} Returns the new function.
  5962. */
  5963. function overArg(func, transform) {
  5964. return function(arg) {
  5965. return func(transform(arg));
  5966. };
  5967. }
  5968. /**
  5969. * Replaces all `placeholder` elements in `array` with an internal placeholder
  5970. * and returns an array of their indexes.
  5971. *
  5972. * @private
  5973. * @param {Array} array The array to modify.
  5974. * @param {*} placeholder The placeholder to replace.
  5975. * @returns {Array} Returns the new array of placeholder indexes.
  5976. */
  5977. function replaceHolders(array, placeholder) {
  5978. var index = -1,
  5979. length = array.length,
  5980. resIndex = 0,
  5981. result = [];
  5982. while (++index < length) {
  5983. var value = array[index];
  5984. if (value === placeholder || value === PLACEHOLDER) {
  5985. array[index] = PLACEHOLDER;
  5986. result[resIndex++] = index;
  5987. }
  5988. }
  5989. return result;
  5990. }
  5991. /**
  5992. * Converts `set` to an array of its values.
  5993. *
  5994. * @private
  5995. * @param {Object} set The set to convert.
  5996. * @returns {Array} Returns the values.
  5997. */
  5998. function setToArray(set) {
  5999. var index = -1,
  6000. result = Array(set.size);
  6001. set.forEach(function(value) {
  6002. result[++index] = value;
  6003. });
  6004. return result;
  6005. }
  6006. /**
  6007. * Converts `set` to its value-value pairs.
  6008. *
  6009. * @private
  6010. * @param {Object} set The set to convert.
  6011. * @returns {Array} Returns the value-value pairs.
  6012. */
  6013. function setToPairs(set) {
  6014. var index = -1,
  6015. result = Array(set.size);
  6016. set.forEach(function(value) {
  6017. result[++index] = [value, value];
  6018. });
  6019. return result;
  6020. }
  6021. /**
  6022. * A specialized version of `_.indexOf` which performs strict equality
  6023. * comparisons of values, i.e. `===`.
  6024. *
  6025. * @private
  6026. * @param {Array} array The array to inspect.
  6027. * @param {*} value The value to search for.
  6028. * @param {number} fromIndex The index to search from.
  6029. * @returns {number} Returns the index of the matched value, else `-1`.
  6030. */
  6031. function strictIndexOf(array, value, fromIndex) {
  6032. var index = fromIndex - 1,
  6033. length = array.length;
  6034. while (++index < length) {
  6035. if (array[index] === value) {
  6036. return index;
  6037. }
  6038. }
  6039. return -1;
  6040. }
  6041. /**
  6042. * A specialized version of `_.lastIndexOf` which performs strict equality
  6043. * comparisons of values, i.e. `===`.
  6044. *
  6045. * @private
  6046. * @param {Array} array The array to inspect.
  6047. * @param {*} value The value to search for.
  6048. * @param {number} fromIndex The index to search from.
  6049. * @returns {number} Returns the index of the matched value, else `-1`.
  6050. */
  6051. function strictLastIndexOf(array, value, fromIndex) {
  6052. var index = fromIndex + 1;
  6053. while (index--) {
  6054. if (array[index] === value) {
  6055. return index;
  6056. }
  6057. }
  6058. return index;
  6059. }
  6060. /**
  6061. * Gets the number of symbols in `string`.
  6062. *
  6063. * @private
  6064. * @param {string} string The string to inspect.
  6065. * @returns {number} Returns the string size.
  6066. */
  6067. function stringSize(string) {
  6068. return hasUnicode(string)
  6069. ? unicodeSize(string)
  6070. : asciiSize(string);
  6071. }
  6072. /**
  6073. * Converts `string` to an array.
  6074. *
  6075. * @private
  6076. * @param {string} string The string to convert.
  6077. * @returns {Array} Returns the converted array.
  6078. */
  6079. function stringToArray(string) {
  6080. return hasUnicode(string)
  6081. ? unicodeToArray(string)
  6082. : asciiToArray(string);
  6083. }
  6084. /**
  6085. * Used by `_.unescape` to convert HTML entities to characters.
  6086. *
  6087. * @private
  6088. * @param {string} chr The matched character to unescape.
  6089. * @returns {string} Returns the unescaped character.
  6090. */
  6091. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  6092. /**
  6093. * Gets the size of a Unicode `string`.
  6094. *
  6095. * @private
  6096. * @param {string} string The string inspect.
  6097. * @returns {number} Returns the string size.
  6098. */
  6099. function unicodeSize(string) {
  6100. var result = reUnicode.lastIndex = 0;
  6101. while (reUnicode.test(string)) {
  6102. ++result;
  6103. }
  6104. return result;
  6105. }
  6106. /**
  6107. * Converts a Unicode `string` to an array.
  6108. *
  6109. * @private
  6110. * @param {string} string The string to convert.
  6111. * @returns {Array} Returns the converted array.
  6112. */
  6113. function unicodeToArray(string) {
  6114. return string.match(reUnicode) || [];
  6115. }
  6116. /**
  6117. * Splits a Unicode `string` into an array of its words.
  6118. *
  6119. * @private
  6120. * @param {string} The string to inspect.
  6121. * @returns {Array} Returns the words of `string`.
  6122. */
  6123. function unicodeWords(string) {
  6124. return string.match(reUnicodeWord) || [];
  6125. }
  6126. /*--------------------------------------------------------------------------*/
  6127. /**
  6128. * Create a new pristine `lodash` function using the `context` object.
  6129. *
  6130. * @static
  6131. * @memberOf _
  6132. * @since 1.1.0
  6133. * @category Util
  6134. * @param {Object} [context=root] The context object.
  6135. * @returns {Function} Returns a new `lodash` function.
  6136. * @example
  6137. *
  6138. * _.mixin({ 'foo': _.constant('foo') });
  6139. *
  6140. * var lodash = _.runInContext();
  6141. * lodash.mixin({ 'bar': lodash.constant('bar') });
  6142. *
  6143. * _.isFunction(_.foo);
  6144. * // => true
  6145. * _.isFunction(_.bar);
  6146. * // => false
  6147. *
  6148. * lodash.isFunction(lodash.foo);
  6149. * // => false
  6150. * lodash.isFunction(lodash.bar);
  6151. * // => true
  6152. *
  6153. * // Create a suped-up `defer` in Node.js.
  6154. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  6155. */
  6156. var runInContext = (function runInContext(context) {
  6157. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  6158. /** Built-in constructor references. */
  6159. var Array = context.Array,
  6160. Date = context.Date,
  6161. Error = context.Error,
  6162. Function = context.Function,
  6163. Math = context.Math,
  6164. Object = context.Object,
  6165. RegExp = context.RegExp,
  6166. String = context.String,
  6167. TypeError = context.TypeError;
  6168. /** Used for built-in method references. */
  6169. var arrayProto = Array.prototype,
  6170. funcProto = Function.prototype,
  6171. objectProto = Object.prototype;
  6172. /** Used to detect overreaching core-js shims. */
  6173. var coreJsData = context['__core-js_shared__'];
  6174. /** Used to resolve the decompiled source of functions. */
  6175. var funcToString = funcProto.toString;
  6176. /** Used to check objects for own properties. */
  6177. var hasOwnProperty = objectProto.hasOwnProperty;
  6178. /** Used to generate unique IDs. */
  6179. var idCounter = 0;
  6180. /** Used to detect methods masquerading as native. */
  6181. var maskSrcKey = (function() {
  6182. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  6183. return uid ? ('Symbol(src)_1.' + uid) : '';
  6184. }());
  6185. /**
  6186. * Used to resolve the
  6187. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  6188. * of values.
  6189. */
  6190. var nativeObjectToString = objectProto.toString;
  6191. /** Used to infer the `Object` constructor. */
  6192. var objectCtorString = funcToString.call(Object);
  6193. /** Used to restore the original `_` reference in `_.noConflict`. */
  6194. var oldDash = root._;
  6195. /** Used to detect if a method is native. */
  6196. var reIsNative = RegExp('^' +
  6197. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  6198. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  6199. );
  6200. /** Built-in value references. */
  6201. var Buffer = moduleExports ? context.Buffer : undefined,
  6202. Symbol = context.Symbol,
  6203. Uint8Array = context.Uint8Array,
  6204. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  6205. getPrototype = overArg(Object.getPrototypeOf, Object),
  6206. objectCreate = Object.create,
  6207. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  6208. splice = arrayProto.splice,
  6209. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  6210. symIterator = Symbol ? Symbol.iterator : undefined,
  6211. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  6212. var defineProperty = (function() {
  6213. try {
  6214. var func = getNative(Object, 'defineProperty');
  6215. func({}, '', {});
  6216. return func;
  6217. } catch (e) {}
  6218. }());
  6219. /** Mocked built-ins. */
  6220. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  6221. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  6222. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  6223. /* Built-in method references for those with the same name as other `lodash` methods. */
  6224. var nativeCeil = Math.ceil,
  6225. nativeFloor = Math.floor,
  6226. nativeGetSymbols = Object.getOwnPropertySymbols,
  6227. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  6228. nativeIsFinite = context.isFinite,
  6229. nativeJoin = arrayProto.join,
  6230. nativeKeys = overArg(Object.keys, Object),
  6231. nativeMax = Math.max,
  6232. nativeMin = Math.min,
  6233. nativeNow = Date.now,
  6234. nativeParseInt = context.parseInt,
  6235. nativeRandom = Math.random,
  6236. nativeReverse = arrayProto.reverse;
  6237. /* Built-in method references that are verified to be native. */
  6238. var DataView = getNative(context, 'DataView'),
  6239. Map = getNative(context, 'Map'),
  6240. Promise = getNative(context, 'Promise'),
  6241. Set = getNative(context, 'Set'),
  6242. WeakMap = getNative(context, 'WeakMap'),
  6243. nativeCreate = getNative(Object, 'create');
  6244. /** Used to store function metadata. */
  6245. var metaMap = WeakMap && new WeakMap;
  6246. /** Used to lookup unminified function names. */
  6247. var realNames = {};
  6248. /** Used to detect maps, sets, and weakmaps. */
  6249. var dataViewCtorString = toSource(DataView),
  6250. mapCtorString = toSource(Map),
  6251. promiseCtorString = toSource(Promise),
  6252. setCtorString = toSource(Set),
  6253. weakMapCtorString = toSource(WeakMap);
  6254. /** Used to convert symbols to primitives and strings. */
  6255. var symbolProto = Symbol ? Symbol.prototype : undefined,
  6256. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  6257. symbolToString = symbolProto ? symbolProto.toString : undefined;
  6258. /*------------------------------------------------------------------------*/
  6259. /**
  6260. * Creates a `lodash` object which wraps `value` to enable implicit method
  6261. * chain sequences. Methods that operate on and return arrays, collections,
  6262. * and functions can be chained together. Methods that retrieve a single value
  6263. * or may return a primitive value will automatically end the chain sequence
  6264. * and return the unwrapped value. Otherwise, the value must be unwrapped
  6265. * with `_#value`.
  6266. *
  6267. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  6268. * enabled using `_.chain`.
  6269. *
  6270. * The execution of chained methods is lazy, that is, it's deferred until
  6271. * `_#value` is implicitly or explicitly called.
  6272. *
  6273. * Lazy evaluation allows several methods to support shortcut fusion.
  6274. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  6275. * the creation of intermediate arrays and can greatly reduce the number of
  6276. * iteratee executions. Sections of a chain sequence qualify for shortcut
  6277. * fusion if the section is applied to an array and iteratees accept only
  6278. * one argument. The heuristic for whether a section qualifies for shortcut
  6279. * fusion is subject to change.
  6280. *
  6281. * Chaining is supported in custom builds as long as the `_#value` method is
  6282. * directly or indirectly included in the build.
  6283. *
  6284. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  6285. *
  6286. * The wrapper `Array` methods are:
  6287. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  6288. *
  6289. * The wrapper `String` methods are:
  6290. * `replace` and `split`
  6291. *
  6292. * The wrapper methods that support shortcut fusion are:
  6293. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  6294. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  6295. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  6296. *
  6297. * The chainable wrapper methods are:
  6298. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  6299. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  6300. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  6301. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  6302. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  6303. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  6304. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  6305. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  6306. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  6307. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  6308. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  6309. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  6310. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  6311. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  6312. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  6313. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  6314. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  6315. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  6316. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  6317. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  6318. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  6319. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  6320. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  6321. * `zipObject`, `zipObjectDeep`, and `zipWith`
  6322. *
  6323. * The wrapper methods that are **not** chainable by default are:
  6324. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  6325. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  6326. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  6327. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  6328. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  6329. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  6330. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  6331. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  6332. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  6333. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  6334. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  6335. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  6336. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  6337. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  6338. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  6339. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  6340. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  6341. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  6342. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  6343. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  6344. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  6345. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  6346. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  6347. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  6348. * `upperFirst`, `value`, and `words`
  6349. *
  6350. * @name _
  6351. * @constructor
  6352. * @category Seq
  6353. * @param {*} value The value to wrap in a `lodash` instance.
  6354. * @returns {Object} Returns the new `lodash` wrapper instance.
  6355. * @example
  6356. *
  6357. * function square(n) {
  6358. * return n * n;
  6359. * }
  6360. *
  6361. * var wrapped = _([1, 2, 3]);
  6362. *
  6363. * // Returns an unwrapped value.
  6364. * wrapped.reduce(_.add);
  6365. * // => 6
  6366. *
  6367. * // Returns a wrapped value.
  6368. * var squares = wrapped.map(square);
  6369. *
  6370. * _.isArray(squares);
  6371. * // => false
  6372. *
  6373. * _.isArray(squares.value());
  6374. * // => true
  6375. */
  6376. function lodash(value) {
  6377. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  6378. if (value instanceof LodashWrapper) {
  6379. return value;
  6380. }
  6381. if (hasOwnProperty.call(value, '__wrapped__')) {
  6382. return wrapperClone(value);
  6383. }
  6384. }
  6385. return new LodashWrapper(value);
  6386. }
  6387. /**
  6388. * The base implementation of `_.create` without support for assigning
  6389. * properties to the created object.
  6390. *
  6391. * @private
  6392. * @param {Object} proto The object to inherit from.
  6393. * @returns {Object} Returns the new object.
  6394. */
  6395. var baseCreate = (function() {
  6396. function object() {}
  6397. return function(proto) {
  6398. if (!isObject(proto)) {
  6399. return {};
  6400. }
  6401. if (objectCreate) {
  6402. return objectCreate(proto);
  6403. }
  6404. object.prototype = proto;
  6405. var result = new object;
  6406. object.prototype = undefined;
  6407. return result;
  6408. };
  6409. }());
  6410. /**
  6411. * The function whose prototype chain sequence wrappers inherit from.
  6412. *
  6413. * @private
  6414. */
  6415. function baseLodash() {
  6416. // No operation performed.
  6417. }
  6418. /**
  6419. * The base constructor for creating `lodash` wrapper objects.
  6420. *
  6421. * @private
  6422. * @param {*} value The value to wrap.
  6423. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  6424. */
  6425. function LodashWrapper(value, chainAll) {
  6426. this.__wrapped__ = value;
  6427. this.__actions__ = [];
  6428. this.__chain__ = !!chainAll;
  6429. this.__index__ = 0;
  6430. this.__values__ = undefined;
  6431. }
  6432. /**
  6433. * By default, the template delimiters used by lodash are like those in
  6434. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  6435. * following template settings to use alternative delimiters.
  6436. *
  6437. * @static
  6438. * @memberOf _
  6439. * @type {Object}
  6440. */
  6441. lodash.templateSettings = {
  6442. /**
  6443. * Used to detect `data` property values to be HTML-escaped.
  6444. *
  6445. * @memberOf _.templateSettings
  6446. * @type {RegExp}
  6447. */
  6448. 'escape': reEscape,
  6449. /**
  6450. * Used to detect code to be evaluated.
  6451. *
  6452. * @memberOf _.templateSettings
  6453. * @type {RegExp}
  6454. */
  6455. 'evaluate': reEvaluate,
  6456. /**
  6457. * Used to detect `data` property values to inject.
  6458. *
  6459. * @memberOf _.templateSettings
  6460. * @type {RegExp}
  6461. */
  6462. 'interpolate': reInterpolate,
  6463. /**
  6464. * Used to reference the data object in the template text.
  6465. *
  6466. * @memberOf _.templateSettings
  6467. * @type {string}
  6468. */
  6469. 'variable': '',
  6470. /**
  6471. * Used to import variables into the compiled template.
  6472. *
  6473. * @memberOf _.templateSettings
  6474. * @type {Object}
  6475. */
  6476. 'imports': {
  6477. /**
  6478. * A reference to the `lodash` function.
  6479. *
  6480. * @memberOf _.templateSettings.imports
  6481. * @type {Function}
  6482. */
  6483. '_': lodash
  6484. }
  6485. };
  6486. // Ensure wrappers are instances of `baseLodash`.
  6487. lodash.prototype = baseLodash.prototype;
  6488. lodash.prototype.constructor = lodash;
  6489. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  6490. LodashWrapper.prototype.constructor = LodashWrapper;
  6491. /*------------------------------------------------------------------------*/
  6492. /**
  6493. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  6494. *
  6495. * @private
  6496. * @constructor
  6497. * @param {*} value The value to wrap.
  6498. */
  6499. function LazyWrapper(value) {
  6500. this.__wrapped__ = value;
  6501. this.__actions__ = [];
  6502. this.__dir__ = 1;
  6503. this.__filtered__ = false;
  6504. this.__iteratees__ = [];
  6505. this.__takeCount__ = MAX_ARRAY_LENGTH;
  6506. this.__views__ = [];
  6507. }
  6508. /**
  6509. * Creates a clone of the lazy wrapper object.
  6510. *
  6511. * @private
  6512. * @name clone
  6513. * @memberOf LazyWrapper
  6514. * @returns {Object} Returns the cloned `LazyWrapper` object.
  6515. */
  6516. function lazyClone() {
  6517. var result = new LazyWrapper(this.__wrapped__);
  6518. result.__actions__ = copyArray(this.__actions__);
  6519. result.__dir__ = this.__dir__;
  6520. result.__filtered__ = this.__filtered__;
  6521. result.__iteratees__ = copyArray(this.__iteratees__);
  6522. result.__takeCount__ = this.__takeCount__;
  6523. result.__views__ = copyArray(this.__views__);
  6524. return result;
  6525. }
  6526. /**
  6527. * Reverses the direction of lazy iteration.
  6528. *
  6529. * @private
  6530. * @name reverse
  6531. * @memberOf LazyWrapper
  6532. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  6533. */
  6534. function lazyReverse() {
  6535. if (this.__filtered__) {
  6536. var result = new LazyWrapper(this);
  6537. result.__dir__ = -1;
  6538. result.__filtered__ = true;
  6539. } else {
  6540. result = this.clone();
  6541. result.__dir__ *= -1;
  6542. }
  6543. return result;
  6544. }
  6545. /**
  6546. * Extracts the unwrapped value from its lazy wrapper.
  6547. *
  6548. * @private
  6549. * @name value
  6550. * @memberOf LazyWrapper
  6551. * @returns {*} Returns the unwrapped value.
  6552. */
  6553. function lazyValue() {
  6554. var array = this.__wrapped__.value(),
  6555. dir = this.__dir__,
  6556. isArr = isArray(array),
  6557. isRight = dir < 0,
  6558. arrLength = isArr ? array.length : 0,
  6559. view = getView(0, arrLength, this.__views__),
  6560. start = view.start,
  6561. end = view.end,
  6562. length = end - start,
  6563. index = isRight ? end : (start - 1),
  6564. iteratees = this.__iteratees__,
  6565. iterLength = iteratees.length,
  6566. resIndex = 0,
  6567. takeCount = nativeMin(length, this.__takeCount__);
  6568. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  6569. return baseWrapperValue(array, this.__actions__);
  6570. }
  6571. var result = [];
  6572. outer:
  6573. while (length-- && resIndex < takeCount) {
  6574. index += dir;
  6575. var iterIndex = -1,
  6576. value = array[index];
  6577. while (++iterIndex < iterLength) {
  6578. var data = iteratees[iterIndex],
  6579. iteratee = data.iteratee,
  6580. type = data.type,
  6581. computed = iteratee(value);
  6582. if (type == LAZY_MAP_FLAG) {
  6583. value = computed;
  6584. } else if (!computed) {
  6585. if (type == LAZY_FILTER_FLAG) {
  6586. continue outer;
  6587. } else {
  6588. break outer;
  6589. }
  6590. }
  6591. }
  6592. result[resIndex++] = value;
  6593. }
  6594. return result;
  6595. }
  6596. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  6597. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  6598. LazyWrapper.prototype.constructor = LazyWrapper;
  6599. /*------------------------------------------------------------------------*/
  6600. /**
  6601. * Creates a hash object.
  6602. *
  6603. * @private
  6604. * @constructor
  6605. * @param {Array} [entries] The key-value pairs to cache.
  6606. */
  6607. function Hash(entries) {
  6608. var index = -1,
  6609. length = entries == null ? 0 : entries.length;
  6610. this.clear();
  6611. while (++index < length) {
  6612. var entry = entries[index];
  6613. this.set(entry[0], entry[1]);
  6614. }
  6615. }
  6616. /**
  6617. * Removes all key-value entries from the hash.
  6618. *
  6619. * @private
  6620. * @name clear
  6621. * @memberOf Hash
  6622. */
  6623. function hashClear() {
  6624. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  6625. this.size = 0;
  6626. }
  6627. /**
  6628. * Removes `key` and its value from the hash.
  6629. *
  6630. * @private
  6631. * @name delete
  6632. * @memberOf Hash
  6633. * @param {Object} hash The hash to modify.
  6634. * @param {string} key The key of the value to remove.
  6635. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6636. */
  6637. function hashDelete(key) {
  6638. var result = this.has(key) && delete this.__data__[key];
  6639. this.size -= result ? 1 : 0;
  6640. return result;
  6641. }
  6642. /**
  6643. * Gets the hash value for `key`.
  6644. *
  6645. * @private
  6646. * @name get
  6647. * @memberOf Hash
  6648. * @param {string} key The key of the value to get.
  6649. * @returns {*} Returns the entry value.
  6650. */
  6651. function hashGet(key) {
  6652. var data = this.__data__;
  6653. if (nativeCreate) {
  6654. var result = data[key];
  6655. return result === HASH_UNDEFINED ? undefined : result;
  6656. }
  6657. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  6658. }
  6659. /**
  6660. * Checks if a hash value for `key` exists.
  6661. *
  6662. * @private
  6663. * @name has
  6664. * @memberOf Hash
  6665. * @param {string} key The key of the entry to check.
  6666. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6667. */
  6668. function hashHas(key) {
  6669. var data = this.__data__;
  6670. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  6671. }
  6672. /**
  6673. * Sets the hash `key` to `value`.
  6674. *
  6675. * @private
  6676. * @name set
  6677. * @memberOf Hash
  6678. * @param {string} key The key of the value to set.
  6679. * @param {*} value The value to set.
  6680. * @returns {Object} Returns the hash instance.
  6681. */
  6682. function hashSet(key, value) {
  6683. var data = this.__data__;
  6684. this.size += this.has(key) ? 0 : 1;
  6685. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  6686. return this;
  6687. }
  6688. // Add methods to `Hash`.
  6689. Hash.prototype.clear = hashClear;
  6690. Hash.prototype['delete'] = hashDelete;
  6691. Hash.prototype.get = hashGet;
  6692. Hash.prototype.has = hashHas;
  6693. Hash.prototype.set = hashSet;
  6694. /*------------------------------------------------------------------------*/
  6695. /**
  6696. * Creates an list cache object.
  6697. *
  6698. * @private
  6699. * @constructor
  6700. * @param {Array} [entries] The key-value pairs to cache.
  6701. */
  6702. function ListCache(entries) {
  6703. var index = -1,
  6704. length = entries == null ? 0 : entries.length;
  6705. this.clear();
  6706. while (++index < length) {
  6707. var entry = entries[index];
  6708. this.set(entry[0], entry[1]);
  6709. }
  6710. }
  6711. /**
  6712. * Removes all key-value entries from the list cache.
  6713. *
  6714. * @private
  6715. * @name clear
  6716. * @memberOf ListCache
  6717. */
  6718. function listCacheClear() {
  6719. this.__data__ = [];
  6720. this.size = 0;
  6721. }
  6722. /**
  6723. * Removes `key` and its value from the list cache.
  6724. *
  6725. * @private
  6726. * @name delete
  6727. * @memberOf ListCache
  6728. * @param {string} key The key of the value to remove.
  6729. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6730. */
  6731. function listCacheDelete(key) {
  6732. var data = this.__data__,
  6733. index = assocIndexOf(data, key);
  6734. if (index < 0) {
  6735. return false;
  6736. }
  6737. var lastIndex = data.length - 1;
  6738. if (index == lastIndex) {
  6739. data.pop();
  6740. } else {
  6741. splice.call(data, index, 1);
  6742. }
  6743. --this.size;
  6744. return true;
  6745. }
  6746. /**
  6747. * Gets the list cache value for `key`.
  6748. *
  6749. * @private
  6750. * @name get
  6751. * @memberOf ListCache
  6752. * @param {string} key The key of the value to get.
  6753. * @returns {*} Returns the entry value.
  6754. */
  6755. function listCacheGet(key) {
  6756. var data = this.__data__,
  6757. index = assocIndexOf(data, key);
  6758. return index < 0 ? undefined : data[index][1];
  6759. }
  6760. /**
  6761. * Checks if a list cache value for `key` exists.
  6762. *
  6763. * @private
  6764. * @name has
  6765. * @memberOf ListCache
  6766. * @param {string} key The key of the entry to check.
  6767. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6768. */
  6769. function listCacheHas(key) {
  6770. return assocIndexOf(this.__data__, key) > -1;
  6771. }
  6772. /**
  6773. * Sets the list cache `key` to `value`.
  6774. *
  6775. * @private
  6776. * @name set
  6777. * @memberOf ListCache
  6778. * @param {string} key The key of the value to set.
  6779. * @param {*} value The value to set.
  6780. * @returns {Object} Returns the list cache instance.
  6781. */
  6782. function listCacheSet(key, value) {
  6783. var data = this.__data__,
  6784. index = assocIndexOf(data, key);
  6785. if (index < 0) {
  6786. ++this.size;
  6787. data.push([key, value]);
  6788. } else {
  6789. data[index][1] = value;
  6790. }
  6791. return this;
  6792. }
  6793. // Add methods to `ListCache`.
  6794. ListCache.prototype.clear = listCacheClear;
  6795. ListCache.prototype['delete'] = listCacheDelete;
  6796. ListCache.prototype.get = listCacheGet;
  6797. ListCache.prototype.has = listCacheHas;
  6798. ListCache.prototype.set = listCacheSet;
  6799. /*------------------------------------------------------------------------*/
  6800. /**
  6801. * Creates a map cache object to store key-value pairs.
  6802. *
  6803. * @private
  6804. * @constructor
  6805. * @param {Array} [entries] The key-value pairs to cache.
  6806. */
  6807. function MapCache(entries) {
  6808. var index = -1,
  6809. length = entries == null ? 0 : entries.length;
  6810. this.clear();
  6811. while (++index < length) {
  6812. var entry = entries[index];
  6813. this.set(entry[0], entry[1]);
  6814. }
  6815. }
  6816. /**
  6817. * Removes all key-value entries from the map.
  6818. *
  6819. * @private
  6820. * @name clear
  6821. * @memberOf MapCache
  6822. */
  6823. function mapCacheClear() {
  6824. this.size = 0;
  6825. this.__data__ = {
  6826. 'hash': new Hash,
  6827. 'map': new (Map || ListCache),
  6828. 'string': new Hash
  6829. };
  6830. }
  6831. /**
  6832. * Removes `key` and its value from the map.
  6833. *
  6834. * @private
  6835. * @name delete
  6836. * @memberOf MapCache
  6837. * @param {string} key The key of the value to remove.
  6838. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6839. */
  6840. function mapCacheDelete(key) {
  6841. var result = getMapData(this, key)['delete'](key);
  6842. this.size -= result ? 1 : 0;
  6843. return result;
  6844. }
  6845. /**
  6846. * Gets the map value for `key`.
  6847. *
  6848. * @private
  6849. * @name get
  6850. * @memberOf MapCache
  6851. * @param {string} key The key of the value to get.
  6852. * @returns {*} Returns the entry value.
  6853. */
  6854. function mapCacheGet(key) {
  6855. return getMapData(this, key).get(key);
  6856. }
  6857. /**
  6858. * Checks if a map value for `key` exists.
  6859. *
  6860. * @private
  6861. * @name has
  6862. * @memberOf MapCache
  6863. * @param {string} key The key of the entry to check.
  6864. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6865. */
  6866. function mapCacheHas(key) {
  6867. return getMapData(this, key).has(key);
  6868. }
  6869. /**
  6870. * Sets the map `key` to `value`.
  6871. *
  6872. * @private
  6873. * @name set
  6874. * @memberOf MapCache
  6875. * @param {string} key The key of the value to set.
  6876. * @param {*} value The value to set.
  6877. * @returns {Object} Returns the map cache instance.
  6878. */
  6879. function mapCacheSet(key, value) {
  6880. var data = getMapData(this, key),
  6881. size = data.size;
  6882. data.set(key, value);
  6883. this.size += data.size == size ? 0 : 1;
  6884. return this;
  6885. }
  6886. // Add methods to `MapCache`.
  6887. MapCache.prototype.clear = mapCacheClear;
  6888. MapCache.prototype['delete'] = mapCacheDelete;
  6889. MapCache.prototype.get = mapCacheGet;
  6890. MapCache.prototype.has = mapCacheHas;
  6891. MapCache.prototype.set = mapCacheSet;
  6892. /*------------------------------------------------------------------------*/
  6893. /**
  6894. *
  6895. * Creates an array cache object to store unique values.
  6896. *
  6897. * @private
  6898. * @constructor
  6899. * @param {Array} [values] The values to cache.
  6900. */
  6901. function SetCache(values) {
  6902. var index = -1,
  6903. length = values == null ? 0 : values.length;
  6904. this.__data__ = new MapCache;
  6905. while (++index < length) {
  6906. this.add(values[index]);
  6907. }
  6908. }
  6909. /**
  6910. * Adds `value` to the array cache.
  6911. *
  6912. * @private
  6913. * @name add
  6914. * @memberOf SetCache
  6915. * @alias push
  6916. * @param {*} value The value to cache.
  6917. * @returns {Object} Returns the cache instance.
  6918. */
  6919. function setCacheAdd(value) {
  6920. this.__data__.set(value, HASH_UNDEFINED);
  6921. return this;
  6922. }
  6923. /**
  6924. * Checks if `value` is in the array cache.
  6925. *
  6926. * @private
  6927. * @name has
  6928. * @memberOf SetCache
  6929. * @param {*} value The value to search for.
  6930. * @returns {number} Returns `true` if `value` is found, else `false`.
  6931. */
  6932. function setCacheHas(value) {
  6933. return this.__data__.has(value);
  6934. }
  6935. // Add methods to `SetCache`.
  6936. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  6937. SetCache.prototype.has = setCacheHas;
  6938. /*------------------------------------------------------------------------*/
  6939. /**
  6940. * Creates a stack cache object to store key-value pairs.
  6941. *
  6942. * @private
  6943. * @constructor
  6944. * @param {Array} [entries] The key-value pairs to cache.
  6945. */
  6946. function Stack(entries) {
  6947. var data = this.__data__ = new ListCache(entries);
  6948. this.size = data.size;
  6949. }
  6950. /**
  6951. * Removes all key-value entries from the stack.
  6952. *
  6953. * @private
  6954. * @name clear
  6955. * @memberOf Stack
  6956. */
  6957. function stackClear() {
  6958. this.__data__ = new ListCache;
  6959. this.size = 0;
  6960. }
  6961. /**
  6962. * Removes `key` and its value from the stack.
  6963. *
  6964. * @private
  6965. * @name delete
  6966. * @memberOf Stack
  6967. * @param {string} key The key of the value to remove.
  6968. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  6969. */
  6970. function stackDelete(key) {
  6971. var data = this.__data__,
  6972. result = data['delete'](key);
  6973. this.size = data.size;
  6974. return result;
  6975. }
  6976. /**
  6977. * Gets the stack value for `key`.
  6978. *
  6979. * @private
  6980. * @name get
  6981. * @memberOf Stack
  6982. * @param {string} key The key of the value to get.
  6983. * @returns {*} Returns the entry value.
  6984. */
  6985. function stackGet(key) {
  6986. return this.__data__.get(key);
  6987. }
  6988. /**
  6989. * Checks if a stack value for `key` exists.
  6990. *
  6991. * @private
  6992. * @name has
  6993. * @memberOf Stack
  6994. * @param {string} key The key of the entry to check.
  6995. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  6996. */
  6997. function stackHas(key) {
  6998. return this.__data__.has(key);
  6999. }
  7000. /**
  7001. * Sets the stack `key` to `value`.
  7002. *
  7003. * @private
  7004. * @name set
  7005. * @memberOf Stack
  7006. * @param {string} key The key of the value to set.
  7007. * @param {*} value The value to set.
  7008. * @returns {Object} Returns the stack cache instance.
  7009. */
  7010. function stackSet(key, value) {
  7011. var data = this.__data__;
  7012. if (data instanceof ListCache) {
  7013. var pairs = data.__data__;
  7014. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  7015. pairs.push([key, value]);
  7016. this.size = ++data.size;
  7017. return this;
  7018. }
  7019. data = this.__data__ = new MapCache(pairs);
  7020. }
  7021. data.set(key, value);
  7022. this.size = data.size;
  7023. return this;
  7024. }
  7025. // Add methods to `Stack`.
  7026. Stack.prototype.clear = stackClear;
  7027. Stack.prototype['delete'] = stackDelete;
  7028. Stack.prototype.get = stackGet;
  7029. Stack.prototype.has = stackHas;
  7030. Stack.prototype.set = stackSet;
  7031. /*------------------------------------------------------------------------*/
  7032. /**
  7033. * Creates an array of the enumerable property names of the array-like `value`.
  7034. *
  7035. * @private
  7036. * @param {*} value The value to query.
  7037. * @param {boolean} inherited Specify returning inherited property names.
  7038. * @returns {Array} Returns the array of property names.
  7039. */
  7040. function arrayLikeKeys(value, inherited) {
  7041. var isArr = isArray(value),
  7042. isArg = !isArr && isArguments(value),
  7043. isBuff = !isArr && !isArg && isBuffer(value),
  7044. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  7045. skipIndexes = isArr || isArg || isBuff || isType,
  7046. result = skipIndexes ? baseTimes(value.length, String) : [],
  7047. length = result.length;
  7048. for (var key in value) {
  7049. if ((inherited || hasOwnProperty.call(value, key)) &&
  7050. !(skipIndexes && (
  7051. // Safari 9 has enumerable `arguments.length` in strict mode.
  7052. key == 'length' ||
  7053. // Node.js 0.10 has enumerable non-index properties on buffers.
  7054. (isBuff && (key == 'offset' || key == 'parent')) ||
  7055. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  7056. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  7057. // Skip index properties.
  7058. isIndex(key, length)
  7059. ))) {
  7060. result.push(key);
  7061. }
  7062. }
  7063. return result;
  7064. }
  7065. /**
  7066. * A specialized version of `_.sample` for arrays.
  7067. *
  7068. * @private
  7069. * @param {Array} array The array to sample.
  7070. * @returns {*} Returns the random element.
  7071. */
  7072. function arraySample(array) {
  7073. var length = array.length;
  7074. return length ? array[baseRandom(0, length - 1)] : undefined;
  7075. }
  7076. /**
  7077. * A specialized version of `_.sampleSize` for arrays.
  7078. *
  7079. * @private
  7080. * @param {Array} array The array to sample.
  7081. * @param {number} n The number of elements to sample.
  7082. * @returns {Array} Returns the random elements.
  7083. */
  7084. function arraySampleSize(array, n) {
  7085. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  7086. }
  7087. /**
  7088. * A specialized version of `_.shuffle` for arrays.
  7089. *
  7090. * @private
  7091. * @param {Array} array The array to shuffle.
  7092. * @returns {Array} Returns the new shuffled array.
  7093. */
  7094. function arrayShuffle(array) {
  7095. return shuffleSelf(copyArray(array));
  7096. }
  7097. /**
  7098. * This function is like `assignValue` except that it doesn't assign
  7099. * `undefined` values.
  7100. *
  7101. * @private
  7102. * @param {Object} object The object to modify.
  7103. * @param {string} key The key of the property to assign.
  7104. * @param {*} value The value to assign.
  7105. */
  7106. function assignMergeValue(object, key, value) {
  7107. if ((value !== undefined && !eq(object[key], value)) ||
  7108. (value === undefined && !(key in object))) {
  7109. baseAssignValue(object, key, value);
  7110. }
  7111. }
  7112. /**
  7113. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  7114. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  7115. * for equality comparisons.
  7116. *
  7117. * @private
  7118. * @param {Object} object The object to modify.
  7119. * @param {string} key The key of the property to assign.
  7120. * @param {*} value The value to assign.
  7121. */
  7122. function assignValue(object, key, value) {
  7123. var objValue = object[key];
  7124. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  7125. (value === undefined && !(key in object))) {
  7126. baseAssignValue(object, key, value);
  7127. }
  7128. }
  7129. /**
  7130. * Gets the index at which the `key` is found in `array` of key-value pairs.
  7131. *
  7132. * @private
  7133. * @param {Array} array The array to inspect.
  7134. * @param {*} key The key to search for.
  7135. * @returns {number} Returns the index of the matched value, else `-1`.
  7136. */
  7137. function assocIndexOf(array, key) {
  7138. var length = array.length;
  7139. while (length--) {
  7140. if (eq(array[length][0], key)) {
  7141. return length;
  7142. }
  7143. }
  7144. return -1;
  7145. }
  7146. /**
  7147. * Aggregates elements of `collection` on `accumulator` with keys transformed
  7148. * by `iteratee` and values set by `setter`.
  7149. *
  7150. * @private
  7151. * @param {Array|Object} collection The collection to iterate over.
  7152. * @param {Function} setter The function to set `accumulator` values.
  7153. * @param {Function} iteratee The iteratee to transform keys.
  7154. * @param {Object} accumulator The initial aggregated object.
  7155. * @returns {Function} Returns `accumulator`.
  7156. */
  7157. function baseAggregator(collection, setter, iteratee, accumulator) {
  7158. baseEach(collection, function(value, key, collection) {
  7159. setter(accumulator, value, iteratee(value), collection);
  7160. });
  7161. return accumulator;
  7162. }
  7163. /**
  7164. * The base implementation of `_.assign` without support for multiple sources
  7165. * or `customizer` functions.
  7166. *
  7167. * @private
  7168. * @param {Object} object The destination object.
  7169. * @param {Object} source The source object.
  7170. * @returns {Object} Returns `object`.
  7171. */
  7172. function baseAssign(object, source) {
  7173. return object && copyObject(source, keys(source), object);
  7174. }
  7175. /**
  7176. * The base implementation of `_.assignIn` without support for multiple sources
  7177. * or `customizer` functions.
  7178. *
  7179. * @private
  7180. * @param {Object} object The destination object.
  7181. * @param {Object} source The source object.
  7182. * @returns {Object} Returns `object`.
  7183. */
  7184. function baseAssignIn(object, source) {
  7185. return object && copyObject(source, keysIn(source), object);
  7186. }
  7187. /**
  7188. * The base implementation of `assignValue` and `assignMergeValue` without
  7189. * value checks.
  7190. *
  7191. * @private
  7192. * @param {Object} object The object to modify.
  7193. * @param {string} key The key of the property to assign.
  7194. * @param {*} value The value to assign.
  7195. */
  7196. function baseAssignValue(object, key, value) {
  7197. if (key == '__proto__' && defineProperty) {
  7198. defineProperty(object, key, {
  7199. 'configurable': true,
  7200. 'enumerable': true,
  7201. 'value': value,
  7202. 'writable': true
  7203. });
  7204. } else {
  7205. object[key] = value;
  7206. }
  7207. }
  7208. /**
  7209. * The base implementation of `_.at` without support for individual paths.
  7210. *
  7211. * @private
  7212. * @param {Object} object The object to iterate over.
  7213. * @param {string[]} paths The property paths to pick.
  7214. * @returns {Array} Returns the picked elements.
  7215. */
  7216. function baseAt(object, paths) {
  7217. var index = -1,
  7218. length = paths.length,
  7219. result = Array(length),
  7220. skip = object == null;
  7221. while (++index < length) {
  7222. result[index] = skip ? undefined : get(object, paths[index]);
  7223. }
  7224. return result;
  7225. }
  7226. /**
  7227. * The base implementation of `_.clamp` which doesn't coerce arguments.
  7228. *
  7229. * @private
  7230. * @param {number} number The number to clamp.
  7231. * @param {number} [lower] The lower bound.
  7232. * @param {number} upper The upper bound.
  7233. * @returns {number} Returns the clamped number.
  7234. */
  7235. function baseClamp(number, lower, upper) {
  7236. if (number === number) {
  7237. if (upper !== undefined) {
  7238. number = number <= upper ? number : upper;
  7239. }
  7240. if (lower !== undefined) {
  7241. number = number >= lower ? number : lower;
  7242. }
  7243. }
  7244. return number;
  7245. }
  7246. /**
  7247. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  7248. * traversed objects.
  7249. *
  7250. * @private
  7251. * @param {*} value The value to clone.
  7252. * @param {boolean} bitmask The bitmask flags.
  7253. * 1 - Deep clone
  7254. * 2 - Flatten inherited properties
  7255. * 4 - Clone symbols
  7256. * @param {Function} [customizer] The function to customize cloning.
  7257. * @param {string} [key] The key of `value`.
  7258. * @param {Object} [object] The parent object of `value`.
  7259. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  7260. * @returns {*} Returns the cloned value.
  7261. */
  7262. function baseClone(value, bitmask, customizer, key, object, stack) {
  7263. var result,
  7264. isDeep = bitmask & CLONE_DEEP_FLAG,
  7265. isFlat = bitmask & CLONE_FLAT_FLAG,
  7266. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  7267. if (customizer) {
  7268. result = object ? customizer(value, key, object, stack) : customizer(value);
  7269. }
  7270. if (result !== undefined) {
  7271. return result;
  7272. }
  7273. if (!isObject(value)) {
  7274. return value;
  7275. }
  7276. var isArr = isArray(value);
  7277. if (isArr) {
  7278. result = initCloneArray(value);
  7279. if (!isDeep) {
  7280. return copyArray(value, result);
  7281. }
  7282. } else {
  7283. var tag = getTag(value),
  7284. isFunc = tag == funcTag || tag == genTag;
  7285. if (isBuffer(value)) {
  7286. return cloneBuffer(value, isDeep);
  7287. }
  7288. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  7289. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  7290. if (!isDeep) {
  7291. return isFlat
  7292. ? copySymbolsIn(value, baseAssignIn(result, value))
  7293. : copySymbols(value, baseAssign(result, value));
  7294. }
  7295. } else {
  7296. if (!cloneableTags[tag]) {
  7297. return object ? value : {};
  7298. }
  7299. result = initCloneByTag(value, tag, isDeep);
  7300. }
  7301. }
  7302. // Check for circular references and return its corresponding clone.
  7303. stack || (stack = new Stack);
  7304. var stacked = stack.get(value);
  7305. if (stacked) {
  7306. return stacked;
  7307. }
  7308. stack.set(value, result);
  7309. if (isSet(value)) {
  7310. value.forEach(function(subValue) {
  7311. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  7312. });
  7313. return result;
  7314. }
  7315. if (isMap(value)) {
  7316. value.forEach(function(subValue, key) {
  7317. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  7318. });
  7319. return result;
  7320. }
  7321. var keysFunc = isFull
  7322. ? (isFlat ? getAllKeysIn : getAllKeys)
  7323. : (isFlat ? keysIn : keys);
  7324. var props = isArr ? undefined : keysFunc(value);
  7325. arrayEach(props || value, function(subValue, key) {
  7326. if (props) {
  7327. key = subValue;
  7328. subValue = value[key];
  7329. }
  7330. // Recursively populate clone (susceptible to call stack limits).
  7331. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  7332. });
  7333. return result;
  7334. }
  7335. /**
  7336. * The base implementation of `_.conforms` which doesn't clone `source`.
  7337. *
  7338. * @private
  7339. * @param {Object} source The object of property predicates to conform to.
  7340. * @returns {Function} Returns the new spec function.
  7341. */
  7342. function baseConforms(source) {
  7343. var props = keys(source);
  7344. return function(object) {
  7345. return baseConformsTo(object, source, props);
  7346. };
  7347. }
  7348. /**
  7349. * The base implementation of `_.conformsTo` which accepts `props` to check.
  7350. *
  7351. * @private
  7352. * @param {Object} object The object to inspect.
  7353. * @param {Object} source The object of property predicates to conform to.
  7354. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  7355. */
  7356. function baseConformsTo(object, source, props) {
  7357. var length = props.length;
  7358. if (object == null) {
  7359. return !length;
  7360. }
  7361. object = Object(object);
  7362. while (length--) {
  7363. var key = props[length],
  7364. predicate = source[key],
  7365. value = object[key];
  7366. if ((value === undefined && !(key in object)) || !predicate(value)) {
  7367. return false;
  7368. }
  7369. }
  7370. return true;
  7371. }
  7372. /**
  7373. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  7374. * to provide to `func`.
  7375. *
  7376. * @private
  7377. * @param {Function} func The function to delay.
  7378. * @param {number} wait The number of milliseconds to delay invocation.
  7379. * @param {Array} args The arguments to provide to `func`.
  7380. * @returns {number|Object} Returns the timer id or timeout object.
  7381. */
  7382. function baseDelay(func, wait, args) {
  7383. if (typeof func != 'function') {
  7384. throw new TypeError(FUNC_ERROR_TEXT);
  7385. }
  7386. return setTimeout(function() { func.apply(undefined, args); }, wait);
  7387. }
  7388. /**
  7389. * The base implementation of methods like `_.difference` without support
  7390. * for excluding multiple arrays or iteratee shorthands.
  7391. *
  7392. * @private
  7393. * @param {Array} array The array to inspect.
  7394. * @param {Array} values The values to exclude.
  7395. * @param {Function} [iteratee] The iteratee invoked per element.
  7396. * @param {Function} [comparator] The comparator invoked per element.
  7397. * @returns {Array} Returns the new array of filtered values.
  7398. */
  7399. function baseDifference(array, values, iteratee, comparator) {
  7400. var index = -1,
  7401. includes = arrayIncludes,
  7402. isCommon = true,
  7403. length = array.length,
  7404. result = [],
  7405. valuesLength = values.length;
  7406. if (!length) {
  7407. return result;
  7408. }
  7409. if (iteratee) {
  7410. values = arrayMap(values, baseUnary(iteratee));
  7411. }
  7412. if (comparator) {
  7413. includes = arrayIncludesWith;
  7414. isCommon = false;
  7415. }
  7416. else if (values.length >= LARGE_ARRAY_SIZE) {
  7417. includes = cacheHas;
  7418. isCommon = false;
  7419. values = new SetCache(values);
  7420. }
  7421. outer:
  7422. while (++index < length) {
  7423. var value = array[index],
  7424. computed = iteratee == null ? value : iteratee(value);
  7425. value = (comparator || value !== 0) ? value : 0;
  7426. if (isCommon && computed === computed) {
  7427. var valuesIndex = valuesLength;
  7428. while (valuesIndex--) {
  7429. if (values[valuesIndex] === computed) {
  7430. continue outer;
  7431. }
  7432. }
  7433. result.push(value);
  7434. }
  7435. else if (!includes(values, computed, comparator)) {
  7436. result.push(value);
  7437. }
  7438. }
  7439. return result;
  7440. }
  7441. /**
  7442. * The base implementation of `_.forEach` without support for iteratee shorthands.
  7443. *
  7444. * @private
  7445. * @param {Array|Object} collection The collection to iterate over.
  7446. * @param {Function} iteratee The function invoked per iteration.
  7447. * @returns {Array|Object} Returns `collection`.
  7448. */
  7449. var baseEach = createBaseEach(baseForOwn);
  7450. /**
  7451. * The base implementation of `_.forEachRight` without support for iteratee shorthands.
  7452. *
  7453. * @private
  7454. * @param {Array|Object} collection The collection to iterate over.
  7455. * @param {Function} iteratee The function invoked per iteration.
  7456. * @returns {Array|Object} Returns `collection`.
  7457. */
  7458. var baseEachRight = createBaseEach(baseForOwnRight, true);
  7459. /**
  7460. * The base implementation of `_.every` without support for iteratee shorthands.
  7461. *
  7462. * @private
  7463. * @param {Array|Object} collection The collection to iterate over.
  7464. * @param {Function} predicate The function invoked per iteration.
  7465. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  7466. * else `false`
  7467. */
  7468. function baseEvery(collection, predicate) {
  7469. var result = true;
  7470. baseEach(collection, function(value, index, collection) {
  7471. result = !!predicate(value, index, collection);
  7472. return result;
  7473. });
  7474. return result;
  7475. }
  7476. /**
  7477. * The base implementation of methods like `_.max` and `_.min` which accepts a
  7478. * `comparator` to determine the extremum value.
  7479. *
  7480. * @private
  7481. * @param {Array} array The array to iterate over.
  7482. * @param {Function} iteratee The iteratee invoked per iteration.
  7483. * @param {Function} comparator The comparator used to compare values.
  7484. * @returns {*} Returns the extremum value.
  7485. */
  7486. function baseExtremum(array, iteratee, comparator) {
  7487. var index = -1,
  7488. length = array.length;
  7489. while (++index < length) {
  7490. var value = array[index],
  7491. current = iteratee(value);
  7492. if (current != null && (computed === undefined
  7493. ? (current === current && !isSymbol(current))
  7494. : comparator(current, computed)
  7495. )) {
  7496. var computed = current,
  7497. result = value;
  7498. }
  7499. }
  7500. return result;
  7501. }
  7502. /**
  7503. * The base implementation of `_.fill` without an iteratee call guard.
  7504. *
  7505. * @private
  7506. * @param {Array} array The array to fill.
  7507. * @param {*} value The value to fill `array` with.
  7508. * @param {number} [start=0] The start position.
  7509. * @param {number} [end=array.length] The end position.
  7510. * @returns {Array} Returns `array`.
  7511. */
  7512. function baseFill(array, value, start, end) {
  7513. var length = array.length;
  7514. start = toInteger(start);
  7515. if (start < 0) {
  7516. start = -start > length ? 0 : (length + start);
  7517. }
  7518. end = (end === undefined || end > length) ? length : toInteger(end);
  7519. if (end < 0) {
  7520. end += length;
  7521. }
  7522. end = start > end ? 0 : toLength(end);
  7523. while (start < end) {
  7524. array[start++] = value;
  7525. }
  7526. return array;
  7527. }
  7528. /**
  7529. * The base implementation of `_.filter` without support for iteratee shorthands.
  7530. *
  7531. * @private
  7532. * @param {Array|Object} collection The collection to iterate over.
  7533. * @param {Function} predicate The function invoked per iteration.
  7534. * @returns {Array} Returns the new filtered array.
  7535. */
  7536. function baseFilter(collection, predicate) {
  7537. var result = [];
  7538. baseEach(collection, function(value, index, collection) {
  7539. if (predicate(value, index, collection)) {
  7540. result.push(value);
  7541. }
  7542. });
  7543. return result;
  7544. }
  7545. /**
  7546. * The base implementation of `_.flatten` with support for restricting flattening.
  7547. *
  7548. * @private
  7549. * @param {Array} array The array to flatten.
  7550. * @param {number} depth The maximum recursion depth.
  7551. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  7552. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  7553. * @param {Array} [result=[]] The initial result value.
  7554. * @returns {Array} Returns the new flattened array.
  7555. */
  7556. function baseFlatten(array, depth, predicate, isStrict, result) {
  7557. var index = -1,
  7558. length = array.length;
  7559. predicate || (predicate = isFlattenable);
  7560. result || (result = []);
  7561. while (++index < length) {
  7562. var value = array[index];
  7563. if (depth > 0 && predicate(value)) {
  7564. if (depth > 1) {
  7565. // Recursively flatten arrays (susceptible to call stack limits).
  7566. baseFlatten(value, depth - 1, predicate, isStrict, result);
  7567. } else {
  7568. arrayPush(result, value);
  7569. }
  7570. } else if (!isStrict) {
  7571. result[result.length] = value;
  7572. }
  7573. }
  7574. return result;
  7575. }
  7576. /**
  7577. * The base implementation of `baseForOwn` which iterates over `object`
  7578. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  7579. * Iteratee functions may exit iteration early by explicitly returning `false`.
  7580. *
  7581. * @private
  7582. * @param {Object} object The object to iterate over.
  7583. * @param {Function} iteratee The function invoked per iteration.
  7584. * @param {Function} keysFunc The function to get the keys of `object`.
  7585. * @returns {Object} Returns `object`.
  7586. */
  7587. var baseFor = createBaseFor();
  7588. /**
  7589. * This function is like `baseFor` except that it iterates over properties
  7590. * in the opposite order.
  7591. *
  7592. * @private
  7593. * @param {Object} object The object to iterate over.
  7594. * @param {Function} iteratee The function invoked per iteration.
  7595. * @param {Function} keysFunc The function to get the keys of `object`.
  7596. * @returns {Object} Returns `object`.
  7597. */
  7598. var baseForRight = createBaseFor(true);
  7599. /**
  7600. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  7601. *
  7602. * @private
  7603. * @param {Object} object The object to iterate over.
  7604. * @param {Function} iteratee The function invoked per iteration.
  7605. * @returns {Object} Returns `object`.
  7606. */
  7607. function baseForOwn(object, iteratee) {
  7608. return object && baseFor(object, iteratee, keys);
  7609. }
  7610. /**
  7611. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  7612. *
  7613. * @private
  7614. * @param {Object} object The object to iterate over.
  7615. * @param {Function} iteratee The function invoked per iteration.
  7616. * @returns {Object} Returns `object`.
  7617. */
  7618. function baseForOwnRight(object, iteratee) {
  7619. return object && baseForRight(object, iteratee, keys);
  7620. }
  7621. /**
  7622. * The base implementation of `_.functions` which creates an array of
  7623. * `object` function property names filtered from `props`.
  7624. *
  7625. * @private
  7626. * @param {Object} object The object to inspect.
  7627. * @param {Array} props The property names to filter.
  7628. * @returns {Array} Returns the function names.
  7629. */
  7630. function baseFunctions(object, props) {
  7631. return arrayFilter(props, function(key) {
  7632. return isFunction(object[key]);
  7633. });
  7634. }
  7635. /**
  7636. * The base implementation of `_.get` without support for default values.
  7637. *
  7638. * @private
  7639. * @param {Object} object The object to query.
  7640. * @param {Array|string} path The path of the property to get.
  7641. * @returns {*} Returns the resolved value.
  7642. */
  7643. function baseGet(object, path) {
  7644. path = castPath(path, object);
  7645. var index = 0,
  7646. length = path.length;
  7647. while (object != null && index < length) {
  7648. object = object[toKey(path[index++])];
  7649. }
  7650. return (index && index == length) ? object : undefined;
  7651. }
  7652. /**
  7653. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  7654. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  7655. * symbols of `object`.
  7656. *
  7657. * @private
  7658. * @param {Object} object The object to query.
  7659. * @param {Function} keysFunc The function to get the keys of `object`.
  7660. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  7661. * @returns {Array} Returns the array of property names and symbols.
  7662. */
  7663. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  7664. var result = keysFunc(object);
  7665. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  7666. }
  7667. /**
  7668. * The base implementation of `getTag` without fallbacks for buggy environments.
  7669. *
  7670. * @private
  7671. * @param {*} value The value to query.
  7672. * @returns {string} Returns the `toStringTag`.
  7673. */
  7674. function baseGetTag(value) {
  7675. if (value == null) {
  7676. return value === undefined ? undefinedTag : nullTag;
  7677. }
  7678. return (symToStringTag && symToStringTag in Object(value))
  7679. ? getRawTag(value)
  7680. : objectToString(value);
  7681. }
  7682. /**
  7683. * The base implementation of `_.gt` which doesn't coerce arguments.
  7684. *
  7685. * @private
  7686. * @param {*} value The value to compare.
  7687. * @param {*} other The other value to compare.
  7688. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  7689. * else `false`.
  7690. */
  7691. function baseGt(value, other) {
  7692. return value > other;
  7693. }
  7694. /**
  7695. * The base implementation of `_.has` without support for deep paths.
  7696. *
  7697. * @private
  7698. * @param {Object} [object] The object to query.
  7699. * @param {Array|string} key The key to check.
  7700. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7701. */
  7702. function baseHas(object, key) {
  7703. return object != null && hasOwnProperty.call(object, key);
  7704. }
  7705. /**
  7706. * The base implementation of `_.hasIn` without support for deep paths.
  7707. *
  7708. * @private
  7709. * @param {Object} [object] The object to query.
  7710. * @param {Array|string} key The key to check.
  7711. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7712. */
  7713. function baseHasIn(object, key) {
  7714. return object != null && key in Object(object);
  7715. }
  7716. /**
  7717. * The base implementation of `_.inRange` which doesn't coerce arguments.
  7718. *
  7719. * @private
  7720. * @param {number} number The number to check.
  7721. * @param {number} start The start of the range.
  7722. * @param {number} end The end of the range.
  7723. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  7724. */
  7725. function baseInRange(number, start, end) {
  7726. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  7727. }
  7728. /**
  7729. * The base implementation of methods like `_.intersection`, without support
  7730. * for iteratee shorthands, that accepts an array of arrays to inspect.
  7731. *
  7732. * @private
  7733. * @param {Array} arrays The arrays to inspect.
  7734. * @param {Function} [iteratee] The iteratee invoked per element.
  7735. * @param {Function} [comparator] The comparator invoked per element.
  7736. * @returns {Array} Returns the new array of shared values.
  7737. */
  7738. function baseIntersection(arrays, iteratee, comparator) {
  7739. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  7740. length = arrays[0].length,
  7741. othLength = arrays.length,
  7742. othIndex = othLength,
  7743. caches = Array(othLength),
  7744. maxLength = Infinity,
  7745. result = [];
  7746. while (othIndex--) {
  7747. var array = arrays[othIndex];
  7748. if (othIndex && iteratee) {
  7749. array = arrayMap(array, baseUnary(iteratee));
  7750. }
  7751. maxLength = nativeMin(array.length, maxLength);
  7752. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  7753. ? new SetCache(othIndex && array)
  7754. : undefined;
  7755. }
  7756. array = arrays[0];
  7757. var index = -1,
  7758. seen = caches[0];
  7759. outer:
  7760. while (++index < length && result.length < maxLength) {
  7761. var value = array[index],
  7762. computed = iteratee ? iteratee(value) : value;
  7763. value = (comparator || value !== 0) ? value : 0;
  7764. if (!(seen
  7765. ? cacheHas(seen, computed)
  7766. : includes(result, computed, comparator)
  7767. )) {
  7768. othIndex = othLength;
  7769. while (--othIndex) {
  7770. var cache = caches[othIndex];
  7771. if (!(cache
  7772. ? cacheHas(cache, computed)
  7773. : includes(arrays[othIndex], computed, comparator))
  7774. ) {
  7775. continue outer;
  7776. }
  7777. }
  7778. if (seen) {
  7779. seen.push(computed);
  7780. }
  7781. result.push(value);
  7782. }
  7783. }
  7784. return result;
  7785. }
  7786. /**
  7787. * The base implementation of `_.invert` and `_.invertBy` which inverts
  7788. * `object` with values transformed by `iteratee` and set by `setter`.
  7789. *
  7790. * @private
  7791. * @param {Object} object The object to iterate over.
  7792. * @param {Function} setter The function to set `accumulator` values.
  7793. * @param {Function} iteratee The iteratee to transform values.
  7794. * @param {Object} accumulator The initial inverted object.
  7795. * @returns {Function} Returns `accumulator`.
  7796. */
  7797. function baseInverter(object, setter, iteratee, accumulator) {
  7798. baseForOwn(object, function(value, key, object) {
  7799. setter(accumulator, iteratee(value), key, object);
  7800. });
  7801. return accumulator;
  7802. }
  7803. /**
  7804. * The base implementation of `_.invoke` without support for individual
  7805. * method arguments.
  7806. *
  7807. * @private
  7808. * @param {Object} object The object to query.
  7809. * @param {Array|string} path The path of the method to invoke.
  7810. * @param {Array} args The arguments to invoke the method with.
  7811. * @returns {*} Returns the result of the invoked method.
  7812. */
  7813. function baseInvoke(object, path, args) {
  7814. path = castPath(path, object);
  7815. object = parent(object, path);
  7816. var func = object == null ? object : object[toKey(last(path))];
  7817. return func == null ? undefined : apply(func, object, args);
  7818. }
  7819. /**
  7820. * The base implementation of `_.isArguments`.
  7821. *
  7822. * @private
  7823. * @param {*} value The value to check.
  7824. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  7825. */
  7826. function baseIsArguments(value) {
  7827. return isObjectLike(value) && baseGetTag(value) == argsTag;
  7828. }
  7829. /**
  7830. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  7831. *
  7832. * @private
  7833. * @param {*} value The value to check.
  7834. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  7835. */
  7836. function baseIsArrayBuffer(value) {
  7837. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  7838. }
  7839. /**
  7840. * The base implementation of `_.isDate` without Node.js optimizations.
  7841. *
  7842. * @private
  7843. * @param {*} value The value to check.
  7844. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  7845. */
  7846. function baseIsDate(value) {
  7847. return isObjectLike(value) && baseGetTag(value) == dateTag;
  7848. }
  7849. /**
  7850. * The base implementation of `_.isEqual` which supports partial comparisons
  7851. * and tracks traversed objects.
  7852. *
  7853. * @private
  7854. * @param {*} value The value to compare.
  7855. * @param {*} other The other value to compare.
  7856. * @param {boolean} bitmask The bitmask flags.
  7857. * 1 - Unordered comparison
  7858. * 2 - Partial comparison
  7859. * @param {Function} [customizer] The function to customize comparisons.
  7860. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  7861. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  7862. */
  7863. function baseIsEqual(value, other, bitmask, customizer, stack) {
  7864. if (value === other) {
  7865. return true;
  7866. }
  7867. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  7868. return value !== value && other !== other;
  7869. }
  7870. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  7871. }
  7872. /**
  7873. * A specialized version of `baseIsEqual` for arrays and objects which performs
  7874. * deep comparisons and tracks traversed objects enabling objects with circular
  7875. * references to be compared.
  7876. *
  7877. * @private
  7878. * @param {Object} object The object to compare.
  7879. * @param {Object} other The other object to compare.
  7880. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7881. * @param {Function} customizer The function to customize comparisons.
  7882. * @param {Function} equalFunc The function to determine equivalents of values.
  7883. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  7884. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7885. */
  7886. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  7887. var objIsArr = isArray(object),
  7888. othIsArr = isArray(other),
  7889. objTag = objIsArr ? arrayTag : getTag(object),
  7890. othTag = othIsArr ? arrayTag : getTag(other);
  7891. objTag = objTag == argsTag ? objectTag : objTag;
  7892. othTag = othTag == argsTag ? objectTag : othTag;
  7893. var objIsObj = objTag == objectTag,
  7894. othIsObj = othTag == objectTag,
  7895. isSameTag = objTag == othTag;
  7896. if (isSameTag && isBuffer(object)) {
  7897. if (!isBuffer(other)) {
  7898. return false;
  7899. }
  7900. objIsArr = true;
  7901. objIsObj = false;
  7902. }
  7903. if (isSameTag && !objIsObj) {
  7904. stack || (stack = new Stack);
  7905. return (objIsArr || isTypedArray(object))
  7906. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  7907. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  7908. }
  7909. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  7910. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  7911. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  7912. if (objIsWrapped || othIsWrapped) {
  7913. var objUnwrapped = objIsWrapped ? object.value() : object,
  7914. othUnwrapped = othIsWrapped ? other.value() : other;
  7915. stack || (stack = new Stack);
  7916. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  7917. }
  7918. }
  7919. if (!isSameTag) {
  7920. return false;
  7921. }
  7922. stack || (stack = new Stack);
  7923. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  7924. }
  7925. /**
  7926. * The base implementation of `_.isMap` without Node.js optimizations.
  7927. *
  7928. * @private
  7929. * @param {*} value The value to check.
  7930. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  7931. */
  7932. function baseIsMap(value) {
  7933. return isObjectLike(value) && getTag(value) == mapTag;
  7934. }
  7935. /**
  7936. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  7937. *
  7938. * @private
  7939. * @param {Object} object The object to inspect.
  7940. * @param {Object} source The object of property values to match.
  7941. * @param {Array} matchData The property names, values, and compare flags to match.
  7942. * @param {Function} [customizer] The function to customize comparisons.
  7943. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  7944. */
  7945. function baseIsMatch(object, source, matchData, customizer) {
  7946. var index = matchData.length,
  7947. length = index,
  7948. noCustomizer = !customizer;
  7949. if (object == null) {
  7950. return !length;
  7951. }
  7952. object = Object(object);
  7953. while (index--) {
  7954. var data = matchData[index];
  7955. if ((noCustomizer && data[2])
  7956. ? data[1] !== object[data[0]]
  7957. : !(data[0] in object)
  7958. ) {
  7959. return false;
  7960. }
  7961. }
  7962. while (++index < length) {
  7963. data = matchData[index];
  7964. var key = data[0],
  7965. objValue = object[key],
  7966. srcValue = data[1];
  7967. if (noCustomizer && data[2]) {
  7968. if (objValue === undefined && !(key in object)) {
  7969. return false;
  7970. }
  7971. } else {
  7972. var stack = new Stack;
  7973. if (customizer) {
  7974. var result = customizer(objValue, srcValue, key, object, source, stack);
  7975. }
  7976. if (!(result === undefined
  7977. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  7978. : result
  7979. )) {
  7980. return false;
  7981. }
  7982. }
  7983. }
  7984. return true;
  7985. }
  7986. /**
  7987. * The base implementation of `_.isNative` without bad shim checks.
  7988. *
  7989. * @private
  7990. * @param {*} value The value to check.
  7991. * @returns {boolean} Returns `true` if `value` is a native function,
  7992. * else `false`.
  7993. */
  7994. function baseIsNative(value) {
  7995. if (!isObject(value) || isMasked(value)) {
  7996. return false;
  7997. }
  7998. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  7999. return pattern.test(toSource(value));
  8000. }
  8001. /**
  8002. * The base implementation of `_.isRegExp` without Node.js optimizations.
  8003. *
  8004. * @private
  8005. * @param {*} value The value to check.
  8006. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  8007. */
  8008. function baseIsRegExp(value) {
  8009. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  8010. }
  8011. /**
  8012. * The base implementation of `_.isSet` without Node.js optimizations.
  8013. *
  8014. * @private
  8015. * @param {*} value The value to check.
  8016. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  8017. */
  8018. function baseIsSet(value) {
  8019. return isObjectLike(value) && getTag(value) == setTag;
  8020. }
  8021. /**
  8022. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  8023. *
  8024. * @private
  8025. * @param {*} value The value to check.
  8026. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  8027. */
  8028. function baseIsTypedArray(value) {
  8029. return isObjectLike(value) &&
  8030. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  8031. }
  8032. /**
  8033. * The base implementation of `_.iteratee`.
  8034. *
  8035. * @private
  8036. * @param {*} [value=_.identity] The value to convert to an iteratee.
  8037. * @returns {Function} Returns the iteratee.
  8038. */
  8039. function baseIteratee(value) {
  8040. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  8041. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  8042. if (typeof value == 'function') {
  8043. return value;
  8044. }
  8045. if (value == null) {
  8046. return identity;
  8047. }
  8048. if (typeof value == 'object') {
  8049. return isArray(value)
  8050. ? baseMatchesProperty(value[0], value[1])
  8051. : baseMatches(value);
  8052. }
  8053. return property(value);
  8054. }
  8055. /**
  8056. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  8057. *
  8058. * @private
  8059. * @param {Object} object The object to query.
  8060. * @returns {Array} Returns the array of property names.
  8061. */
  8062. function baseKeys(object) {
  8063. if (!isPrototype(object)) {
  8064. return nativeKeys(object);
  8065. }
  8066. var result = [];
  8067. for (var key in Object(object)) {
  8068. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  8069. result.push(key);
  8070. }
  8071. }
  8072. return result;
  8073. }
  8074. /**
  8075. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  8076. *
  8077. * @private
  8078. * @param {Object} object The object to query.
  8079. * @returns {Array} Returns the array of property names.
  8080. */
  8081. function baseKeysIn(object) {
  8082. if (!isObject(object)) {
  8083. return nativeKeysIn(object);
  8084. }
  8085. var isProto = isPrototype(object),
  8086. result = [];
  8087. for (var key in object) {
  8088. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  8089. result.push(key);
  8090. }
  8091. }
  8092. return result;
  8093. }
  8094. /**
  8095. * The base implementation of `_.lt` which doesn't coerce arguments.
  8096. *
  8097. * @private
  8098. * @param {*} value The value to compare.
  8099. * @param {*} other The other value to compare.
  8100. * @returns {boolean} Returns `true` if `value` is less than `other`,
  8101. * else `false`.
  8102. */
  8103. function baseLt(value, other) {
  8104. return value < other;
  8105. }
  8106. /**
  8107. * The base implementation of `_.map` without support for iteratee shorthands.
  8108. *
  8109. * @private
  8110. * @param {Array|Object} collection The collection to iterate over.
  8111. * @param {Function} iteratee The function invoked per iteration.
  8112. * @returns {Array} Returns the new mapped array.
  8113. */
  8114. function baseMap(collection, iteratee) {
  8115. var index = -1,
  8116. result = isArrayLike(collection) ? Array(collection.length) : [];
  8117. baseEach(collection, function(value, key, collection) {
  8118. result[++index] = iteratee(value, key, collection);
  8119. });
  8120. return result;
  8121. }
  8122. /**
  8123. * The base implementation of `_.matches` which doesn't clone `source`.
  8124. *
  8125. * @private
  8126. * @param {Object} source The object of property values to match.
  8127. * @returns {Function} Returns the new spec function.
  8128. */
  8129. function baseMatches(source) {
  8130. var matchData = getMatchData(source);
  8131. if (matchData.length == 1 && matchData[0][2]) {
  8132. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  8133. }
  8134. return function(object) {
  8135. return object === source || baseIsMatch(object, source, matchData);
  8136. };
  8137. }
  8138. /**
  8139. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  8140. *
  8141. * @private
  8142. * @param {string} path The path of the property to get.
  8143. * @param {*} srcValue The value to match.
  8144. * @returns {Function} Returns the new spec function.
  8145. */
  8146. function baseMatchesProperty(path, srcValue) {
  8147. if (isKey(path) && isStrictComparable(srcValue)) {
  8148. return matchesStrictComparable(toKey(path), srcValue);
  8149. }
  8150. return function(object) {
  8151. var objValue = get(object, path);
  8152. return (objValue === undefined && objValue === srcValue)
  8153. ? hasIn(object, path)
  8154. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  8155. };
  8156. }
  8157. /**
  8158. * The base implementation of `_.merge` without support for multiple sources.
  8159. *
  8160. * @private
  8161. * @param {Object} object The destination object.
  8162. * @param {Object} source The source object.
  8163. * @param {number} srcIndex The index of `source`.
  8164. * @param {Function} [customizer] The function to customize merged values.
  8165. * @param {Object} [stack] Tracks traversed source values and their merged
  8166. * counterparts.
  8167. */
  8168. function baseMerge(object, source, srcIndex, customizer, stack) {
  8169. if (object === source) {
  8170. return;
  8171. }
  8172. baseFor(source, function(srcValue, key) {
  8173. if (isObject(srcValue)) {
  8174. stack || (stack = new Stack);
  8175. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  8176. }
  8177. else {
  8178. var newValue = customizer
  8179. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  8180. : undefined;
  8181. if (newValue === undefined) {
  8182. newValue = srcValue;
  8183. }
  8184. assignMergeValue(object, key, newValue);
  8185. }
  8186. }, keysIn);
  8187. }
  8188. /**
  8189. * A specialized version of `baseMerge` for arrays and objects which performs
  8190. * deep merges and tracks traversed objects enabling objects with circular
  8191. * references to be merged.
  8192. *
  8193. * @private
  8194. * @param {Object} object The destination object.
  8195. * @param {Object} source The source object.
  8196. * @param {string} key The key of the value to merge.
  8197. * @param {number} srcIndex The index of `source`.
  8198. * @param {Function} mergeFunc The function to merge values.
  8199. * @param {Function} [customizer] The function to customize assigned values.
  8200. * @param {Object} [stack] Tracks traversed source values and their merged
  8201. * counterparts.
  8202. */
  8203. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  8204. var objValue = safeGet(object, key),
  8205. srcValue = safeGet(source, key),
  8206. stacked = stack.get(srcValue);
  8207. if (stacked) {
  8208. assignMergeValue(object, key, stacked);
  8209. return;
  8210. }
  8211. var newValue = customizer
  8212. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  8213. : undefined;
  8214. var isCommon = newValue === undefined;
  8215. if (isCommon) {
  8216. var isArr = isArray(srcValue),
  8217. isBuff = !isArr && isBuffer(srcValue),
  8218. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  8219. newValue = srcValue;
  8220. if (isArr || isBuff || isTyped) {
  8221. if (isArray(objValue)) {
  8222. newValue = objValue;
  8223. }
  8224. else if (isArrayLikeObject(objValue)) {
  8225. newValue = copyArray(objValue);
  8226. }
  8227. else if (isBuff) {
  8228. isCommon = false;
  8229. newValue = cloneBuffer(srcValue, true);
  8230. }
  8231. else if (isTyped) {
  8232. isCommon = false;
  8233. newValue = cloneTypedArray(srcValue, true);
  8234. }
  8235. else {
  8236. newValue = [];
  8237. }
  8238. }
  8239. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  8240. newValue = objValue;
  8241. if (isArguments(objValue)) {
  8242. newValue = toPlainObject(objValue);
  8243. }
  8244. else if (!isObject(objValue) || isFunction(objValue)) {
  8245. newValue = initCloneObject(srcValue);
  8246. }
  8247. }
  8248. else {
  8249. isCommon = false;
  8250. }
  8251. }
  8252. if (isCommon) {
  8253. // Recursively merge objects and arrays (susceptible to call stack limits).
  8254. stack.set(srcValue, newValue);
  8255. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  8256. stack['delete'](srcValue);
  8257. }
  8258. assignMergeValue(object, key, newValue);
  8259. }
  8260. /**
  8261. * The base implementation of `_.nth` which doesn't coerce arguments.
  8262. *
  8263. * @private
  8264. * @param {Array} array The array to query.
  8265. * @param {number} n The index of the element to return.
  8266. * @returns {*} Returns the nth element of `array`.
  8267. */
  8268. function baseNth(array, n) {
  8269. var length = array.length;
  8270. if (!length) {
  8271. return;
  8272. }
  8273. n += n < 0 ? length : 0;
  8274. return isIndex(n, length) ? array[n] : undefined;
  8275. }
  8276. /**
  8277. * The base implementation of `_.orderBy` without param guards.
  8278. *
  8279. * @private
  8280. * @param {Array|Object} collection The collection to iterate over.
  8281. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  8282. * @param {string[]} orders The sort orders of `iteratees`.
  8283. * @returns {Array} Returns the new sorted array.
  8284. */
  8285. function baseOrderBy(collection, iteratees, orders) {
  8286. var index = -1;
  8287. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  8288. var result = baseMap(collection, function(value, key, collection) {
  8289. var criteria = arrayMap(iteratees, function(iteratee) {
  8290. return iteratee(value);
  8291. });
  8292. return { 'criteria': criteria, 'index': ++index, 'value': value };
  8293. });
  8294. return baseSortBy(result, function(object, other) {
  8295. return compareMultiple(object, other, orders);
  8296. });
  8297. }
  8298. /**
  8299. * The base implementation of `_.pick` without support for individual
  8300. * property identifiers.
  8301. *
  8302. * @private
  8303. * @param {Object} object The source object.
  8304. * @param {string[]} paths The property paths to pick.
  8305. * @returns {Object} Returns the new object.
  8306. */
  8307. function basePick(object, paths) {
  8308. return basePickBy(object, paths, function(value, path) {
  8309. return hasIn(object, path);
  8310. });
  8311. }
  8312. /**
  8313. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  8314. *
  8315. * @private
  8316. * @param {Object} object The source object.
  8317. * @param {string[]} paths The property paths to pick.
  8318. * @param {Function} predicate The function invoked per property.
  8319. * @returns {Object} Returns the new object.
  8320. */
  8321. function basePickBy(object, paths, predicate) {
  8322. var index = -1,
  8323. length = paths.length,
  8324. result = {};
  8325. while (++index < length) {
  8326. var path = paths[index],
  8327. value = baseGet(object, path);
  8328. if (predicate(value, path)) {
  8329. baseSet(result, castPath(path, object), value);
  8330. }
  8331. }
  8332. return result;
  8333. }
  8334. /**
  8335. * A specialized version of `baseProperty` which supports deep paths.
  8336. *
  8337. * @private
  8338. * @param {Array|string} path The path of the property to get.
  8339. * @returns {Function} Returns the new accessor function.
  8340. */
  8341. function basePropertyDeep(path) {
  8342. return function(object) {
  8343. return baseGet(object, path);
  8344. };
  8345. }
  8346. /**
  8347. * The base implementation of `_.pullAllBy` without support for iteratee
  8348. * shorthands.
  8349. *
  8350. * @private
  8351. * @param {Array} array The array to modify.
  8352. * @param {Array} values The values to remove.
  8353. * @param {Function} [iteratee] The iteratee invoked per element.
  8354. * @param {Function} [comparator] The comparator invoked per element.
  8355. * @returns {Array} Returns `array`.
  8356. */
  8357. function basePullAll(array, values, iteratee, comparator) {
  8358. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  8359. index = -1,
  8360. length = values.length,
  8361. seen = array;
  8362. if (array === values) {
  8363. values = copyArray(values);
  8364. }
  8365. if (iteratee) {
  8366. seen = arrayMap(array, baseUnary(iteratee));
  8367. }
  8368. while (++index < length) {
  8369. var fromIndex = 0,
  8370. value = values[index],
  8371. computed = iteratee ? iteratee(value) : value;
  8372. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  8373. if (seen !== array) {
  8374. splice.call(seen, fromIndex, 1);
  8375. }
  8376. splice.call(array, fromIndex, 1);
  8377. }
  8378. }
  8379. return array;
  8380. }
  8381. /**
  8382. * The base implementation of `_.pullAt` without support for individual
  8383. * indexes or capturing the removed elements.
  8384. *
  8385. * @private
  8386. * @param {Array} array The array to modify.
  8387. * @param {number[]} indexes The indexes of elements to remove.
  8388. * @returns {Array} Returns `array`.
  8389. */
  8390. function basePullAt(array, indexes) {
  8391. var length = array ? indexes.length : 0,
  8392. lastIndex = length - 1;
  8393. while (length--) {
  8394. var index = indexes[length];
  8395. if (length == lastIndex || index !== previous) {
  8396. var previous = index;
  8397. if (isIndex(index)) {
  8398. splice.call(array, index, 1);
  8399. } else {
  8400. baseUnset(array, index);
  8401. }
  8402. }
  8403. }
  8404. return array;
  8405. }
  8406. /**
  8407. * The base implementation of `_.random` without support for returning
  8408. * floating-point numbers.
  8409. *
  8410. * @private
  8411. * @param {number} lower The lower bound.
  8412. * @param {number} upper The upper bound.
  8413. * @returns {number} Returns the random number.
  8414. */
  8415. function baseRandom(lower, upper) {
  8416. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  8417. }
  8418. /**
  8419. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  8420. * coerce arguments.
  8421. *
  8422. * @private
  8423. * @param {number} start The start of the range.
  8424. * @param {number} end The end of the range.
  8425. * @param {number} step The value to increment or decrement by.
  8426. * @param {boolean} [fromRight] Specify iterating from right to left.
  8427. * @returns {Array} Returns the range of numbers.
  8428. */
  8429. function baseRange(start, end, step, fromRight) {
  8430. var index = -1,
  8431. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  8432. result = Array(length);
  8433. while (length--) {
  8434. result[fromRight ? length : ++index] = start;
  8435. start += step;
  8436. }
  8437. return result;
  8438. }
  8439. /**
  8440. * The base implementation of `_.repeat` which doesn't coerce arguments.
  8441. *
  8442. * @private
  8443. * @param {string} string The string to repeat.
  8444. * @param {number} n The number of times to repeat the string.
  8445. * @returns {string} Returns the repeated string.
  8446. */
  8447. function baseRepeat(string, n) {
  8448. var result = '';
  8449. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  8450. return result;
  8451. }
  8452. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  8453. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  8454. do {
  8455. if (n % 2) {
  8456. result += string;
  8457. }
  8458. n = nativeFloor(n / 2);
  8459. if (n) {
  8460. string += string;
  8461. }
  8462. } while (n);
  8463. return result;
  8464. }
  8465. /**
  8466. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  8467. *
  8468. * @private
  8469. * @param {Function} func The function to apply a rest parameter to.
  8470. * @param {number} [start=func.length-1] The start position of the rest parameter.
  8471. * @returns {Function} Returns the new function.
  8472. */
  8473. function baseRest(func, start) {
  8474. return setToString(overRest(func, start, identity), func + '');
  8475. }
  8476. /**
  8477. * The base implementation of `_.sample`.
  8478. *
  8479. * @private
  8480. * @param {Array|Object} collection The collection to sample.
  8481. * @returns {*} Returns the random element.
  8482. */
  8483. function baseSample(collection) {
  8484. return arraySample(values(collection));
  8485. }
  8486. /**
  8487. * The base implementation of `_.sampleSize` without param guards.
  8488. *
  8489. * @private
  8490. * @param {Array|Object} collection The collection to sample.
  8491. * @param {number} n The number of elements to sample.
  8492. * @returns {Array} Returns the random elements.
  8493. */
  8494. function baseSampleSize(collection, n) {
  8495. var array = values(collection);
  8496. return shuffleSelf(array, baseClamp(n, 0, array.length));
  8497. }
  8498. /**
  8499. * The base implementation of `_.set`.
  8500. *
  8501. * @private
  8502. * @param {Object} object The object to modify.
  8503. * @param {Array|string} path The path of the property to set.
  8504. * @param {*} value The value to set.
  8505. * @param {Function} [customizer] The function to customize path creation.
  8506. * @returns {Object} Returns `object`.
  8507. */
  8508. function baseSet(object, path, value, customizer) {
  8509. if (!isObject(object)) {
  8510. return object;
  8511. }
  8512. path = castPath(path, object);
  8513. var index = -1,
  8514. length = path.length,
  8515. lastIndex = length - 1,
  8516. nested = object;
  8517. while (nested != null && ++index < length) {
  8518. var key = toKey(path[index]),
  8519. newValue = value;
  8520. if (index != lastIndex) {
  8521. var objValue = nested[key];
  8522. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  8523. if (newValue === undefined) {
  8524. newValue = isObject(objValue)
  8525. ? objValue
  8526. : (isIndex(path[index + 1]) ? [] : {});
  8527. }
  8528. }
  8529. assignValue(nested, key, newValue);
  8530. nested = nested[key];
  8531. }
  8532. return object;
  8533. }
  8534. /**
  8535. * The base implementation of `setData` without support for hot loop shorting.
  8536. *
  8537. * @private
  8538. * @param {Function} func The function to associate metadata with.
  8539. * @param {*} data The metadata.
  8540. * @returns {Function} Returns `func`.
  8541. */
  8542. var baseSetData = !metaMap ? identity : function(func, data) {
  8543. metaMap.set(func, data);
  8544. return func;
  8545. };
  8546. /**
  8547. * The base implementation of `setToString` without support for hot loop shorting.
  8548. *
  8549. * @private
  8550. * @param {Function} func The function to modify.
  8551. * @param {Function} string The `toString` result.
  8552. * @returns {Function} Returns `func`.
  8553. */
  8554. var baseSetToString = !defineProperty ? identity : function(func, string) {
  8555. return defineProperty(func, 'toString', {
  8556. 'configurable': true,
  8557. 'enumerable': false,
  8558. 'value': constant(string),
  8559. 'writable': true
  8560. });
  8561. };
  8562. /**
  8563. * The base implementation of `_.shuffle`.
  8564. *
  8565. * @private
  8566. * @param {Array|Object} collection The collection to shuffle.
  8567. * @returns {Array} Returns the new shuffled array.
  8568. */
  8569. function baseShuffle(collection) {
  8570. return shuffleSelf(values(collection));
  8571. }
  8572. /**
  8573. * The base implementation of `_.slice` without an iteratee call guard.
  8574. *
  8575. * @private
  8576. * @param {Array} array The array to slice.
  8577. * @param {number} [start=0] The start position.
  8578. * @param {number} [end=array.length] The end position.
  8579. * @returns {Array} Returns the slice of `array`.
  8580. */
  8581. function baseSlice(array, start, end) {
  8582. var index = -1,
  8583. length = array.length;
  8584. if (start < 0) {
  8585. start = -start > length ? 0 : (length + start);
  8586. }
  8587. end = end > length ? length : end;
  8588. if (end < 0) {
  8589. end += length;
  8590. }
  8591. length = start > end ? 0 : ((end - start) >>> 0);
  8592. start >>>= 0;
  8593. var result = Array(length);
  8594. while (++index < length) {
  8595. result[index] = array[index + start];
  8596. }
  8597. return result;
  8598. }
  8599. /**
  8600. * The base implementation of `_.some` without support for iteratee shorthands.
  8601. *
  8602. * @private
  8603. * @param {Array|Object} collection The collection to iterate over.
  8604. * @param {Function} predicate The function invoked per iteration.
  8605. * @returns {boolean} Returns `true` if any element passes the predicate check,
  8606. * else `false`.
  8607. */
  8608. function baseSome(collection, predicate) {
  8609. var result;
  8610. baseEach(collection, function(value, index, collection) {
  8611. result = predicate(value, index, collection);
  8612. return !result;
  8613. });
  8614. return !!result;
  8615. }
  8616. /**
  8617. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  8618. * performs a binary search of `array` to determine the index at which `value`
  8619. * should be inserted into `array` in order to maintain its sort order.
  8620. *
  8621. * @private
  8622. * @param {Array} array The sorted array to inspect.
  8623. * @param {*} value The value to evaluate.
  8624. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  8625. * @returns {number} Returns the index at which `value` should be inserted
  8626. * into `array`.
  8627. */
  8628. function baseSortedIndex(array, value, retHighest) {
  8629. var low = 0,
  8630. high = array == null ? low : array.length;
  8631. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  8632. while (low < high) {
  8633. var mid = (low + high) >>> 1,
  8634. computed = array[mid];
  8635. if (computed !== null && !isSymbol(computed) &&
  8636. (retHighest ? (computed <= value) : (computed < value))) {
  8637. low = mid + 1;
  8638. } else {
  8639. high = mid;
  8640. }
  8641. }
  8642. return high;
  8643. }
  8644. return baseSortedIndexBy(array, value, identity, retHighest);
  8645. }
  8646. /**
  8647. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  8648. * which invokes `iteratee` for `value` and each element of `array` to compute
  8649. * their sort ranking. The iteratee is invoked with one argument; (value).
  8650. *
  8651. * @private
  8652. * @param {Array} array The sorted array to inspect.
  8653. * @param {*} value The value to evaluate.
  8654. * @param {Function} iteratee The iteratee invoked per element.
  8655. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  8656. * @returns {number} Returns the index at which `value` should be inserted
  8657. * into `array`.
  8658. */
  8659. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  8660. value = iteratee(value);
  8661. var low = 0,
  8662. high = array == null ? 0 : array.length,
  8663. valIsNaN = value !== value,
  8664. valIsNull = value === null,
  8665. valIsSymbol = isSymbol(value),
  8666. valIsUndefined = value === undefined;
  8667. while (low < high) {
  8668. var mid = nativeFloor((low + high) / 2),
  8669. computed = iteratee(array[mid]),
  8670. othIsDefined = computed !== undefined,
  8671. othIsNull = computed === null,
  8672. othIsReflexive = computed === computed,
  8673. othIsSymbol = isSymbol(computed);
  8674. if (valIsNaN) {
  8675. var setLow = retHighest || othIsReflexive;
  8676. } else if (valIsUndefined) {
  8677. setLow = othIsReflexive && (retHighest || othIsDefined);
  8678. } else if (valIsNull) {
  8679. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  8680. } else if (valIsSymbol) {
  8681. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  8682. } else if (othIsNull || othIsSymbol) {
  8683. setLow = false;
  8684. } else {
  8685. setLow = retHighest ? (computed <= value) : (computed < value);
  8686. }
  8687. if (setLow) {
  8688. low = mid + 1;
  8689. } else {
  8690. high = mid;
  8691. }
  8692. }
  8693. return nativeMin(high, MAX_ARRAY_INDEX);
  8694. }
  8695. /**
  8696. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  8697. * support for iteratee shorthands.
  8698. *
  8699. * @private
  8700. * @param {Array} array The array to inspect.
  8701. * @param {Function} [iteratee] The iteratee invoked per element.
  8702. * @returns {Array} Returns the new duplicate free array.
  8703. */
  8704. function baseSortedUniq(array, iteratee) {
  8705. var index = -1,
  8706. length = array.length,
  8707. resIndex = 0,
  8708. result = [];
  8709. while (++index < length) {
  8710. var value = array[index],
  8711. computed = iteratee ? iteratee(value) : value;
  8712. if (!index || !eq(computed, seen)) {
  8713. var seen = computed;
  8714. result[resIndex++] = value === 0 ? 0 : value;
  8715. }
  8716. }
  8717. return result;
  8718. }
  8719. /**
  8720. * The base implementation of `_.toNumber` which doesn't ensure correct
  8721. * conversions of binary, hexadecimal, or octal string values.
  8722. *
  8723. * @private
  8724. * @param {*} value The value to process.
  8725. * @returns {number} Returns the number.
  8726. */
  8727. function baseToNumber(value) {
  8728. if (typeof value == 'number') {
  8729. return value;
  8730. }
  8731. if (isSymbol(value)) {
  8732. return NAN;
  8733. }
  8734. return +value;
  8735. }
  8736. /**
  8737. * The base implementation of `_.toString` which doesn't convert nullish
  8738. * values to empty strings.
  8739. *
  8740. * @private
  8741. * @param {*} value The value to process.
  8742. * @returns {string} Returns the string.
  8743. */
  8744. function baseToString(value) {
  8745. // Exit early for strings to avoid a performance hit in some environments.
  8746. if (typeof value == 'string') {
  8747. return value;
  8748. }
  8749. if (isArray(value)) {
  8750. // Recursively convert values (susceptible to call stack limits).
  8751. return arrayMap(value, baseToString) + '';
  8752. }
  8753. if (isSymbol(value)) {
  8754. return symbolToString ? symbolToString.call(value) : '';
  8755. }
  8756. var result = (value + '');
  8757. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  8758. }
  8759. /**
  8760. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  8761. *
  8762. * @private
  8763. * @param {Array} array The array to inspect.
  8764. * @param {Function} [iteratee] The iteratee invoked per element.
  8765. * @param {Function} [comparator] The comparator invoked per element.
  8766. * @returns {Array} Returns the new duplicate free array.
  8767. */
  8768. function baseUniq(array, iteratee, comparator) {
  8769. var index = -1,
  8770. includes = arrayIncludes,
  8771. length = array.length,
  8772. isCommon = true,
  8773. result = [],
  8774. seen = result;
  8775. if (comparator) {
  8776. isCommon = false;
  8777. includes = arrayIncludesWith;
  8778. }
  8779. else if (length >= LARGE_ARRAY_SIZE) {
  8780. var set = iteratee ? null : createSet(array);
  8781. if (set) {
  8782. return setToArray(set);
  8783. }
  8784. isCommon = false;
  8785. includes = cacheHas;
  8786. seen = new SetCache;
  8787. }
  8788. else {
  8789. seen = iteratee ? [] : result;
  8790. }
  8791. outer:
  8792. while (++index < length) {
  8793. var value = array[index],
  8794. computed = iteratee ? iteratee(value) : value;
  8795. value = (comparator || value !== 0) ? value : 0;
  8796. if (isCommon && computed === computed) {
  8797. var seenIndex = seen.length;
  8798. while (seenIndex--) {
  8799. if (seen[seenIndex] === computed) {
  8800. continue outer;
  8801. }
  8802. }
  8803. if (iteratee) {
  8804. seen.push(computed);
  8805. }
  8806. result.push(value);
  8807. }
  8808. else if (!includes(seen, computed, comparator)) {
  8809. if (seen !== result) {
  8810. seen.push(computed);
  8811. }
  8812. result.push(value);
  8813. }
  8814. }
  8815. return result;
  8816. }
  8817. /**
  8818. * The base implementation of `_.unset`.
  8819. *
  8820. * @private
  8821. * @param {Object} object The object to modify.
  8822. * @param {Array|string} path The property path to unset.
  8823. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  8824. */
  8825. function baseUnset(object, path) {
  8826. path = castPath(path, object);
  8827. object = parent(object, path);
  8828. return object == null || delete object[toKey(last(path))];
  8829. }
  8830. /**
  8831. * The base implementation of `_.update`.
  8832. *
  8833. * @private
  8834. * @param {Object} object The object to modify.
  8835. * @param {Array|string} path The path of the property to update.
  8836. * @param {Function} updater The function to produce the updated value.
  8837. * @param {Function} [customizer] The function to customize path creation.
  8838. * @returns {Object} Returns `object`.
  8839. */
  8840. function baseUpdate(object, path, updater, customizer) {
  8841. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  8842. }
  8843. /**
  8844. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  8845. * without support for iteratee shorthands.
  8846. *
  8847. * @private
  8848. * @param {Array} array The array to query.
  8849. * @param {Function} predicate The function invoked per iteration.
  8850. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  8851. * @param {boolean} [fromRight] Specify iterating from right to left.
  8852. * @returns {Array} Returns the slice of `array`.
  8853. */
  8854. function baseWhile(array, predicate, isDrop, fromRight) {
  8855. var length = array.length,
  8856. index = fromRight ? length : -1;
  8857. while ((fromRight ? index-- : ++index < length) &&
  8858. predicate(array[index], index, array)) {}
  8859. return isDrop
  8860. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  8861. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  8862. }
  8863. /**
  8864. * The base implementation of `wrapperValue` which returns the result of
  8865. * performing a sequence of actions on the unwrapped `value`, where each
  8866. * successive action is supplied the return value of the previous.
  8867. *
  8868. * @private
  8869. * @param {*} value The unwrapped value.
  8870. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  8871. * @returns {*} Returns the resolved value.
  8872. */
  8873. function baseWrapperValue(value, actions) {
  8874. var result = value;
  8875. if (result instanceof LazyWrapper) {
  8876. result = result.value();
  8877. }
  8878. return arrayReduce(actions, function(result, action) {
  8879. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  8880. }, result);
  8881. }
  8882. /**
  8883. * The base implementation of methods like `_.xor`, without support for
  8884. * iteratee shorthands, that accepts an array of arrays to inspect.
  8885. *
  8886. * @private
  8887. * @param {Array} arrays The arrays to inspect.
  8888. * @param {Function} [iteratee] The iteratee invoked per element.
  8889. * @param {Function} [comparator] The comparator invoked per element.
  8890. * @returns {Array} Returns the new array of values.
  8891. */
  8892. function baseXor(arrays, iteratee, comparator) {
  8893. var length = arrays.length;
  8894. if (length < 2) {
  8895. return length ? baseUniq(arrays[0]) : [];
  8896. }
  8897. var index = -1,
  8898. result = Array(length);
  8899. while (++index < length) {
  8900. var array = arrays[index],
  8901. othIndex = -1;
  8902. while (++othIndex < length) {
  8903. if (othIndex != index) {
  8904. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  8905. }
  8906. }
  8907. }
  8908. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  8909. }
  8910. /**
  8911. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  8912. *
  8913. * @private
  8914. * @param {Array} props The property identifiers.
  8915. * @param {Array} values The property values.
  8916. * @param {Function} assignFunc The function to assign values.
  8917. * @returns {Object} Returns the new object.
  8918. */
  8919. function baseZipObject(props, values, assignFunc) {
  8920. var index = -1,
  8921. length = props.length,
  8922. valsLength = values.length,
  8923. result = {};
  8924. while (++index < length) {
  8925. var value = index < valsLength ? values[index] : undefined;
  8926. assignFunc(result, props[index], value);
  8927. }
  8928. return result;
  8929. }
  8930. /**
  8931. * Casts `value` to an empty array if it's not an array like object.
  8932. *
  8933. * @private
  8934. * @param {*} value The value to inspect.
  8935. * @returns {Array|Object} Returns the cast array-like object.
  8936. */
  8937. function castArrayLikeObject(value) {
  8938. return isArrayLikeObject(value) ? value : [];
  8939. }
  8940. /**
  8941. * Casts `value` to `identity` if it's not a function.
  8942. *
  8943. * @private
  8944. * @param {*} value The value to inspect.
  8945. * @returns {Function} Returns cast function.
  8946. */
  8947. function castFunction(value) {
  8948. return typeof value == 'function' ? value : identity;
  8949. }
  8950. /**
  8951. * Casts `value` to a path array if it's not one.
  8952. *
  8953. * @private
  8954. * @param {*} value The value to inspect.
  8955. * @param {Object} [object] The object to query keys on.
  8956. * @returns {Array} Returns the cast property path array.
  8957. */
  8958. function castPath(value, object) {
  8959. if (isArray(value)) {
  8960. return value;
  8961. }
  8962. return isKey(value, object) ? [value] : stringToPath(toString(value));
  8963. }
  8964. /**
  8965. * A `baseRest` alias which can be replaced with `identity` by module
  8966. * replacement plugins.
  8967. *
  8968. * @private
  8969. * @type {Function}
  8970. * @param {Function} func The function to apply a rest parameter to.
  8971. * @returns {Function} Returns the new function.
  8972. */
  8973. var castRest = baseRest;
  8974. /**
  8975. * Casts `array` to a slice if it's needed.
  8976. *
  8977. * @private
  8978. * @param {Array} array The array to inspect.
  8979. * @param {number} start The start position.
  8980. * @param {number} [end=array.length] The end position.
  8981. * @returns {Array} Returns the cast slice.
  8982. */
  8983. function castSlice(array, start, end) {
  8984. var length = array.length;
  8985. end = end === undefined ? length : end;
  8986. return (!start && end >= length) ? array : baseSlice(array, start, end);
  8987. }
  8988. /**
  8989. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  8990. *
  8991. * @private
  8992. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  8993. */
  8994. var clearTimeout = ctxClearTimeout || function(id) {
  8995. return root.clearTimeout(id);
  8996. };
  8997. /**
  8998. * Creates a clone of `buffer`.
  8999. *
  9000. * @private
  9001. * @param {Buffer} buffer The buffer to clone.
  9002. * @param {boolean} [isDeep] Specify a deep clone.
  9003. * @returns {Buffer} Returns the cloned buffer.
  9004. */
  9005. function cloneBuffer(buffer, isDeep) {
  9006. if (isDeep) {
  9007. return buffer.slice();
  9008. }
  9009. var length = buffer.length,
  9010. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  9011. buffer.copy(result);
  9012. return result;
  9013. }
  9014. /**
  9015. * Creates a clone of `arrayBuffer`.
  9016. *
  9017. * @private
  9018. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  9019. * @returns {ArrayBuffer} Returns the cloned array buffer.
  9020. */
  9021. function cloneArrayBuffer(arrayBuffer) {
  9022. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  9023. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  9024. return result;
  9025. }
  9026. /**
  9027. * Creates a clone of `dataView`.
  9028. *
  9029. * @private
  9030. * @param {Object} dataView The data view to clone.
  9031. * @param {boolean} [isDeep] Specify a deep clone.
  9032. * @returns {Object} Returns the cloned data view.
  9033. */
  9034. function cloneDataView(dataView, isDeep) {
  9035. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  9036. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  9037. }
  9038. /**
  9039. * Creates a clone of `regexp`.
  9040. *
  9041. * @private
  9042. * @param {Object} regexp The regexp to clone.
  9043. * @returns {Object} Returns the cloned regexp.
  9044. */
  9045. function cloneRegExp(regexp) {
  9046. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  9047. result.lastIndex = regexp.lastIndex;
  9048. return result;
  9049. }
  9050. /**
  9051. * Creates a clone of the `symbol` object.
  9052. *
  9053. * @private
  9054. * @param {Object} symbol The symbol object to clone.
  9055. * @returns {Object} Returns the cloned symbol object.
  9056. */
  9057. function cloneSymbol(symbol) {
  9058. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  9059. }
  9060. /**
  9061. * Creates a clone of `typedArray`.
  9062. *
  9063. * @private
  9064. * @param {Object} typedArray The typed array to clone.
  9065. * @param {boolean} [isDeep] Specify a deep clone.
  9066. * @returns {Object} Returns the cloned typed array.
  9067. */
  9068. function cloneTypedArray(typedArray, isDeep) {
  9069. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  9070. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  9071. }
  9072. /**
  9073. * Compares values to sort them in ascending order.
  9074. *
  9075. * @private
  9076. * @param {*} value The value to compare.
  9077. * @param {*} other The other value to compare.
  9078. * @returns {number} Returns the sort order indicator for `value`.
  9079. */
  9080. function compareAscending(value, other) {
  9081. if (value !== other) {
  9082. var valIsDefined = value !== undefined,
  9083. valIsNull = value === null,
  9084. valIsReflexive = value === value,
  9085. valIsSymbol = isSymbol(value);
  9086. var othIsDefined = other !== undefined,
  9087. othIsNull = other === null,
  9088. othIsReflexive = other === other,
  9089. othIsSymbol = isSymbol(other);
  9090. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  9091. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  9092. (valIsNull && othIsDefined && othIsReflexive) ||
  9093. (!valIsDefined && othIsReflexive) ||
  9094. !valIsReflexive) {
  9095. return 1;
  9096. }
  9097. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  9098. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  9099. (othIsNull && valIsDefined && valIsReflexive) ||
  9100. (!othIsDefined && valIsReflexive) ||
  9101. !othIsReflexive) {
  9102. return -1;
  9103. }
  9104. }
  9105. return 0;
  9106. }
  9107. /**
  9108. * Used by `_.orderBy` to compare multiple properties of a value to another
  9109. * and stable sort them.
  9110. *
  9111. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  9112. * specify an order of "desc" for descending or "asc" for ascending sort order
  9113. * of corresponding values.
  9114. *
  9115. * @private
  9116. * @param {Object} object The object to compare.
  9117. * @param {Object} other The other object to compare.
  9118. * @param {boolean[]|string[]} orders The order to sort by for each property.
  9119. * @returns {number} Returns the sort order indicator for `object`.
  9120. */
  9121. function compareMultiple(object, other, orders) {
  9122. var index = -1,
  9123. objCriteria = object.criteria,
  9124. othCriteria = other.criteria,
  9125. length = objCriteria.length,
  9126. ordersLength = orders.length;
  9127. while (++index < length) {
  9128. var result = compareAscending(objCriteria[index], othCriteria[index]);
  9129. if (result) {
  9130. if (index >= ordersLength) {
  9131. return result;
  9132. }
  9133. var order = orders[index];
  9134. return result * (order == 'desc' ? -1 : 1);
  9135. }
  9136. }
  9137. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  9138. // that causes it, under certain circumstances, to provide the same value for
  9139. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  9140. // for more details.
  9141. //
  9142. // This also ensures a stable sort in V8 and other engines.
  9143. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  9144. return object.index - other.index;
  9145. }
  9146. /**
  9147. * Creates an array that is the composition of partially applied arguments,
  9148. * placeholders, and provided arguments into a single array of arguments.
  9149. *
  9150. * @private
  9151. * @param {Array} args The provided arguments.
  9152. * @param {Array} partials The arguments to prepend to those provided.
  9153. * @param {Array} holders The `partials` placeholder indexes.
  9154. * @params {boolean} [isCurried] Specify composing for a curried function.
  9155. * @returns {Array} Returns the new array of composed arguments.
  9156. */
  9157. function composeArgs(args, partials, holders, isCurried) {
  9158. var argsIndex = -1,
  9159. argsLength = args.length,
  9160. holdersLength = holders.length,
  9161. leftIndex = -1,
  9162. leftLength = partials.length,
  9163. rangeLength = nativeMax(argsLength - holdersLength, 0),
  9164. result = Array(leftLength + rangeLength),
  9165. isUncurried = !isCurried;
  9166. while (++leftIndex < leftLength) {
  9167. result[leftIndex] = partials[leftIndex];
  9168. }
  9169. while (++argsIndex < holdersLength) {
  9170. if (isUncurried || argsIndex < argsLength) {
  9171. result[holders[argsIndex]] = args[argsIndex];
  9172. }
  9173. }
  9174. while (rangeLength--) {
  9175. result[leftIndex++] = args[argsIndex++];
  9176. }
  9177. return result;
  9178. }
  9179. /**
  9180. * This function is like `composeArgs` except that the arguments composition
  9181. * is tailored for `_.partialRight`.
  9182. *
  9183. * @private
  9184. * @param {Array} args The provided arguments.
  9185. * @param {Array} partials The arguments to append to those provided.
  9186. * @param {Array} holders The `partials` placeholder indexes.
  9187. * @params {boolean} [isCurried] Specify composing for a curried function.
  9188. * @returns {Array} Returns the new array of composed arguments.
  9189. */
  9190. function composeArgsRight(args, partials, holders, isCurried) {
  9191. var argsIndex = -1,
  9192. argsLength = args.length,
  9193. holdersIndex = -1,
  9194. holdersLength = holders.length,
  9195. rightIndex = -1,
  9196. rightLength = partials.length,
  9197. rangeLength = nativeMax(argsLength - holdersLength, 0),
  9198. result = Array(rangeLength + rightLength),
  9199. isUncurried = !isCurried;
  9200. while (++argsIndex < rangeLength) {
  9201. result[argsIndex] = args[argsIndex];
  9202. }
  9203. var offset = argsIndex;
  9204. while (++rightIndex < rightLength) {
  9205. result[offset + rightIndex] = partials[rightIndex];
  9206. }
  9207. while (++holdersIndex < holdersLength) {
  9208. if (isUncurried || argsIndex < argsLength) {
  9209. result[offset + holders[holdersIndex]] = args[argsIndex++];
  9210. }
  9211. }
  9212. return result;
  9213. }
  9214. /**
  9215. * Copies the values of `source` to `array`.
  9216. *
  9217. * @private
  9218. * @param {Array} source The array to copy values from.
  9219. * @param {Array} [array=[]] The array to copy values to.
  9220. * @returns {Array} Returns `array`.
  9221. */
  9222. function copyArray(source, array) {
  9223. var index = -1,
  9224. length = source.length;
  9225. array || (array = Array(length));
  9226. while (++index < length) {
  9227. array[index] = source[index];
  9228. }
  9229. return array;
  9230. }
  9231. /**
  9232. * Copies properties of `source` to `object`.
  9233. *
  9234. * @private
  9235. * @param {Object} source The object to copy properties from.
  9236. * @param {Array} props The property identifiers to copy.
  9237. * @param {Object} [object={}] The object to copy properties to.
  9238. * @param {Function} [customizer] The function to customize copied values.
  9239. * @returns {Object} Returns `object`.
  9240. */
  9241. function copyObject(source, props, object, customizer) {
  9242. var isNew = !object;
  9243. object || (object = {});
  9244. var index = -1,
  9245. length = props.length;
  9246. while (++index < length) {
  9247. var key = props[index];
  9248. var newValue = customizer
  9249. ? customizer(object[key], source[key], key, object, source)
  9250. : undefined;
  9251. if (newValue === undefined) {
  9252. newValue = source[key];
  9253. }
  9254. if (isNew) {
  9255. baseAssignValue(object, key, newValue);
  9256. } else {
  9257. assignValue(object, key, newValue);
  9258. }
  9259. }
  9260. return object;
  9261. }
  9262. /**
  9263. * Copies own symbols of `source` to `object`.
  9264. *
  9265. * @private
  9266. * @param {Object} source The object to copy symbols from.
  9267. * @param {Object} [object={}] The object to copy symbols to.
  9268. * @returns {Object} Returns `object`.
  9269. */
  9270. function copySymbols(source, object) {
  9271. return copyObject(source, getSymbols(source), object);
  9272. }
  9273. /**
  9274. * Copies own and inherited symbols of `source` to `object`.
  9275. *
  9276. * @private
  9277. * @param {Object} source The object to copy symbols from.
  9278. * @param {Object} [object={}] The object to copy symbols to.
  9279. * @returns {Object} Returns `object`.
  9280. */
  9281. function copySymbolsIn(source, object) {
  9282. return copyObject(source, getSymbolsIn(source), object);
  9283. }
  9284. /**
  9285. * Creates a function like `_.groupBy`.
  9286. *
  9287. * @private
  9288. * @param {Function} setter The function to set accumulator values.
  9289. * @param {Function} [initializer] The accumulator object initializer.
  9290. * @returns {Function} Returns the new aggregator function.
  9291. */
  9292. function createAggregator(setter, initializer) {
  9293. return function(collection, iteratee) {
  9294. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  9295. accumulator = initializer ? initializer() : {};
  9296. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  9297. };
  9298. }
  9299. /**
  9300. * Creates a function like `_.assign`.
  9301. *
  9302. * @private
  9303. * @param {Function} assigner The function to assign values.
  9304. * @returns {Function} Returns the new assigner function.
  9305. */
  9306. function createAssigner(assigner) {
  9307. return baseRest(function(object, sources) {
  9308. var index = -1,
  9309. length = sources.length,
  9310. customizer = length > 1 ? sources[length - 1] : undefined,
  9311. guard = length > 2 ? sources[2] : undefined;
  9312. customizer = (assigner.length > 3 && typeof customizer == 'function')
  9313. ? (length--, customizer)
  9314. : undefined;
  9315. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  9316. customizer = length < 3 ? undefined : customizer;
  9317. length = 1;
  9318. }
  9319. object = Object(object);
  9320. while (++index < length) {
  9321. var source = sources[index];
  9322. if (source) {
  9323. assigner(object, source, index, customizer);
  9324. }
  9325. }
  9326. return object;
  9327. });
  9328. }
  9329. /**
  9330. * Creates a `baseEach` or `baseEachRight` function.
  9331. *
  9332. * @private
  9333. * @param {Function} eachFunc The function to iterate over a collection.
  9334. * @param {boolean} [fromRight] Specify iterating from right to left.
  9335. * @returns {Function} Returns the new base function.
  9336. */
  9337. function createBaseEach(eachFunc, fromRight) {
  9338. return function(collection, iteratee) {
  9339. if (collection == null) {
  9340. return collection;
  9341. }
  9342. if (!isArrayLike(collection)) {
  9343. return eachFunc(collection, iteratee);
  9344. }
  9345. var length = collection.length,
  9346. index = fromRight ? length : -1,
  9347. iterable = Object(collection);
  9348. while ((fromRight ? index-- : ++index < length)) {
  9349. if (iteratee(iterable[index], index, iterable) === false) {
  9350. break;
  9351. }
  9352. }
  9353. return collection;
  9354. };
  9355. }
  9356. /**
  9357. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  9358. *
  9359. * @private
  9360. * @param {boolean} [fromRight] Specify iterating from right to left.
  9361. * @returns {Function} Returns the new base function.
  9362. */
  9363. function createBaseFor(fromRight) {
  9364. return function(object, iteratee, keysFunc) {
  9365. var index = -1,
  9366. iterable = Object(object),
  9367. props = keysFunc(object),
  9368. length = props.length;
  9369. while (length--) {
  9370. var key = props[fromRight ? length : ++index];
  9371. if (iteratee(iterable[key], key, iterable) === false) {
  9372. break;
  9373. }
  9374. }
  9375. return object;
  9376. };
  9377. }
  9378. /**
  9379. * Creates a function that wraps `func` to invoke it with the optional `this`
  9380. * binding of `thisArg`.
  9381. *
  9382. * @private
  9383. * @param {Function} func The function to wrap.
  9384. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9385. * @param {*} [thisArg] The `this` binding of `func`.
  9386. * @returns {Function} Returns the new wrapped function.
  9387. */
  9388. function createBind(func, bitmask, thisArg) {
  9389. var isBind = bitmask & WRAP_BIND_FLAG,
  9390. Ctor = createCtor(func);
  9391. function wrapper() {
  9392. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  9393. return fn.apply(isBind ? thisArg : this, arguments);
  9394. }
  9395. return wrapper;
  9396. }
  9397. /**
  9398. * Creates a function like `_.lowerFirst`.
  9399. *
  9400. * @private
  9401. * @param {string} methodName The name of the `String` case method to use.
  9402. * @returns {Function} Returns the new case function.
  9403. */
  9404. function createCaseFirst(methodName) {
  9405. return function(string) {
  9406. string = toString(string);
  9407. var strSymbols = hasUnicode(string)
  9408. ? stringToArray(string)
  9409. : undefined;
  9410. var chr = strSymbols
  9411. ? strSymbols[0]
  9412. : string.charAt(0);
  9413. var trailing = strSymbols
  9414. ? castSlice(strSymbols, 1).join('')
  9415. : string.slice(1);
  9416. return chr[methodName]() + trailing;
  9417. };
  9418. }
  9419. /**
  9420. * Creates a function like `_.camelCase`.
  9421. *
  9422. * @private
  9423. * @param {Function} callback The function to combine each word.
  9424. * @returns {Function} Returns the new compounder function.
  9425. */
  9426. function createCompounder(callback) {
  9427. return function(string) {
  9428. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  9429. };
  9430. }
  9431. /**
  9432. * Creates a function that produces an instance of `Ctor` regardless of
  9433. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  9434. *
  9435. * @private
  9436. * @param {Function} Ctor The constructor to wrap.
  9437. * @returns {Function} Returns the new wrapped function.
  9438. */
  9439. function createCtor(Ctor) {
  9440. return function() {
  9441. // Use a `switch` statement to work with class constructors. See
  9442. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  9443. // for more details.
  9444. var args = arguments;
  9445. switch (args.length) {
  9446. case 0: return new Ctor;
  9447. case 1: return new Ctor(args[0]);
  9448. case 2: return new Ctor(args[0], args[1]);
  9449. case 3: return new Ctor(args[0], args[1], args[2]);
  9450. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  9451. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  9452. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  9453. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  9454. }
  9455. var thisBinding = baseCreate(Ctor.prototype),
  9456. result = Ctor.apply(thisBinding, args);
  9457. // Mimic the constructor's `return` behavior.
  9458. // See https://es5.github.io/#x13.2.2 for more details.
  9459. return isObject(result) ? result : thisBinding;
  9460. };
  9461. }
  9462. /**
  9463. * Creates a function that wraps `func` to enable currying.
  9464. *
  9465. * @private
  9466. * @param {Function} func The function to wrap.
  9467. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9468. * @param {number} arity The arity of `func`.
  9469. * @returns {Function} Returns the new wrapped function.
  9470. */
  9471. function createCurry(func, bitmask, arity) {
  9472. var Ctor = createCtor(func);
  9473. function wrapper() {
  9474. var length = arguments.length,
  9475. args = Array(length),
  9476. index = length,
  9477. placeholder = getHolder(wrapper);
  9478. while (index--) {
  9479. args[index] = arguments[index];
  9480. }
  9481. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  9482. ? []
  9483. : replaceHolders(args, placeholder);
  9484. length -= holders.length;
  9485. if (length < arity) {
  9486. return createRecurry(
  9487. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  9488. args, holders, undefined, undefined, arity - length);
  9489. }
  9490. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  9491. return apply(fn, this, args);
  9492. }
  9493. return wrapper;
  9494. }
  9495. /**
  9496. * Creates a `_.find` or `_.findLast` function.
  9497. *
  9498. * @private
  9499. * @param {Function} findIndexFunc The function to find the collection index.
  9500. * @returns {Function} Returns the new find function.
  9501. */
  9502. function createFind(findIndexFunc) {
  9503. return function(collection, predicate, fromIndex) {
  9504. var iterable = Object(collection);
  9505. if (!isArrayLike(collection)) {
  9506. var iteratee = getIteratee(predicate, 3);
  9507. collection = keys(collection);
  9508. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  9509. }
  9510. var index = findIndexFunc(collection, predicate, fromIndex);
  9511. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  9512. };
  9513. }
  9514. /**
  9515. * Creates a `_.flow` or `_.flowRight` function.
  9516. *
  9517. * @private
  9518. * @param {boolean} [fromRight] Specify iterating from right to left.
  9519. * @returns {Function} Returns the new flow function.
  9520. */
  9521. function createFlow(fromRight) {
  9522. return flatRest(function(funcs) {
  9523. var length = funcs.length,
  9524. index = length,
  9525. prereq = LodashWrapper.prototype.thru;
  9526. if (fromRight) {
  9527. funcs.reverse();
  9528. }
  9529. while (index--) {
  9530. var func = funcs[index];
  9531. if (typeof func != 'function') {
  9532. throw new TypeError(FUNC_ERROR_TEXT);
  9533. }
  9534. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  9535. var wrapper = new LodashWrapper([], true);
  9536. }
  9537. }
  9538. index = wrapper ? index : length;
  9539. while (++index < length) {
  9540. func = funcs[index];
  9541. var funcName = getFuncName(func),
  9542. data = funcName == 'wrapper' ? getData(func) : undefined;
  9543. if (data && isLaziable(data[0]) &&
  9544. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  9545. !data[4].length && data[9] == 1
  9546. ) {
  9547. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  9548. } else {
  9549. wrapper = (func.length == 1 && isLaziable(func))
  9550. ? wrapper[funcName]()
  9551. : wrapper.thru(func);
  9552. }
  9553. }
  9554. return function() {
  9555. var args = arguments,
  9556. value = args[0];
  9557. if (wrapper && args.length == 1 && isArray(value)) {
  9558. return wrapper.plant(value).value();
  9559. }
  9560. var index = 0,
  9561. result = length ? funcs[index].apply(this, args) : value;
  9562. while (++index < length) {
  9563. result = funcs[index].call(this, result);
  9564. }
  9565. return result;
  9566. };
  9567. });
  9568. }
  9569. /**
  9570. * Creates a function that wraps `func` to invoke it with optional `this`
  9571. * binding of `thisArg`, partial application, and currying.
  9572. *
  9573. * @private
  9574. * @param {Function|string} func The function or method name to wrap.
  9575. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9576. * @param {*} [thisArg] The `this` binding of `func`.
  9577. * @param {Array} [partials] The arguments to prepend to those provided to
  9578. * the new function.
  9579. * @param {Array} [holders] The `partials` placeholder indexes.
  9580. * @param {Array} [partialsRight] The arguments to append to those provided
  9581. * to the new function.
  9582. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  9583. * @param {Array} [argPos] The argument positions of the new function.
  9584. * @param {number} [ary] The arity cap of `func`.
  9585. * @param {number} [arity] The arity of `func`.
  9586. * @returns {Function} Returns the new wrapped function.
  9587. */
  9588. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  9589. var isAry = bitmask & WRAP_ARY_FLAG,
  9590. isBind = bitmask & WRAP_BIND_FLAG,
  9591. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  9592. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  9593. isFlip = bitmask & WRAP_FLIP_FLAG,
  9594. Ctor = isBindKey ? undefined : createCtor(func);
  9595. function wrapper() {
  9596. var length = arguments.length,
  9597. args = Array(length),
  9598. index = length;
  9599. while (index--) {
  9600. args[index] = arguments[index];
  9601. }
  9602. if (isCurried) {
  9603. var placeholder = getHolder(wrapper),
  9604. holdersCount = countHolders(args, placeholder);
  9605. }
  9606. if (partials) {
  9607. args = composeArgs(args, partials, holders, isCurried);
  9608. }
  9609. if (partialsRight) {
  9610. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  9611. }
  9612. length -= holdersCount;
  9613. if (isCurried && length < arity) {
  9614. var newHolders = replaceHolders(args, placeholder);
  9615. return createRecurry(
  9616. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  9617. args, newHolders, argPos, ary, arity - length
  9618. );
  9619. }
  9620. var thisBinding = isBind ? thisArg : this,
  9621. fn = isBindKey ? thisBinding[func] : func;
  9622. length = args.length;
  9623. if (argPos) {
  9624. args = reorder(args, argPos);
  9625. } else if (isFlip && length > 1) {
  9626. args.reverse();
  9627. }
  9628. if (isAry && ary < length) {
  9629. args.length = ary;
  9630. }
  9631. if (this && this !== root && this instanceof wrapper) {
  9632. fn = Ctor || createCtor(fn);
  9633. }
  9634. return fn.apply(thisBinding, args);
  9635. }
  9636. return wrapper;
  9637. }
  9638. /**
  9639. * Creates a function like `_.invertBy`.
  9640. *
  9641. * @private
  9642. * @param {Function} setter The function to set accumulator values.
  9643. * @param {Function} toIteratee The function to resolve iteratees.
  9644. * @returns {Function} Returns the new inverter function.
  9645. */
  9646. function createInverter(setter, toIteratee) {
  9647. return function(object, iteratee) {
  9648. return baseInverter(object, setter, toIteratee(iteratee), {});
  9649. };
  9650. }
  9651. /**
  9652. * Creates a function that performs a mathematical operation on two values.
  9653. *
  9654. * @private
  9655. * @param {Function} operator The function to perform the operation.
  9656. * @param {number} [defaultValue] The value used for `undefined` arguments.
  9657. * @returns {Function} Returns the new mathematical operation function.
  9658. */
  9659. function createMathOperation(operator, defaultValue) {
  9660. return function(value, other) {
  9661. var result;
  9662. if (value === undefined && other === undefined) {
  9663. return defaultValue;
  9664. }
  9665. if (value !== undefined) {
  9666. result = value;
  9667. }
  9668. if (other !== undefined) {
  9669. if (result === undefined) {
  9670. return other;
  9671. }
  9672. if (typeof value == 'string' || typeof other == 'string') {
  9673. value = baseToString(value);
  9674. other = baseToString(other);
  9675. } else {
  9676. value = baseToNumber(value);
  9677. other = baseToNumber(other);
  9678. }
  9679. result = operator(value, other);
  9680. }
  9681. return result;
  9682. };
  9683. }
  9684. /**
  9685. * Creates a function like `_.over`.
  9686. *
  9687. * @private
  9688. * @param {Function} arrayFunc The function to iterate over iteratees.
  9689. * @returns {Function} Returns the new over function.
  9690. */
  9691. function createOver(arrayFunc) {
  9692. return flatRest(function(iteratees) {
  9693. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  9694. return baseRest(function(args) {
  9695. var thisArg = this;
  9696. return arrayFunc(iteratees, function(iteratee) {
  9697. return apply(iteratee, thisArg, args);
  9698. });
  9699. });
  9700. });
  9701. }
  9702. /**
  9703. * Creates the padding for `string` based on `length`. The `chars` string
  9704. * is truncated if the number of characters exceeds `length`.
  9705. *
  9706. * @private
  9707. * @param {number} length The padding length.
  9708. * @param {string} [chars=' '] The string used as padding.
  9709. * @returns {string} Returns the padding for `string`.
  9710. */
  9711. function createPadding(length, chars) {
  9712. chars = chars === undefined ? ' ' : baseToString(chars);
  9713. var charsLength = chars.length;
  9714. if (charsLength < 2) {
  9715. return charsLength ? baseRepeat(chars, length) : chars;
  9716. }
  9717. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  9718. return hasUnicode(chars)
  9719. ? castSlice(stringToArray(result), 0, length).join('')
  9720. : result.slice(0, length);
  9721. }
  9722. /**
  9723. * Creates a function that wraps `func` to invoke it with the `this` binding
  9724. * of `thisArg` and `partials` prepended to the arguments it receives.
  9725. *
  9726. * @private
  9727. * @param {Function} func The function to wrap.
  9728. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9729. * @param {*} thisArg The `this` binding of `func`.
  9730. * @param {Array} partials The arguments to prepend to those provided to
  9731. * the new function.
  9732. * @returns {Function} Returns the new wrapped function.
  9733. */
  9734. function createPartial(func, bitmask, thisArg, partials) {
  9735. var isBind = bitmask & WRAP_BIND_FLAG,
  9736. Ctor = createCtor(func);
  9737. function wrapper() {
  9738. var argsIndex = -1,
  9739. argsLength = arguments.length,
  9740. leftIndex = -1,
  9741. leftLength = partials.length,
  9742. args = Array(leftLength + argsLength),
  9743. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  9744. while (++leftIndex < leftLength) {
  9745. args[leftIndex] = partials[leftIndex];
  9746. }
  9747. while (argsLength--) {
  9748. args[leftIndex++] = arguments[++argsIndex];
  9749. }
  9750. return apply(fn, isBind ? thisArg : this, args);
  9751. }
  9752. return wrapper;
  9753. }
  9754. /**
  9755. * Creates a `_.range` or `_.rangeRight` function.
  9756. *
  9757. * @private
  9758. * @param {boolean} [fromRight] Specify iterating from right to left.
  9759. * @returns {Function} Returns the new range function.
  9760. */
  9761. function createRange(fromRight) {
  9762. return function(start, end, step) {
  9763. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  9764. end = step = undefined;
  9765. }
  9766. // Ensure the sign of `-0` is preserved.
  9767. start = toFinite(start);
  9768. if (end === undefined) {
  9769. end = start;
  9770. start = 0;
  9771. } else {
  9772. end = toFinite(end);
  9773. }
  9774. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  9775. return baseRange(start, end, step, fromRight);
  9776. };
  9777. }
  9778. /**
  9779. * Creates a function that performs a relational operation on two values.
  9780. *
  9781. * @private
  9782. * @param {Function} operator The function to perform the operation.
  9783. * @returns {Function} Returns the new relational operation function.
  9784. */
  9785. function createRelationalOperation(operator) {
  9786. return function(value, other) {
  9787. if (!(typeof value == 'string' && typeof other == 'string')) {
  9788. value = toNumber(value);
  9789. other = toNumber(other);
  9790. }
  9791. return operator(value, other);
  9792. };
  9793. }
  9794. /**
  9795. * Creates a function that wraps `func` to continue currying.
  9796. *
  9797. * @private
  9798. * @param {Function} func The function to wrap.
  9799. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  9800. * @param {Function} wrapFunc The function to create the `func` wrapper.
  9801. * @param {*} placeholder The placeholder value.
  9802. * @param {*} [thisArg] The `this` binding of `func`.
  9803. * @param {Array} [partials] The arguments to prepend to those provided to
  9804. * the new function.
  9805. * @param {Array} [holders] The `partials` placeholder indexes.
  9806. * @param {Array} [argPos] The argument positions of the new function.
  9807. * @param {number} [ary] The arity cap of `func`.
  9808. * @param {number} [arity] The arity of `func`.
  9809. * @returns {Function} Returns the new wrapped function.
  9810. */
  9811. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  9812. var isCurry = bitmask & WRAP_CURRY_FLAG,
  9813. newHolders = isCurry ? holders : undefined,
  9814. newHoldersRight = isCurry ? undefined : holders,
  9815. newPartials = isCurry ? partials : undefined,
  9816. newPartialsRight = isCurry ? undefined : partials;
  9817. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  9818. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  9819. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  9820. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  9821. }
  9822. var newData = [
  9823. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  9824. newHoldersRight, argPos, ary, arity
  9825. ];
  9826. var result = wrapFunc.apply(undefined, newData);
  9827. if (isLaziable(func)) {
  9828. setData(result, newData);
  9829. }
  9830. result.placeholder = placeholder;
  9831. return setWrapToString(result, func, bitmask);
  9832. }
  9833. /**
  9834. * Creates a function like `_.round`.
  9835. *
  9836. * @private
  9837. * @param {string} methodName The name of the `Math` method to use when rounding.
  9838. * @returns {Function} Returns the new round function.
  9839. */
  9840. function createRound(methodName) {
  9841. var func = Math[methodName];
  9842. return function(number, precision) {
  9843. number = toNumber(number);
  9844. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  9845. if (precision) {
  9846. // Shift with exponential notation to avoid floating-point issues.
  9847. // See [MDN](https://mdn.io/round#Examples) for more details.
  9848. var pair = (toString(number) + 'e').split('e'),
  9849. value = func(pair[0] + 'e' + (+pair[1] + precision));
  9850. pair = (toString(value) + 'e').split('e');
  9851. return +(pair[0] + 'e' + (+pair[1] - precision));
  9852. }
  9853. return func(number);
  9854. };
  9855. }
  9856. /**
  9857. * Creates a set object of `values`.
  9858. *
  9859. * @private
  9860. * @param {Array} values The values to add to the set.
  9861. * @returns {Object} Returns the new set.
  9862. */
  9863. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  9864. return new Set(values);
  9865. };
  9866. /**
  9867. * Creates a `_.toPairs` or `_.toPairsIn` function.
  9868. *
  9869. * @private
  9870. * @param {Function} keysFunc The function to get the keys of a given object.
  9871. * @returns {Function} Returns the new pairs function.
  9872. */
  9873. function createToPairs(keysFunc) {
  9874. return function(object) {
  9875. var tag = getTag(object);
  9876. if (tag == mapTag) {
  9877. return mapToArray(object);
  9878. }
  9879. if (tag == setTag) {
  9880. return setToPairs(object);
  9881. }
  9882. return baseToPairs(object, keysFunc(object));
  9883. };
  9884. }
  9885. /**
  9886. * Creates a function that either curries or invokes `func` with optional
  9887. * `this` binding and partially applied arguments.
  9888. *
  9889. * @private
  9890. * @param {Function|string} func The function or method name to wrap.
  9891. * @param {number} bitmask The bitmask flags.
  9892. * 1 - `_.bind`
  9893. * 2 - `_.bindKey`
  9894. * 4 - `_.curry` or `_.curryRight` of a bound function
  9895. * 8 - `_.curry`
  9896. * 16 - `_.curryRight`
  9897. * 32 - `_.partial`
  9898. * 64 - `_.partialRight`
  9899. * 128 - `_.rearg`
  9900. * 256 - `_.ary`
  9901. * 512 - `_.flip`
  9902. * @param {*} [thisArg] The `this` binding of `func`.
  9903. * @param {Array} [partials] The arguments to be partially applied.
  9904. * @param {Array} [holders] The `partials` placeholder indexes.
  9905. * @param {Array} [argPos] The argument positions of the new function.
  9906. * @param {number} [ary] The arity cap of `func`.
  9907. * @param {number} [arity] The arity of `func`.
  9908. * @returns {Function} Returns the new wrapped function.
  9909. */
  9910. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  9911. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  9912. if (!isBindKey && typeof func != 'function') {
  9913. throw new TypeError(FUNC_ERROR_TEXT);
  9914. }
  9915. var length = partials ? partials.length : 0;
  9916. if (!length) {
  9917. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  9918. partials = holders = undefined;
  9919. }
  9920. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  9921. arity = arity === undefined ? arity : toInteger(arity);
  9922. length -= holders ? holders.length : 0;
  9923. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  9924. var partialsRight = partials,
  9925. holdersRight = holders;
  9926. partials = holders = undefined;
  9927. }
  9928. var data = isBindKey ? undefined : getData(func);
  9929. var newData = [
  9930. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  9931. argPos, ary, arity
  9932. ];
  9933. if (data) {
  9934. mergeData(newData, data);
  9935. }
  9936. func = newData[0];
  9937. bitmask = newData[1];
  9938. thisArg = newData[2];
  9939. partials = newData[3];
  9940. holders = newData[4];
  9941. arity = newData[9] = newData[9] === undefined
  9942. ? (isBindKey ? 0 : func.length)
  9943. : nativeMax(newData[9] - length, 0);
  9944. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  9945. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  9946. }
  9947. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  9948. var result = createBind(func, bitmask, thisArg);
  9949. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  9950. result = createCurry(func, bitmask, arity);
  9951. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  9952. result = createPartial(func, bitmask, thisArg, partials);
  9953. } else {
  9954. result = createHybrid.apply(undefined, newData);
  9955. }
  9956. var setter = data ? baseSetData : setData;
  9957. return setWrapToString(setter(result, newData), func, bitmask);
  9958. }
  9959. /**
  9960. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  9961. * of source objects to the destination object for all destination properties
  9962. * that resolve to `undefined`.
  9963. *
  9964. * @private
  9965. * @param {*} objValue The destination value.
  9966. * @param {*} srcValue The source value.
  9967. * @param {string} key The key of the property to assign.
  9968. * @param {Object} object The parent object of `objValue`.
  9969. * @returns {*} Returns the value to assign.
  9970. */
  9971. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  9972. if (objValue === undefined ||
  9973. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  9974. return srcValue;
  9975. }
  9976. return objValue;
  9977. }
  9978. /**
  9979. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  9980. * objects into destination objects that are passed thru.
  9981. *
  9982. * @private
  9983. * @param {*} objValue The destination value.
  9984. * @param {*} srcValue The source value.
  9985. * @param {string} key The key of the property to merge.
  9986. * @param {Object} object The parent object of `objValue`.
  9987. * @param {Object} source The parent object of `srcValue`.
  9988. * @param {Object} [stack] Tracks traversed source values and their merged
  9989. * counterparts.
  9990. * @returns {*} Returns the value to assign.
  9991. */
  9992. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  9993. if (isObject(objValue) && isObject(srcValue)) {
  9994. // Recursively merge objects and arrays (susceptible to call stack limits).
  9995. stack.set(srcValue, objValue);
  9996. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  9997. stack['delete'](srcValue);
  9998. }
  9999. return objValue;
  10000. }
  10001. /**
  10002. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  10003. * objects.
  10004. *
  10005. * @private
  10006. * @param {*} value The value to inspect.
  10007. * @param {string} key The key of the property to inspect.
  10008. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  10009. */
  10010. function customOmitClone(value) {
  10011. return isPlainObject(value) ? undefined : value;
  10012. }
  10013. /**
  10014. * A specialized version of `baseIsEqualDeep` for arrays with support for
  10015. * partial deep comparisons.
  10016. *
  10017. * @private
  10018. * @param {Array} array The array to compare.
  10019. * @param {Array} other The other array to compare.
  10020. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10021. * @param {Function} customizer The function to customize comparisons.
  10022. * @param {Function} equalFunc The function to determine equivalents of values.
  10023. * @param {Object} stack Tracks traversed `array` and `other` objects.
  10024. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  10025. */
  10026. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  10027. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  10028. arrLength = array.length,
  10029. othLength = other.length;
  10030. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  10031. return false;
  10032. }
  10033. // Assume cyclic values are equal.
  10034. var stacked = stack.get(array);
  10035. if (stacked && stack.get(other)) {
  10036. return stacked == other;
  10037. }
  10038. var index = -1,
  10039. result = true,
  10040. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  10041. stack.set(array, other);
  10042. stack.set(other, array);
  10043. // Ignore non-index properties.
  10044. while (++index < arrLength) {
  10045. var arrValue = array[index],
  10046. othValue = other[index];
  10047. if (customizer) {
  10048. var compared = isPartial
  10049. ? customizer(othValue, arrValue, index, other, array, stack)
  10050. : customizer(arrValue, othValue, index, array, other, stack);
  10051. }
  10052. if (compared !== undefined) {
  10053. if (compared) {
  10054. continue;
  10055. }
  10056. result = false;
  10057. break;
  10058. }
  10059. // Recursively compare arrays (susceptible to call stack limits).
  10060. if (seen) {
  10061. if (!arraySome(other, function(othValue, othIndex) {
  10062. if (!cacheHas(seen, othIndex) &&
  10063. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  10064. return seen.push(othIndex);
  10065. }
  10066. })) {
  10067. result = false;
  10068. break;
  10069. }
  10070. } else if (!(
  10071. arrValue === othValue ||
  10072. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  10073. )) {
  10074. result = false;
  10075. break;
  10076. }
  10077. }
  10078. stack['delete'](array);
  10079. stack['delete'](other);
  10080. return result;
  10081. }
  10082. /**
  10083. * A specialized version of `baseIsEqualDeep` for comparing objects of
  10084. * the same `toStringTag`.
  10085. *
  10086. * **Note:** This function only supports comparing values with tags of
  10087. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  10088. *
  10089. * @private
  10090. * @param {Object} object The object to compare.
  10091. * @param {Object} other The other object to compare.
  10092. * @param {string} tag The `toStringTag` of the objects to compare.
  10093. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10094. * @param {Function} customizer The function to customize comparisons.
  10095. * @param {Function} equalFunc The function to determine equivalents of values.
  10096. * @param {Object} stack Tracks traversed `object` and `other` objects.
  10097. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10098. */
  10099. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  10100. switch (tag) {
  10101. case dataViewTag:
  10102. if ((object.byteLength != other.byteLength) ||
  10103. (object.byteOffset != other.byteOffset)) {
  10104. return false;
  10105. }
  10106. object = object.buffer;
  10107. other = other.buffer;
  10108. case arrayBufferTag:
  10109. if ((object.byteLength != other.byteLength) ||
  10110. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  10111. return false;
  10112. }
  10113. return true;
  10114. case boolTag:
  10115. case dateTag:
  10116. case numberTag:
  10117. // Coerce booleans to `1` or `0` and dates to milliseconds.
  10118. // Invalid dates are coerced to `NaN`.
  10119. return eq(+object, +other);
  10120. case errorTag:
  10121. return object.name == other.name && object.message == other.message;
  10122. case regexpTag:
  10123. case stringTag:
  10124. // Coerce regexes to strings and treat strings, primitives and objects,
  10125. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  10126. // for more details.
  10127. return object == (other + '');
  10128. case mapTag:
  10129. var convert = mapToArray;
  10130. case setTag:
  10131. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  10132. convert || (convert = setToArray);
  10133. if (object.size != other.size && !isPartial) {
  10134. return false;
  10135. }
  10136. // Assume cyclic values are equal.
  10137. var stacked = stack.get(object);
  10138. if (stacked) {
  10139. return stacked == other;
  10140. }
  10141. bitmask |= COMPARE_UNORDERED_FLAG;
  10142. // Recursively compare objects (susceptible to call stack limits).
  10143. stack.set(object, other);
  10144. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  10145. stack['delete'](object);
  10146. return result;
  10147. case symbolTag:
  10148. if (symbolValueOf) {
  10149. return symbolValueOf.call(object) == symbolValueOf.call(other);
  10150. }
  10151. }
  10152. return false;
  10153. }
  10154. /**
  10155. * A specialized version of `baseIsEqualDeep` for objects with support for
  10156. * partial deep comparisons.
  10157. *
  10158. * @private
  10159. * @param {Object} object The object to compare.
  10160. * @param {Object} other The other object to compare.
  10161. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10162. * @param {Function} customizer The function to customize comparisons.
  10163. * @param {Function} equalFunc The function to determine equivalents of values.
  10164. * @param {Object} stack Tracks traversed `object` and `other` objects.
  10165. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10166. */
  10167. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  10168. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  10169. objProps = getAllKeys(object),
  10170. objLength = objProps.length,
  10171. othProps = getAllKeys(other),
  10172. othLength = othProps.length;
  10173. if (objLength != othLength && !isPartial) {
  10174. return false;
  10175. }
  10176. var index = objLength;
  10177. while (index--) {
  10178. var key = objProps[index];
  10179. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  10180. return false;
  10181. }
  10182. }
  10183. // Assume cyclic values are equal.
  10184. var stacked = stack.get(object);
  10185. if (stacked && stack.get(other)) {
  10186. return stacked == other;
  10187. }
  10188. var result = true;
  10189. stack.set(object, other);
  10190. stack.set(other, object);
  10191. var skipCtor = isPartial;
  10192. while (++index < objLength) {
  10193. key = objProps[index];
  10194. var objValue = object[key],
  10195. othValue = other[key];
  10196. if (customizer) {
  10197. var compared = isPartial
  10198. ? customizer(othValue, objValue, key, other, object, stack)
  10199. : customizer(objValue, othValue, key, object, other, stack);
  10200. }
  10201. // Recursively compare objects (susceptible to call stack limits).
  10202. if (!(compared === undefined
  10203. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  10204. : compared
  10205. )) {
  10206. result = false;
  10207. break;
  10208. }
  10209. skipCtor || (skipCtor = key == 'constructor');
  10210. }
  10211. if (result && !skipCtor) {
  10212. var objCtor = object.constructor,
  10213. othCtor = other.constructor;
  10214. // Non `Object` object instances with different constructors are not equal.
  10215. if (objCtor != othCtor &&
  10216. ('constructor' in object && 'constructor' in other) &&
  10217. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  10218. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  10219. result = false;
  10220. }
  10221. }
  10222. stack['delete'](object);
  10223. stack['delete'](other);
  10224. return result;
  10225. }
  10226. /**
  10227. * A specialized version of `baseRest` which flattens the rest array.
  10228. *
  10229. * @private
  10230. * @param {Function} func The function to apply a rest parameter to.
  10231. * @returns {Function} Returns the new function.
  10232. */
  10233. function flatRest(func) {
  10234. return setToString(overRest(func, undefined, flatten), func + '');
  10235. }
  10236. /**
  10237. * Creates an array of own enumerable property names and symbols of `object`.
  10238. *
  10239. * @private
  10240. * @param {Object} object The object to query.
  10241. * @returns {Array} Returns the array of property names and symbols.
  10242. */
  10243. function getAllKeys(object) {
  10244. return baseGetAllKeys(object, keys, getSymbols);
  10245. }
  10246. /**
  10247. * Creates an array of own and inherited enumerable property names and
  10248. * symbols of `object`.
  10249. *
  10250. * @private
  10251. * @param {Object} object The object to query.
  10252. * @returns {Array} Returns the array of property names and symbols.
  10253. */
  10254. function getAllKeysIn(object) {
  10255. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  10256. }
  10257. /**
  10258. * Gets metadata for `func`.
  10259. *
  10260. * @private
  10261. * @param {Function} func The function to query.
  10262. * @returns {*} Returns the metadata for `func`.
  10263. */
  10264. var getData = !metaMap ? noop : function(func) {
  10265. return metaMap.get(func);
  10266. };
  10267. /**
  10268. * Gets the name of `func`.
  10269. *
  10270. * @private
  10271. * @param {Function} func The function to query.
  10272. * @returns {string} Returns the function name.
  10273. */
  10274. function getFuncName(func) {
  10275. var result = (func.name + ''),
  10276. array = realNames[result],
  10277. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  10278. while (length--) {
  10279. var data = array[length],
  10280. otherFunc = data.func;
  10281. if (otherFunc == null || otherFunc == func) {
  10282. return data.name;
  10283. }
  10284. }
  10285. return result;
  10286. }
  10287. /**
  10288. * Gets the argument placeholder value for `func`.
  10289. *
  10290. * @private
  10291. * @param {Function} func The function to inspect.
  10292. * @returns {*} Returns the placeholder value.
  10293. */
  10294. function getHolder(func) {
  10295. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  10296. return object.placeholder;
  10297. }
  10298. /**
  10299. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  10300. * this function returns the custom method, otherwise it returns `baseIteratee`.
  10301. * If arguments are provided, the chosen function is invoked with them and
  10302. * its result is returned.
  10303. *
  10304. * @private
  10305. * @param {*} [value] The value to convert to an iteratee.
  10306. * @param {number} [arity] The arity of the created iteratee.
  10307. * @returns {Function} Returns the chosen function or its result.
  10308. */
  10309. function getIteratee() {
  10310. var result = lodash.iteratee || iteratee;
  10311. result = result === iteratee ? baseIteratee : result;
  10312. return arguments.length ? result(arguments[0], arguments[1]) : result;
  10313. }
  10314. /**
  10315. * Gets the data for `map`.
  10316. *
  10317. * @private
  10318. * @param {Object} map The map to query.
  10319. * @param {string} key The reference key.
  10320. * @returns {*} Returns the map data.
  10321. */
  10322. function getMapData(map, key) {
  10323. var data = map.__data__;
  10324. return isKeyable(key)
  10325. ? data[typeof key == 'string' ? 'string' : 'hash']
  10326. : data.map;
  10327. }
  10328. /**
  10329. * Gets the property names, values, and compare flags of `object`.
  10330. *
  10331. * @private
  10332. * @param {Object} object The object to query.
  10333. * @returns {Array} Returns the match data of `object`.
  10334. */
  10335. function getMatchData(object) {
  10336. var result = keys(object),
  10337. length = result.length;
  10338. while (length--) {
  10339. var key = result[length],
  10340. value = object[key];
  10341. result[length] = [key, value, isStrictComparable(value)];
  10342. }
  10343. return result;
  10344. }
  10345. /**
  10346. * Gets the native function at `key` of `object`.
  10347. *
  10348. * @private
  10349. * @param {Object} object The object to query.
  10350. * @param {string} key The key of the method to get.
  10351. * @returns {*} Returns the function if it's native, else `undefined`.
  10352. */
  10353. function getNative(object, key) {
  10354. var value = getValue(object, key);
  10355. return baseIsNative(value) ? value : undefined;
  10356. }
  10357. /**
  10358. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  10359. *
  10360. * @private
  10361. * @param {*} value The value to query.
  10362. * @returns {string} Returns the raw `toStringTag`.
  10363. */
  10364. function getRawTag(value) {
  10365. var isOwn = hasOwnProperty.call(value, symToStringTag),
  10366. tag = value[symToStringTag];
  10367. try {
  10368. value[symToStringTag] = undefined;
  10369. var unmasked = true;
  10370. } catch (e) {}
  10371. var result = nativeObjectToString.call(value);
  10372. if (unmasked) {
  10373. if (isOwn) {
  10374. value[symToStringTag] = tag;
  10375. } else {
  10376. delete value[symToStringTag];
  10377. }
  10378. }
  10379. return result;
  10380. }
  10381. /**
  10382. * Creates an array of the own enumerable symbols of `object`.
  10383. *
  10384. * @private
  10385. * @param {Object} object The object to query.
  10386. * @returns {Array} Returns the array of symbols.
  10387. */
  10388. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  10389. if (object == null) {
  10390. return [];
  10391. }
  10392. object = Object(object);
  10393. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  10394. return propertyIsEnumerable.call(object, symbol);
  10395. });
  10396. };
  10397. /**
  10398. * Creates an array of the own and inherited enumerable symbols of `object`.
  10399. *
  10400. * @private
  10401. * @param {Object} object The object to query.
  10402. * @returns {Array} Returns the array of symbols.
  10403. */
  10404. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  10405. var result = [];
  10406. while (object) {
  10407. arrayPush(result, getSymbols(object));
  10408. object = getPrototype(object);
  10409. }
  10410. return result;
  10411. };
  10412. /**
  10413. * Gets the `toStringTag` of `value`.
  10414. *
  10415. * @private
  10416. * @param {*} value The value to query.
  10417. * @returns {string} Returns the `toStringTag`.
  10418. */
  10419. var getTag = baseGetTag;
  10420. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  10421. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  10422. (Map && getTag(new Map) != mapTag) ||
  10423. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  10424. (Set && getTag(new Set) != setTag) ||
  10425. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  10426. getTag = function(value) {
  10427. var result = baseGetTag(value),
  10428. Ctor = result == objectTag ? value.constructor : undefined,
  10429. ctorString = Ctor ? toSource(Ctor) : '';
  10430. if (ctorString) {
  10431. switch (ctorString) {
  10432. case dataViewCtorString: return dataViewTag;
  10433. case mapCtorString: return mapTag;
  10434. case promiseCtorString: return promiseTag;
  10435. case setCtorString: return setTag;
  10436. case weakMapCtorString: return weakMapTag;
  10437. }
  10438. }
  10439. return result;
  10440. };
  10441. }
  10442. /**
  10443. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  10444. *
  10445. * @private
  10446. * @param {number} start The start of the view.
  10447. * @param {number} end The end of the view.
  10448. * @param {Array} transforms The transformations to apply to the view.
  10449. * @returns {Object} Returns an object containing the `start` and `end`
  10450. * positions of the view.
  10451. */
  10452. function getView(start, end, transforms) {
  10453. var index = -1,
  10454. length = transforms.length;
  10455. while (++index < length) {
  10456. var data = transforms[index],
  10457. size = data.size;
  10458. switch (data.type) {
  10459. case 'drop': start += size; break;
  10460. case 'dropRight': end -= size; break;
  10461. case 'take': end = nativeMin(end, start + size); break;
  10462. case 'takeRight': start = nativeMax(start, end - size); break;
  10463. }
  10464. }
  10465. return { 'start': start, 'end': end };
  10466. }
  10467. /**
  10468. * Extracts wrapper details from the `source` body comment.
  10469. *
  10470. * @private
  10471. * @param {string} source The source to inspect.
  10472. * @returns {Array} Returns the wrapper details.
  10473. */
  10474. function getWrapDetails(source) {
  10475. var match = source.match(reWrapDetails);
  10476. return match ? match[1].split(reSplitDetails) : [];
  10477. }
  10478. /**
  10479. * Checks if `path` exists on `object`.
  10480. *
  10481. * @private
  10482. * @param {Object} object The object to query.
  10483. * @param {Array|string} path The path to check.
  10484. * @param {Function} hasFunc The function to check properties.
  10485. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  10486. */
  10487. function hasPath(object, path, hasFunc) {
  10488. path = castPath(path, object);
  10489. var index = -1,
  10490. length = path.length,
  10491. result = false;
  10492. while (++index < length) {
  10493. var key = toKey(path[index]);
  10494. if (!(result = object != null && hasFunc(object, key))) {
  10495. break;
  10496. }
  10497. object = object[key];
  10498. }
  10499. if (result || ++index != length) {
  10500. return result;
  10501. }
  10502. length = object == null ? 0 : object.length;
  10503. return !!length && isLength(length) && isIndex(key, length) &&
  10504. (isArray(object) || isArguments(object));
  10505. }
  10506. /**
  10507. * Initializes an array clone.
  10508. *
  10509. * @private
  10510. * @param {Array} array The array to clone.
  10511. * @returns {Array} Returns the initialized clone.
  10512. */
  10513. function initCloneArray(array) {
  10514. var length = array.length,
  10515. result = new array.constructor(length);
  10516. // Add properties assigned by `RegExp#exec`.
  10517. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  10518. result.index = array.index;
  10519. result.input = array.input;
  10520. }
  10521. return result;
  10522. }
  10523. /**
  10524. * Initializes an object clone.
  10525. *
  10526. * @private
  10527. * @param {Object} object The object to clone.
  10528. * @returns {Object} Returns the initialized clone.
  10529. */
  10530. function initCloneObject(object) {
  10531. return (typeof object.constructor == 'function' && !isPrototype(object))
  10532. ? baseCreate(getPrototype(object))
  10533. : {};
  10534. }
  10535. /**
  10536. * Initializes an object clone based on its `toStringTag`.
  10537. *
  10538. * **Note:** This function only supports cloning values with tags of
  10539. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  10540. *
  10541. * @private
  10542. * @param {Object} object The object to clone.
  10543. * @param {string} tag The `toStringTag` of the object to clone.
  10544. * @param {boolean} [isDeep] Specify a deep clone.
  10545. * @returns {Object} Returns the initialized clone.
  10546. */
  10547. function initCloneByTag(object, tag, isDeep) {
  10548. var Ctor = object.constructor;
  10549. switch (tag) {
  10550. case arrayBufferTag:
  10551. return cloneArrayBuffer(object);
  10552. case boolTag:
  10553. case dateTag:
  10554. return new Ctor(+object);
  10555. case dataViewTag:
  10556. return cloneDataView(object, isDeep);
  10557. case float32Tag: case float64Tag:
  10558. case int8Tag: case int16Tag: case int32Tag:
  10559. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  10560. return cloneTypedArray(object, isDeep);
  10561. case mapTag:
  10562. return new Ctor;
  10563. case numberTag:
  10564. case stringTag:
  10565. return new Ctor(object);
  10566. case regexpTag:
  10567. return cloneRegExp(object);
  10568. case setTag:
  10569. return new Ctor;
  10570. case symbolTag:
  10571. return cloneSymbol(object);
  10572. }
  10573. }
  10574. /**
  10575. * Inserts wrapper `details` in a comment at the top of the `source` body.
  10576. *
  10577. * @private
  10578. * @param {string} source The source to modify.
  10579. * @returns {Array} details The details to insert.
  10580. * @returns {string} Returns the modified source.
  10581. */
  10582. function insertWrapDetails(source, details) {
  10583. var length = details.length;
  10584. if (!length) {
  10585. return source;
  10586. }
  10587. var lastIndex = length - 1;
  10588. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  10589. details = details.join(length > 2 ? ', ' : ' ');
  10590. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  10591. }
  10592. /**
  10593. * Checks if `value` is a flattenable `arguments` object or array.
  10594. *
  10595. * @private
  10596. * @param {*} value The value to check.
  10597. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  10598. */
  10599. function isFlattenable(value) {
  10600. return isArray(value) || isArguments(value) ||
  10601. !!(spreadableSymbol && value && value[spreadableSymbol]);
  10602. }
  10603. /**
  10604. * Checks if `value` is a valid array-like index.
  10605. *
  10606. * @private
  10607. * @param {*} value The value to check.
  10608. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  10609. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  10610. */
  10611. function isIndex(value, length) {
  10612. var type = typeof value;
  10613. length = length == null ? MAX_SAFE_INTEGER : length;
  10614. return !!length &&
  10615. (type == 'number' ||
  10616. (type != 'symbol' && reIsUint.test(value))) &&
  10617. (value > -1 && value % 1 == 0 && value < length);
  10618. }
  10619. /**
  10620. * Checks if the given arguments are from an iteratee call.
  10621. *
  10622. * @private
  10623. * @param {*} value The potential iteratee value argument.
  10624. * @param {*} index The potential iteratee index or key argument.
  10625. * @param {*} object The potential iteratee object argument.
  10626. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  10627. * else `false`.
  10628. */
  10629. function isIterateeCall(value, index, object) {
  10630. if (!isObject(object)) {
  10631. return false;
  10632. }
  10633. var type = typeof index;
  10634. if (type == 'number'
  10635. ? (isArrayLike(object) && isIndex(index, object.length))
  10636. : (type == 'string' && index in object)
  10637. ) {
  10638. return eq(object[index], value);
  10639. }
  10640. return false;
  10641. }
  10642. /**
  10643. * Checks if `value` is a property name and not a property path.
  10644. *
  10645. * @private
  10646. * @param {*} value The value to check.
  10647. * @param {Object} [object] The object to query keys on.
  10648. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  10649. */
  10650. function isKey(value, object) {
  10651. if (isArray(value)) {
  10652. return false;
  10653. }
  10654. var type = typeof value;
  10655. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  10656. value == null || isSymbol(value)) {
  10657. return true;
  10658. }
  10659. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  10660. (object != null && value in Object(object));
  10661. }
  10662. /**
  10663. * Checks if `value` is suitable for use as unique object key.
  10664. *
  10665. * @private
  10666. * @param {*} value The value to check.
  10667. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  10668. */
  10669. function isKeyable(value) {
  10670. var type = typeof value;
  10671. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  10672. ? (value !== '__proto__')
  10673. : (value === null);
  10674. }
  10675. /**
  10676. * Checks if `func` has a lazy counterpart.
  10677. *
  10678. * @private
  10679. * @param {Function} func The function to check.
  10680. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  10681. * else `false`.
  10682. */
  10683. function isLaziable(func) {
  10684. var funcName = getFuncName(func),
  10685. other = lodash[funcName];
  10686. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  10687. return false;
  10688. }
  10689. if (func === other) {
  10690. return true;
  10691. }
  10692. var data = getData(other);
  10693. return !!data && func === data[0];
  10694. }
  10695. /**
  10696. * Checks if `func` has its source masked.
  10697. *
  10698. * @private
  10699. * @param {Function} func The function to check.
  10700. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  10701. */
  10702. function isMasked(func) {
  10703. return !!maskSrcKey && (maskSrcKey in func);
  10704. }
  10705. /**
  10706. * Checks if `func` is capable of being masked.
  10707. *
  10708. * @private
  10709. * @param {*} value The value to check.
  10710. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  10711. */
  10712. var isMaskable = coreJsData ? isFunction : stubFalse;
  10713. /**
  10714. * Checks if `value` is likely a prototype object.
  10715. *
  10716. * @private
  10717. * @param {*} value The value to check.
  10718. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  10719. */
  10720. function isPrototype(value) {
  10721. var Ctor = value && value.constructor,
  10722. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  10723. return value === proto;
  10724. }
  10725. /**
  10726. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  10727. *
  10728. * @private
  10729. * @param {*} value The value to check.
  10730. * @returns {boolean} Returns `true` if `value` if suitable for strict
  10731. * equality comparisons, else `false`.
  10732. */
  10733. function isStrictComparable(value) {
  10734. return value === value && !isObject(value);
  10735. }
  10736. /**
  10737. * A specialized version of `matchesProperty` for source values suitable
  10738. * for strict equality comparisons, i.e. `===`.
  10739. *
  10740. * @private
  10741. * @param {string} key The key of the property to get.
  10742. * @param {*} srcValue The value to match.
  10743. * @returns {Function} Returns the new spec function.
  10744. */
  10745. function matchesStrictComparable(key, srcValue) {
  10746. return function(object) {
  10747. if (object == null) {
  10748. return false;
  10749. }
  10750. return object[key] === srcValue &&
  10751. (srcValue !== undefined || (key in Object(object)));
  10752. };
  10753. }
  10754. /**
  10755. * A specialized version of `_.memoize` which clears the memoized function's
  10756. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  10757. *
  10758. * @private
  10759. * @param {Function} func The function to have its output memoized.
  10760. * @returns {Function} Returns the new memoized function.
  10761. */
  10762. function memoizeCapped(func) {
  10763. var result = memoize(func, function(key) {
  10764. if (cache.size === MAX_MEMOIZE_SIZE) {
  10765. cache.clear();
  10766. }
  10767. return key;
  10768. });
  10769. var cache = result.cache;
  10770. return result;
  10771. }
  10772. /**
  10773. * Merges the function metadata of `source` into `data`.
  10774. *
  10775. * Merging metadata reduces the number of wrappers used to invoke a function.
  10776. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  10777. * may be applied regardless of execution order. Methods like `_.ary` and
  10778. * `_.rearg` modify function arguments, making the order in which they are
  10779. * executed important, preventing the merging of metadata. However, we make
  10780. * an exception for a safe combined case where curried functions have `_.ary`
  10781. * and or `_.rearg` applied.
  10782. *
  10783. * @private
  10784. * @param {Array} data The destination metadata.
  10785. * @param {Array} source The source metadata.
  10786. * @returns {Array} Returns `data`.
  10787. */
  10788. function mergeData(data, source) {
  10789. var bitmask = data[1],
  10790. srcBitmask = source[1],
  10791. newBitmask = bitmask | srcBitmask,
  10792. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  10793. var isCombo =
  10794. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  10795. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  10796. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  10797. // Exit early if metadata can't be merged.
  10798. if (!(isCommon || isCombo)) {
  10799. return data;
  10800. }
  10801. // Use source `thisArg` if available.
  10802. if (srcBitmask & WRAP_BIND_FLAG) {
  10803. data[2] = source[2];
  10804. // Set when currying a bound function.
  10805. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  10806. }
  10807. // Compose partial arguments.
  10808. var value = source[3];
  10809. if (value) {
  10810. var partials = data[3];
  10811. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  10812. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  10813. }
  10814. // Compose partial right arguments.
  10815. value = source[5];
  10816. if (value) {
  10817. partials = data[5];
  10818. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  10819. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  10820. }
  10821. // Use source `argPos` if available.
  10822. value = source[7];
  10823. if (value) {
  10824. data[7] = value;
  10825. }
  10826. // Use source `ary` if it's smaller.
  10827. if (srcBitmask & WRAP_ARY_FLAG) {
  10828. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  10829. }
  10830. // Use source `arity` if one is not provided.
  10831. if (data[9] == null) {
  10832. data[9] = source[9];
  10833. }
  10834. // Use source `func` and merge bitmasks.
  10835. data[0] = source[0];
  10836. data[1] = newBitmask;
  10837. return data;
  10838. }
  10839. /**
  10840. * This function is like
  10841. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  10842. * except that it includes inherited enumerable properties.
  10843. *
  10844. * @private
  10845. * @param {Object} object The object to query.
  10846. * @returns {Array} Returns the array of property names.
  10847. */
  10848. function nativeKeysIn(object) {
  10849. var result = [];
  10850. if (object != null) {
  10851. for (var key in Object(object)) {
  10852. result.push(key);
  10853. }
  10854. }
  10855. return result;
  10856. }
  10857. /**
  10858. * Converts `value` to a string using `Object.prototype.toString`.
  10859. *
  10860. * @private
  10861. * @param {*} value The value to convert.
  10862. * @returns {string} Returns the converted string.
  10863. */
  10864. function objectToString(value) {
  10865. return nativeObjectToString.call(value);
  10866. }
  10867. /**
  10868. * A specialized version of `baseRest` which transforms the rest array.
  10869. *
  10870. * @private
  10871. * @param {Function} func The function to apply a rest parameter to.
  10872. * @param {number} [start=func.length-1] The start position of the rest parameter.
  10873. * @param {Function} transform The rest array transform.
  10874. * @returns {Function} Returns the new function.
  10875. */
  10876. function overRest(func, start, transform) {
  10877. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  10878. return function() {
  10879. var args = arguments,
  10880. index = -1,
  10881. length = nativeMax(args.length - start, 0),
  10882. array = Array(length);
  10883. while (++index < length) {
  10884. array[index] = args[start + index];
  10885. }
  10886. index = -1;
  10887. var otherArgs = Array(start + 1);
  10888. while (++index < start) {
  10889. otherArgs[index] = args[index];
  10890. }
  10891. otherArgs[start] = transform(array);
  10892. return apply(func, this, otherArgs);
  10893. };
  10894. }
  10895. /**
  10896. * Gets the parent value at `path` of `object`.
  10897. *
  10898. * @private
  10899. * @param {Object} object The object to query.
  10900. * @param {Array} path The path to get the parent value of.
  10901. * @returns {*} Returns the parent value.
  10902. */
  10903. function parent(object, path) {
  10904. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  10905. }
  10906. /**
  10907. * Reorder `array` according to the specified indexes where the element at
  10908. * the first index is assigned as the first element, the element at
  10909. * the second index is assigned as the second element, and so on.
  10910. *
  10911. * @private
  10912. * @param {Array} array The array to reorder.
  10913. * @param {Array} indexes The arranged array indexes.
  10914. * @returns {Array} Returns `array`.
  10915. */
  10916. function reorder(array, indexes) {
  10917. var arrLength = array.length,
  10918. length = nativeMin(indexes.length, arrLength),
  10919. oldArray = copyArray(array);
  10920. while (length--) {
  10921. var index = indexes[length];
  10922. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  10923. }
  10924. return array;
  10925. }
  10926. /**
  10927. * Gets the value at `key`, unless `key` is "__proto__".
  10928. *
  10929. * @private
  10930. * @param {Object} object The object to query.
  10931. * @param {string} key The key of the property to get.
  10932. * @returns {*} Returns the property value.
  10933. */
  10934. function safeGet(object, key) {
  10935. if (key == '__proto__') {
  10936. return;
  10937. }
  10938. return object[key];
  10939. }
  10940. /**
  10941. * Sets metadata for `func`.
  10942. *
  10943. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  10944. * period of time, it will trip its breaker and transition to an identity
  10945. * function to avoid garbage collection pauses in V8. See
  10946. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  10947. * for more details.
  10948. *
  10949. * @private
  10950. * @param {Function} func The function to associate metadata with.
  10951. * @param {*} data The metadata.
  10952. * @returns {Function} Returns `func`.
  10953. */
  10954. var setData = shortOut(baseSetData);
  10955. /**
  10956. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  10957. *
  10958. * @private
  10959. * @param {Function} func The function to delay.
  10960. * @param {number} wait The number of milliseconds to delay invocation.
  10961. * @returns {number|Object} Returns the timer id or timeout object.
  10962. */
  10963. var setTimeout = ctxSetTimeout || function(func, wait) {
  10964. return root.setTimeout(func, wait);
  10965. };
  10966. /**
  10967. * Sets the `toString` method of `func` to return `string`.
  10968. *
  10969. * @private
  10970. * @param {Function} func The function to modify.
  10971. * @param {Function} string The `toString` result.
  10972. * @returns {Function} Returns `func`.
  10973. */
  10974. var setToString = shortOut(baseSetToString);
  10975. /**
  10976. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  10977. * with wrapper details in a comment at the top of the source body.
  10978. *
  10979. * @private
  10980. * @param {Function} wrapper The function to modify.
  10981. * @param {Function} reference The reference function.
  10982. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  10983. * @returns {Function} Returns `wrapper`.
  10984. */
  10985. function setWrapToString(wrapper, reference, bitmask) {
  10986. var source = (reference + '');
  10987. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  10988. }
  10989. /**
  10990. * Creates a function that'll short out and invoke `identity` instead
  10991. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  10992. * milliseconds.
  10993. *
  10994. * @private
  10995. * @param {Function} func The function to restrict.
  10996. * @returns {Function} Returns the new shortable function.
  10997. */
  10998. function shortOut(func) {
  10999. var count = 0,
  11000. lastCalled = 0;
  11001. return function() {
  11002. var stamp = nativeNow(),
  11003. remaining = HOT_SPAN - (stamp - lastCalled);
  11004. lastCalled = stamp;
  11005. if (remaining > 0) {
  11006. if (++count >= HOT_COUNT) {
  11007. return arguments[0];
  11008. }
  11009. } else {
  11010. count = 0;
  11011. }
  11012. return func.apply(undefined, arguments);
  11013. };
  11014. }
  11015. /**
  11016. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  11017. *
  11018. * @private
  11019. * @param {Array} array The array to shuffle.
  11020. * @param {number} [size=array.length] The size of `array`.
  11021. * @returns {Array} Returns `array`.
  11022. */
  11023. function shuffleSelf(array, size) {
  11024. var index = -1,
  11025. length = array.length,
  11026. lastIndex = length - 1;
  11027. size = size === undefined ? length : size;
  11028. while (++index < size) {
  11029. var rand = baseRandom(index, lastIndex),
  11030. value = array[rand];
  11031. array[rand] = array[index];
  11032. array[index] = value;
  11033. }
  11034. array.length = size;
  11035. return array;
  11036. }
  11037. /**
  11038. * Converts `string` to a property path array.
  11039. *
  11040. * @private
  11041. * @param {string} string The string to convert.
  11042. * @returns {Array} Returns the property path array.
  11043. */
  11044. var stringToPath = memoizeCapped(function(string) {
  11045. var result = [];
  11046. if (string.charCodeAt(0) === 46 /* . */) {
  11047. result.push('');
  11048. }
  11049. string.replace(rePropName, function(match, number, quote, subString) {
  11050. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  11051. });
  11052. return result;
  11053. });
  11054. /**
  11055. * Converts `value` to a string key if it's not a string or symbol.
  11056. *
  11057. * @private
  11058. * @param {*} value The value to inspect.
  11059. * @returns {string|symbol} Returns the key.
  11060. */
  11061. function toKey(value) {
  11062. if (typeof value == 'string' || isSymbol(value)) {
  11063. return value;
  11064. }
  11065. var result = (value + '');
  11066. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11067. }
  11068. /**
  11069. * Converts `func` to its source code.
  11070. *
  11071. * @private
  11072. * @param {Function} func The function to convert.
  11073. * @returns {string} Returns the source code.
  11074. */
  11075. function toSource(func) {
  11076. if (func != null) {
  11077. try {
  11078. return funcToString.call(func);
  11079. } catch (e) {}
  11080. try {
  11081. return (func + '');
  11082. } catch (e) {}
  11083. }
  11084. return '';
  11085. }
  11086. /**
  11087. * Updates wrapper `details` based on `bitmask` flags.
  11088. *
  11089. * @private
  11090. * @returns {Array} details The details to modify.
  11091. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  11092. * @returns {Array} Returns `details`.
  11093. */
  11094. function updateWrapDetails(details, bitmask) {
  11095. arrayEach(wrapFlags, function(pair) {
  11096. var value = '_.' + pair[0];
  11097. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  11098. details.push(value);
  11099. }
  11100. });
  11101. return details.sort();
  11102. }
  11103. /**
  11104. * Creates a clone of `wrapper`.
  11105. *
  11106. * @private
  11107. * @param {Object} wrapper The wrapper to clone.
  11108. * @returns {Object} Returns the cloned wrapper.
  11109. */
  11110. function wrapperClone(wrapper) {
  11111. if (wrapper instanceof LazyWrapper) {
  11112. return wrapper.clone();
  11113. }
  11114. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  11115. result.__actions__ = copyArray(wrapper.__actions__);
  11116. result.__index__ = wrapper.__index__;
  11117. result.__values__ = wrapper.__values__;
  11118. return result;
  11119. }
  11120. /*------------------------------------------------------------------------*/
  11121. /**
  11122. * Creates an array of elements split into groups the length of `size`.
  11123. * If `array` can't be split evenly, the final chunk will be the remaining
  11124. * elements.
  11125. *
  11126. * @static
  11127. * @memberOf _
  11128. * @since 3.0.0
  11129. * @category Array
  11130. * @param {Array} array The array to process.
  11131. * @param {number} [size=1] The length of each chunk
  11132. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  11133. * @returns {Array} Returns the new array of chunks.
  11134. * @example
  11135. *
  11136. * _.chunk(['a', 'b', 'c', 'd'], 2);
  11137. * // => [['a', 'b'], ['c', 'd']]
  11138. *
  11139. * _.chunk(['a', 'b', 'c', 'd'], 3);
  11140. * // => [['a', 'b', 'c'], ['d']]
  11141. */
  11142. function chunk(array, size, guard) {
  11143. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  11144. size = 1;
  11145. } else {
  11146. size = nativeMax(toInteger(size), 0);
  11147. }
  11148. var length = array == null ? 0 : array.length;
  11149. if (!length || size < 1) {
  11150. return [];
  11151. }
  11152. var index = 0,
  11153. resIndex = 0,
  11154. result = Array(nativeCeil(length / size));
  11155. while (index < length) {
  11156. result[resIndex++] = baseSlice(array, index, (index += size));
  11157. }
  11158. return result;
  11159. }
  11160. /**
  11161. * Creates an array with all falsey values removed. The values `false`, `null`,
  11162. * `0`, `""`, `undefined`, and `NaN` are falsey.
  11163. *
  11164. * @static
  11165. * @memberOf _
  11166. * @since 0.1.0
  11167. * @category Array
  11168. * @param {Array} array The array to compact.
  11169. * @returns {Array} Returns the new array of filtered values.
  11170. * @example
  11171. *
  11172. * _.compact([0, 1, false, 2, '', 3]);
  11173. * // => [1, 2, 3]
  11174. */
  11175. function compact(array) {
  11176. var index = -1,
  11177. length = array == null ? 0 : array.length,
  11178. resIndex = 0,
  11179. result = [];
  11180. while (++index < length) {
  11181. var value = array[index];
  11182. if (value) {
  11183. result[resIndex++] = value;
  11184. }
  11185. }
  11186. return result;
  11187. }
  11188. /**
  11189. * Creates a new array concatenating `array` with any additional arrays
  11190. * and/or values.
  11191. *
  11192. * @static
  11193. * @memberOf _
  11194. * @since 4.0.0
  11195. * @category Array
  11196. * @param {Array} array The array to concatenate.
  11197. * @param {...*} [values] The values to concatenate.
  11198. * @returns {Array} Returns the new concatenated array.
  11199. * @example
  11200. *
  11201. * var array = [1];
  11202. * var other = _.concat(array, 2, [3], [[4]]);
  11203. *
  11204. * console.log(other);
  11205. * // => [1, 2, 3, [4]]
  11206. *
  11207. * console.log(array);
  11208. * // => [1]
  11209. */
  11210. function concat() {
  11211. var length = arguments.length;
  11212. if (!length) {
  11213. return [];
  11214. }
  11215. var args = Array(length - 1),
  11216. array = arguments[0],
  11217. index = length;
  11218. while (index--) {
  11219. args[index - 1] = arguments[index];
  11220. }
  11221. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  11222. }
  11223. /**
  11224. * Creates an array of `array` values not included in the other given arrays
  11225. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11226. * for equality comparisons. The order and references of result values are
  11227. * determined by the first array.
  11228. *
  11229. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  11230. *
  11231. * @static
  11232. * @memberOf _
  11233. * @since 0.1.0
  11234. * @category Array
  11235. * @param {Array} array The array to inspect.
  11236. * @param {...Array} [values] The values to exclude.
  11237. * @returns {Array} Returns the new array of filtered values.
  11238. * @see _.without, _.xor
  11239. * @example
  11240. *
  11241. * _.difference([2, 1], [2, 3]);
  11242. * // => [1]
  11243. */
  11244. var difference = baseRest(function(array, values) {
  11245. return isArrayLikeObject(array)
  11246. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  11247. : [];
  11248. });
  11249. /**
  11250. * This method is like `_.difference` except that it accepts `iteratee` which
  11251. * is invoked for each element of `array` and `values` to generate the criterion
  11252. * by which they're compared. The order and references of result values are
  11253. * determined by the first array. The iteratee is invoked with one argument:
  11254. * (value).
  11255. *
  11256. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  11257. *
  11258. * @static
  11259. * @memberOf _
  11260. * @since 4.0.0
  11261. * @category Array
  11262. * @param {Array} array The array to inspect.
  11263. * @param {...Array} [values] The values to exclude.
  11264. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  11265. * @returns {Array} Returns the new array of filtered values.
  11266. * @example
  11267. *
  11268. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  11269. * // => [1.2]
  11270. *
  11271. * // The `_.property` iteratee shorthand.
  11272. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  11273. * // => [{ 'x': 2 }]
  11274. */
  11275. var differenceBy = baseRest(function(array, values) {
  11276. var iteratee = last(values);
  11277. if (isArrayLikeObject(iteratee)) {
  11278. iteratee = undefined;
  11279. }
  11280. return isArrayLikeObject(array)
  11281. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  11282. : [];
  11283. });
  11284. /**
  11285. * This method is like `_.difference` except that it accepts `comparator`
  11286. * which is invoked to compare elements of `array` to `values`. The order and
  11287. * references of result values are determined by the first array. The comparator
  11288. * is invoked with two arguments: (arrVal, othVal).
  11289. *
  11290. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  11291. *
  11292. * @static
  11293. * @memberOf _
  11294. * @since 4.0.0
  11295. * @category Array
  11296. * @param {Array} array The array to inspect.
  11297. * @param {...Array} [values] The values to exclude.
  11298. * @param {Function} [comparator] The comparator invoked per element.
  11299. * @returns {Array} Returns the new array of filtered values.
  11300. * @example
  11301. *
  11302. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  11303. *
  11304. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  11305. * // => [{ 'x': 2, 'y': 1 }]
  11306. */
  11307. var differenceWith = baseRest(function(array, values) {
  11308. var comparator = last(values);
  11309. if (isArrayLikeObject(comparator)) {
  11310. comparator = undefined;
  11311. }
  11312. return isArrayLikeObject(array)
  11313. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  11314. : [];
  11315. });
  11316. /**
  11317. * Creates a slice of `array` with `n` elements dropped from the beginning.
  11318. *
  11319. * @static
  11320. * @memberOf _
  11321. * @since 0.5.0
  11322. * @category Array
  11323. * @param {Array} array The array to query.
  11324. * @param {number} [n=1] The number of elements to drop.
  11325. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  11326. * @returns {Array} Returns the slice of `array`.
  11327. * @example
  11328. *
  11329. * _.drop([1, 2, 3]);
  11330. * // => [2, 3]
  11331. *
  11332. * _.drop([1, 2, 3], 2);
  11333. * // => [3]
  11334. *
  11335. * _.drop([1, 2, 3], 5);
  11336. * // => []
  11337. *
  11338. * _.drop([1, 2, 3], 0);
  11339. * // => [1, 2, 3]
  11340. */
  11341. function drop(array, n, guard) {
  11342. var length = array == null ? 0 : array.length;
  11343. if (!length) {
  11344. return [];
  11345. }
  11346. n = (guard || n === undefined) ? 1 : toInteger(n);
  11347. return baseSlice(array, n < 0 ? 0 : n, length);
  11348. }
  11349. /**
  11350. * Creates a slice of `array` with `n` elements dropped from the end.
  11351. *
  11352. * @static
  11353. * @memberOf _
  11354. * @since 3.0.0
  11355. * @category Array
  11356. * @param {Array} array The array to query.
  11357. * @param {number} [n=1] The number of elements to drop.
  11358. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  11359. * @returns {Array} Returns the slice of `array`.
  11360. * @example
  11361. *
  11362. * _.dropRight([1, 2, 3]);
  11363. * // => [1, 2]
  11364. *
  11365. * _.dropRight([1, 2, 3], 2);
  11366. * // => [1]
  11367. *
  11368. * _.dropRight([1, 2, 3], 5);
  11369. * // => []
  11370. *
  11371. * _.dropRight([1, 2, 3], 0);
  11372. * // => [1, 2, 3]
  11373. */
  11374. function dropRight(array, n, guard) {
  11375. var length = array == null ? 0 : array.length;
  11376. if (!length) {
  11377. return [];
  11378. }
  11379. n = (guard || n === undefined) ? 1 : toInteger(n);
  11380. n = length - n;
  11381. return baseSlice(array, 0, n < 0 ? 0 : n);
  11382. }
  11383. /**
  11384. * Creates a slice of `array` excluding elements dropped from the end.
  11385. * Elements are dropped until `predicate` returns falsey. The predicate is
  11386. * invoked with three arguments: (value, index, array).
  11387. *
  11388. * @static
  11389. * @memberOf _
  11390. * @since 3.0.0
  11391. * @category Array
  11392. * @param {Array} array The array to query.
  11393. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11394. * @returns {Array} Returns the slice of `array`.
  11395. * @example
  11396. *
  11397. * var users = [
  11398. * { 'user': 'barney', 'active': true },
  11399. * { 'user': 'fred', 'active': false },
  11400. * { 'user': 'pebbles', 'active': false }
  11401. * ];
  11402. *
  11403. * _.dropRightWhile(users, function(o) { return !o.active; });
  11404. * // => objects for ['barney']
  11405. *
  11406. * // The `_.matches` iteratee shorthand.
  11407. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  11408. * // => objects for ['barney', 'fred']
  11409. *
  11410. * // The `_.matchesProperty` iteratee shorthand.
  11411. * _.dropRightWhile(users, ['active', false]);
  11412. * // => objects for ['barney']
  11413. *
  11414. * // The `_.property` iteratee shorthand.
  11415. * _.dropRightWhile(users, 'active');
  11416. * // => objects for ['barney', 'fred', 'pebbles']
  11417. */
  11418. function dropRightWhile(array, predicate) {
  11419. return (array && array.length)
  11420. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  11421. : [];
  11422. }
  11423. /**
  11424. * Creates a slice of `array` excluding elements dropped from the beginning.
  11425. * Elements are dropped until `predicate` returns falsey. The predicate is
  11426. * invoked with three arguments: (value, index, array).
  11427. *
  11428. * @static
  11429. * @memberOf _
  11430. * @since 3.0.0
  11431. * @category Array
  11432. * @param {Array} array The array to query.
  11433. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11434. * @returns {Array} Returns the slice of `array`.
  11435. * @example
  11436. *
  11437. * var users = [
  11438. * { 'user': 'barney', 'active': false },
  11439. * { 'user': 'fred', 'active': false },
  11440. * { 'user': 'pebbles', 'active': true }
  11441. * ];
  11442. *
  11443. * _.dropWhile(users, function(o) { return !o.active; });
  11444. * // => objects for ['pebbles']
  11445. *
  11446. * // The `_.matches` iteratee shorthand.
  11447. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  11448. * // => objects for ['fred', 'pebbles']
  11449. *
  11450. * // The `_.matchesProperty` iteratee shorthand.
  11451. * _.dropWhile(users, ['active', false]);
  11452. * // => objects for ['pebbles']
  11453. *
  11454. * // The `_.property` iteratee shorthand.
  11455. * _.dropWhile(users, 'active');
  11456. * // => objects for ['barney', 'fred', 'pebbles']
  11457. */
  11458. function dropWhile(array, predicate) {
  11459. return (array && array.length)
  11460. ? baseWhile(array, getIteratee(predicate, 3), true)
  11461. : [];
  11462. }
  11463. /**
  11464. * Fills elements of `array` with `value` from `start` up to, but not
  11465. * including, `end`.
  11466. *
  11467. * **Note:** This method mutates `array`.
  11468. *
  11469. * @static
  11470. * @memberOf _
  11471. * @since 3.2.0
  11472. * @category Array
  11473. * @param {Array} array The array to fill.
  11474. * @param {*} value The value to fill `array` with.
  11475. * @param {number} [start=0] The start position.
  11476. * @param {number} [end=array.length] The end position.
  11477. * @returns {Array} Returns `array`.
  11478. * @example
  11479. *
  11480. * var array = [1, 2, 3];
  11481. *
  11482. * _.fill(array, 'a');
  11483. * console.log(array);
  11484. * // => ['a', 'a', 'a']
  11485. *
  11486. * _.fill(Array(3), 2);
  11487. * // => [2, 2, 2]
  11488. *
  11489. * _.fill([4, 6, 8, 10], '*', 1, 3);
  11490. * // => [4, '*', '*', 10]
  11491. */
  11492. function fill(array, value, start, end) {
  11493. var length = array == null ? 0 : array.length;
  11494. if (!length) {
  11495. return [];
  11496. }
  11497. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  11498. start = 0;
  11499. end = length;
  11500. }
  11501. return baseFill(array, value, start, end);
  11502. }
  11503. /**
  11504. * This method is like `_.find` except that it returns the index of the first
  11505. * element `predicate` returns truthy for instead of the element itself.
  11506. *
  11507. * @static
  11508. * @memberOf _
  11509. * @since 1.1.0
  11510. * @category Array
  11511. * @param {Array} array The array to inspect.
  11512. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11513. * @param {number} [fromIndex=0] The index to search from.
  11514. * @returns {number} Returns the index of the found element, else `-1`.
  11515. * @example
  11516. *
  11517. * var users = [
  11518. * { 'user': 'barney', 'active': false },
  11519. * { 'user': 'fred', 'active': false },
  11520. * { 'user': 'pebbles', 'active': true }
  11521. * ];
  11522. *
  11523. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  11524. * // => 0
  11525. *
  11526. * // The `_.matches` iteratee shorthand.
  11527. * _.findIndex(users, { 'user': 'fred', 'active': false });
  11528. * // => 1
  11529. *
  11530. * // The `_.matchesProperty` iteratee shorthand.
  11531. * _.findIndex(users, ['active', false]);
  11532. * // => 0
  11533. *
  11534. * // The `_.property` iteratee shorthand.
  11535. * _.findIndex(users, 'active');
  11536. * // => 2
  11537. */
  11538. function findIndex(array, predicate, fromIndex) {
  11539. var length = array == null ? 0 : array.length;
  11540. if (!length) {
  11541. return -1;
  11542. }
  11543. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  11544. if (index < 0) {
  11545. index = nativeMax(length + index, 0);
  11546. }
  11547. return baseFindIndex(array, getIteratee(predicate, 3), index);
  11548. }
  11549. /**
  11550. * This method is like `_.findIndex` except that it iterates over elements
  11551. * of `collection` from right to left.
  11552. *
  11553. * @static
  11554. * @memberOf _
  11555. * @since 2.0.0
  11556. * @category Array
  11557. * @param {Array} array The array to inspect.
  11558. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  11559. * @param {number} [fromIndex=array.length-1] The index to search from.
  11560. * @returns {number} Returns the index of the found element, else `-1`.
  11561. * @example
  11562. *
  11563. * var users = [
  11564. * { 'user': 'barney', 'active': true },
  11565. * { 'user': 'fred', 'active': false },
  11566. * { 'user': 'pebbles', 'active': false }
  11567. * ];
  11568. *
  11569. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  11570. * // => 2
  11571. *
  11572. * // The `_.matches` iteratee shorthand.
  11573. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  11574. * // => 0
  11575. *
  11576. * // The `_.matchesProperty` iteratee shorthand.
  11577. * _.findLastIndex(users, ['active', false]);
  11578. * // => 2
  11579. *
  11580. * // The `_.property` iteratee shorthand.
  11581. * _.findLastIndex(users, 'active');
  11582. * // => 0
  11583. */
  11584. function findLastIndex(array, predicate, fromIndex) {
  11585. var length = array == null ? 0 : array.length;
  11586. if (!length) {
  11587. return -1;
  11588. }
  11589. var index = length - 1;
  11590. if (fromIndex !== undefined) {
  11591. index = toInteger(fromIndex);
  11592. index = fromIndex < 0
  11593. ? nativeMax(length + index, 0)
  11594. : nativeMin(index, length - 1);
  11595. }
  11596. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  11597. }
  11598. /**
  11599. * Flattens `array` a single level deep.
  11600. *
  11601. * @static
  11602. * @memberOf _
  11603. * @since 0.1.0
  11604. * @category Array
  11605. * @param {Array} array The array to flatten.
  11606. * @returns {Array} Returns the new flattened array.
  11607. * @example
  11608. *
  11609. * _.flatten([1, [2, [3, [4]], 5]]);
  11610. * // => [1, 2, [3, [4]], 5]
  11611. */
  11612. function flatten(array) {
  11613. var length = array == null ? 0 : array.length;
  11614. return length ? baseFlatten(array, 1) : [];
  11615. }
  11616. /**
  11617. * Recursively flattens `array`.
  11618. *
  11619. * @static
  11620. * @memberOf _
  11621. * @since 3.0.0
  11622. * @category Array
  11623. * @param {Array} array The array to flatten.
  11624. * @returns {Array} Returns the new flattened array.
  11625. * @example
  11626. *
  11627. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  11628. * // => [1, 2, 3, 4, 5]
  11629. */
  11630. function flattenDeep(array) {
  11631. var length = array == null ? 0 : array.length;
  11632. return length ? baseFlatten(array, INFINITY) : [];
  11633. }
  11634. /**
  11635. * Recursively flatten `array` up to `depth` times.
  11636. *
  11637. * @static
  11638. * @memberOf _
  11639. * @since 4.4.0
  11640. * @category Array
  11641. * @param {Array} array The array to flatten.
  11642. * @param {number} [depth=1] The maximum recursion depth.
  11643. * @returns {Array} Returns the new flattened array.
  11644. * @example
  11645. *
  11646. * var array = [1, [2, [3, [4]], 5]];
  11647. *
  11648. * _.flattenDepth(array, 1);
  11649. * // => [1, 2, [3, [4]], 5]
  11650. *
  11651. * _.flattenDepth(array, 2);
  11652. * // => [1, 2, 3, [4], 5]
  11653. */
  11654. function flattenDepth(array, depth) {
  11655. var length = array == null ? 0 : array.length;
  11656. if (!length) {
  11657. return [];
  11658. }
  11659. depth = depth === undefined ? 1 : toInteger(depth);
  11660. return baseFlatten(array, depth);
  11661. }
  11662. /**
  11663. * The inverse of `_.toPairs`; this method returns an object composed
  11664. * from key-value `pairs`.
  11665. *
  11666. * @static
  11667. * @memberOf _
  11668. * @since 4.0.0
  11669. * @category Array
  11670. * @param {Array} pairs The key-value pairs.
  11671. * @returns {Object} Returns the new object.
  11672. * @example
  11673. *
  11674. * _.fromPairs([['a', 1], ['b', 2]]);
  11675. * // => { 'a': 1, 'b': 2 }
  11676. */
  11677. function fromPairs(pairs) {
  11678. var index = -1,
  11679. length = pairs == null ? 0 : pairs.length,
  11680. result = {};
  11681. while (++index < length) {
  11682. var pair = pairs[index];
  11683. result[pair[0]] = pair[1];
  11684. }
  11685. return result;
  11686. }
  11687. /**
  11688. * Gets the first element of `array`.
  11689. *
  11690. * @static
  11691. * @memberOf _
  11692. * @since 0.1.0
  11693. * @alias first
  11694. * @category Array
  11695. * @param {Array} array The array to query.
  11696. * @returns {*} Returns the first element of `array`.
  11697. * @example
  11698. *
  11699. * _.head([1, 2, 3]);
  11700. * // => 1
  11701. *
  11702. * _.head([]);
  11703. * // => undefined
  11704. */
  11705. function head(array) {
  11706. return (array && array.length) ? array[0] : undefined;
  11707. }
  11708. /**
  11709. * Gets the index at which the first occurrence of `value` is found in `array`
  11710. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11711. * for equality comparisons. If `fromIndex` is negative, it's used as the
  11712. * offset from the end of `array`.
  11713. *
  11714. * @static
  11715. * @memberOf _
  11716. * @since 0.1.0
  11717. * @category Array
  11718. * @param {Array} array The array to inspect.
  11719. * @param {*} value The value to search for.
  11720. * @param {number} [fromIndex=0] The index to search from.
  11721. * @returns {number} Returns the index of the matched value, else `-1`.
  11722. * @example
  11723. *
  11724. * _.indexOf([1, 2, 1, 2], 2);
  11725. * // => 1
  11726. *
  11727. * // Search from the `fromIndex`.
  11728. * _.indexOf([1, 2, 1, 2], 2, 2);
  11729. * // => 3
  11730. */
  11731. function indexOf(array, value, fromIndex) {
  11732. var length = array == null ? 0 : array.length;
  11733. if (!length) {
  11734. return -1;
  11735. }
  11736. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  11737. if (index < 0) {
  11738. index = nativeMax(length + index, 0);
  11739. }
  11740. return baseIndexOf(array, value, index);
  11741. }
  11742. /**
  11743. * Gets all but the last element of `array`.
  11744. *
  11745. * @static
  11746. * @memberOf _
  11747. * @since 0.1.0
  11748. * @category Array
  11749. * @param {Array} array The array to query.
  11750. * @returns {Array} Returns the slice of `array`.
  11751. * @example
  11752. *
  11753. * _.initial([1, 2, 3]);
  11754. * // => [1, 2]
  11755. */
  11756. function initial(array) {
  11757. var length = array == null ? 0 : array.length;
  11758. return length ? baseSlice(array, 0, -1) : [];
  11759. }
  11760. /**
  11761. * Creates an array of unique values that are included in all given arrays
  11762. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11763. * for equality comparisons. The order and references of result values are
  11764. * determined by the first array.
  11765. *
  11766. * @static
  11767. * @memberOf _
  11768. * @since 0.1.0
  11769. * @category Array
  11770. * @param {...Array} [arrays] The arrays to inspect.
  11771. * @returns {Array} Returns the new array of intersecting values.
  11772. * @example
  11773. *
  11774. * _.intersection([2, 1], [2, 3]);
  11775. * // => [2]
  11776. */
  11777. var intersection = baseRest(function(arrays) {
  11778. var mapped = arrayMap(arrays, castArrayLikeObject);
  11779. return (mapped.length && mapped[0] === arrays[0])
  11780. ? baseIntersection(mapped)
  11781. : [];
  11782. });
  11783. /**
  11784. * This method is like `_.intersection` except that it accepts `iteratee`
  11785. * which is invoked for each element of each `arrays` to generate the criterion
  11786. * by which they're compared. The order and references of result values are
  11787. * determined by the first array. The iteratee is invoked with one argument:
  11788. * (value).
  11789. *
  11790. * @static
  11791. * @memberOf _
  11792. * @since 4.0.0
  11793. * @category Array
  11794. * @param {...Array} [arrays] The arrays to inspect.
  11795. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  11796. * @returns {Array} Returns the new array of intersecting values.
  11797. * @example
  11798. *
  11799. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  11800. * // => [2.1]
  11801. *
  11802. * // The `_.property` iteratee shorthand.
  11803. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  11804. * // => [{ 'x': 1 }]
  11805. */
  11806. var intersectionBy = baseRest(function(arrays) {
  11807. var iteratee = last(arrays),
  11808. mapped = arrayMap(arrays, castArrayLikeObject);
  11809. if (iteratee === last(mapped)) {
  11810. iteratee = undefined;
  11811. } else {
  11812. mapped.pop();
  11813. }
  11814. return (mapped.length && mapped[0] === arrays[0])
  11815. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  11816. : [];
  11817. });
  11818. /**
  11819. * This method is like `_.intersection` except that it accepts `comparator`
  11820. * which is invoked to compare elements of `arrays`. The order and references
  11821. * of result values are determined by the first array. The comparator is
  11822. * invoked with two arguments: (arrVal, othVal).
  11823. *
  11824. * @static
  11825. * @memberOf _
  11826. * @since 4.0.0
  11827. * @category Array
  11828. * @param {...Array} [arrays] The arrays to inspect.
  11829. * @param {Function} [comparator] The comparator invoked per element.
  11830. * @returns {Array} Returns the new array of intersecting values.
  11831. * @example
  11832. *
  11833. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  11834. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  11835. *
  11836. * _.intersectionWith(objects, others, _.isEqual);
  11837. * // => [{ 'x': 1, 'y': 2 }]
  11838. */
  11839. var intersectionWith = baseRest(function(arrays) {
  11840. var comparator = last(arrays),
  11841. mapped = arrayMap(arrays, castArrayLikeObject);
  11842. comparator = typeof comparator == 'function' ? comparator : undefined;
  11843. if (comparator) {
  11844. mapped.pop();
  11845. }
  11846. return (mapped.length && mapped[0] === arrays[0])
  11847. ? baseIntersection(mapped, undefined, comparator)
  11848. : [];
  11849. });
  11850. /**
  11851. * Converts all elements in `array` into a string separated by `separator`.
  11852. *
  11853. * @static
  11854. * @memberOf _
  11855. * @since 4.0.0
  11856. * @category Array
  11857. * @param {Array} array The array to convert.
  11858. * @param {string} [separator=','] The element separator.
  11859. * @returns {string} Returns the joined string.
  11860. * @example
  11861. *
  11862. * _.join(['a', 'b', 'c'], '~');
  11863. * // => 'a~b~c'
  11864. */
  11865. function join(array, separator) {
  11866. return array == null ? '' : nativeJoin.call(array, separator);
  11867. }
  11868. /**
  11869. * Gets the last element of `array`.
  11870. *
  11871. * @static
  11872. * @memberOf _
  11873. * @since 0.1.0
  11874. * @category Array
  11875. * @param {Array} array The array to query.
  11876. * @returns {*} Returns the last element of `array`.
  11877. * @example
  11878. *
  11879. * _.last([1, 2, 3]);
  11880. * // => 3
  11881. */
  11882. function last(array) {
  11883. var length = array == null ? 0 : array.length;
  11884. return length ? array[length - 1] : undefined;
  11885. }
  11886. /**
  11887. * This method is like `_.indexOf` except that it iterates over elements of
  11888. * `array` from right to left.
  11889. *
  11890. * @static
  11891. * @memberOf _
  11892. * @since 0.1.0
  11893. * @category Array
  11894. * @param {Array} array The array to inspect.
  11895. * @param {*} value The value to search for.
  11896. * @param {number} [fromIndex=array.length-1] The index to search from.
  11897. * @returns {number} Returns the index of the matched value, else `-1`.
  11898. * @example
  11899. *
  11900. * _.lastIndexOf([1, 2, 1, 2], 2);
  11901. * // => 3
  11902. *
  11903. * // Search from the `fromIndex`.
  11904. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  11905. * // => 1
  11906. */
  11907. function lastIndexOf(array, value, fromIndex) {
  11908. var length = array == null ? 0 : array.length;
  11909. if (!length) {
  11910. return -1;
  11911. }
  11912. var index = length;
  11913. if (fromIndex !== undefined) {
  11914. index = toInteger(fromIndex);
  11915. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  11916. }
  11917. return value === value
  11918. ? strictLastIndexOf(array, value, index)
  11919. : baseFindIndex(array, baseIsNaN, index, true);
  11920. }
  11921. /**
  11922. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  11923. * element from the end is returned.
  11924. *
  11925. * @static
  11926. * @memberOf _
  11927. * @since 4.11.0
  11928. * @category Array
  11929. * @param {Array} array The array to query.
  11930. * @param {number} [n=0] The index of the element to return.
  11931. * @returns {*} Returns the nth element of `array`.
  11932. * @example
  11933. *
  11934. * var array = ['a', 'b', 'c', 'd'];
  11935. *
  11936. * _.nth(array, 1);
  11937. * // => 'b'
  11938. *
  11939. * _.nth(array, -2);
  11940. * // => 'c';
  11941. */
  11942. function nth(array, n) {
  11943. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  11944. }
  11945. /**
  11946. * Removes all given values from `array` using
  11947. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11948. * for equality comparisons.
  11949. *
  11950. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  11951. * to remove elements from an array by predicate.
  11952. *
  11953. * @static
  11954. * @memberOf _
  11955. * @since 2.0.0
  11956. * @category Array
  11957. * @param {Array} array The array to modify.
  11958. * @param {...*} [values] The values to remove.
  11959. * @returns {Array} Returns `array`.
  11960. * @example
  11961. *
  11962. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  11963. *
  11964. * _.pull(array, 'a', 'c');
  11965. * console.log(array);
  11966. * // => ['b', 'b']
  11967. */
  11968. var pull = baseRest(pullAll);
  11969. /**
  11970. * This method is like `_.pull` except that it accepts an array of values to remove.
  11971. *
  11972. * **Note:** Unlike `_.difference`, this method mutates `array`.
  11973. *
  11974. * @static
  11975. * @memberOf _
  11976. * @since 4.0.0
  11977. * @category Array
  11978. * @param {Array} array The array to modify.
  11979. * @param {Array} values The values to remove.
  11980. * @returns {Array} Returns `array`.
  11981. * @example
  11982. *
  11983. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  11984. *
  11985. * _.pullAll(array, ['a', 'c']);
  11986. * console.log(array);
  11987. * // => ['b', 'b']
  11988. */
  11989. function pullAll(array, values) {
  11990. return (array && array.length && values && values.length)
  11991. ? basePullAll(array, values)
  11992. : array;
  11993. }
  11994. /**
  11995. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  11996. * invoked for each element of `array` and `values` to generate the criterion
  11997. * by which they're compared. The iteratee is invoked with one argument: (value).
  11998. *
  11999. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  12000. *
  12001. * @static
  12002. * @memberOf _
  12003. * @since 4.0.0
  12004. * @category Array
  12005. * @param {Array} array The array to modify.
  12006. * @param {Array} values The values to remove.
  12007. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12008. * @returns {Array} Returns `array`.
  12009. * @example
  12010. *
  12011. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  12012. *
  12013. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  12014. * console.log(array);
  12015. * // => [{ 'x': 2 }]
  12016. */
  12017. function pullAllBy(array, values, iteratee) {
  12018. return (array && array.length && values && values.length)
  12019. ? basePullAll(array, values, getIteratee(iteratee, 2))
  12020. : array;
  12021. }
  12022. /**
  12023. * This method is like `_.pullAll` except that it accepts `comparator` which
  12024. * is invoked to compare elements of `array` to `values`. The comparator is
  12025. * invoked with two arguments: (arrVal, othVal).
  12026. *
  12027. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  12028. *
  12029. * @static
  12030. * @memberOf _
  12031. * @since 4.6.0
  12032. * @category Array
  12033. * @param {Array} array The array to modify.
  12034. * @param {Array} values The values to remove.
  12035. * @param {Function} [comparator] The comparator invoked per element.
  12036. * @returns {Array} Returns `array`.
  12037. * @example
  12038. *
  12039. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  12040. *
  12041. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  12042. * console.log(array);
  12043. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  12044. */
  12045. function pullAllWith(array, values, comparator) {
  12046. return (array && array.length && values && values.length)
  12047. ? basePullAll(array, values, undefined, comparator)
  12048. : array;
  12049. }
  12050. /**
  12051. * Removes elements from `array` corresponding to `indexes` and returns an
  12052. * array of removed elements.
  12053. *
  12054. * **Note:** Unlike `_.at`, this method mutates `array`.
  12055. *
  12056. * @static
  12057. * @memberOf _
  12058. * @since 3.0.0
  12059. * @category Array
  12060. * @param {Array} array The array to modify.
  12061. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  12062. * @returns {Array} Returns the new array of removed elements.
  12063. * @example
  12064. *
  12065. * var array = ['a', 'b', 'c', 'd'];
  12066. * var pulled = _.pullAt(array, [1, 3]);
  12067. *
  12068. * console.log(array);
  12069. * // => ['a', 'c']
  12070. *
  12071. * console.log(pulled);
  12072. * // => ['b', 'd']
  12073. */
  12074. var pullAt = flatRest(function(array, indexes) {
  12075. var length = array == null ? 0 : array.length,
  12076. result = baseAt(array, indexes);
  12077. basePullAt(array, arrayMap(indexes, function(index) {
  12078. return isIndex(index, length) ? +index : index;
  12079. }).sort(compareAscending));
  12080. return result;
  12081. });
  12082. /**
  12083. * Removes all elements from `array` that `predicate` returns truthy for
  12084. * and returns an array of the removed elements. The predicate is invoked
  12085. * with three arguments: (value, index, array).
  12086. *
  12087. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  12088. * to pull elements from an array by value.
  12089. *
  12090. * @static
  12091. * @memberOf _
  12092. * @since 2.0.0
  12093. * @category Array
  12094. * @param {Array} array The array to modify.
  12095. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  12096. * @returns {Array} Returns the new array of removed elements.
  12097. * @example
  12098. *
  12099. * var array = [1, 2, 3, 4];
  12100. * var evens = _.remove(array, function(n) {
  12101. * return n % 2 == 0;
  12102. * });
  12103. *
  12104. * console.log(array);
  12105. * // => [1, 3]
  12106. *
  12107. * console.log(evens);
  12108. * // => [2, 4]
  12109. */
  12110. function remove(array, predicate) {
  12111. var result = [];
  12112. if (!(array && array.length)) {
  12113. return result;
  12114. }
  12115. var index = -1,
  12116. indexes = [],
  12117. length = array.length;
  12118. predicate = getIteratee(predicate, 3);
  12119. while (++index < length) {
  12120. var value = array[index];
  12121. if (predicate(value, index, array)) {
  12122. result.push(value);
  12123. indexes.push(index);
  12124. }
  12125. }
  12126. basePullAt(array, indexes);
  12127. return result;
  12128. }
  12129. /**
  12130. * Reverses `array` so that the first element becomes the last, the second
  12131. * element becomes the second to last, and so on.
  12132. *
  12133. * **Note:** This method mutates `array` and is based on
  12134. * [`Array#reverse`](https://mdn.io/Array/reverse).
  12135. *
  12136. * @static
  12137. * @memberOf _
  12138. * @since 4.0.0
  12139. * @category Array
  12140. * @param {Array} array The array to modify.
  12141. * @returns {Array} Returns `array`.
  12142. * @example
  12143. *
  12144. * var array = [1, 2, 3];
  12145. *
  12146. * _.reverse(array);
  12147. * // => [3, 2, 1]
  12148. *
  12149. * console.log(array);
  12150. * // => [3, 2, 1]
  12151. */
  12152. function reverse(array) {
  12153. return array == null ? array : nativeReverse.call(array);
  12154. }
  12155. /**
  12156. * Creates a slice of `array` from `start` up to, but not including, `end`.
  12157. *
  12158. * **Note:** This method is used instead of
  12159. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  12160. * returned.
  12161. *
  12162. * @static
  12163. * @memberOf _
  12164. * @since 3.0.0
  12165. * @category Array
  12166. * @param {Array} array The array to slice.
  12167. * @param {number} [start=0] The start position.
  12168. * @param {number} [end=array.length] The end position.
  12169. * @returns {Array} Returns the slice of `array`.
  12170. */
  12171. function slice(array, start, end) {
  12172. var length = array == null ? 0 : array.length;
  12173. if (!length) {
  12174. return [];
  12175. }
  12176. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  12177. start = 0;
  12178. end = length;
  12179. }
  12180. else {
  12181. start = start == null ? 0 : toInteger(start);
  12182. end = end === undefined ? length : toInteger(end);
  12183. }
  12184. return baseSlice(array, start, end);
  12185. }
  12186. /**
  12187. * Uses a binary search to determine the lowest index at which `value`
  12188. * should be inserted into `array` in order to maintain its sort order.
  12189. *
  12190. * @static
  12191. * @memberOf _
  12192. * @since 0.1.0
  12193. * @category Array
  12194. * @param {Array} array The sorted array to inspect.
  12195. * @param {*} value The value to evaluate.
  12196. * @returns {number} Returns the index at which `value` should be inserted
  12197. * into `array`.
  12198. * @example
  12199. *
  12200. * _.sortedIndex([30, 50], 40);
  12201. * // => 1
  12202. */
  12203. function sortedIndex(array, value) {
  12204. return baseSortedIndex(array, value);
  12205. }
  12206. /**
  12207. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  12208. * which is invoked for `value` and each element of `array` to compute their
  12209. * sort ranking. The iteratee is invoked with one argument: (value).
  12210. *
  12211. * @static
  12212. * @memberOf _
  12213. * @since 4.0.0
  12214. * @category Array
  12215. * @param {Array} array The sorted array to inspect.
  12216. * @param {*} value The value to evaluate.
  12217. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12218. * @returns {number} Returns the index at which `value` should be inserted
  12219. * into `array`.
  12220. * @example
  12221. *
  12222. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  12223. *
  12224. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  12225. * // => 0
  12226. *
  12227. * // The `_.property` iteratee shorthand.
  12228. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  12229. * // => 0
  12230. */
  12231. function sortedIndexBy(array, value, iteratee) {
  12232. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  12233. }
  12234. /**
  12235. * This method is like `_.indexOf` except that it performs a binary
  12236. * search on a sorted `array`.
  12237. *
  12238. * @static
  12239. * @memberOf _
  12240. * @since 4.0.0
  12241. * @category Array
  12242. * @param {Array} array The array to inspect.
  12243. * @param {*} value The value to search for.
  12244. * @returns {number} Returns the index of the matched value, else `-1`.
  12245. * @example
  12246. *
  12247. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  12248. * // => 1
  12249. */
  12250. function sortedIndexOf(array, value) {
  12251. var length = array == null ? 0 : array.length;
  12252. if (length) {
  12253. var index = baseSortedIndex(array, value);
  12254. if (index < length && eq(array[index], value)) {
  12255. return index;
  12256. }
  12257. }
  12258. return -1;
  12259. }
  12260. /**
  12261. * This method is like `_.sortedIndex` except that it returns the highest
  12262. * index at which `value` should be inserted into `array` in order to
  12263. * maintain its sort order.
  12264. *
  12265. * @static
  12266. * @memberOf _
  12267. * @since 3.0.0
  12268. * @category Array
  12269. * @param {Array} array The sorted array to inspect.
  12270. * @param {*} value The value to evaluate.
  12271. * @returns {number} Returns the index at which `value` should be inserted
  12272. * into `array`.
  12273. * @example
  12274. *
  12275. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  12276. * // => 4
  12277. */
  12278. function sortedLastIndex(array, value) {
  12279. return baseSortedIndex(array, value, true);
  12280. }
  12281. /**
  12282. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  12283. * which is invoked for `value` and each element of `array` to compute their
  12284. * sort ranking. The iteratee is invoked with one argument: (value).
  12285. *
  12286. * @static
  12287. * @memberOf _
  12288. * @since 4.0.0
  12289. * @category Array
  12290. * @param {Array} array The sorted array to inspect.
  12291. * @param {*} value The value to evaluate.
  12292. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12293. * @returns {number} Returns the index at which `value` should be inserted
  12294. * into `array`.
  12295. * @example
  12296. *
  12297. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  12298. *
  12299. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  12300. * // => 1
  12301. *
  12302. * // The `_.property` iteratee shorthand.
  12303. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  12304. * // => 1
  12305. */
  12306. function sortedLastIndexBy(array, value, iteratee) {
  12307. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  12308. }
  12309. /**
  12310. * This method is like `_.lastIndexOf` except that it performs a binary
  12311. * search on a sorted `array`.
  12312. *
  12313. * @static
  12314. * @memberOf _
  12315. * @since 4.0.0
  12316. * @category Array
  12317. * @param {Array} array The array to inspect.
  12318. * @param {*} value The value to search for.
  12319. * @returns {number} Returns the index of the matched value, else `-1`.
  12320. * @example
  12321. *
  12322. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  12323. * // => 3
  12324. */
  12325. function sortedLastIndexOf(array, value) {
  12326. var length = array == null ? 0 : array.length;
  12327. if (length) {
  12328. var index = baseSortedIndex(array, value, true) - 1;
  12329. if (eq(array[index], value)) {
  12330. return index;
  12331. }
  12332. }
  12333. return -1;
  12334. }
  12335. /**
  12336. * This method is like `_.uniq` except that it's designed and optimized
  12337. * for sorted arrays.
  12338. *
  12339. * @static
  12340. * @memberOf _
  12341. * @since 4.0.0
  12342. * @category Array
  12343. * @param {Array} array The array to inspect.
  12344. * @returns {Array} Returns the new duplicate free array.
  12345. * @example
  12346. *
  12347. * _.sortedUniq([1, 1, 2]);
  12348. * // => [1, 2]
  12349. */
  12350. function sortedUniq(array) {
  12351. return (array && array.length)
  12352. ? baseSortedUniq(array)
  12353. : [];
  12354. }
  12355. /**
  12356. * This method is like `_.uniqBy` except that it's designed and optimized
  12357. * for sorted arrays.
  12358. *
  12359. * @static
  12360. * @memberOf _
  12361. * @since 4.0.0
  12362. * @category Array
  12363. * @param {Array} array The array to inspect.
  12364. * @param {Function} [iteratee] The iteratee invoked per element.
  12365. * @returns {Array} Returns the new duplicate free array.
  12366. * @example
  12367. *
  12368. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  12369. * // => [1.1, 2.3]
  12370. */
  12371. function sortedUniqBy(array, iteratee) {
  12372. return (array && array.length)
  12373. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  12374. : [];
  12375. }
  12376. /**
  12377. * Gets all but the first element of `array`.
  12378. *
  12379. * @static
  12380. * @memberOf _
  12381. * @since 4.0.0
  12382. * @category Array
  12383. * @param {Array} array The array to query.
  12384. * @returns {Array} Returns the slice of `array`.
  12385. * @example
  12386. *
  12387. * _.tail([1, 2, 3]);
  12388. * // => [2, 3]
  12389. */
  12390. function tail(array) {
  12391. var length = array == null ? 0 : array.length;
  12392. return length ? baseSlice(array, 1, length) : [];
  12393. }
  12394. /**
  12395. * Creates a slice of `array` with `n` elements taken from the beginning.
  12396. *
  12397. * @static
  12398. * @memberOf _
  12399. * @since 0.1.0
  12400. * @category Array
  12401. * @param {Array} array The array to query.
  12402. * @param {number} [n=1] The number of elements to take.
  12403. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  12404. * @returns {Array} Returns the slice of `array`.
  12405. * @example
  12406. *
  12407. * _.take([1, 2, 3]);
  12408. * // => [1]
  12409. *
  12410. * _.take([1, 2, 3], 2);
  12411. * // => [1, 2]
  12412. *
  12413. * _.take([1, 2, 3], 5);
  12414. * // => [1, 2, 3]
  12415. *
  12416. * _.take([1, 2, 3], 0);
  12417. * // => []
  12418. */
  12419. function take(array, n, guard) {
  12420. if (!(array && array.length)) {
  12421. return [];
  12422. }
  12423. n = (guard || n === undefined) ? 1 : toInteger(n);
  12424. return baseSlice(array, 0, n < 0 ? 0 : n);
  12425. }
  12426. /**
  12427. * Creates a slice of `array` with `n` elements taken from the end.
  12428. *
  12429. * @static
  12430. * @memberOf _
  12431. * @since 3.0.0
  12432. * @category Array
  12433. * @param {Array} array The array to query.
  12434. * @param {number} [n=1] The number of elements to take.
  12435. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  12436. * @returns {Array} Returns the slice of `array`.
  12437. * @example
  12438. *
  12439. * _.takeRight([1, 2, 3]);
  12440. * // => [3]
  12441. *
  12442. * _.takeRight([1, 2, 3], 2);
  12443. * // => [2, 3]
  12444. *
  12445. * _.takeRight([1, 2, 3], 5);
  12446. * // => [1, 2, 3]
  12447. *
  12448. * _.takeRight([1, 2, 3], 0);
  12449. * // => []
  12450. */
  12451. function takeRight(array, n, guard) {
  12452. var length = array == null ? 0 : array.length;
  12453. if (!length) {
  12454. return [];
  12455. }
  12456. n = (guard || n === undefined) ? 1 : toInteger(n);
  12457. n = length - n;
  12458. return baseSlice(array, n < 0 ? 0 : n, length);
  12459. }
  12460. /**
  12461. * Creates a slice of `array` with elements taken from the end. Elements are
  12462. * taken until `predicate` returns falsey. The predicate is invoked with
  12463. * three arguments: (value, index, array).
  12464. *
  12465. * @static
  12466. * @memberOf _
  12467. * @since 3.0.0
  12468. * @category Array
  12469. * @param {Array} array The array to query.
  12470. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  12471. * @returns {Array} Returns the slice of `array`.
  12472. * @example
  12473. *
  12474. * var users = [
  12475. * { 'user': 'barney', 'active': true },
  12476. * { 'user': 'fred', 'active': false },
  12477. * { 'user': 'pebbles', 'active': false }
  12478. * ];
  12479. *
  12480. * _.takeRightWhile(users, function(o) { return !o.active; });
  12481. * // => objects for ['fred', 'pebbles']
  12482. *
  12483. * // The `_.matches` iteratee shorthand.
  12484. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  12485. * // => objects for ['pebbles']
  12486. *
  12487. * // The `_.matchesProperty` iteratee shorthand.
  12488. * _.takeRightWhile(users, ['active', false]);
  12489. * // => objects for ['fred', 'pebbles']
  12490. *
  12491. * // The `_.property` iteratee shorthand.
  12492. * _.takeRightWhile(users, 'active');
  12493. * // => []
  12494. */
  12495. function takeRightWhile(array, predicate) {
  12496. return (array && array.length)
  12497. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  12498. : [];
  12499. }
  12500. /**
  12501. * Creates a slice of `array` with elements taken from the beginning. Elements
  12502. * are taken until `predicate` returns falsey. The predicate is invoked with
  12503. * three arguments: (value, index, array).
  12504. *
  12505. * @static
  12506. * @memberOf _
  12507. * @since 3.0.0
  12508. * @category Array
  12509. * @param {Array} array The array to query.
  12510. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  12511. * @returns {Array} Returns the slice of `array`.
  12512. * @example
  12513. *
  12514. * var users = [
  12515. * { 'user': 'barney', 'active': false },
  12516. * { 'user': 'fred', 'active': false },
  12517. * { 'user': 'pebbles', 'active': true }
  12518. * ];
  12519. *
  12520. * _.takeWhile(users, function(o) { return !o.active; });
  12521. * // => objects for ['barney', 'fred']
  12522. *
  12523. * // The `_.matches` iteratee shorthand.
  12524. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  12525. * // => objects for ['barney']
  12526. *
  12527. * // The `_.matchesProperty` iteratee shorthand.
  12528. * _.takeWhile(users, ['active', false]);
  12529. * // => objects for ['barney', 'fred']
  12530. *
  12531. * // The `_.property` iteratee shorthand.
  12532. * _.takeWhile(users, 'active');
  12533. * // => []
  12534. */
  12535. function takeWhile(array, predicate) {
  12536. return (array && array.length)
  12537. ? baseWhile(array, getIteratee(predicate, 3))
  12538. : [];
  12539. }
  12540. /**
  12541. * Creates an array of unique values, in order, from all given arrays using
  12542. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12543. * for equality comparisons.
  12544. *
  12545. * @static
  12546. * @memberOf _
  12547. * @since 0.1.0
  12548. * @category Array
  12549. * @param {...Array} [arrays] The arrays to inspect.
  12550. * @returns {Array} Returns the new array of combined values.
  12551. * @example
  12552. *
  12553. * _.union([2], [1, 2]);
  12554. * // => [2, 1]
  12555. */
  12556. var union = baseRest(function(arrays) {
  12557. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  12558. });
  12559. /**
  12560. * This method is like `_.union` except that it accepts `iteratee` which is
  12561. * invoked for each element of each `arrays` to generate the criterion by
  12562. * which uniqueness is computed. Result values are chosen from the first
  12563. * array in which the value occurs. The iteratee is invoked with one argument:
  12564. * (value).
  12565. *
  12566. * @static
  12567. * @memberOf _
  12568. * @since 4.0.0
  12569. * @category Array
  12570. * @param {...Array} [arrays] The arrays to inspect.
  12571. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12572. * @returns {Array} Returns the new array of combined values.
  12573. * @example
  12574. *
  12575. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  12576. * // => [2.1, 1.2]
  12577. *
  12578. * // The `_.property` iteratee shorthand.
  12579. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  12580. * // => [{ 'x': 1 }, { 'x': 2 }]
  12581. */
  12582. var unionBy = baseRest(function(arrays) {
  12583. var iteratee = last(arrays);
  12584. if (isArrayLikeObject(iteratee)) {
  12585. iteratee = undefined;
  12586. }
  12587. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  12588. });
  12589. /**
  12590. * This method is like `_.union` except that it accepts `comparator` which
  12591. * is invoked to compare elements of `arrays`. Result values are chosen from
  12592. * the first array in which the value occurs. The comparator is invoked
  12593. * with two arguments: (arrVal, othVal).
  12594. *
  12595. * @static
  12596. * @memberOf _
  12597. * @since 4.0.0
  12598. * @category Array
  12599. * @param {...Array} [arrays] The arrays to inspect.
  12600. * @param {Function} [comparator] The comparator invoked per element.
  12601. * @returns {Array} Returns the new array of combined values.
  12602. * @example
  12603. *
  12604. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  12605. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  12606. *
  12607. * _.unionWith(objects, others, _.isEqual);
  12608. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  12609. */
  12610. var unionWith = baseRest(function(arrays) {
  12611. var comparator = last(arrays);
  12612. comparator = typeof comparator == 'function' ? comparator : undefined;
  12613. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  12614. });
  12615. /**
  12616. * Creates a duplicate-free version of an array, using
  12617. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12618. * for equality comparisons, in which only the first occurrence of each element
  12619. * is kept. The order of result values is determined by the order they occur
  12620. * in the array.
  12621. *
  12622. * @static
  12623. * @memberOf _
  12624. * @since 0.1.0
  12625. * @category Array
  12626. * @param {Array} array The array to inspect.
  12627. * @returns {Array} Returns the new duplicate free array.
  12628. * @example
  12629. *
  12630. * _.uniq([2, 1, 2]);
  12631. * // => [2, 1]
  12632. */
  12633. function uniq(array) {
  12634. return (array && array.length) ? baseUniq(array) : [];
  12635. }
  12636. /**
  12637. * This method is like `_.uniq` except that it accepts `iteratee` which is
  12638. * invoked for each element in `array` to generate the criterion by which
  12639. * uniqueness is computed. The order of result values is determined by the
  12640. * order they occur in the array. The iteratee is invoked with one argument:
  12641. * (value).
  12642. *
  12643. * @static
  12644. * @memberOf _
  12645. * @since 4.0.0
  12646. * @category Array
  12647. * @param {Array} array The array to inspect.
  12648. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12649. * @returns {Array} Returns the new duplicate free array.
  12650. * @example
  12651. *
  12652. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  12653. * // => [2.1, 1.2]
  12654. *
  12655. * // The `_.property` iteratee shorthand.
  12656. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  12657. * // => [{ 'x': 1 }, { 'x': 2 }]
  12658. */
  12659. function uniqBy(array, iteratee) {
  12660. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  12661. }
  12662. /**
  12663. * This method is like `_.uniq` except that it accepts `comparator` which
  12664. * is invoked to compare elements of `array`. The order of result values is
  12665. * determined by the order they occur in the array.The comparator is invoked
  12666. * with two arguments: (arrVal, othVal).
  12667. *
  12668. * @static
  12669. * @memberOf _
  12670. * @since 4.0.0
  12671. * @category Array
  12672. * @param {Array} array The array to inspect.
  12673. * @param {Function} [comparator] The comparator invoked per element.
  12674. * @returns {Array} Returns the new duplicate free array.
  12675. * @example
  12676. *
  12677. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  12678. *
  12679. * _.uniqWith(objects, _.isEqual);
  12680. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  12681. */
  12682. function uniqWith(array, comparator) {
  12683. comparator = typeof comparator == 'function' ? comparator : undefined;
  12684. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  12685. }
  12686. /**
  12687. * This method is like `_.zip` except that it accepts an array of grouped
  12688. * elements and creates an array regrouping the elements to their pre-zip
  12689. * configuration.
  12690. *
  12691. * @static
  12692. * @memberOf _
  12693. * @since 1.2.0
  12694. * @category Array
  12695. * @param {Array} array The array of grouped elements to process.
  12696. * @returns {Array} Returns the new array of regrouped elements.
  12697. * @example
  12698. *
  12699. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  12700. * // => [['a', 1, true], ['b', 2, false]]
  12701. *
  12702. * _.unzip(zipped);
  12703. * // => [['a', 'b'], [1, 2], [true, false]]
  12704. */
  12705. function unzip(array) {
  12706. if (!(array && array.length)) {
  12707. return [];
  12708. }
  12709. var length = 0;
  12710. array = arrayFilter(array, function(group) {
  12711. if (isArrayLikeObject(group)) {
  12712. length = nativeMax(group.length, length);
  12713. return true;
  12714. }
  12715. });
  12716. return baseTimes(length, function(index) {
  12717. return arrayMap(array, baseProperty(index));
  12718. });
  12719. }
  12720. /**
  12721. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  12722. * how regrouped values should be combined. The iteratee is invoked with the
  12723. * elements of each group: (...group).
  12724. *
  12725. * @static
  12726. * @memberOf _
  12727. * @since 3.8.0
  12728. * @category Array
  12729. * @param {Array} array The array of grouped elements to process.
  12730. * @param {Function} [iteratee=_.identity] The function to combine
  12731. * regrouped values.
  12732. * @returns {Array} Returns the new array of regrouped elements.
  12733. * @example
  12734. *
  12735. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  12736. * // => [[1, 10, 100], [2, 20, 200]]
  12737. *
  12738. * _.unzipWith(zipped, _.add);
  12739. * // => [3, 30, 300]
  12740. */
  12741. function unzipWith(array, iteratee) {
  12742. if (!(array && array.length)) {
  12743. return [];
  12744. }
  12745. var result = unzip(array);
  12746. if (iteratee == null) {
  12747. return result;
  12748. }
  12749. return arrayMap(result, function(group) {
  12750. return apply(iteratee, undefined, group);
  12751. });
  12752. }
  12753. /**
  12754. * Creates an array excluding all given values using
  12755. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12756. * for equality comparisons.
  12757. *
  12758. * **Note:** Unlike `_.pull`, this method returns a new array.
  12759. *
  12760. * @static
  12761. * @memberOf _
  12762. * @since 0.1.0
  12763. * @category Array
  12764. * @param {Array} array The array to inspect.
  12765. * @param {...*} [values] The values to exclude.
  12766. * @returns {Array} Returns the new array of filtered values.
  12767. * @see _.difference, _.xor
  12768. * @example
  12769. *
  12770. * _.without([2, 1, 2, 3], 1, 2);
  12771. * // => [3]
  12772. */
  12773. var without = baseRest(function(array, values) {
  12774. return isArrayLikeObject(array)
  12775. ? baseDifference(array, values)
  12776. : [];
  12777. });
  12778. /**
  12779. * Creates an array of unique values that is the
  12780. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  12781. * of the given arrays. The order of result values is determined by the order
  12782. * they occur in the arrays.
  12783. *
  12784. * @static
  12785. * @memberOf _
  12786. * @since 2.4.0
  12787. * @category Array
  12788. * @param {...Array} [arrays] The arrays to inspect.
  12789. * @returns {Array} Returns the new array of filtered values.
  12790. * @see _.difference, _.without
  12791. * @example
  12792. *
  12793. * _.xor([2, 1], [2, 3]);
  12794. * // => [1, 3]
  12795. */
  12796. var xor = baseRest(function(arrays) {
  12797. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  12798. });
  12799. /**
  12800. * This method is like `_.xor` except that it accepts `iteratee` which is
  12801. * invoked for each element of each `arrays` to generate the criterion by
  12802. * which by which they're compared. The order of result values is determined
  12803. * by the order they occur in the arrays. The iteratee is invoked with one
  12804. * argument: (value).
  12805. *
  12806. * @static
  12807. * @memberOf _
  12808. * @since 4.0.0
  12809. * @category Array
  12810. * @param {...Array} [arrays] The arrays to inspect.
  12811. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  12812. * @returns {Array} Returns the new array of filtered values.
  12813. * @example
  12814. *
  12815. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  12816. * // => [1.2, 3.4]
  12817. *
  12818. * // The `_.property` iteratee shorthand.
  12819. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  12820. * // => [{ 'x': 2 }]
  12821. */
  12822. var xorBy = baseRest(function(arrays) {
  12823. var iteratee = last(arrays);
  12824. if (isArrayLikeObject(iteratee)) {
  12825. iteratee = undefined;
  12826. }
  12827. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  12828. });
  12829. /**
  12830. * This method is like `_.xor` except that it accepts `comparator` which is
  12831. * invoked to compare elements of `arrays`. The order of result values is
  12832. * determined by the order they occur in the arrays. The comparator is invoked
  12833. * with two arguments: (arrVal, othVal).
  12834. *
  12835. * @static
  12836. * @memberOf _
  12837. * @since 4.0.0
  12838. * @category Array
  12839. * @param {...Array} [arrays] The arrays to inspect.
  12840. * @param {Function} [comparator] The comparator invoked per element.
  12841. * @returns {Array} Returns the new array of filtered values.
  12842. * @example
  12843. *
  12844. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  12845. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  12846. *
  12847. * _.xorWith(objects, others, _.isEqual);
  12848. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  12849. */
  12850. var xorWith = baseRest(function(arrays) {
  12851. var comparator = last(arrays);
  12852. comparator = typeof comparator == 'function' ? comparator : undefined;
  12853. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  12854. });
  12855. /**
  12856. * Creates an array of grouped elements, the first of which contains the
  12857. * first elements of the given arrays, the second of which contains the
  12858. * second elements of the given arrays, and so on.
  12859. *
  12860. * @static
  12861. * @memberOf _
  12862. * @since 0.1.0
  12863. * @category Array
  12864. * @param {...Array} [arrays] The arrays to process.
  12865. * @returns {Array} Returns the new array of grouped elements.
  12866. * @example
  12867. *
  12868. * _.zip(['a', 'b'], [1, 2], [true, false]);
  12869. * // => [['a', 1, true], ['b', 2, false]]
  12870. */
  12871. var zip = baseRest(unzip);
  12872. /**
  12873. * This method is like `_.fromPairs` except that it accepts two arrays,
  12874. * one of property identifiers and one of corresponding values.
  12875. *
  12876. * @static
  12877. * @memberOf _
  12878. * @since 0.4.0
  12879. * @category Array
  12880. * @param {Array} [props=[]] The property identifiers.
  12881. * @param {Array} [values=[]] The property values.
  12882. * @returns {Object} Returns the new object.
  12883. * @example
  12884. *
  12885. * _.zipObject(['a', 'b'], [1, 2]);
  12886. * // => { 'a': 1, 'b': 2 }
  12887. */
  12888. function zipObject(props, values) {
  12889. return baseZipObject(props || [], values || [], assignValue);
  12890. }
  12891. /**
  12892. * This method is like `_.zipObject` except that it supports property paths.
  12893. *
  12894. * @static
  12895. * @memberOf _
  12896. * @since 4.1.0
  12897. * @category Array
  12898. * @param {Array} [props=[]] The property identifiers.
  12899. * @param {Array} [values=[]] The property values.
  12900. * @returns {Object} Returns the new object.
  12901. * @example
  12902. *
  12903. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  12904. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  12905. */
  12906. function zipObjectDeep(props, values) {
  12907. return baseZipObject(props || [], values || [], baseSet);
  12908. }
  12909. /**
  12910. * This method is like `_.zip` except that it accepts `iteratee` to specify
  12911. * how grouped values should be combined. The iteratee is invoked with the
  12912. * elements of each group: (...group).
  12913. *
  12914. * @static
  12915. * @memberOf _
  12916. * @since 3.8.0
  12917. * @category Array
  12918. * @param {...Array} [arrays] The arrays to process.
  12919. * @param {Function} [iteratee=_.identity] The function to combine
  12920. * grouped values.
  12921. * @returns {Array} Returns the new array of grouped elements.
  12922. * @example
  12923. *
  12924. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  12925. * return a + b + c;
  12926. * });
  12927. * // => [111, 222]
  12928. */
  12929. var zipWith = baseRest(function(arrays) {
  12930. var length = arrays.length,
  12931. iteratee = length > 1 ? arrays[length - 1] : undefined;
  12932. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  12933. return unzipWith(arrays, iteratee);
  12934. });
  12935. /*------------------------------------------------------------------------*/
  12936. /**
  12937. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  12938. * chain sequences enabled. The result of such sequences must be unwrapped
  12939. * with `_#value`.
  12940. *
  12941. * @static
  12942. * @memberOf _
  12943. * @since 1.3.0
  12944. * @category Seq
  12945. * @param {*} value The value to wrap.
  12946. * @returns {Object} Returns the new `lodash` wrapper instance.
  12947. * @example
  12948. *
  12949. * var users = [
  12950. * { 'user': 'barney', 'age': 36 },
  12951. * { 'user': 'fred', 'age': 40 },
  12952. * { 'user': 'pebbles', 'age': 1 }
  12953. * ];
  12954. *
  12955. * var youngest = _
  12956. * .chain(users)
  12957. * .sortBy('age')
  12958. * .map(function(o) {
  12959. * return o.user + ' is ' + o.age;
  12960. * })
  12961. * .head()
  12962. * .value();
  12963. * // => 'pebbles is 1'
  12964. */
  12965. function chain(value) {
  12966. var result = lodash(value);
  12967. result.__chain__ = true;
  12968. return result;
  12969. }
  12970. /**
  12971. * This method invokes `interceptor` and returns `value`. The interceptor
  12972. * is invoked with one argument; (value). The purpose of this method is to
  12973. * "tap into" a method chain sequence in order to modify intermediate results.
  12974. *
  12975. * @static
  12976. * @memberOf _
  12977. * @since 0.1.0
  12978. * @category Seq
  12979. * @param {*} value The value to provide to `interceptor`.
  12980. * @param {Function} interceptor The function to invoke.
  12981. * @returns {*} Returns `value`.
  12982. * @example
  12983. *
  12984. * _([1, 2, 3])
  12985. * .tap(function(array) {
  12986. * // Mutate input array.
  12987. * array.pop();
  12988. * })
  12989. * .reverse()
  12990. * .value();
  12991. * // => [2, 1]
  12992. */
  12993. function tap(value, interceptor) {
  12994. interceptor(value);
  12995. return value;
  12996. }
  12997. /**
  12998. * This method is like `_.tap` except that it returns the result of `interceptor`.
  12999. * The purpose of this method is to "pass thru" values replacing intermediate
  13000. * results in a method chain sequence.
  13001. *
  13002. * @static
  13003. * @memberOf _
  13004. * @since 3.0.0
  13005. * @category Seq
  13006. * @param {*} value The value to provide to `interceptor`.
  13007. * @param {Function} interceptor The function to invoke.
  13008. * @returns {*} Returns the result of `interceptor`.
  13009. * @example
  13010. *
  13011. * _(' abc ')
  13012. * .chain()
  13013. * .trim()
  13014. * .thru(function(value) {
  13015. * return [value];
  13016. * })
  13017. * .value();
  13018. * // => ['abc']
  13019. */
  13020. function thru(value, interceptor) {
  13021. return interceptor(value);
  13022. }
  13023. /**
  13024. * This method is the wrapper version of `_.at`.
  13025. *
  13026. * @name at
  13027. * @memberOf _
  13028. * @since 1.0.0
  13029. * @category Seq
  13030. * @param {...(string|string[])} [paths] The property paths to pick.
  13031. * @returns {Object} Returns the new `lodash` wrapper instance.
  13032. * @example
  13033. *
  13034. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  13035. *
  13036. * _(object).at(['a[0].b.c', 'a[1]']).value();
  13037. * // => [3, 4]
  13038. */
  13039. var wrapperAt = flatRest(function(paths) {
  13040. var length = paths.length,
  13041. start = length ? paths[0] : 0,
  13042. value = this.__wrapped__,
  13043. interceptor = function(object) { return baseAt(object, paths); };
  13044. if (length > 1 || this.__actions__.length ||
  13045. !(value instanceof LazyWrapper) || !isIndex(start)) {
  13046. return this.thru(interceptor);
  13047. }
  13048. value = value.slice(start, +start + (length ? 1 : 0));
  13049. value.__actions__.push({
  13050. 'func': thru,
  13051. 'args': [interceptor],
  13052. 'thisArg': undefined
  13053. });
  13054. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  13055. if (length && !array.length) {
  13056. array.push(undefined);
  13057. }
  13058. return array;
  13059. });
  13060. });
  13061. /**
  13062. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  13063. *
  13064. * @name chain
  13065. * @memberOf _
  13066. * @since 0.1.0
  13067. * @category Seq
  13068. * @returns {Object} Returns the new `lodash` wrapper instance.
  13069. * @example
  13070. *
  13071. * var users = [
  13072. * { 'user': 'barney', 'age': 36 },
  13073. * { 'user': 'fred', 'age': 40 }
  13074. * ];
  13075. *
  13076. * // A sequence without explicit chaining.
  13077. * _(users).head();
  13078. * // => { 'user': 'barney', 'age': 36 }
  13079. *
  13080. * // A sequence with explicit chaining.
  13081. * _(users)
  13082. * .chain()
  13083. * .head()
  13084. * .pick('user')
  13085. * .value();
  13086. * // => { 'user': 'barney' }
  13087. */
  13088. function wrapperChain() {
  13089. return chain(this);
  13090. }
  13091. /**
  13092. * Executes the chain sequence and returns the wrapped result.
  13093. *
  13094. * @name commit
  13095. * @memberOf _
  13096. * @since 3.2.0
  13097. * @category Seq
  13098. * @returns {Object} Returns the new `lodash` wrapper instance.
  13099. * @example
  13100. *
  13101. * var array = [1, 2];
  13102. * var wrapped = _(array).push(3);
  13103. *
  13104. * console.log(array);
  13105. * // => [1, 2]
  13106. *
  13107. * wrapped = wrapped.commit();
  13108. * console.log(array);
  13109. * // => [1, 2, 3]
  13110. *
  13111. * wrapped.last();
  13112. * // => 3
  13113. *
  13114. * console.log(array);
  13115. * // => [1, 2, 3]
  13116. */
  13117. function wrapperCommit() {
  13118. return new LodashWrapper(this.value(), this.__chain__);
  13119. }
  13120. /**
  13121. * Gets the next value on a wrapped object following the
  13122. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  13123. *
  13124. * @name next
  13125. * @memberOf _
  13126. * @since 4.0.0
  13127. * @category Seq
  13128. * @returns {Object} Returns the next iterator value.
  13129. * @example
  13130. *
  13131. * var wrapped = _([1, 2]);
  13132. *
  13133. * wrapped.next();
  13134. * // => { 'done': false, 'value': 1 }
  13135. *
  13136. * wrapped.next();
  13137. * // => { 'done': false, 'value': 2 }
  13138. *
  13139. * wrapped.next();
  13140. * // => { 'done': true, 'value': undefined }
  13141. */
  13142. function wrapperNext() {
  13143. if (this.__values__ === undefined) {
  13144. this.__values__ = toArray(this.value());
  13145. }
  13146. var done = this.__index__ >= this.__values__.length,
  13147. value = done ? undefined : this.__values__[this.__index__++];
  13148. return { 'done': done, 'value': value };
  13149. }
  13150. /**
  13151. * Enables the wrapper to be iterable.
  13152. *
  13153. * @name Symbol.iterator
  13154. * @memberOf _
  13155. * @since 4.0.0
  13156. * @category Seq
  13157. * @returns {Object} Returns the wrapper object.
  13158. * @example
  13159. *
  13160. * var wrapped = _([1, 2]);
  13161. *
  13162. * wrapped[Symbol.iterator]() === wrapped;
  13163. * // => true
  13164. *
  13165. * Array.from(wrapped);
  13166. * // => [1, 2]
  13167. */
  13168. function wrapperToIterator() {
  13169. return this;
  13170. }
  13171. /**
  13172. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  13173. *
  13174. * @name plant
  13175. * @memberOf _
  13176. * @since 3.2.0
  13177. * @category Seq
  13178. * @param {*} value The value to plant.
  13179. * @returns {Object} Returns the new `lodash` wrapper instance.
  13180. * @example
  13181. *
  13182. * function square(n) {
  13183. * return n * n;
  13184. * }
  13185. *
  13186. * var wrapped = _([1, 2]).map(square);
  13187. * var other = wrapped.plant([3, 4]);
  13188. *
  13189. * other.value();
  13190. * // => [9, 16]
  13191. *
  13192. * wrapped.value();
  13193. * // => [1, 4]
  13194. */
  13195. function wrapperPlant(value) {
  13196. var result,
  13197. parent = this;
  13198. while (parent instanceof baseLodash) {
  13199. var clone = wrapperClone(parent);
  13200. clone.__index__ = 0;
  13201. clone.__values__ = undefined;
  13202. if (result) {
  13203. previous.__wrapped__ = clone;
  13204. } else {
  13205. result = clone;
  13206. }
  13207. var previous = clone;
  13208. parent = parent.__wrapped__;
  13209. }
  13210. previous.__wrapped__ = value;
  13211. return result;
  13212. }
  13213. /**
  13214. * This method is the wrapper version of `_.reverse`.
  13215. *
  13216. * **Note:** This method mutates the wrapped array.
  13217. *
  13218. * @name reverse
  13219. * @memberOf _
  13220. * @since 0.1.0
  13221. * @category Seq
  13222. * @returns {Object} Returns the new `lodash` wrapper instance.
  13223. * @example
  13224. *
  13225. * var array = [1, 2, 3];
  13226. *
  13227. * _(array).reverse().value()
  13228. * // => [3, 2, 1]
  13229. *
  13230. * console.log(array);
  13231. * // => [3, 2, 1]
  13232. */
  13233. function wrapperReverse() {
  13234. var value = this.__wrapped__;
  13235. if (value instanceof LazyWrapper) {
  13236. var wrapped = value;
  13237. if (this.__actions__.length) {
  13238. wrapped = new LazyWrapper(this);
  13239. }
  13240. wrapped = wrapped.reverse();
  13241. wrapped.__actions__.push({
  13242. 'func': thru,
  13243. 'args': [reverse],
  13244. 'thisArg': undefined
  13245. });
  13246. return new LodashWrapper(wrapped, this.__chain__);
  13247. }
  13248. return this.thru(reverse);
  13249. }
  13250. /**
  13251. * Executes the chain sequence to resolve the unwrapped value.
  13252. *
  13253. * @name value
  13254. * @memberOf _
  13255. * @since 0.1.0
  13256. * @alias toJSON, valueOf
  13257. * @category Seq
  13258. * @returns {*} Returns the resolved unwrapped value.
  13259. * @example
  13260. *
  13261. * _([1, 2, 3]).value();
  13262. * // => [1, 2, 3]
  13263. */
  13264. function wrapperValue() {
  13265. return baseWrapperValue(this.__wrapped__, this.__actions__);
  13266. }
  13267. /*------------------------------------------------------------------------*/
  13268. /**
  13269. * Creates an object composed of keys generated from the results of running
  13270. * each element of `collection` thru `iteratee`. The corresponding value of
  13271. * each key is the number of times the key was returned by `iteratee`. The
  13272. * iteratee is invoked with one argument: (value).
  13273. *
  13274. * @static
  13275. * @memberOf _
  13276. * @since 0.5.0
  13277. * @category Collection
  13278. * @param {Array|Object} collection The collection to iterate over.
  13279. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  13280. * @returns {Object} Returns the composed aggregate object.
  13281. * @example
  13282. *
  13283. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  13284. * // => { '4': 1, '6': 2 }
  13285. *
  13286. * // The `_.property` iteratee shorthand.
  13287. * _.countBy(['one', 'two', 'three'], 'length');
  13288. * // => { '3': 2, '5': 1 }
  13289. */
  13290. var countBy = createAggregator(function(result, value, key) {
  13291. if (hasOwnProperty.call(result, key)) {
  13292. ++result[key];
  13293. } else {
  13294. baseAssignValue(result, key, 1);
  13295. }
  13296. });
  13297. /**
  13298. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  13299. * Iteration is stopped once `predicate` returns falsey. The predicate is
  13300. * invoked with three arguments: (value, index|key, collection).
  13301. *
  13302. * **Note:** This method returns `true` for
  13303. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  13304. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  13305. * elements of empty collections.
  13306. *
  13307. * @static
  13308. * @memberOf _
  13309. * @since 0.1.0
  13310. * @category Collection
  13311. * @param {Array|Object} collection The collection to iterate over.
  13312. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13313. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  13314. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  13315. * else `false`.
  13316. * @example
  13317. *
  13318. * _.every([true, 1, null, 'yes'], Boolean);
  13319. * // => false
  13320. *
  13321. * var users = [
  13322. * { 'user': 'barney', 'age': 36, 'active': false },
  13323. * { 'user': 'fred', 'age': 40, 'active': false }
  13324. * ];
  13325. *
  13326. * // The `_.matches` iteratee shorthand.
  13327. * _.every(users, { 'user': 'barney', 'active': false });
  13328. * // => false
  13329. *
  13330. * // The `_.matchesProperty` iteratee shorthand.
  13331. * _.every(users, ['active', false]);
  13332. * // => true
  13333. *
  13334. * // The `_.property` iteratee shorthand.
  13335. * _.every(users, 'active');
  13336. * // => false
  13337. */
  13338. function every(collection, predicate, guard) {
  13339. var func = isArray(collection) ? arrayEvery : baseEvery;
  13340. if (guard && isIterateeCall(collection, predicate, guard)) {
  13341. predicate = undefined;
  13342. }
  13343. return func(collection, getIteratee(predicate, 3));
  13344. }
  13345. /**
  13346. * Iterates over elements of `collection`, returning an array of all elements
  13347. * `predicate` returns truthy for. The predicate is invoked with three
  13348. * arguments: (value, index|key, collection).
  13349. *
  13350. * **Note:** Unlike `_.remove`, this method returns a new array.
  13351. *
  13352. * @static
  13353. * @memberOf _
  13354. * @since 0.1.0
  13355. * @category Collection
  13356. * @param {Array|Object} collection The collection to iterate over.
  13357. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13358. * @returns {Array} Returns the new filtered array.
  13359. * @see _.reject
  13360. * @example
  13361. *
  13362. * var users = [
  13363. * { 'user': 'barney', 'age': 36, 'active': true },
  13364. * { 'user': 'fred', 'age': 40, 'active': false }
  13365. * ];
  13366. *
  13367. * _.filter(users, function(o) { return !o.active; });
  13368. * // => objects for ['fred']
  13369. *
  13370. * // The `_.matches` iteratee shorthand.
  13371. * _.filter(users, { 'age': 36, 'active': true });
  13372. * // => objects for ['barney']
  13373. *
  13374. * // The `_.matchesProperty` iteratee shorthand.
  13375. * _.filter(users, ['active', false]);
  13376. * // => objects for ['fred']
  13377. *
  13378. * // The `_.property` iteratee shorthand.
  13379. * _.filter(users, 'active');
  13380. * // => objects for ['barney']
  13381. */
  13382. function filter(collection, predicate) {
  13383. var func = isArray(collection) ? arrayFilter : baseFilter;
  13384. return func(collection, getIteratee(predicate, 3));
  13385. }
  13386. /**
  13387. * Iterates over elements of `collection`, returning the first element
  13388. * `predicate` returns truthy for. The predicate is invoked with three
  13389. * arguments: (value, index|key, collection).
  13390. *
  13391. * @static
  13392. * @memberOf _
  13393. * @since 0.1.0
  13394. * @category Collection
  13395. * @param {Array|Object} collection The collection to inspect.
  13396. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13397. * @param {number} [fromIndex=0] The index to search from.
  13398. * @returns {*} Returns the matched element, else `undefined`.
  13399. * @example
  13400. *
  13401. * var users = [
  13402. * { 'user': 'barney', 'age': 36, 'active': true },
  13403. * { 'user': 'fred', 'age': 40, 'active': false },
  13404. * { 'user': 'pebbles', 'age': 1, 'active': true }
  13405. * ];
  13406. *
  13407. * _.find(users, function(o) { return o.age < 40; });
  13408. * // => object for 'barney'
  13409. *
  13410. * // The `_.matches` iteratee shorthand.
  13411. * _.find(users, { 'age': 1, 'active': true });
  13412. * // => object for 'pebbles'
  13413. *
  13414. * // The `_.matchesProperty` iteratee shorthand.
  13415. * _.find(users, ['active', false]);
  13416. * // => object for 'fred'
  13417. *
  13418. * // The `_.property` iteratee shorthand.
  13419. * _.find(users, 'active');
  13420. * // => object for 'barney'
  13421. */
  13422. var find = createFind(findIndex);
  13423. /**
  13424. * This method is like `_.find` except that it iterates over elements of
  13425. * `collection` from right to left.
  13426. *
  13427. * @static
  13428. * @memberOf _
  13429. * @since 2.0.0
  13430. * @category Collection
  13431. * @param {Array|Object} collection The collection to inspect.
  13432. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13433. * @param {number} [fromIndex=collection.length-1] The index to search from.
  13434. * @returns {*} Returns the matched element, else `undefined`.
  13435. * @example
  13436. *
  13437. * _.findLast([1, 2, 3, 4], function(n) {
  13438. * return n % 2 == 1;
  13439. * });
  13440. * // => 3
  13441. */
  13442. var findLast = createFind(findLastIndex);
  13443. /**
  13444. * Creates a flattened array of values by running each element in `collection`
  13445. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  13446. * with three arguments: (value, index|key, collection).
  13447. *
  13448. * @static
  13449. * @memberOf _
  13450. * @since 4.0.0
  13451. * @category Collection
  13452. * @param {Array|Object} collection The collection to iterate over.
  13453. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13454. * @returns {Array} Returns the new flattened array.
  13455. * @example
  13456. *
  13457. * function duplicate(n) {
  13458. * return [n, n];
  13459. * }
  13460. *
  13461. * _.flatMap([1, 2], duplicate);
  13462. * // => [1, 1, 2, 2]
  13463. */
  13464. function flatMap(collection, iteratee) {
  13465. return baseFlatten(map(collection, iteratee), 1);
  13466. }
  13467. /**
  13468. * This method is like `_.flatMap` except that it recursively flattens the
  13469. * mapped results.
  13470. *
  13471. * @static
  13472. * @memberOf _
  13473. * @since 4.7.0
  13474. * @category Collection
  13475. * @param {Array|Object} collection The collection to iterate over.
  13476. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13477. * @returns {Array} Returns the new flattened array.
  13478. * @example
  13479. *
  13480. * function duplicate(n) {
  13481. * return [[[n, n]]];
  13482. * }
  13483. *
  13484. * _.flatMapDeep([1, 2], duplicate);
  13485. * // => [1, 1, 2, 2]
  13486. */
  13487. function flatMapDeep(collection, iteratee) {
  13488. return baseFlatten(map(collection, iteratee), INFINITY);
  13489. }
  13490. /**
  13491. * This method is like `_.flatMap` except that it recursively flattens the
  13492. * mapped results up to `depth` times.
  13493. *
  13494. * @static
  13495. * @memberOf _
  13496. * @since 4.7.0
  13497. * @category Collection
  13498. * @param {Array|Object} collection The collection to iterate over.
  13499. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13500. * @param {number} [depth=1] The maximum recursion depth.
  13501. * @returns {Array} Returns the new flattened array.
  13502. * @example
  13503. *
  13504. * function duplicate(n) {
  13505. * return [[[n, n]]];
  13506. * }
  13507. *
  13508. * _.flatMapDepth([1, 2], duplicate, 2);
  13509. * // => [[1, 1], [2, 2]]
  13510. */
  13511. function flatMapDepth(collection, iteratee, depth) {
  13512. depth = depth === undefined ? 1 : toInteger(depth);
  13513. return baseFlatten(map(collection, iteratee), depth);
  13514. }
  13515. /**
  13516. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  13517. * The iteratee is invoked with three arguments: (value, index|key, collection).
  13518. * Iteratee functions may exit iteration early by explicitly returning `false`.
  13519. *
  13520. * **Note:** As with other "Collections" methods, objects with a "length"
  13521. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  13522. * or `_.forOwn` for object iteration.
  13523. *
  13524. * @static
  13525. * @memberOf _
  13526. * @since 0.1.0
  13527. * @alias each
  13528. * @category Collection
  13529. * @param {Array|Object} collection The collection to iterate over.
  13530. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13531. * @returns {Array|Object} Returns `collection`.
  13532. * @see _.forEachRight
  13533. * @example
  13534. *
  13535. * _.forEach([1, 2], function(value) {
  13536. * console.log(value);
  13537. * });
  13538. * // => Logs `1` then `2`.
  13539. *
  13540. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  13541. * console.log(key);
  13542. * });
  13543. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  13544. */
  13545. function forEach(collection, iteratee) {
  13546. var func = isArray(collection) ? arrayEach : baseEach;
  13547. return func(collection, getIteratee(iteratee, 3));
  13548. }
  13549. /**
  13550. * This method is like `_.forEach` except that it iterates over elements of
  13551. * `collection` from right to left.
  13552. *
  13553. * @static
  13554. * @memberOf _
  13555. * @since 2.0.0
  13556. * @alias eachRight
  13557. * @category Collection
  13558. * @param {Array|Object} collection The collection to iterate over.
  13559. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13560. * @returns {Array|Object} Returns `collection`.
  13561. * @see _.forEach
  13562. * @example
  13563. *
  13564. * _.forEachRight([1, 2], function(value) {
  13565. * console.log(value);
  13566. * });
  13567. * // => Logs `2` then `1`.
  13568. */
  13569. function forEachRight(collection, iteratee) {
  13570. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  13571. return func(collection, getIteratee(iteratee, 3));
  13572. }
  13573. /**
  13574. * Creates an object composed of keys generated from the results of running
  13575. * each element of `collection` thru `iteratee`. The order of grouped values
  13576. * is determined by the order they occur in `collection`. The corresponding
  13577. * value of each key is an array of elements responsible for generating the
  13578. * key. The iteratee is invoked with one argument: (value).
  13579. *
  13580. * @static
  13581. * @memberOf _
  13582. * @since 0.1.0
  13583. * @category Collection
  13584. * @param {Array|Object} collection The collection to iterate over.
  13585. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  13586. * @returns {Object} Returns the composed aggregate object.
  13587. * @example
  13588. *
  13589. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  13590. * // => { '4': [4.2], '6': [6.1, 6.3] }
  13591. *
  13592. * // The `_.property` iteratee shorthand.
  13593. * _.groupBy(['one', 'two', 'three'], 'length');
  13594. * // => { '3': ['one', 'two'], '5': ['three'] }
  13595. */
  13596. var groupBy = createAggregator(function(result, value, key) {
  13597. if (hasOwnProperty.call(result, key)) {
  13598. result[key].push(value);
  13599. } else {
  13600. baseAssignValue(result, key, [value]);
  13601. }
  13602. });
  13603. /**
  13604. * Checks if `value` is in `collection`. If `collection` is a string, it's
  13605. * checked for a substring of `value`, otherwise
  13606. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  13607. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  13608. * the offset from the end of `collection`.
  13609. *
  13610. * @static
  13611. * @memberOf _
  13612. * @since 0.1.0
  13613. * @category Collection
  13614. * @param {Array|Object|string} collection The collection to inspect.
  13615. * @param {*} value The value to search for.
  13616. * @param {number} [fromIndex=0] The index to search from.
  13617. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  13618. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  13619. * @example
  13620. *
  13621. * _.includes([1, 2, 3], 1);
  13622. * // => true
  13623. *
  13624. * _.includes([1, 2, 3], 1, 2);
  13625. * // => false
  13626. *
  13627. * _.includes({ 'a': 1, 'b': 2 }, 1);
  13628. * // => true
  13629. *
  13630. * _.includes('abcd', 'bc');
  13631. * // => true
  13632. */
  13633. function includes(collection, value, fromIndex, guard) {
  13634. collection = isArrayLike(collection) ? collection : values(collection);
  13635. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  13636. var length = collection.length;
  13637. if (fromIndex < 0) {
  13638. fromIndex = nativeMax(length + fromIndex, 0);
  13639. }
  13640. return isString(collection)
  13641. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  13642. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  13643. }
  13644. /**
  13645. * Invokes the method at `path` of each element in `collection`, returning
  13646. * an array of the results of each invoked method. Any additional arguments
  13647. * are provided to each invoked method. If `path` is a function, it's invoked
  13648. * for, and `this` bound to, each element in `collection`.
  13649. *
  13650. * @static
  13651. * @memberOf _
  13652. * @since 4.0.0
  13653. * @category Collection
  13654. * @param {Array|Object} collection The collection to iterate over.
  13655. * @param {Array|Function|string} path The path of the method to invoke or
  13656. * the function invoked per iteration.
  13657. * @param {...*} [args] The arguments to invoke each method with.
  13658. * @returns {Array} Returns the array of results.
  13659. * @example
  13660. *
  13661. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  13662. * // => [[1, 5, 7], [1, 2, 3]]
  13663. *
  13664. * _.invokeMap([123, 456], String.prototype.split, '');
  13665. * // => [['1', '2', '3'], ['4', '5', '6']]
  13666. */
  13667. var invokeMap = baseRest(function(collection, path, args) {
  13668. var index = -1,
  13669. isFunc = typeof path == 'function',
  13670. result = isArrayLike(collection) ? Array(collection.length) : [];
  13671. baseEach(collection, function(value) {
  13672. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  13673. });
  13674. return result;
  13675. });
  13676. /**
  13677. * Creates an object composed of keys generated from the results of running
  13678. * each element of `collection` thru `iteratee`. The corresponding value of
  13679. * each key is the last element responsible for generating the key. The
  13680. * iteratee is invoked with one argument: (value).
  13681. *
  13682. * @static
  13683. * @memberOf _
  13684. * @since 4.0.0
  13685. * @category Collection
  13686. * @param {Array|Object} collection The collection to iterate over.
  13687. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  13688. * @returns {Object} Returns the composed aggregate object.
  13689. * @example
  13690. *
  13691. * var array = [
  13692. * { 'dir': 'left', 'code': 97 },
  13693. * { 'dir': 'right', 'code': 100 }
  13694. * ];
  13695. *
  13696. * _.keyBy(array, function(o) {
  13697. * return String.fromCharCode(o.code);
  13698. * });
  13699. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  13700. *
  13701. * _.keyBy(array, 'dir');
  13702. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  13703. */
  13704. var keyBy = createAggregator(function(result, value, key) {
  13705. baseAssignValue(result, key, value);
  13706. });
  13707. /**
  13708. * Creates an array of values by running each element in `collection` thru
  13709. * `iteratee`. The iteratee is invoked with three arguments:
  13710. * (value, index|key, collection).
  13711. *
  13712. * Many lodash methods are guarded to work as iteratees for methods like
  13713. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  13714. *
  13715. * The guarded methods are:
  13716. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  13717. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  13718. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  13719. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  13720. *
  13721. * @static
  13722. * @memberOf _
  13723. * @since 0.1.0
  13724. * @category Collection
  13725. * @param {Array|Object} collection The collection to iterate over.
  13726. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13727. * @returns {Array} Returns the new mapped array.
  13728. * @example
  13729. *
  13730. * function square(n) {
  13731. * return n * n;
  13732. * }
  13733. *
  13734. * _.map([4, 8], square);
  13735. * // => [16, 64]
  13736. *
  13737. * _.map({ 'a': 4, 'b': 8 }, square);
  13738. * // => [16, 64] (iteration order is not guaranteed)
  13739. *
  13740. * var users = [
  13741. * { 'user': 'barney' },
  13742. * { 'user': 'fred' }
  13743. * ];
  13744. *
  13745. * // The `_.property` iteratee shorthand.
  13746. * _.map(users, 'user');
  13747. * // => ['barney', 'fred']
  13748. */
  13749. function map(collection, iteratee) {
  13750. var func = isArray(collection) ? arrayMap : baseMap;
  13751. return func(collection, getIteratee(iteratee, 3));
  13752. }
  13753. /**
  13754. * This method is like `_.sortBy` except that it allows specifying the sort
  13755. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  13756. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  13757. * descending or "asc" for ascending sort order of corresponding values.
  13758. *
  13759. * @static
  13760. * @memberOf _
  13761. * @since 4.0.0
  13762. * @category Collection
  13763. * @param {Array|Object} collection The collection to iterate over.
  13764. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  13765. * The iteratees to sort by.
  13766. * @param {string[]} [orders] The sort orders of `iteratees`.
  13767. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  13768. * @returns {Array} Returns the new sorted array.
  13769. * @example
  13770. *
  13771. * var users = [
  13772. * { 'user': 'fred', 'age': 48 },
  13773. * { 'user': 'barney', 'age': 34 },
  13774. * { 'user': 'fred', 'age': 40 },
  13775. * { 'user': 'barney', 'age': 36 }
  13776. * ];
  13777. *
  13778. * // Sort by `user` in ascending order and by `age` in descending order.
  13779. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  13780. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  13781. */
  13782. function orderBy(collection, iteratees, orders, guard) {
  13783. if (collection == null) {
  13784. return [];
  13785. }
  13786. if (!isArray(iteratees)) {
  13787. iteratees = iteratees == null ? [] : [iteratees];
  13788. }
  13789. orders = guard ? undefined : orders;
  13790. if (!isArray(orders)) {
  13791. orders = orders == null ? [] : [orders];
  13792. }
  13793. return baseOrderBy(collection, iteratees, orders);
  13794. }
  13795. /**
  13796. * Creates an array of elements split into two groups, the first of which
  13797. * contains elements `predicate` returns truthy for, the second of which
  13798. * contains elements `predicate` returns falsey for. The predicate is
  13799. * invoked with one argument: (value).
  13800. *
  13801. * @static
  13802. * @memberOf _
  13803. * @since 3.0.0
  13804. * @category Collection
  13805. * @param {Array|Object} collection The collection to iterate over.
  13806. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13807. * @returns {Array} Returns the array of grouped elements.
  13808. * @example
  13809. *
  13810. * var users = [
  13811. * { 'user': 'barney', 'age': 36, 'active': false },
  13812. * { 'user': 'fred', 'age': 40, 'active': true },
  13813. * { 'user': 'pebbles', 'age': 1, 'active': false }
  13814. * ];
  13815. *
  13816. * _.partition(users, function(o) { return o.active; });
  13817. * // => objects for [['fred'], ['barney', 'pebbles']]
  13818. *
  13819. * // The `_.matches` iteratee shorthand.
  13820. * _.partition(users, { 'age': 1, 'active': false });
  13821. * // => objects for [['pebbles'], ['barney', 'fred']]
  13822. *
  13823. * // The `_.matchesProperty` iteratee shorthand.
  13824. * _.partition(users, ['active', false]);
  13825. * // => objects for [['barney', 'pebbles'], ['fred']]
  13826. *
  13827. * // The `_.property` iteratee shorthand.
  13828. * _.partition(users, 'active');
  13829. * // => objects for [['fred'], ['barney', 'pebbles']]
  13830. */
  13831. var partition = createAggregator(function(result, value, key) {
  13832. result[key ? 0 : 1].push(value);
  13833. }, function() { return [[], []]; });
  13834. /**
  13835. * Reduces `collection` to a value which is the accumulated result of running
  13836. * each element in `collection` thru `iteratee`, where each successive
  13837. * invocation is supplied the return value of the previous. If `accumulator`
  13838. * is not given, the first element of `collection` is used as the initial
  13839. * value. The iteratee is invoked with four arguments:
  13840. * (accumulator, value, index|key, collection).
  13841. *
  13842. * Many lodash methods are guarded to work as iteratees for methods like
  13843. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  13844. *
  13845. * The guarded methods are:
  13846. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  13847. * and `sortBy`
  13848. *
  13849. * @static
  13850. * @memberOf _
  13851. * @since 0.1.0
  13852. * @category Collection
  13853. * @param {Array|Object} collection The collection to iterate over.
  13854. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13855. * @param {*} [accumulator] The initial value.
  13856. * @returns {*} Returns the accumulated value.
  13857. * @see _.reduceRight
  13858. * @example
  13859. *
  13860. * _.reduce([1, 2], function(sum, n) {
  13861. * return sum + n;
  13862. * }, 0);
  13863. * // => 3
  13864. *
  13865. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  13866. * (result[value] || (result[value] = [])).push(key);
  13867. * return result;
  13868. * }, {});
  13869. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  13870. */
  13871. function reduce(collection, iteratee, accumulator) {
  13872. var func = isArray(collection) ? arrayReduce : baseReduce,
  13873. initAccum = arguments.length < 3;
  13874. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  13875. }
  13876. /**
  13877. * This method is like `_.reduce` except that it iterates over elements of
  13878. * `collection` from right to left.
  13879. *
  13880. * @static
  13881. * @memberOf _
  13882. * @since 0.1.0
  13883. * @category Collection
  13884. * @param {Array|Object} collection The collection to iterate over.
  13885. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  13886. * @param {*} [accumulator] The initial value.
  13887. * @returns {*} Returns the accumulated value.
  13888. * @see _.reduce
  13889. * @example
  13890. *
  13891. * var array = [[0, 1], [2, 3], [4, 5]];
  13892. *
  13893. * _.reduceRight(array, function(flattened, other) {
  13894. * return flattened.concat(other);
  13895. * }, []);
  13896. * // => [4, 5, 2, 3, 0, 1]
  13897. */
  13898. function reduceRight(collection, iteratee, accumulator) {
  13899. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  13900. initAccum = arguments.length < 3;
  13901. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  13902. }
  13903. /**
  13904. * The opposite of `_.filter`; this method returns the elements of `collection`
  13905. * that `predicate` does **not** return truthy for.
  13906. *
  13907. * @static
  13908. * @memberOf _
  13909. * @since 0.1.0
  13910. * @category Collection
  13911. * @param {Array|Object} collection The collection to iterate over.
  13912. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  13913. * @returns {Array} Returns the new filtered array.
  13914. * @see _.filter
  13915. * @example
  13916. *
  13917. * var users = [
  13918. * { 'user': 'barney', 'age': 36, 'active': false },
  13919. * { 'user': 'fred', 'age': 40, 'active': true }
  13920. * ];
  13921. *
  13922. * _.reject(users, function(o) { return !o.active; });
  13923. * // => objects for ['fred']
  13924. *
  13925. * // The `_.matches` iteratee shorthand.
  13926. * _.reject(users, { 'age': 40, 'active': true });
  13927. * // => objects for ['barney']
  13928. *
  13929. * // The `_.matchesProperty` iteratee shorthand.
  13930. * _.reject(users, ['active', false]);
  13931. * // => objects for ['fred']
  13932. *
  13933. * // The `_.property` iteratee shorthand.
  13934. * _.reject(users, 'active');
  13935. * // => objects for ['barney']
  13936. */
  13937. function reject(collection, predicate) {
  13938. var func = isArray(collection) ? arrayFilter : baseFilter;
  13939. return func(collection, negate(getIteratee(predicate, 3)));
  13940. }
  13941. /**
  13942. * Gets a random element from `collection`.
  13943. *
  13944. * @static
  13945. * @memberOf _
  13946. * @since 2.0.0
  13947. * @category Collection
  13948. * @param {Array|Object} collection The collection to sample.
  13949. * @returns {*} Returns the random element.
  13950. * @example
  13951. *
  13952. * _.sample([1, 2, 3, 4]);
  13953. * // => 2
  13954. */
  13955. function sample(collection) {
  13956. var func = isArray(collection) ? arraySample : baseSample;
  13957. return func(collection);
  13958. }
  13959. /**
  13960. * Gets `n` random elements at unique keys from `collection` up to the
  13961. * size of `collection`.
  13962. *
  13963. * @static
  13964. * @memberOf _
  13965. * @since 4.0.0
  13966. * @category Collection
  13967. * @param {Array|Object} collection The collection to sample.
  13968. * @param {number} [n=1] The number of elements to sample.
  13969. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  13970. * @returns {Array} Returns the random elements.
  13971. * @example
  13972. *
  13973. * _.sampleSize([1, 2, 3], 2);
  13974. * // => [3, 1]
  13975. *
  13976. * _.sampleSize([1, 2, 3], 4);
  13977. * // => [2, 3, 1]
  13978. */
  13979. function sampleSize(collection, n, guard) {
  13980. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  13981. n = 1;
  13982. } else {
  13983. n = toInteger(n);
  13984. }
  13985. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  13986. return func(collection, n);
  13987. }
  13988. /**
  13989. * Creates an array of shuffled values, using a version of the
  13990. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  13991. *
  13992. * @static
  13993. * @memberOf _
  13994. * @since 0.1.0
  13995. * @category Collection
  13996. * @param {Array|Object} collection The collection to shuffle.
  13997. * @returns {Array} Returns the new shuffled array.
  13998. * @example
  13999. *
  14000. * _.shuffle([1, 2, 3, 4]);
  14001. * // => [4, 1, 3, 2]
  14002. */
  14003. function shuffle(collection) {
  14004. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  14005. return func(collection);
  14006. }
  14007. /**
  14008. * Gets the size of `collection` by returning its length for array-like
  14009. * values or the number of own enumerable string keyed properties for objects.
  14010. *
  14011. * @static
  14012. * @memberOf _
  14013. * @since 0.1.0
  14014. * @category Collection
  14015. * @param {Array|Object|string} collection The collection to inspect.
  14016. * @returns {number} Returns the collection size.
  14017. * @example
  14018. *
  14019. * _.size([1, 2, 3]);
  14020. * // => 3
  14021. *
  14022. * _.size({ 'a': 1, 'b': 2 });
  14023. * // => 2
  14024. *
  14025. * _.size('pebbles');
  14026. * // => 7
  14027. */
  14028. function size(collection) {
  14029. if (collection == null) {
  14030. return 0;
  14031. }
  14032. if (isArrayLike(collection)) {
  14033. return isString(collection) ? stringSize(collection) : collection.length;
  14034. }
  14035. var tag = getTag(collection);
  14036. if (tag == mapTag || tag == setTag) {
  14037. return collection.size;
  14038. }
  14039. return baseKeys(collection).length;
  14040. }
  14041. /**
  14042. * Checks if `predicate` returns truthy for **any** element of `collection`.
  14043. * Iteration is stopped once `predicate` returns truthy. The predicate is
  14044. * invoked with three arguments: (value, index|key, collection).
  14045. *
  14046. * @static
  14047. * @memberOf _
  14048. * @since 0.1.0
  14049. * @category Collection
  14050. * @param {Array|Object} collection The collection to iterate over.
  14051. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14052. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14053. * @returns {boolean} Returns `true` if any element passes the predicate check,
  14054. * else `false`.
  14055. * @example
  14056. *
  14057. * _.some([null, 0, 'yes', false], Boolean);
  14058. * // => true
  14059. *
  14060. * var users = [
  14061. * { 'user': 'barney', 'active': true },
  14062. * { 'user': 'fred', 'active': false }
  14063. * ];
  14064. *
  14065. * // The `_.matches` iteratee shorthand.
  14066. * _.some(users, { 'user': 'barney', 'active': false });
  14067. * // => false
  14068. *
  14069. * // The `_.matchesProperty` iteratee shorthand.
  14070. * _.some(users, ['active', false]);
  14071. * // => true
  14072. *
  14073. * // The `_.property` iteratee shorthand.
  14074. * _.some(users, 'active');
  14075. * // => true
  14076. */
  14077. function some(collection, predicate, guard) {
  14078. var func = isArray(collection) ? arraySome : baseSome;
  14079. if (guard && isIterateeCall(collection, predicate, guard)) {
  14080. predicate = undefined;
  14081. }
  14082. return func(collection, getIteratee(predicate, 3));
  14083. }
  14084. /**
  14085. * Creates an array of elements, sorted in ascending order by the results of
  14086. * running each element in a collection thru each iteratee. This method
  14087. * performs a stable sort, that is, it preserves the original sort order of
  14088. * equal elements. The iteratees are invoked with one argument: (value).
  14089. *
  14090. * @static
  14091. * @memberOf _
  14092. * @since 0.1.0
  14093. * @category Collection
  14094. * @param {Array|Object} collection The collection to iterate over.
  14095. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  14096. * The iteratees to sort by.
  14097. * @returns {Array} Returns the new sorted array.
  14098. * @example
  14099. *
  14100. * var users = [
  14101. * { 'user': 'fred', 'age': 48 },
  14102. * { 'user': 'barney', 'age': 36 },
  14103. * { 'user': 'fred', 'age': 40 },
  14104. * { 'user': 'barney', 'age': 34 }
  14105. * ];
  14106. *
  14107. * _.sortBy(users, [function(o) { return o.user; }]);
  14108. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  14109. *
  14110. * _.sortBy(users, ['user', 'age']);
  14111. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  14112. */
  14113. var sortBy = baseRest(function(collection, iteratees) {
  14114. if (collection == null) {
  14115. return [];
  14116. }
  14117. var length = iteratees.length;
  14118. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  14119. iteratees = [];
  14120. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  14121. iteratees = [iteratees[0]];
  14122. }
  14123. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  14124. });
  14125. /*------------------------------------------------------------------------*/
  14126. /**
  14127. * Gets the timestamp of the number of milliseconds that have elapsed since
  14128. * the Unix epoch (1 January 1970 00:00:00 UTC).
  14129. *
  14130. * @static
  14131. * @memberOf _
  14132. * @since 2.4.0
  14133. * @category Date
  14134. * @returns {number} Returns the timestamp.
  14135. * @example
  14136. *
  14137. * _.defer(function(stamp) {
  14138. * console.log(_.now() - stamp);
  14139. * }, _.now());
  14140. * // => Logs the number of milliseconds it took for the deferred invocation.
  14141. */
  14142. var now = ctxNow || function() {
  14143. return root.Date.now();
  14144. };
  14145. /*------------------------------------------------------------------------*/
  14146. /**
  14147. * The opposite of `_.before`; this method creates a function that invokes
  14148. * `func` once it's called `n` or more times.
  14149. *
  14150. * @static
  14151. * @memberOf _
  14152. * @since 0.1.0
  14153. * @category Function
  14154. * @param {number} n The number of calls before `func` is invoked.
  14155. * @param {Function} func The function to restrict.
  14156. * @returns {Function} Returns the new restricted function.
  14157. * @example
  14158. *
  14159. * var saves = ['profile', 'settings'];
  14160. *
  14161. * var done = _.after(saves.length, function() {
  14162. * console.log('done saving!');
  14163. * });
  14164. *
  14165. * _.forEach(saves, function(type) {
  14166. * asyncSave({ 'type': type, 'complete': done });
  14167. * });
  14168. * // => Logs 'done saving!' after the two async saves have completed.
  14169. */
  14170. function after(n, func) {
  14171. if (typeof func != 'function') {
  14172. throw new TypeError(FUNC_ERROR_TEXT);
  14173. }
  14174. n = toInteger(n);
  14175. return function() {
  14176. if (--n < 1) {
  14177. return func.apply(this, arguments);
  14178. }
  14179. };
  14180. }
  14181. /**
  14182. * Creates a function that invokes `func`, with up to `n` arguments,
  14183. * ignoring any additional arguments.
  14184. *
  14185. * @static
  14186. * @memberOf _
  14187. * @since 3.0.0
  14188. * @category Function
  14189. * @param {Function} func The function to cap arguments for.
  14190. * @param {number} [n=func.length] The arity cap.
  14191. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14192. * @returns {Function} Returns the new capped function.
  14193. * @example
  14194. *
  14195. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  14196. * // => [6, 8, 10]
  14197. */
  14198. function ary(func, n, guard) {
  14199. n = guard ? undefined : n;
  14200. n = (func && n == null) ? func.length : n;
  14201. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  14202. }
  14203. /**
  14204. * Creates a function that invokes `func`, with the `this` binding and arguments
  14205. * of the created function, while it's called less than `n` times. Subsequent
  14206. * calls to the created function return the result of the last `func` invocation.
  14207. *
  14208. * @static
  14209. * @memberOf _
  14210. * @since 3.0.0
  14211. * @category Function
  14212. * @param {number} n The number of calls at which `func` is no longer invoked.
  14213. * @param {Function} func The function to restrict.
  14214. * @returns {Function} Returns the new restricted function.
  14215. * @example
  14216. *
  14217. * jQuery(element).on('click', _.before(5, addContactToList));
  14218. * // => Allows adding up to 4 contacts to the list.
  14219. */
  14220. function before(n, func) {
  14221. var result;
  14222. if (typeof func != 'function') {
  14223. throw new TypeError(FUNC_ERROR_TEXT);
  14224. }
  14225. n = toInteger(n);
  14226. return function() {
  14227. if (--n > 0) {
  14228. result = func.apply(this, arguments);
  14229. }
  14230. if (n <= 1) {
  14231. func = undefined;
  14232. }
  14233. return result;
  14234. };
  14235. }
  14236. /**
  14237. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  14238. * and `partials` prepended to the arguments it receives.
  14239. *
  14240. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  14241. * may be used as a placeholder for partially applied arguments.
  14242. *
  14243. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  14244. * property of bound functions.
  14245. *
  14246. * @static
  14247. * @memberOf _
  14248. * @since 0.1.0
  14249. * @category Function
  14250. * @param {Function} func The function to bind.
  14251. * @param {*} thisArg The `this` binding of `func`.
  14252. * @param {...*} [partials] The arguments to be partially applied.
  14253. * @returns {Function} Returns the new bound function.
  14254. * @example
  14255. *
  14256. * function greet(greeting, punctuation) {
  14257. * return greeting + ' ' + this.user + punctuation;
  14258. * }
  14259. *
  14260. * var object = { 'user': 'fred' };
  14261. *
  14262. * var bound = _.bind(greet, object, 'hi');
  14263. * bound('!');
  14264. * // => 'hi fred!'
  14265. *
  14266. * // Bound with placeholders.
  14267. * var bound = _.bind(greet, object, _, '!');
  14268. * bound('hi');
  14269. * // => 'hi fred!'
  14270. */
  14271. var bind = baseRest(function(func, thisArg, partials) {
  14272. var bitmask = WRAP_BIND_FLAG;
  14273. if (partials.length) {
  14274. var holders = replaceHolders(partials, getHolder(bind));
  14275. bitmask |= WRAP_PARTIAL_FLAG;
  14276. }
  14277. return createWrap(func, bitmask, thisArg, partials, holders);
  14278. });
  14279. /**
  14280. * Creates a function that invokes the method at `object[key]` with `partials`
  14281. * prepended to the arguments it receives.
  14282. *
  14283. * This method differs from `_.bind` by allowing bound functions to reference
  14284. * methods that may be redefined or don't yet exist. See
  14285. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  14286. * for more details.
  14287. *
  14288. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  14289. * builds, may be used as a placeholder for partially applied arguments.
  14290. *
  14291. * @static
  14292. * @memberOf _
  14293. * @since 0.10.0
  14294. * @category Function
  14295. * @param {Object} object The object to invoke the method on.
  14296. * @param {string} key The key of the method.
  14297. * @param {...*} [partials] The arguments to be partially applied.
  14298. * @returns {Function} Returns the new bound function.
  14299. * @example
  14300. *
  14301. * var object = {
  14302. * 'user': 'fred',
  14303. * 'greet': function(greeting, punctuation) {
  14304. * return greeting + ' ' + this.user + punctuation;
  14305. * }
  14306. * };
  14307. *
  14308. * var bound = _.bindKey(object, 'greet', 'hi');
  14309. * bound('!');
  14310. * // => 'hi fred!'
  14311. *
  14312. * object.greet = function(greeting, punctuation) {
  14313. * return greeting + 'ya ' + this.user + punctuation;
  14314. * };
  14315. *
  14316. * bound('!');
  14317. * // => 'hiya fred!'
  14318. *
  14319. * // Bound with placeholders.
  14320. * var bound = _.bindKey(object, 'greet', _, '!');
  14321. * bound('hi');
  14322. * // => 'hiya fred!'
  14323. */
  14324. var bindKey = baseRest(function(object, key, partials) {
  14325. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  14326. if (partials.length) {
  14327. var holders = replaceHolders(partials, getHolder(bindKey));
  14328. bitmask |= WRAP_PARTIAL_FLAG;
  14329. }
  14330. return createWrap(key, bitmask, object, partials, holders);
  14331. });
  14332. /**
  14333. * Creates a function that accepts arguments of `func` and either invokes
  14334. * `func` returning its result, if at least `arity` number of arguments have
  14335. * been provided, or returns a function that accepts the remaining `func`
  14336. * arguments, and so on. The arity of `func` may be specified if `func.length`
  14337. * is not sufficient.
  14338. *
  14339. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  14340. * may be used as a placeholder for provided arguments.
  14341. *
  14342. * **Note:** This method doesn't set the "length" property of curried functions.
  14343. *
  14344. * @static
  14345. * @memberOf _
  14346. * @since 2.0.0
  14347. * @category Function
  14348. * @param {Function} func The function to curry.
  14349. * @param {number} [arity=func.length] The arity of `func`.
  14350. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14351. * @returns {Function} Returns the new curried function.
  14352. * @example
  14353. *
  14354. * var abc = function(a, b, c) {
  14355. * return [a, b, c];
  14356. * };
  14357. *
  14358. * var curried = _.curry(abc);
  14359. *
  14360. * curried(1)(2)(3);
  14361. * // => [1, 2, 3]
  14362. *
  14363. * curried(1, 2)(3);
  14364. * // => [1, 2, 3]
  14365. *
  14366. * curried(1, 2, 3);
  14367. * // => [1, 2, 3]
  14368. *
  14369. * // Curried with placeholders.
  14370. * curried(1)(_, 3)(2);
  14371. * // => [1, 2, 3]
  14372. */
  14373. function curry(func, arity, guard) {
  14374. arity = guard ? undefined : arity;
  14375. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  14376. result.placeholder = curry.placeholder;
  14377. return result;
  14378. }
  14379. /**
  14380. * This method is like `_.curry` except that arguments are applied to `func`
  14381. * in the manner of `_.partialRight` instead of `_.partial`.
  14382. *
  14383. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  14384. * builds, may be used as a placeholder for provided arguments.
  14385. *
  14386. * **Note:** This method doesn't set the "length" property of curried functions.
  14387. *
  14388. * @static
  14389. * @memberOf _
  14390. * @since 3.0.0
  14391. * @category Function
  14392. * @param {Function} func The function to curry.
  14393. * @param {number} [arity=func.length] The arity of `func`.
  14394. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  14395. * @returns {Function} Returns the new curried function.
  14396. * @example
  14397. *
  14398. * var abc = function(a, b, c) {
  14399. * return [a, b, c];
  14400. * };
  14401. *
  14402. * var curried = _.curryRight(abc);
  14403. *
  14404. * curried(3)(2)(1);
  14405. * // => [1, 2, 3]
  14406. *
  14407. * curried(2, 3)(1);
  14408. * // => [1, 2, 3]
  14409. *
  14410. * curried(1, 2, 3);
  14411. * // => [1, 2, 3]
  14412. *
  14413. * // Curried with placeholders.
  14414. * curried(3)(1, _)(2);
  14415. * // => [1, 2, 3]
  14416. */
  14417. function curryRight(func, arity, guard) {
  14418. arity = guard ? undefined : arity;
  14419. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  14420. result.placeholder = curryRight.placeholder;
  14421. return result;
  14422. }
  14423. /**
  14424. * Creates a debounced function that delays invoking `func` until after `wait`
  14425. * milliseconds have elapsed since the last time the debounced function was
  14426. * invoked. The debounced function comes with a `cancel` method to cancel
  14427. * delayed `func` invocations and a `flush` method to immediately invoke them.
  14428. * Provide `options` to indicate whether `func` should be invoked on the
  14429. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  14430. * with the last arguments provided to the debounced function. Subsequent
  14431. * calls to the debounced function return the result of the last `func`
  14432. * invocation.
  14433. *
  14434. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  14435. * invoked on the trailing edge of the timeout only if the debounced function
  14436. * is invoked more than once during the `wait` timeout.
  14437. *
  14438. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  14439. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  14440. *
  14441. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  14442. * for details over the differences between `_.debounce` and `_.throttle`.
  14443. *
  14444. * @static
  14445. * @memberOf _
  14446. * @since 0.1.0
  14447. * @category Function
  14448. * @param {Function} func The function to debounce.
  14449. * @param {number} [wait=0] The number of milliseconds to delay.
  14450. * @param {Object} [options={}] The options object.
  14451. * @param {boolean} [options.leading=false]
  14452. * Specify invoking on the leading edge of the timeout.
  14453. * @param {number} [options.maxWait]
  14454. * The maximum time `func` is allowed to be delayed before it's invoked.
  14455. * @param {boolean} [options.trailing=true]
  14456. * Specify invoking on the trailing edge of the timeout.
  14457. * @returns {Function} Returns the new debounced function.
  14458. * @example
  14459. *
  14460. * // Avoid costly calculations while the window size is in flux.
  14461. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  14462. *
  14463. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  14464. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  14465. * 'leading': true,
  14466. * 'trailing': false
  14467. * }));
  14468. *
  14469. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  14470. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  14471. * var source = new EventSource('/stream');
  14472. * jQuery(source).on('message', debounced);
  14473. *
  14474. * // Cancel the trailing debounced invocation.
  14475. * jQuery(window).on('popstate', debounced.cancel);
  14476. */
  14477. function debounce(func, wait, options) {
  14478. var lastArgs,
  14479. lastThis,
  14480. maxWait,
  14481. result,
  14482. timerId,
  14483. lastCallTime,
  14484. lastInvokeTime = 0,
  14485. leading = false,
  14486. maxing = false,
  14487. trailing = true;
  14488. if (typeof func != 'function') {
  14489. throw new TypeError(FUNC_ERROR_TEXT);
  14490. }
  14491. wait = toNumber(wait) || 0;
  14492. if (isObject(options)) {
  14493. leading = !!options.leading;
  14494. maxing = 'maxWait' in options;
  14495. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  14496. trailing = 'trailing' in options ? !!options.trailing : trailing;
  14497. }
  14498. function invokeFunc(time) {
  14499. var args = lastArgs,
  14500. thisArg = lastThis;
  14501. lastArgs = lastThis = undefined;
  14502. lastInvokeTime = time;
  14503. result = func.apply(thisArg, args);
  14504. return result;
  14505. }
  14506. function leadingEdge(time) {
  14507. // Reset any `maxWait` timer.
  14508. lastInvokeTime = time;
  14509. // Start the timer for the trailing edge.
  14510. timerId = setTimeout(timerExpired, wait);
  14511. // Invoke the leading edge.
  14512. return leading ? invokeFunc(time) : result;
  14513. }
  14514. function remainingWait(time) {
  14515. var timeSinceLastCall = time - lastCallTime,
  14516. timeSinceLastInvoke = time - lastInvokeTime,
  14517. timeWaiting = wait - timeSinceLastCall;
  14518. return maxing
  14519. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  14520. : timeWaiting;
  14521. }
  14522. function shouldInvoke(time) {
  14523. var timeSinceLastCall = time - lastCallTime,
  14524. timeSinceLastInvoke = time - lastInvokeTime;
  14525. // Either this is the first call, activity has stopped and we're at the
  14526. // trailing edge, the system time has gone backwards and we're treating
  14527. // it as the trailing edge, or we've hit the `maxWait` limit.
  14528. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  14529. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  14530. }
  14531. function timerExpired() {
  14532. var time = now();
  14533. if (shouldInvoke(time)) {
  14534. return trailingEdge(time);
  14535. }
  14536. // Restart the timer.
  14537. timerId = setTimeout(timerExpired, remainingWait(time));
  14538. }
  14539. function trailingEdge(time) {
  14540. timerId = undefined;
  14541. // Only invoke if we have `lastArgs` which means `func` has been
  14542. // debounced at least once.
  14543. if (trailing && lastArgs) {
  14544. return invokeFunc(time);
  14545. }
  14546. lastArgs = lastThis = undefined;
  14547. return result;
  14548. }
  14549. function cancel() {
  14550. if (timerId !== undefined) {
  14551. clearTimeout(timerId);
  14552. }
  14553. lastInvokeTime = 0;
  14554. lastArgs = lastCallTime = lastThis = timerId = undefined;
  14555. }
  14556. function flush() {
  14557. return timerId === undefined ? result : trailingEdge(now());
  14558. }
  14559. function debounced() {
  14560. var time = now(),
  14561. isInvoking = shouldInvoke(time);
  14562. lastArgs = arguments;
  14563. lastThis = this;
  14564. lastCallTime = time;
  14565. if (isInvoking) {
  14566. if (timerId === undefined) {
  14567. return leadingEdge(lastCallTime);
  14568. }
  14569. if (maxing) {
  14570. // Handle invocations in a tight loop.
  14571. timerId = setTimeout(timerExpired, wait);
  14572. return invokeFunc(lastCallTime);
  14573. }
  14574. }
  14575. if (timerId === undefined) {
  14576. timerId = setTimeout(timerExpired, wait);
  14577. }
  14578. return result;
  14579. }
  14580. debounced.cancel = cancel;
  14581. debounced.flush = flush;
  14582. return debounced;
  14583. }
  14584. /**
  14585. * Defers invoking the `func` until the current call stack has cleared. Any
  14586. * additional arguments are provided to `func` when it's invoked.
  14587. *
  14588. * @static
  14589. * @memberOf _
  14590. * @since 0.1.0
  14591. * @category Function
  14592. * @param {Function} func The function to defer.
  14593. * @param {...*} [args] The arguments to invoke `func` with.
  14594. * @returns {number} Returns the timer id.
  14595. * @example
  14596. *
  14597. * _.defer(function(text) {
  14598. * console.log(text);
  14599. * }, 'deferred');
  14600. * // => Logs 'deferred' after one millisecond.
  14601. */
  14602. var defer = baseRest(function(func, args) {
  14603. return baseDelay(func, 1, args);
  14604. });
  14605. /**
  14606. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  14607. * provided to `func` when it's invoked.
  14608. *
  14609. * @static
  14610. * @memberOf _
  14611. * @since 0.1.0
  14612. * @category Function
  14613. * @param {Function} func The function to delay.
  14614. * @param {number} wait The number of milliseconds to delay invocation.
  14615. * @param {...*} [args] The arguments to invoke `func` with.
  14616. * @returns {number} Returns the timer id.
  14617. * @example
  14618. *
  14619. * _.delay(function(text) {
  14620. * console.log(text);
  14621. * }, 1000, 'later');
  14622. * // => Logs 'later' after one second.
  14623. */
  14624. var delay = baseRest(function(func, wait, args) {
  14625. return baseDelay(func, toNumber(wait) || 0, args);
  14626. });
  14627. /**
  14628. * Creates a function that invokes `func` with arguments reversed.
  14629. *
  14630. * @static
  14631. * @memberOf _
  14632. * @since 4.0.0
  14633. * @category Function
  14634. * @param {Function} func The function to flip arguments for.
  14635. * @returns {Function} Returns the new flipped function.
  14636. * @example
  14637. *
  14638. * var flipped = _.flip(function() {
  14639. * return _.toArray(arguments);
  14640. * });
  14641. *
  14642. * flipped('a', 'b', 'c', 'd');
  14643. * // => ['d', 'c', 'b', 'a']
  14644. */
  14645. function flip(func) {
  14646. return createWrap(func, WRAP_FLIP_FLAG);
  14647. }
  14648. /**
  14649. * Creates a function that memoizes the result of `func`. If `resolver` is
  14650. * provided, it determines the cache key for storing the result based on the
  14651. * arguments provided to the memoized function. By default, the first argument
  14652. * provided to the memoized function is used as the map cache key. The `func`
  14653. * is invoked with the `this` binding of the memoized function.
  14654. *
  14655. * **Note:** The cache is exposed as the `cache` property on the memoized
  14656. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  14657. * constructor with one whose instances implement the
  14658. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  14659. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  14660. *
  14661. * @static
  14662. * @memberOf _
  14663. * @since 0.1.0
  14664. * @category Function
  14665. * @param {Function} func The function to have its output memoized.
  14666. * @param {Function} [resolver] The function to resolve the cache key.
  14667. * @returns {Function} Returns the new memoized function.
  14668. * @example
  14669. *
  14670. * var object = { 'a': 1, 'b': 2 };
  14671. * var other = { 'c': 3, 'd': 4 };
  14672. *
  14673. * var values = _.memoize(_.values);
  14674. * values(object);
  14675. * // => [1, 2]
  14676. *
  14677. * values(other);
  14678. * // => [3, 4]
  14679. *
  14680. * object.a = 2;
  14681. * values(object);
  14682. * // => [1, 2]
  14683. *
  14684. * // Modify the result cache.
  14685. * values.cache.set(object, ['a', 'b']);
  14686. * values(object);
  14687. * // => ['a', 'b']
  14688. *
  14689. * // Replace `_.memoize.Cache`.
  14690. * _.memoize.Cache = WeakMap;
  14691. */
  14692. function memoize(func, resolver) {
  14693. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  14694. throw new TypeError(FUNC_ERROR_TEXT);
  14695. }
  14696. var memoized = function() {
  14697. var args = arguments,
  14698. key = resolver ? resolver.apply(this, args) : args[0],
  14699. cache = memoized.cache;
  14700. if (cache.has(key)) {
  14701. return cache.get(key);
  14702. }
  14703. var result = func.apply(this, args);
  14704. memoized.cache = cache.set(key, result) || cache;
  14705. return result;
  14706. };
  14707. memoized.cache = new (memoize.Cache || MapCache);
  14708. return memoized;
  14709. }
  14710. // Expose `MapCache`.
  14711. memoize.Cache = MapCache;
  14712. /**
  14713. * Creates a function that negates the result of the predicate `func`. The
  14714. * `func` predicate is invoked with the `this` binding and arguments of the
  14715. * created function.
  14716. *
  14717. * @static
  14718. * @memberOf _
  14719. * @since 3.0.0
  14720. * @category Function
  14721. * @param {Function} predicate The predicate to negate.
  14722. * @returns {Function} Returns the new negated function.
  14723. * @example
  14724. *
  14725. * function isEven(n) {
  14726. * return n % 2 == 0;
  14727. * }
  14728. *
  14729. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  14730. * // => [1, 3, 5]
  14731. */
  14732. function negate(predicate) {
  14733. if (typeof predicate != 'function') {
  14734. throw new TypeError(FUNC_ERROR_TEXT);
  14735. }
  14736. return function() {
  14737. var args = arguments;
  14738. switch (args.length) {
  14739. case 0: return !predicate.call(this);
  14740. case 1: return !predicate.call(this, args[0]);
  14741. case 2: return !predicate.call(this, args[0], args[1]);
  14742. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  14743. }
  14744. return !predicate.apply(this, args);
  14745. };
  14746. }
  14747. /**
  14748. * Creates a function that is restricted to invoking `func` once. Repeat calls
  14749. * to the function return the value of the first invocation. The `func` is
  14750. * invoked with the `this` binding and arguments of the created function.
  14751. *
  14752. * @static
  14753. * @memberOf _
  14754. * @since 0.1.0
  14755. * @category Function
  14756. * @param {Function} func The function to restrict.
  14757. * @returns {Function} Returns the new restricted function.
  14758. * @example
  14759. *
  14760. * var initialize = _.once(createApplication);
  14761. * initialize();
  14762. * initialize();
  14763. * // => `createApplication` is invoked once
  14764. */
  14765. function once(func) {
  14766. return before(2, func);
  14767. }
  14768. /**
  14769. * Creates a function that invokes `func` with its arguments transformed.
  14770. *
  14771. * @static
  14772. * @since 4.0.0
  14773. * @memberOf _
  14774. * @category Function
  14775. * @param {Function} func The function to wrap.
  14776. * @param {...(Function|Function[])} [transforms=[_.identity]]
  14777. * The argument transforms.
  14778. * @returns {Function} Returns the new function.
  14779. * @example
  14780. *
  14781. * function doubled(n) {
  14782. * return n * 2;
  14783. * }
  14784. *
  14785. * function square(n) {
  14786. * return n * n;
  14787. * }
  14788. *
  14789. * var func = _.overArgs(function(x, y) {
  14790. * return [x, y];
  14791. * }, [square, doubled]);
  14792. *
  14793. * func(9, 3);
  14794. * // => [81, 6]
  14795. *
  14796. * func(10, 5);
  14797. * // => [100, 10]
  14798. */
  14799. var overArgs = castRest(function(func, transforms) {
  14800. transforms = (transforms.length == 1 && isArray(transforms[0]))
  14801. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  14802. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  14803. var funcsLength = transforms.length;
  14804. return baseRest(function(args) {
  14805. var index = -1,
  14806. length = nativeMin(args.length, funcsLength);
  14807. while (++index < length) {
  14808. args[index] = transforms[index].call(this, args[index]);
  14809. }
  14810. return apply(func, this, args);
  14811. });
  14812. });
  14813. /**
  14814. * Creates a function that invokes `func` with `partials` prepended to the
  14815. * arguments it receives. This method is like `_.bind` except it does **not**
  14816. * alter the `this` binding.
  14817. *
  14818. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  14819. * builds, may be used as a placeholder for partially applied arguments.
  14820. *
  14821. * **Note:** This method doesn't set the "length" property of partially
  14822. * applied functions.
  14823. *
  14824. * @static
  14825. * @memberOf _
  14826. * @since 0.2.0
  14827. * @category Function
  14828. * @param {Function} func The function to partially apply arguments to.
  14829. * @param {...*} [partials] The arguments to be partially applied.
  14830. * @returns {Function} Returns the new partially applied function.
  14831. * @example
  14832. *
  14833. * function greet(greeting, name) {
  14834. * return greeting + ' ' + name;
  14835. * }
  14836. *
  14837. * var sayHelloTo = _.partial(greet, 'hello');
  14838. * sayHelloTo('fred');
  14839. * // => 'hello fred'
  14840. *
  14841. * // Partially applied with placeholders.
  14842. * var greetFred = _.partial(greet, _, 'fred');
  14843. * greetFred('hi');
  14844. * // => 'hi fred'
  14845. */
  14846. var partial = baseRest(function(func, partials) {
  14847. var holders = replaceHolders(partials, getHolder(partial));
  14848. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  14849. });
  14850. /**
  14851. * This method is like `_.partial` except that partially applied arguments
  14852. * are appended to the arguments it receives.
  14853. *
  14854. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  14855. * builds, may be used as a placeholder for partially applied arguments.
  14856. *
  14857. * **Note:** This method doesn't set the "length" property of partially
  14858. * applied functions.
  14859. *
  14860. * @static
  14861. * @memberOf _
  14862. * @since 1.0.0
  14863. * @category Function
  14864. * @param {Function} func The function to partially apply arguments to.
  14865. * @param {...*} [partials] The arguments to be partially applied.
  14866. * @returns {Function} Returns the new partially applied function.
  14867. * @example
  14868. *
  14869. * function greet(greeting, name) {
  14870. * return greeting + ' ' + name;
  14871. * }
  14872. *
  14873. * var greetFred = _.partialRight(greet, 'fred');
  14874. * greetFred('hi');
  14875. * // => 'hi fred'
  14876. *
  14877. * // Partially applied with placeholders.
  14878. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  14879. * sayHelloTo('fred');
  14880. * // => 'hello fred'
  14881. */
  14882. var partialRight = baseRest(function(func, partials) {
  14883. var holders = replaceHolders(partials, getHolder(partialRight));
  14884. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  14885. });
  14886. /**
  14887. * Creates a function that invokes `func` with arguments arranged according
  14888. * to the specified `indexes` where the argument value at the first index is
  14889. * provided as the first argument, the argument value at the second index is
  14890. * provided as the second argument, and so on.
  14891. *
  14892. * @static
  14893. * @memberOf _
  14894. * @since 3.0.0
  14895. * @category Function
  14896. * @param {Function} func The function to rearrange arguments for.
  14897. * @param {...(number|number[])} indexes The arranged argument indexes.
  14898. * @returns {Function} Returns the new function.
  14899. * @example
  14900. *
  14901. * var rearged = _.rearg(function(a, b, c) {
  14902. * return [a, b, c];
  14903. * }, [2, 0, 1]);
  14904. *
  14905. * rearged('b', 'c', 'a')
  14906. * // => ['a', 'b', 'c']
  14907. */
  14908. var rearg = flatRest(function(func, indexes) {
  14909. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  14910. });
  14911. /**
  14912. * Creates a function that invokes `func` with the `this` binding of the
  14913. * created function and arguments from `start` and beyond provided as
  14914. * an array.
  14915. *
  14916. * **Note:** This method is based on the
  14917. * [rest parameter](https://mdn.io/rest_parameters).
  14918. *
  14919. * @static
  14920. * @memberOf _
  14921. * @since 4.0.0
  14922. * @category Function
  14923. * @param {Function} func The function to apply a rest parameter to.
  14924. * @param {number} [start=func.length-1] The start position of the rest parameter.
  14925. * @returns {Function} Returns the new function.
  14926. * @example
  14927. *
  14928. * var say = _.rest(function(what, names) {
  14929. * return what + ' ' + _.initial(names).join(', ') +
  14930. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  14931. * });
  14932. *
  14933. * say('hello', 'fred', 'barney', 'pebbles');
  14934. * // => 'hello fred, barney, & pebbles'
  14935. */
  14936. function rest(func, start) {
  14937. if (typeof func != 'function') {
  14938. throw new TypeError(FUNC_ERROR_TEXT);
  14939. }
  14940. start = start === undefined ? start : toInteger(start);
  14941. return baseRest(func, start);
  14942. }
  14943. /**
  14944. * Creates a function that invokes `func` with the `this` binding of the
  14945. * create function and an array of arguments much like
  14946. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  14947. *
  14948. * **Note:** This method is based on the
  14949. * [spread operator](https://mdn.io/spread_operator).
  14950. *
  14951. * @static
  14952. * @memberOf _
  14953. * @since 3.2.0
  14954. * @category Function
  14955. * @param {Function} func The function to spread arguments over.
  14956. * @param {number} [start=0] The start position of the spread.
  14957. * @returns {Function} Returns the new function.
  14958. * @example
  14959. *
  14960. * var say = _.spread(function(who, what) {
  14961. * return who + ' says ' + what;
  14962. * });
  14963. *
  14964. * say(['fred', 'hello']);
  14965. * // => 'fred says hello'
  14966. *
  14967. * var numbers = Promise.all([
  14968. * Promise.resolve(40),
  14969. * Promise.resolve(36)
  14970. * ]);
  14971. *
  14972. * numbers.then(_.spread(function(x, y) {
  14973. * return x + y;
  14974. * }));
  14975. * // => a Promise of 76
  14976. */
  14977. function spread(func, start) {
  14978. if (typeof func != 'function') {
  14979. throw new TypeError(FUNC_ERROR_TEXT);
  14980. }
  14981. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  14982. return baseRest(function(args) {
  14983. var array = args[start],
  14984. otherArgs = castSlice(args, 0, start);
  14985. if (array) {
  14986. arrayPush(otherArgs, array);
  14987. }
  14988. return apply(func, this, otherArgs);
  14989. });
  14990. }
  14991. /**
  14992. * Creates a throttled function that only invokes `func` at most once per
  14993. * every `wait` milliseconds. The throttled function comes with a `cancel`
  14994. * method to cancel delayed `func` invocations and a `flush` method to
  14995. * immediately invoke them. Provide `options` to indicate whether `func`
  14996. * should be invoked on the leading and/or trailing edge of the `wait`
  14997. * timeout. The `func` is invoked with the last arguments provided to the
  14998. * throttled function. Subsequent calls to the throttled function return the
  14999. * result of the last `func` invocation.
  15000. *
  15001. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  15002. * invoked on the trailing edge of the timeout only if the throttled function
  15003. * is invoked more than once during the `wait` timeout.
  15004. *
  15005. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  15006. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  15007. *
  15008. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  15009. * for details over the differences between `_.throttle` and `_.debounce`.
  15010. *
  15011. * @static
  15012. * @memberOf _
  15013. * @since 0.1.0
  15014. * @category Function
  15015. * @param {Function} func The function to throttle.
  15016. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  15017. * @param {Object} [options={}] The options object.
  15018. * @param {boolean} [options.leading=true]
  15019. * Specify invoking on the leading edge of the timeout.
  15020. * @param {boolean} [options.trailing=true]
  15021. * Specify invoking on the trailing edge of the timeout.
  15022. * @returns {Function} Returns the new throttled function.
  15023. * @example
  15024. *
  15025. * // Avoid excessively updating the position while scrolling.
  15026. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  15027. *
  15028. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  15029. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  15030. * jQuery(element).on('click', throttled);
  15031. *
  15032. * // Cancel the trailing throttled invocation.
  15033. * jQuery(window).on('popstate', throttled.cancel);
  15034. */
  15035. function throttle(func, wait, options) {
  15036. var leading = true,
  15037. trailing = true;
  15038. if (typeof func != 'function') {
  15039. throw new TypeError(FUNC_ERROR_TEXT);
  15040. }
  15041. if (isObject(options)) {
  15042. leading = 'leading' in options ? !!options.leading : leading;
  15043. trailing = 'trailing' in options ? !!options.trailing : trailing;
  15044. }
  15045. return debounce(func, wait, {
  15046. 'leading': leading,
  15047. 'maxWait': wait,
  15048. 'trailing': trailing
  15049. });
  15050. }
  15051. /**
  15052. * Creates a function that accepts up to one argument, ignoring any
  15053. * additional arguments.
  15054. *
  15055. * @static
  15056. * @memberOf _
  15057. * @since 4.0.0
  15058. * @category Function
  15059. * @param {Function} func The function to cap arguments for.
  15060. * @returns {Function} Returns the new capped function.
  15061. * @example
  15062. *
  15063. * _.map(['6', '8', '10'], _.unary(parseInt));
  15064. * // => [6, 8, 10]
  15065. */
  15066. function unary(func) {
  15067. return ary(func, 1);
  15068. }
  15069. /**
  15070. * Creates a function that provides `value` to `wrapper` as its first
  15071. * argument. Any additional arguments provided to the function are appended
  15072. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  15073. * binding of the created function.
  15074. *
  15075. * @static
  15076. * @memberOf _
  15077. * @since 0.1.0
  15078. * @category Function
  15079. * @param {*} value The value to wrap.
  15080. * @param {Function} [wrapper=identity] The wrapper function.
  15081. * @returns {Function} Returns the new function.
  15082. * @example
  15083. *
  15084. * var p = _.wrap(_.escape, function(func, text) {
  15085. * return '<p>' + func(text) + '</p>';
  15086. * });
  15087. *
  15088. * p('fred, barney, & pebbles');
  15089. * // => '<p>fred, barney, &amp; pebbles</p>'
  15090. */
  15091. function wrap(value, wrapper) {
  15092. return partial(castFunction(wrapper), value);
  15093. }
  15094. /*------------------------------------------------------------------------*/
  15095. /**
  15096. * Casts `value` as an array if it's not one.
  15097. *
  15098. * @static
  15099. * @memberOf _
  15100. * @since 4.4.0
  15101. * @category Lang
  15102. * @param {*} value The value to inspect.
  15103. * @returns {Array} Returns the cast array.
  15104. * @example
  15105. *
  15106. * _.castArray(1);
  15107. * // => [1]
  15108. *
  15109. * _.castArray({ 'a': 1 });
  15110. * // => [{ 'a': 1 }]
  15111. *
  15112. * _.castArray('abc');
  15113. * // => ['abc']
  15114. *
  15115. * _.castArray(null);
  15116. * // => [null]
  15117. *
  15118. * _.castArray(undefined);
  15119. * // => [undefined]
  15120. *
  15121. * _.castArray();
  15122. * // => []
  15123. *
  15124. * var array = [1, 2, 3];
  15125. * console.log(_.castArray(array) === array);
  15126. * // => true
  15127. */
  15128. function castArray() {
  15129. if (!arguments.length) {
  15130. return [];
  15131. }
  15132. var value = arguments[0];
  15133. return isArray(value) ? value : [value];
  15134. }
  15135. /**
  15136. * Creates a shallow clone of `value`.
  15137. *
  15138. * **Note:** This method is loosely based on the
  15139. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  15140. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  15141. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  15142. * arrays. The own enumerable properties of `arguments` objects are cloned
  15143. * as plain objects. An empty object is returned for uncloneable values such
  15144. * as error objects, functions, DOM nodes, and WeakMaps.
  15145. *
  15146. * @static
  15147. * @memberOf _
  15148. * @since 0.1.0
  15149. * @category Lang
  15150. * @param {*} value The value to clone.
  15151. * @returns {*} Returns the cloned value.
  15152. * @see _.cloneDeep
  15153. * @example
  15154. *
  15155. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  15156. *
  15157. * var shallow = _.clone(objects);
  15158. * console.log(shallow[0] === objects[0]);
  15159. * // => true
  15160. */
  15161. function clone(value) {
  15162. return baseClone(value, CLONE_SYMBOLS_FLAG);
  15163. }
  15164. /**
  15165. * This method is like `_.clone` except that it accepts `customizer` which
  15166. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  15167. * cloning is handled by the method instead. The `customizer` is invoked with
  15168. * up to four arguments; (value [, index|key, object, stack]).
  15169. *
  15170. * @static
  15171. * @memberOf _
  15172. * @since 4.0.0
  15173. * @category Lang
  15174. * @param {*} value The value to clone.
  15175. * @param {Function} [customizer] The function to customize cloning.
  15176. * @returns {*} Returns the cloned value.
  15177. * @see _.cloneDeepWith
  15178. * @example
  15179. *
  15180. * function customizer(value) {
  15181. * if (_.isElement(value)) {
  15182. * return value.cloneNode(false);
  15183. * }
  15184. * }
  15185. *
  15186. * var el = _.cloneWith(document.body, customizer);
  15187. *
  15188. * console.log(el === document.body);
  15189. * // => false
  15190. * console.log(el.nodeName);
  15191. * // => 'BODY'
  15192. * console.log(el.childNodes.length);
  15193. * // => 0
  15194. */
  15195. function cloneWith(value, customizer) {
  15196. customizer = typeof customizer == 'function' ? customizer : undefined;
  15197. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  15198. }
  15199. /**
  15200. * This method is like `_.clone` except that it recursively clones `value`.
  15201. *
  15202. * @static
  15203. * @memberOf _
  15204. * @since 1.0.0
  15205. * @category Lang
  15206. * @param {*} value The value to recursively clone.
  15207. * @returns {*} Returns the deep cloned value.
  15208. * @see _.clone
  15209. * @example
  15210. *
  15211. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  15212. *
  15213. * var deep = _.cloneDeep(objects);
  15214. * console.log(deep[0] === objects[0]);
  15215. * // => false
  15216. */
  15217. function cloneDeep(value) {
  15218. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  15219. }
  15220. /**
  15221. * This method is like `_.cloneWith` except that it recursively clones `value`.
  15222. *
  15223. * @static
  15224. * @memberOf _
  15225. * @since 4.0.0
  15226. * @category Lang
  15227. * @param {*} value The value to recursively clone.
  15228. * @param {Function} [customizer] The function to customize cloning.
  15229. * @returns {*} Returns the deep cloned value.
  15230. * @see _.cloneWith
  15231. * @example
  15232. *
  15233. * function customizer(value) {
  15234. * if (_.isElement(value)) {
  15235. * return value.cloneNode(true);
  15236. * }
  15237. * }
  15238. *
  15239. * var el = _.cloneDeepWith(document.body, customizer);
  15240. *
  15241. * console.log(el === document.body);
  15242. * // => false
  15243. * console.log(el.nodeName);
  15244. * // => 'BODY'
  15245. * console.log(el.childNodes.length);
  15246. * // => 20
  15247. */
  15248. function cloneDeepWith(value, customizer) {
  15249. customizer = typeof customizer == 'function' ? customizer : undefined;
  15250. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  15251. }
  15252. /**
  15253. * Checks if `object` conforms to `source` by invoking the predicate
  15254. * properties of `source` with the corresponding property values of `object`.
  15255. *
  15256. * **Note:** This method is equivalent to `_.conforms` when `source` is
  15257. * partially applied.
  15258. *
  15259. * @static
  15260. * @memberOf _
  15261. * @since 4.14.0
  15262. * @category Lang
  15263. * @param {Object} object The object to inspect.
  15264. * @param {Object} source The object of property predicates to conform to.
  15265. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  15266. * @example
  15267. *
  15268. * var object = { 'a': 1, 'b': 2 };
  15269. *
  15270. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  15271. * // => true
  15272. *
  15273. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  15274. * // => false
  15275. */
  15276. function conformsTo(object, source) {
  15277. return source == null || baseConformsTo(object, source, keys(source));
  15278. }
  15279. /**
  15280. * Performs a
  15281. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  15282. * comparison between two values to determine if they are equivalent.
  15283. *
  15284. * @static
  15285. * @memberOf _
  15286. * @since 4.0.0
  15287. * @category Lang
  15288. * @param {*} value The value to compare.
  15289. * @param {*} other The other value to compare.
  15290. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15291. * @example
  15292. *
  15293. * var object = { 'a': 1 };
  15294. * var other = { 'a': 1 };
  15295. *
  15296. * _.eq(object, object);
  15297. * // => true
  15298. *
  15299. * _.eq(object, other);
  15300. * // => false
  15301. *
  15302. * _.eq('a', 'a');
  15303. * // => true
  15304. *
  15305. * _.eq('a', Object('a'));
  15306. * // => false
  15307. *
  15308. * _.eq(NaN, NaN);
  15309. * // => true
  15310. */
  15311. function eq(value, other) {
  15312. return value === other || (value !== value && other !== other);
  15313. }
  15314. /**
  15315. * Checks if `value` is greater than `other`.
  15316. *
  15317. * @static
  15318. * @memberOf _
  15319. * @since 3.9.0
  15320. * @category Lang
  15321. * @param {*} value The value to compare.
  15322. * @param {*} other The other value to compare.
  15323. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  15324. * else `false`.
  15325. * @see _.lt
  15326. * @example
  15327. *
  15328. * _.gt(3, 1);
  15329. * // => true
  15330. *
  15331. * _.gt(3, 3);
  15332. * // => false
  15333. *
  15334. * _.gt(1, 3);
  15335. * // => false
  15336. */
  15337. var gt = createRelationalOperation(baseGt);
  15338. /**
  15339. * Checks if `value` is greater than or equal to `other`.
  15340. *
  15341. * @static
  15342. * @memberOf _
  15343. * @since 3.9.0
  15344. * @category Lang
  15345. * @param {*} value The value to compare.
  15346. * @param {*} other The other value to compare.
  15347. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  15348. * `other`, else `false`.
  15349. * @see _.lte
  15350. * @example
  15351. *
  15352. * _.gte(3, 1);
  15353. * // => true
  15354. *
  15355. * _.gte(3, 3);
  15356. * // => true
  15357. *
  15358. * _.gte(1, 3);
  15359. * // => false
  15360. */
  15361. var gte = createRelationalOperation(function(value, other) {
  15362. return value >= other;
  15363. });
  15364. /**
  15365. * Checks if `value` is likely an `arguments` object.
  15366. *
  15367. * @static
  15368. * @memberOf _
  15369. * @since 0.1.0
  15370. * @category Lang
  15371. * @param {*} value The value to check.
  15372. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15373. * else `false`.
  15374. * @example
  15375. *
  15376. * _.isArguments(function() { return arguments; }());
  15377. * // => true
  15378. *
  15379. * _.isArguments([1, 2, 3]);
  15380. * // => false
  15381. */
  15382. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15383. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15384. !propertyIsEnumerable.call(value, 'callee');
  15385. };
  15386. /**
  15387. * Checks if `value` is classified as an `Array` object.
  15388. *
  15389. * @static
  15390. * @memberOf _
  15391. * @since 0.1.0
  15392. * @category Lang
  15393. * @param {*} value The value to check.
  15394. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15395. * @example
  15396. *
  15397. * _.isArray([1, 2, 3]);
  15398. * // => true
  15399. *
  15400. * _.isArray(document.body.children);
  15401. * // => false
  15402. *
  15403. * _.isArray('abc');
  15404. * // => false
  15405. *
  15406. * _.isArray(_.noop);
  15407. * // => false
  15408. */
  15409. var isArray = Array.isArray;
  15410. /**
  15411. * Checks if `value` is classified as an `ArrayBuffer` object.
  15412. *
  15413. * @static
  15414. * @memberOf _
  15415. * @since 4.3.0
  15416. * @category Lang
  15417. * @param {*} value The value to check.
  15418. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  15419. * @example
  15420. *
  15421. * _.isArrayBuffer(new ArrayBuffer(2));
  15422. * // => true
  15423. *
  15424. * _.isArrayBuffer(new Array(2));
  15425. * // => false
  15426. */
  15427. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  15428. /**
  15429. * Checks if `value` is array-like. A value is considered array-like if it's
  15430. * not a function and has a `value.length` that's an integer greater than or
  15431. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15432. *
  15433. * @static
  15434. * @memberOf _
  15435. * @since 4.0.0
  15436. * @category Lang
  15437. * @param {*} value The value to check.
  15438. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15439. * @example
  15440. *
  15441. * _.isArrayLike([1, 2, 3]);
  15442. * // => true
  15443. *
  15444. * _.isArrayLike(document.body.children);
  15445. * // => true
  15446. *
  15447. * _.isArrayLike('abc');
  15448. * // => true
  15449. *
  15450. * _.isArrayLike(_.noop);
  15451. * // => false
  15452. */
  15453. function isArrayLike(value) {
  15454. return value != null && isLength(value.length) && !isFunction(value);
  15455. }
  15456. /**
  15457. * This method is like `_.isArrayLike` except that it also checks if `value`
  15458. * is an object.
  15459. *
  15460. * @static
  15461. * @memberOf _
  15462. * @since 4.0.0
  15463. * @category Lang
  15464. * @param {*} value The value to check.
  15465. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15466. * else `false`.
  15467. * @example
  15468. *
  15469. * _.isArrayLikeObject([1, 2, 3]);
  15470. * // => true
  15471. *
  15472. * _.isArrayLikeObject(document.body.children);
  15473. * // => true
  15474. *
  15475. * _.isArrayLikeObject('abc');
  15476. * // => false
  15477. *
  15478. * _.isArrayLikeObject(_.noop);
  15479. * // => false
  15480. */
  15481. function isArrayLikeObject(value) {
  15482. return isObjectLike(value) && isArrayLike(value);
  15483. }
  15484. /**
  15485. * Checks if `value` is classified as a boolean primitive or object.
  15486. *
  15487. * @static
  15488. * @memberOf _
  15489. * @since 0.1.0
  15490. * @category Lang
  15491. * @param {*} value The value to check.
  15492. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  15493. * @example
  15494. *
  15495. * _.isBoolean(false);
  15496. * // => true
  15497. *
  15498. * _.isBoolean(null);
  15499. * // => false
  15500. */
  15501. function isBoolean(value) {
  15502. return value === true || value === false ||
  15503. (isObjectLike(value) && baseGetTag(value) == boolTag);
  15504. }
  15505. /**
  15506. * Checks if `value` is a buffer.
  15507. *
  15508. * @static
  15509. * @memberOf _
  15510. * @since 4.3.0
  15511. * @category Lang
  15512. * @param {*} value The value to check.
  15513. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15514. * @example
  15515. *
  15516. * _.isBuffer(new Buffer(2));
  15517. * // => true
  15518. *
  15519. * _.isBuffer(new Uint8Array(2));
  15520. * // => false
  15521. */
  15522. var isBuffer = nativeIsBuffer || stubFalse;
  15523. /**
  15524. * Checks if `value` is classified as a `Date` object.
  15525. *
  15526. * @static
  15527. * @memberOf _
  15528. * @since 0.1.0
  15529. * @category Lang
  15530. * @param {*} value The value to check.
  15531. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  15532. * @example
  15533. *
  15534. * _.isDate(new Date);
  15535. * // => true
  15536. *
  15537. * _.isDate('Mon April 23 2012');
  15538. * // => false
  15539. */
  15540. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  15541. /**
  15542. * Checks if `value` is likely a DOM element.
  15543. *
  15544. * @static
  15545. * @memberOf _
  15546. * @since 0.1.0
  15547. * @category Lang
  15548. * @param {*} value The value to check.
  15549. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  15550. * @example
  15551. *
  15552. * _.isElement(document.body);
  15553. * // => true
  15554. *
  15555. * _.isElement('<body>');
  15556. * // => false
  15557. */
  15558. function isElement(value) {
  15559. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  15560. }
  15561. /**
  15562. * Checks if `value` is an empty object, collection, map, or set.
  15563. *
  15564. * Objects are considered empty if they have no own enumerable string keyed
  15565. * properties.
  15566. *
  15567. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15568. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15569. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15570. *
  15571. * @static
  15572. * @memberOf _
  15573. * @since 0.1.0
  15574. * @category Lang
  15575. * @param {*} value The value to check.
  15576. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15577. * @example
  15578. *
  15579. * _.isEmpty(null);
  15580. * // => true
  15581. *
  15582. * _.isEmpty(true);
  15583. * // => true
  15584. *
  15585. * _.isEmpty(1);
  15586. * // => true
  15587. *
  15588. * _.isEmpty([1, 2, 3]);
  15589. * // => false
  15590. *
  15591. * _.isEmpty({ 'a': 1 });
  15592. * // => false
  15593. */
  15594. function isEmpty(value) {
  15595. if (value == null) {
  15596. return true;
  15597. }
  15598. if (isArrayLike(value) &&
  15599. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15600. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15601. return !value.length;
  15602. }
  15603. var tag = getTag(value);
  15604. if (tag == mapTag || tag == setTag) {
  15605. return !value.size;
  15606. }
  15607. if (isPrototype(value)) {
  15608. return !baseKeys(value).length;
  15609. }
  15610. for (var key in value) {
  15611. if (hasOwnProperty.call(value, key)) {
  15612. return false;
  15613. }
  15614. }
  15615. return true;
  15616. }
  15617. /**
  15618. * Performs a deep comparison between two values to determine if they are
  15619. * equivalent.
  15620. *
  15621. * **Note:** This method supports comparing arrays, array buffers, booleans,
  15622. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  15623. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  15624. * by their own, not inherited, enumerable properties. Functions and DOM
  15625. * nodes are compared by strict equality, i.e. `===`.
  15626. *
  15627. * @static
  15628. * @memberOf _
  15629. * @since 0.1.0
  15630. * @category Lang
  15631. * @param {*} value The value to compare.
  15632. * @param {*} other The other value to compare.
  15633. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15634. * @example
  15635. *
  15636. * var object = { 'a': 1 };
  15637. * var other = { 'a': 1 };
  15638. *
  15639. * _.isEqual(object, other);
  15640. * // => true
  15641. *
  15642. * object === other;
  15643. * // => false
  15644. */
  15645. function isEqual(value, other) {
  15646. return baseIsEqual(value, other);
  15647. }
  15648. /**
  15649. * This method is like `_.isEqual` except that it accepts `customizer` which
  15650. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  15651. * are handled by the method instead. The `customizer` is invoked with up to
  15652. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  15653. *
  15654. * @static
  15655. * @memberOf _
  15656. * @since 4.0.0
  15657. * @category Lang
  15658. * @param {*} value The value to compare.
  15659. * @param {*} other The other value to compare.
  15660. * @param {Function} [customizer] The function to customize comparisons.
  15661. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15662. * @example
  15663. *
  15664. * function isGreeting(value) {
  15665. * return /^h(?:i|ello)$/.test(value);
  15666. * }
  15667. *
  15668. * function customizer(objValue, othValue) {
  15669. * if (isGreeting(objValue) && isGreeting(othValue)) {
  15670. * return true;
  15671. * }
  15672. * }
  15673. *
  15674. * var array = ['hello', 'goodbye'];
  15675. * var other = ['hi', 'goodbye'];
  15676. *
  15677. * _.isEqualWith(array, other, customizer);
  15678. * // => true
  15679. */
  15680. function isEqualWith(value, other, customizer) {
  15681. customizer = typeof customizer == 'function' ? customizer : undefined;
  15682. var result = customizer ? customizer(value, other) : undefined;
  15683. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  15684. }
  15685. /**
  15686. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  15687. * `SyntaxError`, `TypeError`, or `URIError` object.
  15688. *
  15689. * @static
  15690. * @memberOf _
  15691. * @since 3.0.0
  15692. * @category Lang
  15693. * @param {*} value The value to check.
  15694. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  15695. * @example
  15696. *
  15697. * _.isError(new Error);
  15698. * // => true
  15699. *
  15700. * _.isError(Error);
  15701. * // => false
  15702. */
  15703. function isError(value) {
  15704. if (!isObjectLike(value)) {
  15705. return false;
  15706. }
  15707. var tag = baseGetTag(value);
  15708. return tag == errorTag || tag == domExcTag ||
  15709. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  15710. }
  15711. /**
  15712. * Checks if `value` is a finite primitive number.
  15713. *
  15714. * **Note:** This method is based on
  15715. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  15716. *
  15717. * @static
  15718. * @memberOf _
  15719. * @since 0.1.0
  15720. * @category Lang
  15721. * @param {*} value The value to check.
  15722. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  15723. * @example
  15724. *
  15725. * _.isFinite(3);
  15726. * // => true
  15727. *
  15728. * _.isFinite(Number.MIN_VALUE);
  15729. * // => true
  15730. *
  15731. * _.isFinite(Infinity);
  15732. * // => false
  15733. *
  15734. * _.isFinite('3');
  15735. * // => false
  15736. */
  15737. function isFinite(value) {
  15738. return typeof value == 'number' && nativeIsFinite(value);
  15739. }
  15740. /**
  15741. * Checks if `value` is classified as a `Function` object.
  15742. *
  15743. * @static
  15744. * @memberOf _
  15745. * @since 0.1.0
  15746. * @category Lang
  15747. * @param {*} value The value to check.
  15748. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15749. * @example
  15750. *
  15751. * _.isFunction(_);
  15752. * // => true
  15753. *
  15754. * _.isFunction(/abc/);
  15755. * // => false
  15756. */
  15757. function isFunction(value) {
  15758. if (!isObject(value)) {
  15759. return false;
  15760. }
  15761. // The use of `Object#toString` avoids issues with the `typeof` operator
  15762. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15763. var tag = baseGetTag(value);
  15764. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15765. }
  15766. /**
  15767. * Checks if `value` is an integer.
  15768. *
  15769. * **Note:** This method is based on
  15770. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  15771. *
  15772. * @static
  15773. * @memberOf _
  15774. * @since 4.0.0
  15775. * @category Lang
  15776. * @param {*} value The value to check.
  15777. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  15778. * @example
  15779. *
  15780. * _.isInteger(3);
  15781. * // => true
  15782. *
  15783. * _.isInteger(Number.MIN_VALUE);
  15784. * // => false
  15785. *
  15786. * _.isInteger(Infinity);
  15787. * // => false
  15788. *
  15789. * _.isInteger('3');
  15790. * // => false
  15791. */
  15792. function isInteger(value) {
  15793. return typeof value == 'number' && value == toInteger(value);
  15794. }
  15795. /**
  15796. * Checks if `value` is a valid array-like length.
  15797. *
  15798. * **Note:** This method is loosely based on
  15799. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15800. *
  15801. * @static
  15802. * @memberOf _
  15803. * @since 4.0.0
  15804. * @category Lang
  15805. * @param {*} value The value to check.
  15806. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15807. * @example
  15808. *
  15809. * _.isLength(3);
  15810. * // => true
  15811. *
  15812. * _.isLength(Number.MIN_VALUE);
  15813. * // => false
  15814. *
  15815. * _.isLength(Infinity);
  15816. * // => false
  15817. *
  15818. * _.isLength('3');
  15819. * // => false
  15820. */
  15821. function isLength(value) {
  15822. return typeof value == 'number' &&
  15823. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15824. }
  15825. /**
  15826. * Checks if `value` is the
  15827. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15828. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15829. *
  15830. * @static
  15831. * @memberOf _
  15832. * @since 0.1.0
  15833. * @category Lang
  15834. * @param {*} value The value to check.
  15835. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15836. * @example
  15837. *
  15838. * _.isObject({});
  15839. * // => true
  15840. *
  15841. * _.isObject([1, 2, 3]);
  15842. * // => true
  15843. *
  15844. * _.isObject(_.noop);
  15845. * // => true
  15846. *
  15847. * _.isObject(null);
  15848. * // => false
  15849. */
  15850. function isObject(value) {
  15851. var type = typeof value;
  15852. return value != null && (type == 'object' || type == 'function');
  15853. }
  15854. /**
  15855. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15856. * and has a `typeof` result of "object".
  15857. *
  15858. * @static
  15859. * @memberOf _
  15860. * @since 4.0.0
  15861. * @category Lang
  15862. * @param {*} value The value to check.
  15863. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15864. * @example
  15865. *
  15866. * _.isObjectLike({});
  15867. * // => true
  15868. *
  15869. * _.isObjectLike([1, 2, 3]);
  15870. * // => true
  15871. *
  15872. * _.isObjectLike(_.noop);
  15873. * // => false
  15874. *
  15875. * _.isObjectLike(null);
  15876. * // => false
  15877. */
  15878. function isObjectLike(value) {
  15879. return value != null && typeof value == 'object';
  15880. }
  15881. /**
  15882. * Checks if `value` is classified as a `Map` object.
  15883. *
  15884. * @static
  15885. * @memberOf _
  15886. * @since 4.3.0
  15887. * @category Lang
  15888. * @param {*} value The value to check.
  15889. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15890. * @example
  15891. *
  15892. * _.isMap(new Map);
  15893. * // => true
  15894. *
  15895. * _.isMap(new WeakMap);
  15896. * // => false
  15897. */
  15898. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15899. /**
  15900. * Performs a partial deep comparison between `object` and `source` to
  15901. * determine if `object` contains equivalent property values.
  15902. *
  15903. * **Note:** This method is equivalent to `_.matches` when `source` is
  15904. * partially applied.
  15905. *
  15906. * Partial comparisons will match empty array and empty object `source`
  15907. * values against any array or object value, respectively. See `_.isEqual`
  15908. * for a list of supported value comparisons.
  15909. *
  15910. * @static
  15911. * @memberOf _
  15912. * @since 3.0.0
  15913. * @category Lang
  15914. * @param {Object} object The object to inspect.
  15915. * @param {Object} source The object of property values to match.
  15916. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  15917. * @example
  15918. *
  15919. * var object = { 'a': 1, 'b': 2 };
  15920. *
  15921. * _.isMatch(object, { 'b': 2 });
  15922. * // => true
  15923. *
  15924. * _.isMatch(object, { 'b': 1 });
  15925. * // => false
  15926. */
  15927. function isMatch(object, source) {
  15928. return object === source || baseIsMatch(object, source, getMatchData(source));
  15929. }
  15930. /**
  15931. * This method is like `_.isMatch` except that it accepts `customizer` which
  15932. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  15933. * are handled by the method instead. The `customizer` is invoked with five
  15934. * arguments: (objValue, srcValue, index|key, object, source).
  15935. *
  15936. * @static
  15937. * @memberOf _
  15938. * @since 4.0.0
  15939. * @category Lang
  15940. * @param {Object} object The object to inspect.
  15941. * @param {Object} source The object of property values to match.
  15942. * @param {Function} [customizer] The function to customize comparisons.
  15943. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  15944. * @example
  15945. *
  15946. * function isGreeting(value) {
  15947. * return /^h(?:i|ello)$/.test(value);
  15948. * }
  15949. *
  15950. * function customizer(objValue, srcValue) {
  15951. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  15952. * return true;
  15953. * }
  15954. * }
  15955. *
  15956. * var object = { 'greeting': 'hello' };
  15957. * var source = { 'greeting': 'hi' };
  15958. *
  15959. * _.isMatchWith(object, source, customizer);
  15960. * // => true
  15961. */
  15962. function isMatchWith(object, source, customizer) {
  15963. customizer = typeof customizer == 'function' ? customizer : undefined;
  15964. return baseIsMatch(object, source, getMatchData(source), customizer);
  15965. }
  15966. /**
  15967. * Checks if `value` is `NaN`.
  15968. *
  15969. * **Note:** This method is based on
  15970. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  15971. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  15972. * `undefined` and other non-number values.
  15973. *
  15974. * @static
  15975. * @memberOf _
  15976. * @since 0.1.0
  15977. * @category Lang
  15978. * @param {*} value The value to check.
  15979. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  15980. * @example
  15981. *
  15982. * _.isNaN(NaN);
  15983. * // => true
  15984. *
  15985. * _.isNaN(new Number(NaN));
  15986. * // => true
  15987. *
  15988. * isNaN(undefined);
  15989. * // => true
  15990. *
  15991. * _.isNaN(undefined);
  15992. * // => false
  15993. */
  15994. function isNaN(value) {
  15995. // An `NaN` primitive is the only value that is not equal to itself.
  15996. // Perform the `toStringTag` check first to avoid errors with some
  15997. // ActiveX objects in IE.
  15998. return isNumber(value) && value != +value;
  15999. }
  16000. /**
  16001. * Checks if `value` is a pristine native function.
  16002. *
  16003. * **Note:** This method can't reliably detect native functions in the presence
  16004. * of the core-js package because core-js circumvents this kind of detection.
  16005. * Despite multiple requests, the core-js maintainer has made it clear: any
  16006. * attempt to fix the detection will be obstructed. As a result, we're left
  16007. * with little choice but to throw an error. Unfortunately, this also affects
  16008. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  16009. * which rely on core-js.
  16010. *
  16011. * @static
  16012. * @memberOf _
  16013. * @since 3.0.0
  16014. * @category Lang
  16015. * @param {*} value The value to check.
  16016. * @returns {boolean} Returns `true` if `value` is a native function,
  16017. * else `false`.
  16018. * @example
  16019. *
  16020. * _.isNative(Array.prototype.push);
  16021. * // => true
  16022. *
  16023. * _.isNative(_);
  16024. * // => false
  16025. */
  16026. function isNative(value) {
  16027. if (isMaskable(value)) {
  16028. throw new Error(CORE_ERROR_TEXT);
  16029. }
  16030. return baseIsNative(value);
  16031. }
  16032. /**
  16033. * Checks if `value` is `null`.
  16034. *
  16035. * @static
  16036. * @memberOf _
  16037. * @since 0.1.0
  16038. * @category Lang
  16039. * @param {*} value The value to check.
  16040. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  16041. * @example
  16042. *
  16043. * _.isNull(null);
  16044. * // => true
  16045. *
  16046. * _.isNull(void 0);
  16047. * // => false
  16048. */
  16049. function isNull(value) {
  16050. return value === null;
  16051. }
  16052. /**
  16053. * Checks if `value` is `null` or `undefined`.
  16054. *
  16055. * @static
  16056. * @memberOf _
  16057. * @since 4.0.0
  16058. * @category Lang
  16059. * @param {*} value The value to check.
  16060. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  16061. * @example
  16062. *
  16063. * _.isNil(null);
  16064. * // => true
  16065. *
  16066. * _.isNil(void 0);
  16067. * // => true
  16068. *
  16069. * _.isNil(NaN);
  16070. * // => false
  16071. */
  16072. function isNil(value) {
  16073. return value == null;
  16074. }
  16075. /**
  16076. * Checks if `value` is classified as a `Number` primitive or object.
  16077. *
  16078. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  16079. * classified as numbers, use the `_.isFinite` method.
  16080. *
  16081. * @static
  16082. * @memberOf _
  16083. * @since 0.1.0
  16084. * @category Lang
  16085. * @param {*} value The value to check.
  16086. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  16087. * @example
  16088. *
  16089. * _.isNumber(3);
  16090. * // => true
  16091. *
  16092. * _.isNumber(Number.MIN_VALUE);
  16093. * // => true
  16094. *
  16095. * _.isNumber(Infinity);
  16096. * // => true
  16097. *
  16098. * _.isNumber('3');
  16099. * // => false
  16100. */
  16101. function isNumber(value) {
  16102. return typeof value == 'number' ||
  16103. (isObjectLike(value) && baseGetTag(value) == numberTag);
  16104. }
  16105. /**
  16106. * Checks if `value` is a plain object, that is, an object created by the
  16107. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  16108. *
  16109. * @static
  16110. * @memberOf _
  16111. * @since 0.8.0
  16112. * @category Lang
  16113. * @param {*} value The value to check.
  16114. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  16115. * @example
  16116. *
  16117. * function Foo() {
  16118. * this.a = 1;
  16119. * }
  16120. *
  16121. * _.isPlainObject(new Foo);
  16122. * // => false
  16123. *
  16124. * _.isPlainObject([1, 2, 3]);
  16125. * // => false
  16126. *
  16127. * _.isPlainObject({ 'x': 0, 'y': 0 });
  16128. * // => true
  16129. *
  16130. * _.isPlainObject(Object.create(null));
  16131. * // => true
  16132. */
  16133. function isPlainObject(value) {
  16134. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  16135. return false;
  16136. }
  16137. var proto = getPrototype(value);
  16138. if (proto === null) {
  16139. return true;
  16140. }
  16141. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  16142. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  16143. funcToString.call(Ctor) == objectCtorString;
  16144. }
  16145. /**
  16146. * Checks if `value` is classified as a `RegExp` object.
  16147. *
  16148. * @static
  16149. * @memberOf _
  16150. * @since 0.1.0
  16151. * @category Lang
  16152. * @param {*} value The value to check.
  16153. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  16154. * @example
  16155. *
  16156. * _.isRegExp(/abc/);
  16157. * // => true
  16158. *
  16159. * _.isRegExp('/abc/');
  16160. * // => false
  16161. */
  16162. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  16163. /**
  16164. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  16165. * double precision number which isn't the result of a rounded unsafe integer.
  16166. *
  16167. * **Note:** This method is based on
  16168. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  16169. *
  16170. * @static
  16171. * @memberOf _
  16172. * @since 4.0.0
  16173. * @category Lang
  16174. * @param {*} value The value to check.
  16175. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  16176. * @example
  16177. *
  16178. * _.isSafeInteger(3);
  16179. * // => true
  16180. *
  16181. * _.isSafeInteger(Number.MIN_VALUE);
  16182. * // => false
  16183. *
  16184. * _.isSafeInteger(Infinity);
  16185. * // => false
  16186. *
  16187. * _.isSafeInteger('3');
  16188. * // => false
  16189. */
  16190. function isSafeInteger(value) {
  16191. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  16192. }
  16193. /**
  16194. * Checks if `value` is classified as a `Set` object.
  16195. *
  16196. * @static
  16197. * @memberOf _
  16198. * @since 4.3.0
  16199. * @category Lang
  16200. * @param {*} value The value to check.
  16201. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  16202. * @example
  16203. *
  16204. * _.isSet(new Set);
  16205. * // => true
  16206. *
  16207. * _.isSet(new WeakSet);
  16208. * // => false
  16209. */
  16210. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  16211. /**
  16212. * Checks if `value` is classified as a `String` primitive or object.
  16213. *
  16214. * @static
  16215. * @since 0.1.0
  16216. * @memberOf _
  16217. * @category Lang
  16218. * @param {*} value The value to check.
  16219. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  16220. * @example
  16221. *
  16222. * _.isString('abc');
  16223. * // => true
  16224. *
  16225. * _.isString(1);
  16226. * // => false
  16227. */
  16228. function isString(value) {
  16229. return typeof value == 'string' ||
  16230. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  16231. }
  16232. /**
  16233. * Checks if `value` is classified as a `Symbol` primitive or object.
  16234. *
  16235. * @static
  16236. * @memberOf _
  16237. * @since 4.0.0
  16238. * @category Lang
  16239. * @param {*} value The value to check.
  16240. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  16241. * @example
  16242. *
  16243. * _.isSymbol(Symbol.iterator);
  16244. * // => true
  16245. *
  16246. * _.isSymbol('abc');
  16247. * // => false
  16248. */
  16249. function isSymbol(value) {
  16250. return typeof value == 'symbol' ||
  16251. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  16252. }
  16253. /**
  16254. * Checks if `value` is classified as a typed array.
  16255. *
  16256. * @static
  16257. * @memberOf _
  16258. * @since 3.0.0
  16259. * @category Lang
  16260. * @param {*} value The value to check.
  16261. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  16262. * @example
  16263. *
  16264. * _.isTypedArray(new Uint8Array);
  16265. * // => true
  16266. *
  16267. * _.isTypedArray([]);
  16268. * // => false
  16269. */
  16270. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  16271. /**
  16272. * Checks if `value` is `undefined`.
  16273. *
  16274. * @static
  16275. * @since 0.1.0
  16276. * @memberOf _
  16277. * @category Lang
  16278. * @param {*} value The value to check.
  16279. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  16280. * @example
  16281. *
  16282. * _.isUndefined(void 0);
  16283. * // => true
  16284. *
  16285. * _.isUndefined(null);
  16286. * // => false
  16287. */
  16288. function isUndefined(value) {
  16289. return value === undefined;
  16290. }
  16291. /**
  16292. * Checks if `value` is classified as a `WeakMap` object.
  16293. *
  16294. * @static
  16295. * @memberOf _
  16296. * @since 4.3.0
  16297. * @category Lang
  16298. * @param {*} value The value to check.
  16299. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  16300. * @example
  16301. *
  16302. * _.isWeakMap(new WeakMap);
  16303. * // => true
  16304. *
  16305. * _.isWeakMap(new Map);
  16306. * // => false
  16307. */
  16308. function isWeakMap(value) {
  16309. return isObjectLike(value) && getTag(value) == weakMapTag;
  16310. }
  16311. /**
  16312. * Checks if `value` is classified as a `WeakSet` object.
  16313. *
  16314. * @static
  16315. * @memberOf _
  16316. * @since 4.3.0
  16317. * @category Lang
  16318. * @param {*} value The value to check.
  16319. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  16320. * @example
  16321. *
  16322. * _.isWeakSet(new WeakSet);
  16323. * // => true
  16324. *
  16325. * _.isWeakSet(new Set);
  16326. * // => false
  16327. */
  16328. function isWeakSet(value) {
  16329. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  16330. }
  16331. /**
  16332. * Checks if `value` is less than `other`.
  16333. *
  16334. * @static
  16335. * @memberOf _
  16336. * @since 3.9.0
  16337. * @category Lang
  16338. * @param {*} value The value to compare.
  16339. * @param {*} other The other value to compare.
  16340. * @returns {boolean} Returns `true` if `value` is less than `other`,
  16341. * else `false`.
  16342. * @see _.gt
  16343. * @example
  16344. *
  16345. * _.lt(1, 3);
  16346. * // => true
  16347. *
  16348. * _.lt(3, 3);
  16349. * // => false
  16350. *
  16351. * _.lt(3, 1);
  16352. * // => false
  16353. */
  16354. var lt = createRelationalOperation(baseLt);
  16355. /**
  16356. * Checks if `value` is less than or equal to `other`.
  16357. *
  16358. * @static
  16359. * @memberOf _
  16360. * @since 3.9.0
  16361. * @category Lang
  16362. * @param {*} value The value to compare.
  16363. * @param {*} other The other value to compare.
  16364. * @returns {boolean} Returns `true` if `value` is less than or equal to
  16365. * `other`, else `false`.
  16366. * @see _.gte
  16367. * @example
  16368. *
  16369. * _.lte(1, 3);
  16370. * // => true
  16371. *
  16372. * _.lte(3, 3);
  16373. * // => true
  16374. *
  16375. * _.lte(3, 1);
  16376. * // => false
  16377. */
  16378. var lte = createRelationalOperation(function(value, other) {
  16379. return value <= other;
  16380. });
  16381. /**
  16382. * Converts `value` to an array.
  16383. *
  16384. * @static
  16385. * @since 0.1.0
  16386. * @memberOf _
  16387. * @category Lang
  16388. * @param {*} value The value to convert.
  16389. * @returns {Array} Returns the converted array.
  16390. * @example
  16391. *
  16392. * _.toArray({ 'a': 1, 'b': 2 });
  16393. * // => [1, 2]
  16394. *
  16395. * _.toArray('abc');
  16396. * // => ['a', 'b', 'c']
  16397. *
  16398. * _.toArray(1);
  16399. * // => []
  16400. *
  16401. * _.toArray(null);
  16402. * // => []
  16403. */
  16404. function toArray(value) {
  16405. if (!value) {
  16406. return [];
  16407. }
  16408. if (isArrayLike(value)) {
  16409. return isString(value) ? stringToArray(value) : copyArray(value);
  16410. }
  16411. if (symIterator && value[symIterator]) {
  16412. return iteratorToArray(value[symIterator]());
  16413. }
  16414. var tag = getTag(value),
  16415. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  16416. return func(value);
  16417. }
  16418. /**
  16419. * Converts `value` to a finite number.
  16420. *
  16421. * @static
  16422. * @memberOf _
  16423. * @since 4.12.0
  16424. * @category Lang
  16425. * @param {*} value The value to convert.
  16426. * @returns {number} Returns the converted number.
  16427. * @example
  16428. *
  16429. * _.toFinite(3.2);
  16430. * // => 3.2
  16431. *
  16432. * _.toFinite(Number.MIN_VALUE);
  16433. * // => 5e-324
  16434. *
  16435. * _.toFinite(Infinity);
  16436. * // => 1.7976931348623157e+308
  16437. *
  16438. * _.toFinite('3.2');
  16439. * // => 3.2
  16440. */
  16441. function toFinite(value) {
  16442. if (!value) {
  16443. return value === 0 ? value : 0;
  16444. }
  16445. value = toNumber(value);
  16446. if (value === INFINITY || value === -INFINITY) {
  16447. var sign = (value < 0 ? -1 : 1);
  16448. return sign * MAX_INTEGER;
  16449. }
  16450. return value === value ? value : 0;
  16451. }
  16452. /**
  16453. * Converts `value` to an integer.
  16454. *
  16455. * **Note:** This method is loosely based on
  16456. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  16457. *
  16458. * @static
  16459. * @memberOf _
  16460. * @since 4.0.0
  16461. * @category Lang
  16462. * @param {*} value The value to convert.
  16463. * @returns {number} Returns the converted integer.
  16464. * @example
  16465. *
  16466. * _.toInteger(3.2);
  16467. * // => 3
  16468. *
  16469. * _.toInteger(Number.MIN_VALUE);
  16470. * // => 0
  16471. *
  16472. * _.toInteger(Infinity);
  16473. * // => 1.7976931348623157e+308
  16474. *
  16475. * _.toInteger('3.2');
  16476. * // => 3
  16477. */
  16478. function toInteger(value) {
  16479. var result = toFinite(value),
  16480. remainder = result % 1;
  16481. return result === result ? (remainder ? result - remainder : result) : 0;
  16482. }
  16483. /**
  16484. * Converts `value` to an integer suitable for use as the length of an
  16485. * array-like object.
  16486. *
  16487. * **Note:** This method is based on
  16488. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  16489. *
  16490. * @static
  16491. * @memberOf _
  16492. * @since 4.0.0
  16493. * @category Lang
  16494. * @param {*} value The value to convert.
  16495. * @returns {number} Returns the converted integer.
  16496. * @example
  16497. *
  16498. * _.toLength(3.2);
  16499. * // => 3
  16500. *
  16501. * _.toLength(Number.MIN_VALUE);
  16502. * // => 0
  16503. *
  16504. * _.toLength(Infinity);
  16505. * // => 4294967295
  16506. *
  16507. * _.toLength('3.2');
  16508. * // => 3
  16509. */
  16510. function toLength(value) {
  16511. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  16512. }
  16513. /**
  16514. * Converts `value` to a number.
  16515. *
  16516. * @static
  16517. * @memberOf _
  16518. * @since 4.0.0
  16519. * @category Lang
  16520. * @param {*} value The value to process.
  16521. * @returns {number} Returns the number.
  16522. * @example
  16523. *
  16524. * _.toNumber(3.2);
  16525. * // => 3.2
  16526. *
  16527. * _.toNumber(Number.MIN_VALUE);
  16528. * // => 5e-324
  16529. *
  16530. * _.toNumber(Infinity);
  16531. * // => Infinity
  16532. *
  16533. * _.toNumber('3.2');
  16534. * // => 3.2
  16535. */
  16536. function toNumber(value) {
  16537. if (typeof value == 'number') {
  16538. return value;
  16539. }
  16540. if (isSymbol(value)) {
  16541. return NAN;
  16542. }
  16543. if (isObject(value)) {
  16544. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  16545. value = isObject(other) ? (other + '') : other;
  16546. }
  16547. if (typeof value != 'string') {
  16548. return value === 0 ? value : +value;
  16549. }
  16550. value = value.replace(reTrim, '');
  16551. var isBinary = reIsBinary.test(value);
  16552. return (isBinary || reIsOctal.test(value))
  16553. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  16554. : (reIsBadHex.test(value) ? NAN : +value);
  16555. }
  16556. /**
  16557. * Converts `value` to a plain object flattening inherited enumerable string
  16558. * keyed properties of `value` to own properties of the plain object.
  16559. *
  16560. * @static
  16561. * @memberOf _
  16562. * @since 3.0.0
  16563. * @category Lang
  16564. * @param {*} value The value to convert.
  16565. * @returns {Object} Returns the converted plain object.
  16566. * @example
  16567. *
  16568. * function Foo() {
  16569. * this.b = 2;
  16570. * }
  16571. *
  16572. * Foo.prototype.c = 3;
  16573. *
  16574. * _.assign({ 'a': 1 }, new Foo);
  16575. * // => { 'a': 1, 'b': 2 }
  16576. *
  16577. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  16578. * // => { 'a': 1, 'b': 2, 'c': 3 }
  16579. */
  16580. function toPlainObject(value) {
  16581. return copyObject(value, keysIn(value));
  16582. }
  16583. /**
  16584. * Converts `value` to a safe integer. A safe integer can be compared and
  16585. * represented correctly.
  16586. *
  16587. * @static
  16588. * @memberOf _
  16589. * @since 4.0.0
  16590. * @category Lang
  16591. * @param {*} value The value to convert.
  16592. * @returns {number} Returns the converted integer.
  16593. * @example
  16594. *
  16595. * _.toSafeInteger(3.2);
  16596. * // => 3
  16597. *
  16598. * _.toSafeInteger(Number.MIN_VALUE);
  16599. * // => 0
  16600. *
  16601. * _.toSafeInteger(Infinity);
  16602. * // => 9007199254740991
  16603. *
  16604. * _.toSafeInteger('3.2');
  16605. * // => 3
  16606. */
  16607. function toSafeInteger(value) {
  16608. return value
  16609. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  16610. : (value === 0 ? value : 0);
  16611. }
  16612. /**
  16613. * Converts `value` to a string. An empty string is returned for `null`
  16614. * and `undefined` values. The sign of `-0` is preserved.
  16615. *
  16616. * @static
  16617. * @memberOf _
  16618. * @since 4.0.0
  16619. * @category Lang
  16620. * @param {*} value The value to convert.
  16621. * @returns {string} Returns the converted string.
  16622. * @example
  16623. *
  16624. * _.toString(null);
  16625. * // => ''
  16626. *
  16627. * _.toString(-0);
  16628. * // => '-0'
  16629. *
  16630. * _.toString([1, 2, 3]);
  16631. * // => '1,2,3'
  16632. */
  16633. function toString(value) {
  16634. return value == null ? '' : baseToString(value);
  16635. }
  16636. /*------------------------------------------------------------------------*/
  16637. /**
  16638. * Assigns own enumerable string keyed properties of source objects to the
  16639. * destination object. Source objects are applied from left to right.
  16640. * Subsequent sources overwrite property assignments of previous sources.
  16641. *
  16642. * **Note:** This method mutates `object` and is loosely based on
  16643. * [`Object.assign`](https://mdn.io/Object/assign).
  16644. *
  16645. * @static
  16646. * @memberOf _
  16647. * @since 0.10.0
  16648. * @category Object
  16649. * @param {Object} object The destination object.
  16650. * @param {...Object} [sources] The source objects.
  16651. * @returns {Object} Returns `object`.
  16652. * @see _.assignIn
  16653. * @example
  16654. *
  16655. * function Foo() {
  16656. * this.a = 1;
  16657. * }
  16658. *
  16659. * function Bar() {
  16660. * this.c = 3;
  16661. * }
  16662. *
  16663. * Foo.prototype.b = 2;
  16664. * Bar.prototype.d = 4;
  16665. *
  16666. * _.assign({ 'a': 0 }, new Foo, new Bar);
  16667. * // => { 'a': 1, 'c': 3 }
  16668. */
  16669. var assign = createAssigner(function(object, source) {
  16670. if (isPrototype(source) || isArrayLike(source)) {
  16671. copyObject(source, keys(source), object);
  16672. return;
  16673. }
  16674. for (var key in source) {
  16675. if (hasOwnProperty.call(source, key)) {
  16676. assignValue(object, key, source[key]);
  16677. }
  16678. }
  16679. });
  16680. /**
  16681. * This method is like `_.assign` except that it iterates over own and
  16682. * inherited source properties.
  16683. *
  16684. * **Note:** This method mutates `object`.
  16685. *
  16686. * @static
  16687. * @memberOf _
  16688. * @since 4.0.0
  16689. * @alias extend
  16690. * @category Object
  16691. * @param {Object} object The destination object.
  16692. * @param {...Object} [sources] The source objects.
  16693. * @returns {Object} Returns `object`.
  16694. * @see _.assign
  16695. * @example
  16696. *
  16697. * function Foo() {
  16698. * this.a = 1;
  16699. * }
  16700. *
  16701. * function Bar() {
  16702. * this.c = 3;
  16703. * }
  16704. *
  16705. * Foo.prototype.b = 2;
  16706. * Bar.prototype.d = 4;
  16707. *
  16708. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  16709. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  16710. */
  16711. var assignIn = createAssigner(function(object, source) {
  16712. copyObject(source, keysIn(source), object);
  16713. });
  16714. /**
  16715. * This method is like `_.assignIn` except that it accepts `customizer`
  16716. * which is invoked to produce the assigned values. If `customizer` returns
  16717. * `undefined`, assignment is handled by the method instead. The `customizer`
  16718. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  16719. *
  16720. * **Note:** This method mutates `object`.
  16721. *
  16722. * @static
  16723. * @memberOf _
  16724. * @since 4.0.0
  16725. * @alias extendWith
  16726. * @category Object
  16727. * @param {Object} object The destination object.
  16728. * @param {...Object} sources The source objects.
  16729. * @param {Function} [customizer] The function to customize assigned values.
  16730. * @returns {Object} Returns `object`.
  16731. * @see _.assignWith
  16732. * @example
  16733. *
  16734. * function customizer(objValue, srcValue) {
  16735. * return _.isUndefined(objValue) ? srcValue : objValue;
  16736. * }
  16737. *
  16738. * var defaults = _.partialRight(_.assignInWith, customizer);
  16739. *
  16740. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  16741. * // => { 'a': 1, 'b': 2 }
  16742. */
  16743. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  16744. copyObject(source, keysIn(source), object, customizer);
  16745. });
  16746. /**
  16747. * This method is like `_.assign` except that it accepts `customizer`
  16748. * which is invoked to produce the assigned values. If `customizer` returns
  16749. * `undefined`, assignment is handled by the method instead. The `customizer`
  16750. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  16751. *
  16752. * **Note:** This method mutates `object`.
  16753. *
  16754. * @static
  16755. * @memberOf _
  16756. * @since 4.0.0
  16757. * @category Object
  16758. * @param {Object} object The destination object.
  16759. * @param {...Object} sources The source objects.
  16760. * @param {Function} [customizer] The function to customize assigned values.
  16761. * @returns {Object} Returns `object`.
  16762. * @see _.assignInWith
  16763. * @example
  16764. *
  16765. * function customizer(objValue, srcValue) {
  16766. * return _.isUndefined(objValue) ? srcValue : objValue;
  16767. * }
  16768. *
  16769. * var defaults = _.partialRight(_.assignWith, customizer);
  16770. *
  16771. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  16772. * // => { 'a': 1, 'b': 2 }
  16773. */
  16774. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  16775. copyObject(source, keys(source), object, customizer);
  16776. });
  16777. /**
  16778. * Creates an array of values corresponding to `paths` of `object`.
  16779. *
  16780. * @static
  16781. * @memberOf _
  16782. * @since 1.0.0
  16783. * @category Object
  16784. * @param {Object} object The object to iterate over.
  16785. * @param {...(string|string[])} [paths] The property paths to pick.
  16786. * @returns {Array} Returns the picked values.
  16787. * @example
  16788. *
  16789. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  16790. *
  16791. * _.at(object, ['a[0].b.c', 'a[1]']);
  16792. * // => [3, 4]
  16793. */
  16794. var at = flatRest(baseAt);
  16795. /**
  16796. * Creates an object that inherits from the `prototype` object. If a
  16797. * `properties` object is given, its own enumerable string keyed properties
  16798. * are assigned to the created object.
  16799. *
  16800. * @static
  16801. * @memberOf _
  16802. * @since 2.3.0
  16803. * @category Object
  16804. * @param {Object} prototype The object to inherit from.
  16805. * @param {Object} [properties] The properties to assign to the object.
  16806. * @returns {Object} Returns the new object.
  16807. * @example
  16808. *
  16809. * function Shape() {
  16810. * this.x = 0;
  16811. * this.y = 0;
  16812. * }
  16813. *
  16814. * function Circle() {
  16815. * Shape.call(this);
  16816. * }
  16817. *
  16818. * Circle.prototype = _.create(Shape.prototype, {
  16819. * 'constructor': Circle
  16820. * });
  16821. *
  16822. * var circle = new Circle;
  16823. * circle instanceof Circle;
  16824. * // => true
  16825. *
  16826. * circle instanceof Shape;
  16827. * // => true
  16828. */
  16829. function create(prototype, properties) {
  16830. var result = baseCreate(prototype);
  16831. return properties == null ? result : baseAssign(result, properties);
  16832. }
  16833. /**
  16834. * Assigns own and inherited enumerable string keyed properties of source
  16835. * objects to the destination object for all destination properties that
  16836. * resolve to `undefined`. Source objects are applied from left to right.
  16837. * Once a property is set, additional values of the same property are ignored.
  16838. *
  16839. * **Note:** This method mutates `object`.
  16840. *
  16841. * @static
  16842. * @since 0.1.0
  16843. * @memberOf _
  16844. * @category Object
  16845. * @param {Object} object The destination object.
  16846. * @param {...Object} [sources] The source objects.
  16847. * @returns {Object} Returns `object`.
  16848. * @see _.defaultsDeep
  16849. * @example
  16850. *
  16851. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  16852. * // => { 'a': 1, 'b': 2 }
  16853. */
  16854. var defaults = baseRest(function(object, sources) {
  16855. object = Object(object);
  16856. var index = -1;
  16857. var length = sources.length;
  16858. var guard = length > 2 ? sources[2] : undefined;
  16859. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  16860. length = 1;
  16861. }
  16862. while (++index < length) {
  16863. var source = sources[index];
  16864. var props = keysIn(source);
  16865. var propsIndex = -1;
  16866. var propsLength = props.length;
  16867. while (++propsIndex < propsLength) {
  16868. var key = props[propsIndex];
  16869. var value = object[key];
  16870. if (value === undefined ||
  16871. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  16872. object[key] = source[key];
  16873. }
  16874. }
  16875. }
  16876. return object;
  16877. });
  16878. /**
  16879. * This method is like `_.defaults` except that it recursively assigns
  16880. * default properties.
  16881. *
  16882. * **Note:** This method mutates `object`.
  16883. *
  16884. * @static
  16885. * @memberOf _
  16886. * @since 3.10.0
  16887. * @category Object
  16888. * @param {Object} object The destination object.
  16889. * @param {...Object} [sources] The source objects.
  16890. * @returns {Object} Returns `object`.
  16891. * @see _.defaults
  16892. * @example
  16893. *
  16894. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  16895. * // => { 'a': { 'b': 2, 'c': 3 } }
  16896. */
  16897. var defaultsDeep = baseRest(function(args) {
  16898. args.push(undefined, customDefaultsMerge);
  16899. return apply(mergeWith, undefined, args);
  16900. });
  16901. /**
  16902. * This method is like `_.find` except that it returns the key of the first
  16903. * element `predicate` returns truthy for instead of the element itself.
  16904. *
  16905. * @static
  16906. * @memberOf _
  16907. * @since 1.1.0
  16908. * @category Object
  16909. * @param {Object} object The object to inspect.
  16910. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  16911. * @returns {string|undefined} Returns the key of the matched element,
  16912. * else `undefined`.
  16913. * @example
  16914. *
  16915. * var users = {
  16916. * 'barney': { 'age': 36, 'active': true },
  16917. * 'fred': { 'age': 40, 'active': false },
  16918. * 'pebbles': { 'age': 1, 'active': true }
  16919. * };
  16920. *
  16921. * _.findKey(users, function(o) { return o.age < 40; });
  16922. * // => 'barney' (iteration order is not guaranteed)
  16923. *
  16924. * // The `_.matches` iteratee shorthand.
  16925. * _.findKey(users, { 'age': 1, 'active': true });
  16926. * // => 'pebbles'
  16927. *
  16928. * // The `_.matchesProperty` iteratee shorthand.
  16929. * _.findKey(users, ['active', false]);
  16930. * // => 'fred'
  16931. *
  16932. * // The `_.property` iteratee shorthand.
  16933. * _.findKey(users, 'active');
  16934. * // => 'barney'
  16935. */
  16936. function findKey(object, predicate) {
  16937. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  16938. }
  16939. /**
  16940. * This method is like `_.findKey` except that it iterates over elements of
  16941. * a collection in the opposite order.
  16942. *
  16943. * @static
  16944. * @memberOf _
  16945. * @since 2.0.0
  16946. * @category Object
  16947. * @param {Object} object The object to inspect.
  16948. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  16949. * @returns {string|undefined} Returns the key of the matched element,
  16950. * else `undefined`.
  16951. * @example
  16952. *
  16953. * var users = {
  16954. * 'barney': { 'age': 36, 'active': true },
  16955. * 'fred': { 'age': 40, 'active': false },
  16956. * 'pebbles': { 'age': 1, 'active': true }
  16957. * };
  16958. *
  16959. * _.findLastKey(users, function(o) { return o.age < 40; });
  16960. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  16961. *
  16962. * // The `_.matches` iteratee shorthand.
  16963. * _.findLastKey(users, { 'age': 36, 'active': true });
  16964. * // => 'barney'
  16965. *
  16966. * // The `_.matchesProperty` iteratee shorthand.
  16967. * _.findLastKey(users, ['active', false]);
  16968. * // => 'fred'
  16969. *
  16970. * // The `_.property` iteratee shorthand.
  16971. * _.findLastKey(users, 'active');
  16972. * // => 'pebbles'
  16973. */
  16974. function findLastKey(object, predicate) {
  16975. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  16976. }
  16977. /**
  16978. * Iterates over own and inherited enumerable string keyed properties of an
  16979. * object and invokes `iteratee` for each property. The iteratee is invoked
  16980. * with three arguments: (value, key, object). Iteratee functions may exit
  16981. * iteration early by explicitly returning `false`.
  16982. *
  16983. * @static
  16984. * @memberOf _
  16985. * @since 0.3.0
  16986. * @category Object
  16987. * @param {Object} object The object to iterate over.
  16988. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16989. * @returns {Object} Returns `object`.
  16990. * @see _.forInRight
  16991. * @example
  16992. *
  16993. * function Foo() {
  16994. * this.a = 1;
  16995. * this.b = 2;
  16996. * }
  16997. *
  16998. * Foo.prototype.c = 3;
  16999. *
  17000. * _.forIn(new Foo, function(value, key) {
  17001. * console.log(key);
  17002. * });
  17003. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  17004. */
  17005. function forIn(object, iteratee) {
  17006. return object == null
  17007. ? object
  17008. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  17009. }
  17010. /**
  17011. * This method is like `_.forIn` except that it iterates over properties of
  17012. * `object` in the opposite order.
  17013. *
  17014. * @static
  17015. * @memberOf _
  17016. * @since 2.0.0
  17017. * @category Object
  17018. * @param {Object} object The object to iterate over.
  17019. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17020. * @returns {Object} Returns `object`.
  17021. * @see _.forIn
  17022. * @example
  17023. *
  17024. * function Foo() {
  17025. * this.a = 1;
  17026. * this.b = 2;
  17027. * }
  17028. *
  17029. * Foo.prototype.c = 3;
  17030. *
  17031. * _.forInRight(new Foo, function(value, key) {
  17032. * console.log(key);
  17033. * });
  17034. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  17035. */
  17036. function forInRight(object, iteratee) {
  17037. return object == null
  17038. ? object
  17039. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  17040. }
  17041. /**
  17042. * Iterates over own enumerable string keyed properties of an object and
  17043. * invokes `iteratee` for each property. The iteratee is invoked with three
  17044. * arguments: (value, key, object). Iteratee functions may exit iteration
  17045. * early by explicitly returning `false`.
  17046. *
  17047. * @static
  17048. * @memberOf _
  17049. * @since 0.3.0
  17050. * @category Object
  17051. * @param {Object} object The object to iterate over.
  17052. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17053. * @returns {Object} Returns `object`.
  17054. * @see _.forOwnRight
  17055. * @example
  17056. *
  17057. * function Foo() {
  17058. * this.a = 1;
  17059. * this.b = 2;
  17060. * }
  17061. *
  17062. * Foo.prototype.c = 3;
  17063. *
  17064. * _.forOwn(new Foo, function(value, key) {
  17065. * console.log(key);
  17066. * });
  17067. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  17068. */
  17069. function forOwn(object, iteratee) {
  17070. return object && baseForOwn(object, getIteratee(iteratee, 3));
  17071. }
  17072. /**
  17073. * This method is like `_.forOwn` except that it iterates over properties of
  17074. * `object` in the opposite order.
  17075. *
  17076. * @static
  17077. * @memberOf _
  17078. * @since 2.0.0
  17079. * @category Object
  17080. * @param {Object} object The object to iterate over.
  17081. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17082. * @returns {Object} Returns `object`.
  17083. * @see _.forOwn
  17084. * @example
  17085. *
  17086. * function Foo() {
  17087. * this.a = 1;
  17088. * this.b = 2;
  17089. * }
  17090. *
  17091. * Foo.prototype.c = 3;
  17092. *
  17093. * _.forOwnRight(new Foo, function(value, key) {
  17094. * console.log(key);
  17095. * });
  17096. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  17097. */
  17098. function forOwnRight(object, iteratee) {
  17099. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  17100. }
  17101. /**
  17102. * Creates an array of function property names from own enumerable properties
  17103. * of `object`.
  17104. *
  17105. * @static
  17106. * @since 0.1.0
  17107. * @memberOf _
  17108. * @category Object
  17109. * @param {Object} object The object to inspect.
  17110. * @returns {Array} Returns the function names.
  17111. * @see _.functionsIn
  17112. * @example
  17113. *
  17114. * function Foo() {
  17115. * this.a = _.constant('a');
  17116. * this.b = _.constant('b');
  17117. * }
  17118. *
  17119. * Foo.prototype.c = _.constant('c');
  17120. *
  17121. * _.functions(new Foo);
  17122. * // => ['a', 'b']
  17123. */
  17124. function functions(object) {
  17125. return object == null ? [] : baseFunctions(object, keys(object));
  17126. }
  17127. /**
  17128. * Creates an array of function property names from own and inherited
  17129. * enumerable properties of `object`.
  17130. *
  17131. * @static
  17132. * @memberOf _
  17133. * @since 4.0.0
  17134. * @category Object
  17135. * @param {Object} object The object to inspect.
  17136. * @returns {Array} Returns the function names.
  17137. * @see _.functions
  17138. * @example
  17139. *
  17140. * function Foo() {
  17141. * this.a = _.constant('a');
  17142. * this.b = _.constant('b');
  17143. * }
  17144. *
  17145. * Foo.prototype.c = _.constant('c');
  17146. *
  17147. * _.functionsIn(new Foo);
  17148. * // => ['a', 'b', 'c']
  17149. */
  17150. function functionsIn(object) {
  17151. return object == null ? [] : baseFunctions(object, keysIn(object));
  17152. }
  17153. /**
  17154. * Gets the value at `path` of `object`. If the resolved value is
  17155. * `undefined`, the `defaultValue` is returned in its place.
  17156. *
  17157. * @static
  17158. * @memberOf _
  17159. * @since 3.7.0
  17160. * @category Object
  17161. * @param {Object} object The object to query.
  17162. * @param {Array|string} path The path of the property to get.
  17163. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  17164. * @returns {*} Returns the resolved value.
  17165. * @example
  17166. *
  17167. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  17168. *
  17169. * _.get(object, 'a[0].b.c');
  17170. * // => 3
  17171. *
  17172. * _.get(object, ['a', '0', 'b', 'c']);
  17173. * // => 3
  17174. *
  17175. * _.get(object, 'a.b.c', 'default');
  17176. * // => 'default'
  17177. */
  17178. function get(object, path, defaultValue) {
  17179. var result = object == null ? undefined : baseGet(object, path);
  17180. return result === undefined ? defaultValue : result;
  17181. }
  17182. /**
  17183. * Checks if `path` is a direct property of `object`.
  17184. *
  17185. * @static
  17186. * @since 0.1.0
  17187. * @memberOf _
  17188. * @category Object
  17189. * @param {Object} object The object to query.
  17190. * @param {Array|string} path The path to check.
  17191. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  17192. * @example
  17193. *
  17194. * var object = { 'a': { 'b': 2 } };
  17195. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  17196. *
  17197. * _.has(object, 'a');
  17198. * // => true
  17199. *
  17200. * _.has(object, 'a.b');
  17201. * // => true
  17202. *
  17203. * _.has(object, ['a', 'b']);
  17204. * // => true
  17205. *
  17206. * _.has(other, 'a');
  17207. * // => false
  17208. */
  17209. function has(object, path) {
  17210. return object != null && hasPath(object, path, baseHas);
  17211. }
  17212. /**
  17213. * Checks if `path` is a direct or inherited property of `object`.
  17214. *
  17215. * @static
  17216. * @memberOf _
  17217. * @since 4.0.0
  17218. * @category Object
  17219. * @param {Object} object The object to query.
  17220. * @param {Array|string} path The path to check.
  17221. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  17222. * @example
  17223. *
  17224. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  17225. *
  17226. * _.hasIn(object, 'a');
  17227. * // => true
  17228. *
  17229. * _.hasIn(object, 'a.b');
  17230. * // => true
  17231. *
  17232. * _.hasIn(object, ['a', 'b']);
  17233. * // => true
  17234. *
  17235. * _.hasIn(object, 'b');
  17236. * // => false
  17237. */
  17238. function hasIn(object, path) {
  17239. return object != null && hasPath(object, path, baseHasIn);
  17240. }
  17241. /**
  17242. * Creates an object composed of the inverted keys and values of `object`.
  17243. * If `object` contains duplicate values, subsequent values overwrite
  17244. * property assignments of previous values.
  17245. *
  17246. * @static
  17247. * @memberOf _
  17248. * @since 0.7.0
  17249. * @category Object
  17250. * @param {Object} object The object to invert.
  17251. * @returns {Object} Returns the new inverted object.
  17252. * @example
  17253. *
  17254. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  17255. *
  17256. * _.invert(object);
  17257. * // => { '1': 'c', '2': 'b' }
  17258. */
  17259. var invert = createInverter(function(result, value, key) {
  17260. if (value != null &&
  17261. typeof value.toString != 'function') {
  17262. value = nativeObjectToString.call(value);
  17263. }
  17264. result[value] = key;
  17265. }, constant(identity));
  17266. /**
  17267. * This method is like `_.invert` except that the inverted object is generated
  17268. * from the results of running each element of `object` thru `iteratee`. The
  17269. * corresponding inverted value of each inverted key is an array of keys
  17270. * responsible for generating the inverted value. The iteratee is invoked
  17271. * with one argument: (value).
  17272. *
  17273. * @static
  17274. * @memberOf _
  17275. * @since 4.1.0
  17276. * @category Object
  17277. * @param {Object} object The object to invert.
  17278. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  17279. * @returns {Object} Returns the new inverted object.
  17280. * @example
  17281. *
  17282. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  17283. *
  17284. * _.invertBy(object);
  17285. * // => { '1': ['a', 'c'], '2': ['b'] }
  17286. *
  17287. * _.invertBy(object, function(value) {
  17288. * return 'group' + value;
  17289. * });
  17290. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  17291. */
  17292. var invertBy = createInverter(function(result, value, key) {
  17293. if (value != null &&
  17294. typeof value.toString != 'function') {
  17295. value = nativeObjectToString.call(value);
  17296. }
  17297. if (hasOwnProperty.call(result, value)) {
  17298. result[value].push(key);
  17299. } else {
  17300. result[value] = [key];
  17301. }
  17302. }, getIteratee);
  17303. /**
  17304. * Invokes the method at `path` of `object`.
  17305. *
  17306. * @static
  17307. * @memberOf _
  17308. * @since 4.0.0
  17309. * @category Object
  17310. * @param {Object} object The object to query.
  17311. * @param {Array|string} path The path of the method to invoke.
  17312. * @param {...*} [args] The arguments to invoke the method with.
  17313. * @returns {*} Returns the result of the invoked method.
  17314. * @example
  17315. *
  17316. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  17317. *
  17318. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  17319. * // => [2, 3]
  17320. */
  17321. var invoke = baseRest(baseInvoke);
  17322. /**
  17323. * Creates an array of the own enumerable property names of `object`.
  17324. *
  17325. * **Note:** Non-object values are coerced to objects. See the
  17326. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  17327. * for more details.
  17328. *
  17329. * @static
  17330. * @since 0.1.0
  17331. * @memberOf _
  17332. * @category Object
  17333. * @param {Object} object The object to query.
  17334. * @returns {Array} Returns the array of property names.
  17335. * @example
  17336. *
  17337. * function Foo() {
  17338. * this.a = 1;
  17339. * this.b = 2;
  17340. * }
  17341. *
  17342. * Foo.prototype.c = 3;
  17343. *
  17344. * _.keys(new Foo);
  17345. * // => ['a', 'b'] (iteration order is not guaranteed)
  17346. *
  17347. * _.keys('hi');
  17348. * // => ['0', '1']
  17349. */
  17350. function keys(object) {
  17351. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  17352. }
  17353. /**
  17354. * Creates an array of the own and inherited enumerable property names of `object`.
  17355. *
  17356. * **Note:** Non-object values are coerced to objects.
  17357. *
  17358. * @static
  17359. * @memberOf _
  17360. * @since 3.0.0
  17361. * @category Object
  17362. * @param {Object} object The object to query.
  17363. * @returns {Array} Returns the array of property names.
  17364. * @example
  17365. *
  17366. * function Foo() {
  17367. * this.a = 1;
  17368. * this.b = 2;
  17369. * }
  17370. *
  17371. * Foo.prototype.c = 3;
  17372. *
  17373. * _.keysIn(new Foo);
  17374. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  17375. */
  17376. function keysIn(object) {
  17377. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  17378. }
  17379. /**
  17380. * The opposite of `_.mapValues`; this method creates an object with the
  17381. * same values as `object` and keys generated by running each own enumerable
  17382. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  17383. * with three arguments: (value, key, object).
  17384. *
  17385. * @static
  17386. * @memberOf _
  17387. * @since 3.8.0
  17388. * @category Object
  17389. * @param {Object} object The object to iterate over.
  17390. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17391. * @returns {Object} Returns the new mapped object.
  17392. * @see _.mapValues
  17393. * @example
  17394. *
  17395. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  17396. * return key + value;
  17397. * });
  17398. * // => { 'a1': 1, 'b2': 2 }
  17399. */
  17400. function mapKeys(object, iteratee) {
  17401. var result = {};
  17402. iteratee = getIteratee(iteratee, 3);
  17403. baseForOwn(object, function(value, key, object) {
  17404. baseAssignValue(result, iteratee(value, key, object), value);
  17405. });
  17406. return result;
  17407. }
  17408. /**
  17409. * Creates an object with the same keys as `object` and values generated
  17410. * by running each own enumerable string keyed property of `object` thru
  17411. * `iteratee`. The iteratee is invoked with three arguments:
  17412. * (value, key, object).
  17413. *
  17414. * @static
  17415. * @memberOf _
  17416. * @since 2.4.0
  17417. * @category Object
  17418. * @param {Object} object The object to iterate over.
  17419. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17420. * @returns {Object} Returns the new mapped object.
  17421. * @see _.mapKeys
  17422. * @example
  17423. *
  17424. * var users = {
  17425. * 'fred': { 'user': 'fred', 'age': 40 },
  17426. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  17427. * };
  17428. *
  17429. * _.mapValues(users, function(o) { return o.age; });
  17430. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  17431. *
  17432. * // The `_.property` iteratee shorthand.
  17433. * _.mapValues(users, 'age');
  17434. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  17435. */
  17436. function mapValues(object, iteratee) {
  17437. var result = {};
  17438. iteratee = getIteratee(iteratee, 3);
  17439. baseForOwn(object, function(value, key, object) {
  17440. baseAssignValue(result, key, iteratee(value, key, object));
  17441. });
  17442. return result;
  17443. }
  17444. /**
  17445. * This method is like `_.assign` except that it recursively merges own and
  17446. * inherited enumerable string keyed properties of source objects into the
  17447. * destination object. Source properties that resolve to `undefined` are
  17448. * skipped if a destination value exists. Array and plain object properties
  17449. * are merged recursively. Other objects and value types are overridden by
  17450. * assignment. Source objects are applied from left to right. Subsequent
  17451. * sources overwrite property assignments of previous sources.
  17452. *
  17453. * **Note:** This method mutates `object`.
  17454. *
  17455. * @static
  17456. * @memberOf _
  17457. * @since 0.5.0
  17458. * @category Object
  17459. * @param {Object} object The destination object.
  17460. * @param {...Object} [sources] The source objects.
  17461. * @returns {Object} Returns `object`.
  17462. * @example
  17463. *
  17464. * var object = {
  17465. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  17466. * };
  17467. *
  17468. * var other = {
  17469. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  17470. * };
  17471. *
  17472. * _.merge(object, other);
  17473. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  17474. */
  17475. var merge = createAssigner(function(object, source, srcIndex) {
  17476. baseMerge(object, source, srcIndex);
  17477. });
  17478. /**
  17479. * This method is like `_.merge` except that it accepts `customizer` which
  17480. * is invoked to produce the merged values of the destination and source
  17481. * properties. If `customizer` returns `undefined`, merging is handled by the
  17482. * method instead. The `customizer` is invoked with six arguments:
  17483. * (objValue, srcValue, key, object, source, stack).
  17484. *
  17485. * **Note:** This method mutates `object`.
  17486. *
  17487. * @static
  17488. * @memberOf _
  17489. * @since 4.0.0
  17490. * @category Object
  17491. * @param {Object} object The destination object.
  17492. * @param {...Object} sources The source objects.
  17493. * @param {Function} customizer The function to customize assigned values.
  17494. * @returns {Object} Returns `object`.
  17495. * @example
  17496. *
  17497. * function customizer(objValue, srcValue) {
  17498. * if (_.isArray(objValue)) {
  17499. * return objValue.concat(srcValue);
  17500. * }
  17501. * }
  17502. *
  17503. * var object = { 'a': [1], 'b': [2] };
  17504. * var other = { 'a': [3], 'b': [4] };
  17505. *
  17506. * _.mergeWith(object, other, customizer);
  17507. * // => { 'a': [1, 3], 'b': [2, 4] }
  17508. */
  17509. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  17510. baseMerge(object, source, srcIndex, customizer);
  17511. });
  17512. /**
  17513. * The opposite of `_.pick`; this method creates an object composed of the
  17514. * own and inherited enumerable property paths of `object` that are not omitted.
  17515. *
  17516. * **Note:** This method is considerably slower than `_.pick`.
  17517. *
  17518. * @static
  17519. * @since 0.1.0
  17520. * @memberOf _
  17521. * @category Object
  17522. * @param {Object} object The source object.
  17523. * @param {...(string|string[])} [paths] The property paths to omit.
  17524. * @returns {Object} Returns the new object.
  17525. * @example
  17526. *
  17527. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17528. *
  17529. * _.omit(object, ['a', 'c']);
  17530. * // => { 'b': '2' }
  17531. */
  17532. var omit = flatRest(function(object, paths) {
  17533. var result = {};
  17534. if (object == null) {
  17535. return result;
  17536. }
  17537. var isDeep = false;
  17538. paths = arrayMap(paths, function(path) {
  17539. path = castPath(path, object);
  17540. isDeep || (isDeep = path.length > 1);
  17541. return path;
  17542. });
  17543. copyObject(object, getAllKeysIn(object), result);
  17544. if (isDeep) {
  17545. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  17546. }
  17547. var length = paths.length;
  17548. while (length--) {
  17549. baseUnset(result, paths[length]);
  17550. }
  17551. return result;
  17552. });
  17553. /**
  17554. * The opposite of `_.pickBy`; this method creates an object composed of
  17555. * the own and inherited enumerable string keyed properties of `object` that
  17556. * `predicate` doesn't return truthy for. The predicate is invoked with two
  17557. * arguments: (value, key).
  17558. *
  17559. * @static
  17560. * @memberOf _
  17561. * @since 4.0.0
  17562. * @category Object
  17563. * @param {Object} object The source object.
  17564. * @param {Function} [predicate=_.identity] The function invoked per property.
  17565. * @returns {Object} Returns the new object.
  17566. * @example
  17567. *
  17568. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17569. *
  17570. * _.omitBy(object, _.isNumber);
  17571. * // => { 'b': '2' }
  17572. */
  17573. function omitBy(object, predicate) {
  17574. return pickBy(object, negate(getIteratee(predicate)));
  17575. }
  17576. /**
  17577. * Creates an object composed of the picked `object` properties.
  17578. *
  17579. * @static
  17580. * @since 0.1.0
  17581. * @memberOf _
  17582. * @category Object
  17583. * @param {Object} object The source object.
  17584. * @param {...(string|string[])} [paths] The property paths to pick.
  17585. * @returns {Object} Returns the new object.
  17586. * @example
  17587. *
  17588. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17589. *
  17590. * _.pick(object, ['a', 'c']);
  17591. * // => { 'a': 1, 'c': 3 }
  17592. */
  17593. var pick = flatRest(function(object, paths) {
  17594. return object == null ? {} : basePick(object, paths);
  17595. });
  17596. /**
  17597. * Creates an object composed of the `object` properties `predicate` returns
  17598. * truthy for. The predicate is invoked with two arguments: (value, key).
  17599. *
  17600. * @static
  17601. * @memberOf _
  17602. * @since 4.0.0
  17603. * @category Object
  17604. * @param {Object} object The source object.
  17605. * @param {Function} [predicate=_.identity] The function invoked per property.
  17606. * @returns {Object} Returns the new object.
  17607. * @example
  17608. *
  17609. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  17610. *
  17611. * _.pickBy(object, _.isNumber);
  17612. * // => { 'a': 1, 'c': 3 }
  17613. */
  17614. function pickBy(object, predicate) {
  17615. if (object == null) {
  17616. return {};
  17617. }
  17618. var props = arrayMap(getAllKeysIn(object), function(prop) {
  17619. return [prop];
  17620. });
  17621. predicate = getIteratee(predicate);
  17622. return basePickBy(object, props, function(value, path) {
  17623. return predicate(value, path[0]);
  17624. });
  17625. }
  17626. /**
  17627. * This method is like `_.get` except that if the resolved value is a
  17628. * function it's invoked with the `this` binding of its parent object and
  17629. * its result is returned.
  17630. *
  17631. * @static
  17632. * @since 0.1.0
  17633. * @memberOf _
  17634. * @category Object
  17635. * @param {Object} object The object to query.
  17636. * @param {Array|string} path The path of the property to resolve.
  17637. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  17638. * @returns {*} Returns the resolved value.
  17639. * @example
  17640. *
  17641. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  17642. *
  17643. * _.result(object, 'a[0].b.c1');
  17644. * // => 3
  17645. *
  17646. * _.result(object, 'a[0].b.c2');
  17647. * // => 4
  17648. *
  17649. * _.result(object, 'a[0].b.c3', 'default');
  17650. * // => 'default'
  17651. *
  17652. * _.result(object, 'a[0].b.c3', _.constant('default'));
  17653. * // => 'default'
  17654. */
  17655. function result(object, path, defaultValue) {
  17656. path = castPath(path, object);
  17657. var index = -1,
  17658. length = path.length;
  17659. // Ensure the loop is entered when path is empty.
  17660. if (!length) {
  17661. length = 1;
  17662. object = undefined;
  17663. }
  17664. while (++index < length) {
  17665. var value = object == null ? undefined : object[toKey(path[index])];
  17666. if (value === undefined) {
  17667. index = length;
  17668. value = defaultValue;
  17669. }
  17670. object = isFunction(value) ? value.call(object) : value;
  17671. }
  17672. return object;
  17673. }
  17674. /**
  17675. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  17676. * it's created. Arrays are created for missing index properties while objects
  17677. * are created for all other missing properties. Use `_.setWith` to customize
  17678. * `path` creation.
  17679. *
  17680. * **Note:** This method mutates `object`.
  17681. *
  17682. * @static
  17683. * @memberOf _
  17684. * @since 3.7.0
  17685. * @category Object
  17686. * @param {Object} object The object to modify.
  17687. * @param {Array|string} path The path of the property to set.
  17688. * @param {*} value The value to set.
  17689. * @returns {Object} Returns `object`.
  17690. * @example
  17691. *
  17692. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  17693. *
  17694. * _.set(object, 'a[0].b.c', 4);
  17695. * console.log(object.a[0].b.c);
  17696. * // => 4
  17697. *
  17698. * _.set(object, ['x', '0', 'y', 'z'], 5);
  17699. * console.log(object.x[0].y.z);
  17700. * // => 5
  17701. */
  17702. function set(object, path, value) {
  17703. return object == null ? object : baseSet(object, path, value);
  17704. }
  17705. /**
  17706. * This method is like `_.set` except that it accepts `customizer` which is
  17707. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  17708. * path creation is handled by the method instead. The `customizer` is invoked
  17709. * with three arguments: (nsValue, key, nsObject).
  17710. *
  17711. * **Note:** This method mutates `object`.
  17712. *
  17713. * @static
  17714. * @memberOf _
  17715. * @since 4.0.0
  17716. * @category Object
  17717. * @param {Object} object The object to modify.
  17718. * @param {Array|string} path The path of the property to set.
  17719. * @param {*} value The value to set.
  17720. * @param {Function} [customizer] The function to customize assigned values.
  17721. * @returns {Object} Returns `object`.
  17722. * @example
  17723. *
  17724. * var object = {};
  17725. *
  17726. * _.setWith(object, '[0][1]', 'a', Object);
  17727. * // => { '0': { '1': 'a' } }
  17728. */
  17729. function setWith(object, path, value, customizer) {
  17730. customizer = typeof customizer == 'function' ? customizer : undefined;
  17731. return object == null ? object : baseSet(object, path, value, customizer);
  17732. }
  17733. /**
  17734. * Creates an array of own enumerable string keyed-value pairs for `object`
  17735. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  17736. * entries are returned.
  17737. *
  17738. * @static
  17739. * @memberOf _
  17740. * @since 4.0.0
  17741. * @alias entries
  17742. * @category Object
  17743. * @param {Object} object The object to query.
  17744. * @returns {Array} Returns the key-value pairs.
  17745. * @example
  17746. *
  17747. * function Foo() {
  17748. * this.a = 1;
  17749. * this.b = 2;
  17750. * }
  17751. *
  17752. * Foo.prototype.c = 3;
  17753. *
  17754. * _.toPairs(new Foo);
  17755. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  17756. */
  17757. var toPairs = createToPairs(keys);
  17758. /**
  17759. * Creates an array of own and inherited enumerable string keyed-value pairs
  17760. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  17761. * or set, its entries are returned.
  17762. *
  17763. * @static
  17764. * @memberOf _
  17765. * @since 4.0.0
  17766. * @alias entriesIn
  17767. * @category Object
  17768. * @param {Object} object The object to query.
  17769. * @returns {Array} Returns the key-value pairs.
  17770. * @example
  17771. *
  17772. * function Foo() {
  17773. * this.a = 1;
  17774. * this.b = 2;
  17775. * }
  17776. *
  17777. * Foo.prototype.c = 3;
  17778. *
  17779. * _.toPairsIn(new Foo);
  17780. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  17781. */
  17782. var toPairsIn = createToPairs(keysIn);
  17783. /**
  17784. * An alternative to `_.reduce`; this method transforms `object` to a new
  17785. * `accumulator` object which is the result of running each of its own
  17786. * enumerable string keyed properties thru `iteratee`, with each invocation
  17787. * potentially mutating the `accumulator` object. If `accumulator` is not
  17788. * provided, a new object with the same `[[Prototype]]` will be used. The
  17789. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  17790. * Iteratee functions may exit iteration early by explicitly returning `false`.
  17791. *
  17792. * @static
  17793. * @memberOf _
  17794. * @since 1.3.0
  17795. * @category Object
  17796. * @param {Object} object The object to iterate over.
  17797. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  17798. * @param {*} [accumulator] The custom accumulator value.
  17799. * @returns {*} Returns the accumulated value.
  17800. * @example
  17801. *
  17802. * _.transform([2, 3, 4], function(result, n) {
  17803. * result.push(n *= n);
  17804. * return n % 2 == 0;
  17805. * }, []);
  17806. * // => [4, 9]
  17807. *
  17808. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  17809. * (result[value] || (result[value] = [])).push(key);
  17810. * }, {});
  17811. * // => { '1': ['a', 'c'], '2': ['b'] }
  17812. */
  17813. function transform(object, iteratee, accumulator) {
  17814. var isArr = isArray(object),
  17815. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  17816. iteratee = getIteratee(iteratee, 4);
  17817. if (accumulator == null) {
  17818. var Ctor = object && object.constructor;
  17819. if (isArrLike) {
  17820. accumulator = isArr ? new Ctor : [];
  17821. }
  17822. else if (isObject(object)) {
  17823. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  17824. }
  17825. else {
  17826. accumulator = {};
  17827. }
  17828. }
  17829. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  17830. return iteratee(accumulator, value, index, object);
  17831. });
  17832. return accumulator;
  17833. }
  17834. /**
  17835. * Removes the property at `path` of `object`.
  17836. *
  17837. * **Note:** This method mutates `object`.
  17838. *
  17839. * @static
  17840. * @memberOf _
  17841. * @since 4.0.0
  17842. * @category Object
  17843. * @param {Object} object The object to modify.
  17844. * @param {Array|string} path The path of the property to unset.
  17845. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  17846. * @example
  17847. *
  17848. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  17849. * _.unset(object, 'a[0].b.c');
  17850. * // => true
  17851. *
  17852. * console.log(object);
  17853. * // => { 'a': [{ 'b': {} }] };
  17854. *
  17855. * _.unset(object, ['a', '0', 'b', 'c']);
  17856. * // => true
  17857. *
  17858. * console.log(object);
  17859. * // => { 'a': [{ 'b': {} }] };
  17860. */
  17861. function unset(object, path) {
  17862. return object == null ? true : baseUnset(object, path);
  17863. }
  17864. /**
  17865. * This method is like `_.set` except that accepts `updater` to produce the
  17866. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  17867. * is invoked with one argument: (value).
  17868. *
  17869. * **Note:** This method mutates `object`.
  17870. *
  17871. * @static
  17872. * @memberOf _
  17873. * @since 4.6.0
  17874. * @category Object
  17875. * @param {Object} object The object to modify.
  17876. * @param {Array|string} path The path of the property to set.
  17877. * @param {Function} updater The function to produce the updated value.
  17878. * @returns {Object} Returns `object`.
  17879. * @example
  17880. *
  17881. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  17882. *
  17883. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  17884. * console.log(object.a[0].b.c);
  17885. * // => 9
  17886. *
  17887. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  17888. * console.log(object.x[0].y.z);
  17889. * // => 0
  17890. */
  17891. function update(object, path, updater) {
  17892. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  17893. }
  17894. /**
  17895. * This method is like `_.update` except that it accepts `customizer` which is
  17896. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  17897. * path creation is handled by the method instead. The `customizer` is invoked
  17898. * with three arguments: (nsValue, key, nsObject).
  17899. *
  17900. * **Note:** This method mutates `object`.
  17901. *
  17902. * @static
  17903. * @memberOf _
  17904. * @since 4.6.0
  17905. * @category Object
  17906. * @param {Object} object The object to modify.
  17907. * @param {Array|string} path The path of the property to set.
  17908. * @param {Function} updater The function to produce the updated value.
  17909. * @param {Function} [customizer] The function to customize assigned values.
  17910. * @returns {Object} Returns `object`.
  17911. * @example
  17912. *
  17913. * var object = {};
  17914. *
  17915. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  17916. * // => { '0': { '1': 'a' } }
  17917. */
  17918. function updateWith(object, path, updater, customizer) {
  17919. customizer = typeof customizer == 'function' ? customizer : undefined;
  17920. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  17921. }
  17922. /**
  17923. * Creates an array of the own enumerable string keyed property values of `object`.
  17924. *
  17925. * **Note:** Non-object values are coerced to objects.
  17926. *
  17927. * @static
  17928. * @since 0.1.0
  17929. * @memberOf _
  17930. * @category Object
  17931. * @param {Object} object The object to query.
  17932. * @returns {Array} Returns the array of property values.
  17933. * @example
  17934. *
  17935. * function Foo() {
  17936. * this.a = 1;
  17937. * this.b = 2;
  17938. * }
  17939. *
  17940. * Foo.prototype.c = 3;
  17941. *
  17942. * _.values(new Foo);
  17943. * // => [1, 2] (iteration order is not guaranteed)
  17944. *
  17945. * _.values('hi');
  17946. * // => ['h', 'i']
  17947. */
  17948. function values(object) {
  17949. return object == null ? [] : baseValues(object, keys(object));
  17950. }
  17951. /**
  17952. * Creates an array of the own and inherited enumerable string keyed property
  17953. * values of `object`.
  17954. *
  17955. * **Note:** Non-object values are coerced to objects.
  17956. *
  17957. * @static
  17958. * @memberOf _
  17959. * @since 3.0.0
  17960. * @category Object
  17961. * @param {Object} object The object to query.
  17962. * @returns {Array} Returns the array of property values.
  17963. * @example
  17964. *
  17965. * function Foo() {
  17966. * this.a = 1;
  17967. * this.b = 2;
  17968. * }
  17969. *
  17970. * Foo.prototype.c = 3;
  17971. *
  17972. * _.valuesIn(new Foo);
  17973. * // => [1, 2, 3] (iteration order is not guaranteed)
  17974. */
  17975. function valuesIn(object) {
  17976. return object == null ? [] : baseValues(object, keysIn(object));
  17977. }
  17978. /*------------------------------------------------------------------------*/
  17979. /**
  17980. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  17981. *
  17982. * @static
  17983. * @memberOf _
  17984. * @since 4.0.0
  17985. * @category Number
  17986. * @param {number} number The number to clamp.
  17987. * @param {number} [lower] The lower bound.
  17988. * @param {number} upper The upper bound.
  17989. * @returns {number} Returns the clamped number.
  17990. * @example
  17991. *
  17992. * _.clamp(-10, -5, 5);
  17993. * // => -5
  17994. *
  17995. * _.clamp(10, -5, 5);
  17996. * // => 5
  17997. */
  17998. function clamp(number, lower, upper) {
  17999. if (upper === undefined) {
  18000. upper = lower;
  18001. lower = undefined;
  18002. }
  18003. if (upper !== undefined) {
  18004. upper = toNumber(upper);
  18005. upper = upper === upper ? upper : 0;
  18006. }
  18007. if (lower !== undefined) {
  18008. lower = toNumber(lower);
  18009. lower = lower === lower ? lower : 0;
  18010. }
  18011. return baseClamp(toNumber(number), lower, upper);
  18012. }
  18013. /**
  18014. * Checks if `n` is between `start` and up to, but not including, `end`. If
  18015. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  18016. * If `start` is greater than `end` the params are swapped to support
  18017. * negative ranges.
  18018. *
  18019. * @static
  18020. * @memberOf _
  18021. * @since 3.3.0
  18022. * @category Number
  18023. * @param {number} number The number to check.
  18024. * @param {number} [start=0] The start of the range.
  18025. * @param {number} end The end of the range.
  18026. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  18027. * @see _.range, _.rangeRight
  18028. * @example
  18029. *
  18030. * _.inRange(3, 2, 4);
  18031. * // => true
  18032. *
  18033. * _.inRange(4, 8);
  18034. * // => true
  18035. *
  18036. * _.inRange(4, 2);
  18037. * // => false
  18038. *
  18039. * _.inRange(2, 2);
  18040. * // => false
  18041. *
  18042. * _.inRange(1.2, 2);
  18043. * // => true
  18044. *
  18045. * _.inRange(5.2, 4);
  18046. * // => false
  18047. *
  18048. * _.inRange(-3, -2, -6);
  18049. * // => true
  18050. */
  18051. function inRange(number, start, end) {
  18052. start = toFinite(start);
  18053. if (end === undefined) {
  18054. end = start;
  18055. start = 0;
  18056. } else {
  18057. end = toFinite(end);
  18058. }
  18059. number = toNumber(number);
  18060. return baseInRange(number, start, end);
  18061. }
  18062. /**
  18063. * Produces a random number between the inclusive `lower` and `upper` bounds.
  18064. * If only one argument is provided a number between `0` and the given number
  18065. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  18066. * floats, a floating-point number is returned instead of an integer.
  18067. *
  18068. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  18069. * floating-point values which can produce unexpected results.
  18070. *
  18071. * @static
  18072. * @memberOf _
  18073. * @since 0.7.0
  18074. * @category Number
  18075. * @param {number} [lower=0] The lower bound.
  18076. * @param {number} [upper=1] The upper bound.
  18077. * @param {boolean} [floating] Specify returning a floating-point number.
  18078. * @returns {number} Returns the random number.
  18079. * @example
  18080. *
  18081. * _.random(0, 5);
  18082. * // => an integer between 0 and 5
  18083. *
  18084. * _.random(5);
  18085. * // => also an integer between 0 and 5
  18086. *
  18087. * _.random(5, true);
  18088. * // => a floating-point number between 0 and 5
  18089. *
  18090. * _.random(1.2, 5.2);
  18091. * // => a floating-point number between 1.2 and 5.2
  18092. */
  18093. function random(lower, upper, floating) {
  18094. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  18095. upper = floating = undefined;
  18096. }
  18097. if (floating === undefined) {
  18098. if (typeof upper == 'boolean') {
  18099. floating = upper;
  18100. upper = undefined;
  18101. }
  18102. else if (typeof lower == 'boolean') {
  18103. floating = lower;
  18104. lower = undefined;
  18105. }
  18106. }
  18107. if (lower === undefined && upper === undefined) {
  18108. lower = 0;
  18109. upper = 1;
  18110. }
  18111. else {
  18112. lower = toFinite(lower);
  18113. if (upper === undefined) {
  18114. upper = lower;
  18115. lower = 0;
  18116. } else {
  18117. upper = toFinite(upper);
  18118. }
  18119. }
  18120. if (lower > upper) {
  18121. var temp = lower;
  18122. lower = upper;
  18123. upper = temp;
  18124. }
  18125. if (floating || lower % 1 || upper % 1) {
  18126. var rand = nativeRandom();
  18127. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  18128. }
  18129. return baseRandom(lower, upper);
  18130. }
  18131. /*------------------------------------------------------------------------*/
  18132. /**
  18133. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  18134. *
  18135. * @static
  18136. * @memberOf _
  18137. * @since 3.0.0
  18138. * @category String
  18139. * @param {string} [string=''] The string to convert.
  18140. * @returns {string} Returns the camel cased string.
  18141. * @example
  18142. *
  18143. * _.camelCase('Foo Bar');
  18144. * // => 'fooBar'
  18145. *
  18146. * _.camelCase('--foo-bar--');
  18147. * // => 'fooBar'
  18148. *
  18149. * _.camelCase('__FOO_BAR__');
  18150. * // => 'fooBar'
  18151. */
  18152. var camelCase = createCompounder(function(result, word, index) {
  18153. word = word.toLowerCase();
  18154. return result + (index ? capitalize(word) : word);
  18155. });
  18156. /**
  18157. * Converts the first character of `string` to upper case and the remaining
  18158. * to lower case.
  18159. *
  18160. * @static
  18161. * @memberOf _
  18162. * @since 3.0.0
  18163. * @category String
  18164. * @param {string} [string=''] The string to capitalize.
  18165. * @returns {string} Returns the capitalized string.
  18166. * @example
  18167. *
  18168. * _.capitalize('FRED');
  18169. * // => 'Fred'
  18170. */
  18171. function capitalize(string) {
  18172. return upperFirst(toString(string).toLowerCase());
  18173. }
  18174. /**
  18175. * Deburrs `string` by converting
  18176. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  18177. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  18178. * letters to basic Latin letters and removing
  18179. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  18180. *
  18181. * @static
  18182. * @memberOf _
  18183. * @since 3.0.0
  18184. * @category String
  18185. * @param {string} [string=''] The string to deburr.
  18186. * @returns {string} Returns the deburred string.
  18187. * @example
  18188. *
  18189. * _.deburr('déjà vu');
  18190. * // => 'deja vu'
  18191. */
  18192. function deburr(string) {
  18193. string = toString(string);
  18194. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  18195. }
  18196. /**
  18197. * Checks if `string` ends with the given target string.
  18198. *
  18199. * @static
  18200. * @memberOf _
  18201. * @since 3.0.0
  18202. * @category String
  18203. * @param {string} [string=''] The string to inspect.
  18204. * @param {string} [target] The string to search for.
  18205. * @param {number} [position=string.length] The position to search up to.
  18206. * @returns {boolean} Returns `true` if `string` ends with `target`,
  18207. * else `false`.
  18208. * @example
  18209. *
  18210. * _.endsWith('abc', 'c');
  18211. * // => true
  18212. *
  18213. * _.endsWith('abc', 'b');
  18214. * // => false
  18215. *
  18216. * _.endsWith('abc', 'b', 2);
  18217. * // => true
  18218. */
  18219. function endsWith(string, target, position) {
  18220. string = toString(string);
  18221. target = baseToString(target);
  18222. var length = string.length;
  18223. position = position === undefined
  18224. ? length
  18225. : baseClamp(toInteger(position), 0, length);
  18226. var end = position;
  18227. position -= target.length;
  18228. return position >= 0 && string.slice(position, end) == target;
  18229. }
  18230. /**
  18231. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  18232. * corresponding HTML entities.
  18233. *
  18234. * **Note:** No other characters are escaped. To escape additional
  18235. * characters use a third-party library like [_he_](https://mths.be/he).
  18236. *
  18237. * Though the ">" character is escaped for symmetry, characters like
  18238. * ">" and "/" don't need escaping in HTML and have no special meaning
  18239. * unless they're part of a tag or unquoted attribute value. See
  18240. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  18241. * (under "semi-related fun fact") for more details.
  18242. *
  18243. * When working with HTML you should always
  18244. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  18245. * XSS vectors.
  18246. *
  18247. * @static
  18248. * @since 0.1.0
  18249. * @memberOf _
  18250. * @category String
  18251. * @param {string} [string=''] The string to escape.
  18252. * @returns {string} Returns the escaped string.
  18253. * @example
  18254. *
  18255. * _.escape('fred, barney, & pebbles');
  18256. * // => 'fred, barney, &amp; pebbles'
  18257. */
  18258. function escape(string) {
  18259. string = toString(string);
  18260. return (string && reHasUnescapedHtml.test(string))
  18261. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  18262. : string;
  18263. }
  18264. /**
  18265. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  18266. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  18267. *
  18268. * @static
  18269. * @memberOf _
  18270. * @since 3.0.0
  18271. * @category String
  18272. * @param {string} [string=''] The string to escape.
  18273. * @returns {string} Returns the escaped string.
  18274. * @example
  18275. *
  18276. * _.escapeRegExp('[lodash](https://lodash.com/)');
  18277. * // => '\[lodash\]\(https://lodash\.com/\)'
  18278. */
  18279. function escapeRegExp(string) {
  18280. string = toString(string);
  18281. return (string && reHasRegExpChar.test(string))
  18282. ? string.replace(reRegExpChar, '\\$&')
  18283. : string;
  18284. }
  18285. /**
  18286. * Converts `string` to
  18287. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  18288. *
  18289. * @static
  18290. * @memberOf _
  18291. * @since 3.0.0
  18292. * @category String
  18293. * @param {string} [string=''] The string to convert.
  18294. * @returns {string} Returns the kebab cased string.
  18295. * @example
  18296. *
  18297. * _.kebabCase('Foo Bar');
  18298. * // => 'foo-bar'
  18299. *
  18300. * _.kebabCase('fooBar');
  18301. * // => 'foo-bar'
  18302. *
  18303. * _.kebabCase('__FOO_BAR__');
  18304. * // => 'foo-bar'
  18305. */
  18306. var kebabCase = createCompounder(function(result, word, index) {
  18307. return result + (index ? '-' : '') + word.toLowerCase();
  18308. });
  18309. /**
  18310. * Converts `string`, as space separated words, to lower case.
  18311. *
  18312. * @static
  18313. * @memberOf _
  18314. * @since 4.0.0
  18315. * @category String
  18316. * @param {string} [string=''] The string to convert.
  18317. * @returns {string} Returns the lower cased string.
  18318. * @example
  18319. *
  18320. * _.lowerCase('--Foo-Bar--');
  18321. * // => 'foo bar'
  18322. *
  18323. * _.lowerCase('fooBar');
  18324. * // => 'foo bar'
  18325. *
  18326. * _.lowerCase('__FOO_BAR__');
  18327. * // => 'foo bar'
  18328. */
  18329. var lowerCase = createCompounder(function(result, word, index) {
  18330. return result + (index ? ' ' : '') + word.toLowerCase();
  18331. });
  18332. /**
  18333. * Converts the first character of `string` to lower case.
  18334. *
  18335. * @static
  18336. * @memberOf _
  18337. * @since 4.0.0
  18338. * @category String
  18339. * @param {string} [string=''] The string to convert.
  18340. * @returns {string} Returns the converted string.
  18341. * @example
  18342. *
  18343. * _.lowerFirst('Fred');
  18344. * // => 'fred'
  18345. *
  18346. * _.lowerFirst('FRED');
  18347. * // => 'fRED'
  18348. */
  18349. var lowerFirst = createCaseFirst('toLowerCase');
  18350. /**
  18351. * Pads `string` on the left and right sides if it's shorter than `length`.
  18352. * Padding characters are truncated if they can't be evenly divided by `length`.
  18353. *
  18354. * @static
  18355. * @memberOf _
  18356. * @since 3.0.0
  18357. * @category String
  18358. * @param {string} [string=''] The string to pad.
  18359. * @param {number} [length=0] The padding length.
  18360. * @param {string} [chars=' '] The string used as padding.
  18361. * @returns {string} Returns the padded string.
  18362. * @example
  18363. *
  18364. * _.pad('abc', 8);
  18365. * // => ' abc '
  18366. *
  18367. * _.pad('abc', 8, '_-');
  18368. * // => '_-abc_-_'
  18369. *
  18370. * _.pad('abc', 3);
  18371. * // => 'abc'
  18372. */
  18373. function pad(string, length, chars) {
  18374. string = toString(string);
  18375. length = toInteger(length);
  18376. var strLength = length ? stringSize(string) : 0;
  18377. if (!length || strLength >= length) {
  18378. return string;
  18379. }
  18380. var mid = (length - strLength) / 2;
  18381. return (
  18382. createPadding(nativeFloor(mid), chars) +
  18383. string +
  18384. createPadding(nativeCeil(mid), chars)
  18385. );
  18386. }
  18387. /**
  18388. * Pads `string` on the right side if it's shorter than `length`. Padding
  18389. * characters are truncated if they exceed `length`.
  18390. *
  18391. * @static
  18392. * @memberOf _
  18393. * @since 4.0.0
  18394. * @category String
  18395. * @param {string} [string=''] The string to pad.
  18396. * @param {number} [length=0] The padding length.
  18397. * @param {string} [chars=' '] The string used as padding.
  18398. * @returns {string} Returns the padded string.
  18399. * @example
  18400. *
  18401. * _.padEnd('abc', 6);
  18402. * // => 'abc '
  18403. *
  18404. * _.padEnd('abc', 6, '_-');
  18405. * // => 'abc_-_'
  18406. *
  18407. * _.padEnd('abc', 3);
  18408. * // => 'abc'
  18409. */
  18410. function padEnd(string, length, chars) {
  18411. string = toString(string);
  18412. length = toInteger(length);
  18413. var strLength = length ? stringSize(string) : 0;
  18414. return (length && strLength < length)
  18415. ? (string + createPadding(length - strLength, chars))
  18416. : string;
  18417. }
  18418. /**
  18419. * Pads `string` on the left side if it's shorter than `length`. Padding
  18420. * characters are truncated if they exceed `length`.
  18421. *
  18422. * @static
  18423. * @memberOf _
  18424. * @since 4.0.0
  18425. * @category String
  18426. * @param {string} [string=''] The string to pad.
  18427. * @param {number} [length=0] The padding length.
  18428. * @param {string} [chars=' '] The string used as padding.
  18429. * @returns {string} Returns the padded string.
  18430. * @example
  18431. *
  18432. * _.padStart('abc', 6);
  18433. * // => ' abc'
  18434. *
  18435. * _.padStart('abc', 6, '_-');
  18436. * // => '_-_abc'
  18437. *
  18438. * _.padStart('abc', 3);
  18439. * // => 'abc'
  18440. */
  18441. function padStart(string, length, chars) {
  18442. string = toString(string);
  18443. length = toInteger(length);
  18444. var strLength = length ? stringSize(string) : 0;
  18445. return (length && strLength < length)
  18446. ? (createPadding(length - strLength, chars) + string)
  18447. : string;
  18448. }
  18449. /**
  18450. * Converts `string` to an integer of the specified radix. If `radix` is
  18451. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  18452. * hexadecimal, in which case a `radix` of `16` is used.
  18453. *
  18454. * **Note:** This method aligns with the
  18455. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  18456. *
  18457. * @static
  18458. * @memberOf _
  18459. * @since 1.1.0
  18460. * @category String
  18461. * @param {string} string The string to convert.
  18462. * @param {number} [radix=10] The radix to interpret `value` by.
  18463. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18464. * @returns {number} Returns the converted integer.
  18465. * @example
  18466. *
  18467. * _.parseInt('08');
  18468. * // => 8
  18469. *
  18470. * _.map(['6', '08', '10'], _.parseInt);
  18471. * // => [6, 8, 10]
  18472. */
  18473. function parseInt(string, radix, guard) {
  18474. if (guard || radix == null) {
  18475. radix = 0;
  18476. } else if (radix) {
  18477. radix = +radix;
  18478. }
  18479. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  18480. }
  18481. /**
  18482. * Repeats the given string `n` times.
  18483. *
  18484. * @static
  18485. * @memberOf _
  18486. * @since 3.0.0
  18487. * @category String
  18488. * @param {string} [string=''] The string to repeat.
  18489. * @param {number} [n=1] The number of times to repeat the string.
  18490. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18491. * @returns {string} Returns the repeated string.
  18492. * @example
  18493. *
  18494. * _.repeat('*', 3);
  18495. * // => '***'
  18496. *
  18497. * _.repeat('abc', 2);
  18498. * // => 'abcabc'
  18499. *
  18500. * _.repeat('abc', 0);
  18501. * // => ''
  18502. */
  18503. function repeat(string, n, guard) {
  18504. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  18505. n = 1;
  18506. } else {
  18507. n = toInteger(n);
  18508. }
  18509. return baseRepeat(toString(string), n);
  18510. }
  18511. /**
  18512. * Replaces matches for `pattern` in `string` with `replacement`.
  18513. *
  18514. * **Note:** This method is based on
  18515. * [`String#replace`](https://mdn.io/String/replace).
  18516. *
  18517. * @static
  18518. * @memberOf _
  18519. * @since 4.0.0
  18520. * @category String
  18521. * @param {string} [string=''] The string to modify.
  18522. * @param {RegExp|string} pattern The pattern to replace.
  18523. * @param {Function|string} replacement The match replacement.
  18524. * @returns {string} Returns the modified string.
  18525. * @example
  18526. *
  18527. * _.replace('Hi Fred', 'Fred', 'Barney');
  18528. * // => 'Hi Barney'
  18529. */
  18530. function replace() {
  18531. var args = arguments,
  18532. string = toString(args[0]);
  18533. return args.length < 3 ? string : string.replace(args[1], args[2]);
  18534. }
  18535. /**
  18536. * Converts `string` to
  18537. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  18538. *
  18539. * @static
  18540. * @memberOf _
  18541. * @since 3.0.0
  18542. * @category String
  18543. * @param {string} [string=''] The string to convert.
  18544. * @returns {string} Returns the snake cased string.
  18545. * @example
  18546. *
  18547. * _.snakeCase('Foo Bar');
  18548. * // => 'foo_bar'
  18549. *
  18550. * _.snakeCase('fooBar');
  18551. * // => 'foo_bar'
  18552. *
  18553. * _.snakeCase('--FOO-BAR--');
  18554. * // => 'foo_bar'
  18555. */
  18556. var snakeCase = createCompounder(function(result, word, index) {
  18557. return result + (index ? '_' : '') + word.toLowerCase();
  18558. });
  18559. /**
  18560. * Splits `string` by `separator`.
  18561. *
  18562. * **Note:** This method is based on
  18563. * [`String#split`](https://mdn.io/String/split).
  18564. *
  18565. * @static
  18566. * @memberOf _
  18567. * @since 4.0.0
  18568. * @category String
  18569. * @param {string} [string=''] The string to split.
  18570. * @param {RegExp|string} separator The separator pattern to split by.
  18571. * @param {number} [limit] The length to truncate results to.
  18572. * @returns {Array} Returns the string segments.
  18573. * @example
  18574. *
  18575. * _.split('a-b-c', '-', 2);
  18576. * // => ['a', 'b']
  18577. */
  18578. function split(string, separator, limit) {
  18579. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  18580. separator = limit = undefined;
  18581. }
  18582. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  18583. if (!limit) {
  18584. return [];
  18585. }
  18586. string = toString(string);
  18587. if (string && (
  18588. typeof separator == 'string' ||
  18589. (separator != null && !isRegExp(separator))
  18590. )) {
  18591. separator = baseToString(separator);
  18592. if (!separator && hasUnicode(string)) {
  18593. return castSlice(stringToArray(string), 0, limit);
  18594. }
  18595. }
  18596. return string.split(separator, limit);
  18597. }
  18598. /**
  18599. * Converts `string` to
  18600. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  18601. *
  18602. * @static
  18603. * @memberOf _
  18604. * @since 3.1.0
  18605. * @category String
  18606. * @param {string} [string=''] The string to convert.
  18607. * @returns {string} Returns the start cased string.
  18608. * @example
  18609. *
  18610. * _.startCase('--foo-bar--');
  18611. * // => 'Foo Bar'
  18612. *
  18613. * _.startCase('fooBar');
  18614. * // => 'Foo Bar'
  18615. *
  18616. * _.startCase('__FOO_BAR__');
  18617. * // => 'FOO BAR'
  18618. */
  18619. var startCase = createCompounder(function(result, word, index) {
  18620. return result + (index ? ' ' : '') + upperFirst(word);
  18621. });
  18622. /**
  18623. * Checks if `string` starts with the given target string.
  18624. *
  18625. * @static
  18626. * @memberOf _
  18627. * @since 3.0.0
  18628. * @category String
  18629. * @param {string} [string=''] The string to inspect.
  18630. * @param {string} [target] The string to search for.
  18631. * @param {number} [position=0] The position to search from.
  18632. * @returns {boolean} Returns `true` if `string` starts with `target`,
  18633. * else `false`.
  18634. * @example
  18635. *
  18636. * _.startsWith('abc', 'a');
  18637. * // => true
  18638. *
  18639. * _.startsWith('abc', 'b');
  18640. * // => false
  18641. *
  18642. * _.startsWith('abc', 'b', 1);
  18643. * // => true
  18644. */
  18645. function startsWith(string, target, position) {
  18646. string = toString(string);
  18647. position = position == null
  18648. ? 0
  18649. : baseClamp(toInteger(position), 0, string.length);
  18650. target = baseToString(target);
  18651. return string.slice(position, position + target.length) == target;
  18652. }
  18653. /**
  18654. * Creates a compiled template function that can interpolate data properties
  18655. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  18656. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  18657. * properties may be accessed as free variables in the template. If a setting
  18658. * object is given, it takes precedence over `_.templateSettings` values.
  18659. *
  18660. * **Note:** In the development build `_.template` utilizes
  18661. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  18662. * for easier debugging.
  18663. *
  18664. * For more information on precompiling templates see
  18665. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  18666. *
  18667. * For more information on Chrome extension sandboxes see
  18668. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  18669. *
  18670. * @static
  18671. * @since 0.1.0
  18672. * @memberOf _
  18673. * @category String
  18674. * @param {string} [string=''] The template string.
  18675. * @param {Object} [options={}] The options object.
  18676. * @param {RegExp} [options.escape=_.templateSettings.escape]
  18677. * The HTML "escape" delimiter.
  18678. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  18679. * The "evaluate" delimiter.
  18680. * @param {Object} [options.imports=_.templateSettings.imports]
  18681. * An object to import into the template as free variables.
  18682. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  18683. * The "interpolate" delimiter.
  18684. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  18685. * The sourceURL of the compiled template.
  18686. * @param {string} [options.variable='obj']
  18687. * The data object variable name.
  18688. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18689. * @returns {Function} Returns the compiled template function.
  18690. * @example
  18691. *
  18692. * // Use the "interpolate" delimiter to create a compiled template.
  18693. * var compiled = _.template('hello <%= user %>!');
  18694. * compiled({ 'user': 'fred' });
  18695. * // => 'hello fred!'
  18696. *
  18697. * // Use the HTML "escape" delimiter to escape data property values.
  18698. * var compiled = _.template('<b><%- value %></b>');
  18699. * compiled({ 'value': '<script>' });
  18700. * // => '<b>&lt;script&gt;</b>'
  18701. *
  18702. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  18703. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  18704. * compiled({ 'users': ['fred', 'barney'] });
  18705. * // => '<li>fred</li><li>barney</li>'
  18706. *
  18707. * // Use the internal `print` function in "evaluate" delimiters.
  18708. * var compiled = _.template('<% print("hello " + user); %>!');
  18709. * compiled({ 'user': 'barney' });
  18710. * // => 'hello barney!'
  18711. *
  18712. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  18713. * // Disable support by replacing the "interpolate" delimiter.
  18714. * var compiled = _.template('hello ${ user }!');
  18715. * compiled({ 'user': 'pebbles' });
  18716. * // => 'hello pebbles!'
  18717. *
  18718. * // Use backslashes to treat delimiters as plain text.
  18719. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  18720. * compiled({ 'value': 'ignored' });
  18721. * // => '<%- value %>'
  18722. *
  18723. * // Use the `imports` option to import `jQuery` as `jq`.
  18724. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  18725. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  18726. * compiled({ 'users': ['fred', 'barney'] });
  18727. * // => '<li>fred</li><li>barney</li>'
  18728. *
  18729. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  18730. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  18731. * compiled(data);
  18732. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  18733. *
  18734. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  18735. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  18736. * compiled.source;
  18737. * // => function(data) {
  18738. * // var __t, __p = '';
  18739. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  18740. * // return __p;
  18741. * // }
  18742. *
  18743. * // Use custom template delimiters.
  18744. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  18745. * var compiled = _.template('hello {{ user }}!');
  18746. * compiled({ 'user': 'mustache' });
  18747. * // => 'hello mustache!'
  18748. *
  18749. * // Use the `source` property to inline compiled templates for meaningful
  18750. * // line numbers in error messages and stack traces.
  18751. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  18752. * var JST = {\
  18753. * "main": ' + _.template(mainText).source + '\
  18754. * };\
  18755. * ');
  18756. */
  18757. function template(string, options, guard) {
  18758. // Based on John Resig's `tmpl` implementation
  18759. // (http://ejohn.org/blog/javascript-micro-templating/)
  18760. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  18761. var settings = lodash.templateSettings;
  18762. if (guard && isIterateeCall(string, options, guard)) {
  18763. options = undefined;
  18764. }
  18765. string = toString(string);
  18766. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  18767. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  18768. importsKeys = keys(imports),
  18769. importsValues = baseValues(imports, importsKeys);
  18770. var isEscaping,
  18771. isEvaluating,
  18772. index = 0,
  18773. interpolate = options.interpolate || reNoMatch,
  18774. source = "__p += '";
  18775. // Compile the regexp to match each delimiter.
  18776. var reDelimiters = RegExp(
  18777. (options.escape || reNoMatch).source + '|' +
  18778. interpolate.source + '|' +
  18779. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  18780. (options.evaluate || reNoMatch).source + '|$'
  18781. , 'g');
  18782. // Use a sourceURL for easier debugging.
  18783. var sourceURL = '//# sourceURL=' +
  18784. ('sourceURL' in options
  18785. ? options.sourceURL
  18786. : ('lodash.templateSources[' + (++templateCounter) + ']')
  18787. ) + '\n';
  18788. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  18789. interpolateValue || (interpolateValue = esTemplateValue);
  18790. // Escape characters that can't be included in string literals.
  18791. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  18792. // Replace delimiters with snippets.
  18793. if (escapeValue) {
  18794. isEscaping = true;
  18795. source += "' +\n__e(" + escapeValue + ") +\n'";
  18796. }
  18797. if (evaluateValue) {
  18798. isEvaluating = true;
  18799. source += "';\n" + evaluateValue + ";\n__p += '";
  18800. }
  18801. if (interpolateValue) {
  18802. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  18803. }
  18804. index = offset + match.length;
  18805. // The JS engine embedded in Adobe products needs `match` returned in
  18806. // order to produce the correct `offset` value.
  18807. return match;
  18808. });
  18809. source += "';\n";
  18810. // If `variable` is not specified wrap a with-statement around the generated
  18811. // code to add the data object to the top of the scope chain.
  18812. var variable = options.variable;
  18813. if (!variable) {
  18814. source = 'with (obj) {\n' + source + '\n}\n';
  18815. }
  18816. // Cleanup code by stripping empty strings.
  18817. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  18818. .replace(reEmptyStringMiddle, '$1')
  18819. .replace(reEmptyStringTrailing, '$1;');
  18820. // Frame code as the function body.
  18821. source = 'function(' + (variable || 'obj') + ') {\n' +
  18822. (variable
  18823. ? ''
  18824. : 'obj || (obj = {});\n'
  18825. ) +
  18826. "var __t, __p = ''" +
  18827. (isEscaping
  18828. ? ', __e = _.escape'
  18829. : ''
  18830. ) +
  18831. (isEvaluating
  18832. ? ', __j = Array.prototype.join;\n' +
  18833. "function print() { __p += __j.call(arguments, '') }\n"
  18834. : ';\n'
  18835. ) +
  18836. source +
  18837. 'return __p\n}';
  18838. var result = attempt(function() {
  18839. return Function(importsKeys, sourceURL + 'return ' + source)
  18840. .apply(undefined, importsValues);
  18841. });
  18842. // Provide the compiled function's source by its `toString` method or
  18843. // the `source` property as a convenience for inlining compiled templates.
  18844. result.source = source;
  18845. if (isError(result)) {
  18846. throw result;
  18847. }
  18848. return result;
  18849. }
  18850. /**
  18851. * Converts `string`, as a whole, to lower case just like
  18852. * [String#toLowerCase](https://mdn.io/toLowerCase).
  18853. *
  18854. * @static
  18855. * @memberOf _
  18856. * @since 4.0.0
  18857. * @category String
  18858. * @param {string} [string=''] The string to convert.
  18859. * @returns {string} Returns the lower cased string.
  18860. * @example
  18861. *
  18862. * _.toLower('--Foo-Bar--');
  18863. * // => '--foo-bar--'
  18864. *
  18865. * _.toLower('fooBar');
  18866. * // => 'foobar'
  18867. *
  18868. * _.toLower('__FOO_BAR__');
  18869. * // => '__foo_bar__'
  18870. */
  18871. function toLower(value) {
  18872. return toString(value).toLowerCase();
  18873. }
  18874. /**
  18875. * Converts `string`, as a whole, to upper case just like
  18876. * [String#toUpperCase](https://mdn.io/toUpperCase).
  18877. *
  18878. * @static
  18879. * @memberOf _
  18880. * @since 4.0.0
  18881. * @category String
  18882. * @param {string} [string=''] The string to convert.
  18883. * @returns {string} Returns the upper cased string.
  18884. * @example
  18885. *
  18886. * _.toUpper('--foo-bar--');
  18887. * // => '--FOO-BAR--'
  18888. *
  18889. * _.toUpper('fooBar');
  18890. * // => 'FOOBAR'
  18891. *
  18892. * _.toUpper('__foo_bar__');
  18893. * // => '__FOO_BAR__'
  18894. */
  18895. function toUpper(value) {
  18896. return toString(value).toUpperCase();
  18897. }
  18898. /**
  18899. * Removes leading and trailing whitespace or specified characters from `string`.
  18900. *
  18901. * @static
  18902. * @memberOf _
  18903. * @since 3.0.0
  18904. * @category String
  18905. * @param {string} [string=''] The string to trim.
  18906. * @param {string} [chars=whitespace] The characters to trim.
  18907. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18908. * @returns {string} Returns the trimmed string.
  18909. * @example
  18910. *
  18911. * _.trim(' abc ');
  18912. * // => 'abc'
  18913. *
  18914. * _.trim('-_-abc-_-', '_-');
  18915. * // => 'abc'
  18916. *
  18917. * _.map([' foo ', ' bar '], _.trim);
  18918. * // => ['foo', 'bar']
  18919. */
  18920. function trim(string, chars, guard) {
  18921. string = toString(string);
  18922. if (string && (guard || chars === undefined)) {
  18923. return string.replace(reTrim, '');
  18924. }
  18925. if (!string || !(chars = baseToString(chars))) {
  18926. return string;
  18927. }
  18928. var strSymbols = stringToArray(string),
  18929. chrSymbols = stringToArray(chars),
  18930. start = charsStartIndex(strSymbols, chrSymbols),
  18931. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  18932. return castSlice(strSymbols, start, end).join('');
  18933. }
  18934. /**
  18935. * Removes trailing whitespace or specified characters from `string`.
  18936. *
  18937. * @static
  18938. * @memberOf _
  18939. * @since 4.0.0
  18940. * @category String
  18941. * @param {string} [string=''] The string to trim.
  18942. * @param {string} [chars=whitespace] The characters to trim.
  18943. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18944. * @returns {string} Returns the trimmed string.
  18945. * @example
  18946. *
  18947. * _.trimEnd(' abc ');
  18948. * // => ' abc'
  18949. *
  18950. * _.trimEnd('-_-abc-_-', '_-');
  18951. * // => '-_-abc'
  18952. */
  18953. function trimEnd(string, chars, guard) {
  18954. string = toString(string);
  18955. if (string && (guard || chars === undefined)) {
  18956. return string.replace(reTrimEnd, '');
  18957. }
  18958. if (!string || !(chars = baseToString(chars))) {
  18959. return string;
  18960. }
  18961. var strSymbols = stringToArray(string),
  18962. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  18963. return castSlice(strSymbols, 0, end).join('');
  18964. }
  18965. /**
  18966. * Removes leading whitespace or specified characters from `string`.
  18967. *
  18968. * @static
  18969. * @memberOf _
  18970. * @since 4.0.0
  18971. * @category String
  18972. * @param {string} [string=''] The string to trim.
  18973. * @param {string} [chars=whitespace] The characters to trim.
  18974. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  18975. * @returns {string} Returns the trimmed string.
  18976. * @example
  18977. *
  18978. * _.trimStart(' abc ');
  18979. * // => 'abc '
  18980. *
  18981. * _.trimStart('-_-abc-_-', '_-');
  18982. * // => 'abc-_-'
  18983. */
  18984. function trimStart(string, chars, guard) {
  18985. string = toString(string);
  18986. if (string && (guard || chars === undefined)) {
  18987. return string.replace(reTrimStart, '');
  18988. }
  18989. if (!string || !(chars = baseToString(chars))) {
  18990. return string;
  18991. }
  18992. var strSymbols = stringToArray(string),
  18993. start = charsStartIndex(strSymbols, stringToArray(chars));
  18994. return castSlice(strSymbols, start).join('');
  18995. }
  18996. /**
  18997. * Truncates `string` if it's longer than the given maximum string length.
  18998. * The last characters of the truncated string are replaced with the omission
  18999. * string which defaults to "...".
  19000. *
  19001. * @static
  19002. * @memberOf _
  19003. * @since 4.0.0
  19004. * @category String
  19005. * @param {string} [string=''] The string to truncate.
  19006. * @param {Object} [options={}] The options object.
  19007. * @param {number} [options.length=30] The maximum string length.
  19008. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  19009. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  19010. * @returns {string} Returns the truncated string.
  19011. * @example
  19012. *
  19013. * _.truncate('hi-diddly-ho there, neighborino');
  19014. * // => 'hi-diddly-ho there, neighbo...'
  19015. *
  19016. * _.truncate('hi-diddly-ho there, neighborino', {
  19017. * 'length': 24,
  19018. * 'separator': ' '
  19019. * });
  19020. * // => 'hi-diddly-ho there,...'
  19021. *
  19022. * _.truncate('hi-diddly-ho there, neighborino', {
  19023. * 'length': 24,
  19024. * 'separator': /,? +/
  19025. * });
  19026. * // => 'hi-diddly-ho there...'
  19027. *
  19028. * _.truncate('hi-diddly-ho there, neighborino', {
  19029. * 'omission': ' [...]'
  19030. * });
  19031. * // => 'hi-diddly-ho there, neig [...]'
  19032. */
  19033. function truncate(string, options) {
  19034. var length = DEFAULT_TRUNC_LENGTH,
  19035. omission = DEFAULT_TRUNC_OMISSION;
  19036. if (isObject(options)) {
  19037. var separator = 'separator' in options ? options.separator : separator;
  19038. length = 'length' in options ? toInteger(options.length) : length;
  19039. omission = 'omission' in options ? baseToString(options.omission) : omission;
  19040. }
  19041. string = toString(string);
  19042. var strLength = string.length;
  19043. if (hasUnicode(string)) {
  19044. var strSymbols = stringToArray(string);
  19045. strLength = strSymbols.length;
  19046. }
  19047. if (length >= strLength) {
  19048. return string;
  19049. }
  19050. var end = length - stringSize(omission);
  19051. if (end < 1) {
  19052. return omission;
  19053. }
  19054. var result = strSymbols
  19055. ? castSlice(strSymbols, 0, end).join('')
  19056. : string.slice(0, end);
  19057. if (separator === undefined) {
  19058. return result + omission;
  19059. }
  19060. if (strSymbols) {
  19061. end += (result.length - end);
  19062. }
  19063. if (isRegExp(separator)) {
  19064. if (string.slice(end).search(separator)) {
  19065. var match,
  19066. substring = result;
  19067. if (!separator.global) {
  19068. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  19069. }
  19070. separator.lastIndex = 0;
  19071. while ((match = separator.exec(substring))) {
  19072. var newEnd = match.index;
  19073. }
  19074. result = result.slice(0, newEnd === undefined ? end : newEnd);
  19075. }
  19076. } else if (string.indexOf(baseToString(separator), end) != end) {
  19077. var index = result.lastIndexOf(separator);
  19078. if (index > -1) {
  19079. result = result.slice(0, index);
  19080. }
  19081. }
  19082. return result + omission;
  19083. }
  19084. /**
  19085. * The inverse of `_.escape`; this method converts the HTML entities
  19086. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  19087. * their corresponding characters.
  19088. *
  19089. * **Note:** No other HTML entities are unescaped. To unescape additional
  19090. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  19091. *
  19092. * @static
  19093. * @memberOf _
  19094. * @since 0.6.0
  19095. * @category String
  19096. * @param {string} [string=''] The string to unescape.
  19097. * @returns {string} Returns the unescaped string.
  19098. * @example
  19099. *
  19100. * _.unescape('fred, barney, &amp; pebbles');
  19101. * // => 'fred, barney, & pebbles'
  19102. */
  19103. function unescape(string) {
  19104. string = toString(string);
  19105. return (string && reHasEscapedHtml.test(string))
  19106. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  19107. : string;
  19108. }
  19109. /**
  19110. * Converts `string`, as space separated words, to upper case.
  19111. *
  19112. * @static
  19113. * @memberOf _
  19114. * @since 4.0.0
  19115. * @category String
  19116. * @param {string} [string=''] The string to convert.
  19117. * @returns {string} Returns the upper cased string.
  19118. * @example
  19119. *
  19120. * _.upperCase('--foo-bar');
  19121. * // => 'FOO BAR'
  19122. *
  19123. * _.upperCase('fooBar');
  19124. * // => 'FOO BAR'
  19125. *
  19126. * _.upperCase('__foo_bar__');
  19127. * // => 'FOO BAR'
  19128. */
  19129. var upperCase = createCompounder(function(result, word, index) {
  19130. return result + (index ? ' ' : '') + word.toUpperCase();
  19131. });
  19132. /**
  19133. * Converts the first character of `string` to upper case.
  19134. *
  19135. * @static
  19136. * @memberOf _
  19137. * @since 4.0.0
  19138. * @category String
  19139. * @param {string} [string=''] The string to convert.
  19140. * @returns {string} Returns the converted string.
  19141. * @example
  19142. *
  19143. * _.upperFirst('fred');
  19144. * // => 'Fred'
  19145. *
  19146. * _.upperFirst('FRED');
  19147. * // => 'FRED'
  19148. */
  19149. var upperFirst = createCaseFirst('toUpperCase');
  19150. /**
  19151. * Splits `string` into an array of its words.
  19152. *
  19153. * @static
  19154. * @memberOf _
  19155. * @since 3.0.0
  19156. * @category String
  19157. * @param {string} [string=''] The string to inspect.
  19158. * @param {RegExp|string} [pattern] The pattern to match words.
  19159. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  19160. * @returns {Array} Returns the words of `string`.
  19161. * @example
  19162. *
  19163. * _.words('fred, barney, & pebbles');
  19164. * // => ['fred', 'barney', 'pebbles']
  19165. *
  19166. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  19167. * // => ['fred', 'barney', '&', 'pebbles']
  19168. */
  19169. function words(string, pattern, guard) {
  19170. string = toString(string);
  19171. pattern = guard ? undefined : pattern;
  19172. if (pattern === undefined) {
  19173. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  19174. }
  19175. return string.match(pattern) || [];
  19176. }
  19177. /*------------------------------------------------------------------------*/
  19178. /**
  19179. * Attempts to invoke `func`, returning either the result or the caught error
  19180. * object. Any additional arguments are provided to `func` when it's invoked.
  19181. *
  19182. * @static
  19183. * @memberOf _
  19184. * @since 3.0.0
  19185. * @category Util
  19186. * @param {Function} func The function to attempt.
  19187. * @param {...*} [args] The arguments to invoke `func` with.
  19188. * @returns {*} Returns the `func` result or error object.
  19189. * @example
  19190. *
  19191. * // Avoid throwing errors for invalid selectors.
  19192. * var elements = _.attempt(function(selector) {
  19193. * return document.querySelectorAll(selector);
  19194. * }, '>_>');
  19195. *
  19196. * if (_.isError(elements)) {
  19197. * elements = [];
  19198. * }
  19199. */
  19200. var attempt = baseRest(function(func, args) {
  19201. try {
  19202. return apply(func, undefined, args);
  19203. } catch (e) {
  19204. return isError(e) ? e : new Error(e);
  19205. }
  19206. });
  19207. /**
  19208. * Binds methods of an object to the object itself, overwriting the existing
  19209. * method.
  19210. *
  19211. * **Note:** This method doesn't set the "length" property of bound functions.
  19212. *
  19213. * @static
  19214. * @since 0.1.0
  19215. * @memberOf _
  19216. * @category Util
  19217. * @param {Object} object The object to bind and assign the bound methods to.
  19218. * @param {...(string|string[])} methodNames The object method names to bind.
  19219. * @returns {Object} Returns `object`.
  19220. * @example
  19221. *
  19222. * var view = {
  19223. * 'label': 'docs',
  19224. * 'click': function() {
  19225. * console.log('clicked ' + this.label);
  19226. * }
  19227. * };
  19228. *
  19229. * _.bindAll(view, ['click']);
  19230. * jQuery(element).on('click', view.click);
  19231. * // => Logs 'clicked docs' when clicked.
  19232. */
  19233. var bindAll = flatRest(function(object, methodNames) {
  19234. arrayEach(methodNames, function(key) {
  19235. key = toKey(key);
  19236. baseAssignValue(object, key, bind(object[key], object));
  19237. });
  19238. return object;
  19239. });
  19240. /**
  19241. * Creates a function that iterates over `pairs` and invokes the corresponding
  19242. * function of the first predicate to return truthy. The predicate-function
  19243. * pairs are invoked with the `this` binding and arguments of the created
  19244. * function.
  19245. *
  19246. * @static
  19247. * @memberOf _
  19248. * @since 4.0.0
  19249. * @category Util
  19250. * @param {Array} pairs The predicate-function pairs.
  19251. * @returns {Function} Returns the new composite function.
  19252. * @example
  19253. *
  19254. * var func = _.cond([
  19255. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  19256. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  19257. * [_.stubTrue, _.constant('no match')]
  19258. * ]);
  19259. *
  19260. * func({ 'a': 1, 'b': 2 });
  19261. * // => 'matches A'
  19262. *
  19263. * func({ 'a': 0, 'b': 1 });
  19264. * // => 'matches B'
  19265. *
  19266. * func({ 'a': '1', 'b': '2' });
  19267. * // => 'no match'
  19268. */
  19269. function cond(pairs) {
  19270. var length = pairs == null ? 0 : pairs.length,
  19271. toIteratee = getIteratee();
  19272. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  19273. if (typeof pair[1] != 'function') {
  19274. throw new TypeError(FUNC_ERROR_TEXT);
  19275. }
  19276. return [toIteratee(pair[0]), pair[1]];
  19277. });
  19278. return baseRest(function(args) {
  19279. var index = -1;
  19280. while (++index < length) {
  19281. var pair = pairs[index];
  19282. if (apply(pair[0], this, args)) {
  19283. return apply(pair[1], this, args);
  19284. }
  19285. }
  19286. });
  19287. }
  19288. /**
  19289. * Creates a function that invokes the predicate properties of `source` with
  19290. * the corresponding property values of a given object, returning `true` if
  19291. * all predicates return truthy, else `false`.
  19292. *
  19293. * **Note:** The created function is equivalent to `_.conformsTo` with
  19294. * `source` partially applied.
  19295. *
  19296. * @static
  19297. * @memberOf _
  19298. * @since 4.0.0
  19299. * @category Util
  19300. * @param {Object} source The object of property predicates to conform to.
  19301. * @returns {Function} Returns the new spec function.
  19302. * @example
  19303. *
  19304. * var objects = [
  19305. * { 'a': 2, 'b': 1 },
  19306. * { 'a': 1, 'b': 2 }
  19307. * ];
  19308. *
  19309. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  19310. * // => [{ 'a': 1, 'b': 2 }]
  19311. */
  19312. function conforms(source) {
  19313. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  19314. }
  19315. /**
  19316. * Creates a function that returns `value`.
  19317. *
  19318. * @static
  19319. * @memberOf _
  19320. * @since 2.4.0
  19321. * @category Util
  19322. * @param {*} value The value to return from the new function.
  19323. * @returns {Function} Returns the new constant function.
  19324. * @example
  19325. *
  19326. * var objects = _.times(2, _.constant({ 'a': 1 }));
  19327. *
  19328. * console.log(objects);
  19329. * // => [{ 'a': 1 }, { 'a': 1 }]
  19330. *
  19331. * console.log(objects[0] === objects[1]);
  19332. * // => true
  19333. */
  19334. function constant(value) {
  19335. return function() {
  19336. return value;
  19337. };
  19338. }
  19339. /**
  19340. * Checks `value` to determine whether a default value should be returned in
  19341. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  19342. * or `undefined`.
  19343. *
  19344. * @static
  19345. * @memberOf _
  19346. * @since 4.14.0
  19347. * @category Util
  19348. * @param {*} value The value to check.
  19349. * @param {*} defaultValue The default value.
  19350. * @returns {*} Returns the resolved value.
  19351. * @example
  19352. *
  19353. * _.defaultTo(1, 10);
  19354. * // => 1
  19355. *
  19356. * _.defaultTo(undefined, 10);
  19357. * // => 10
  19358. */
  19359. function defaultTo(value, defaultValue) {
  19360. return (value == null || value !== value) ? defaultValue : value;
  19361. }
  19362. /**
  19363. * Creates a function that returns the result of invoking the given functions
  19364. * with the `this` binding of the created function, where each successive
  19365. * invocation is supplied the return value of the previous.
  19366. *
  19367. * @static
  19368. * @memberOf _
  19369. * @since 3.0.0
  19370. * @category Util
  19371. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  19372. * @returns {Function} Returns the new composite function.
  19373. * @see _.flowRight
  19374. * @example
  19375. *
  19376. * function square(n) {
  19377. * return n * n;
  19378. * }
  19379. *
  19380. * var addSquare = _.flow([_.add, square]);
  19381. * addSquare(1, 2);
  19382. * // => 9
  19383. */
  19384. var flow = createFlow();
  19385. /**
  19386. * This method is like `_.flow` except that it creates a function that
  19387. * invokes the given functions from right to left.
  19388. *
  19389. * @static
  19390. * @since 3.0.0
  19391. * @memberOf _
  19392. * @category Util
  19393. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  19394. * @returns {Function} Returns the new composite function.
  19395. * @see _.flow
  19396. * @example
  19397. *
  19398. * function square(n) {
  19399. * return n * n;
  19400. * }
  19401. *
  19402. * var addSquare = _.flowRight([square, _.add]);
  19403. * addSquare(1, 2);
  19404. * // => 9
  19405. */
  19406. var flowRight = createFlow(true);
  19407. /**
  19408. * This method returns the first argument it receives.
  19409. *
  19410. * @static
  19411. * @since 0.1.0
  19412. * @memberOf _
  19413. * @category Util
  19414. * @param {*} value Any value.
  19415. * @returns {*} Returns `value`.
  19416. * @example
  19417. *
  19418. * var object = { 'a': 1 };
  19419. *
  19420. * console.log(_.identity(object) === object);
  19421. * // => true
  19422. */
  19423. function identity(value) {
  19424. return value;
  19425. }
  19426. /**
  19427. * Creates a function that invokes `func` with the arguments of the created
  19428. * function. If `func` is a property name, the created function returns the
  19429. * property value for a given element. If `func` is an array or object, the
  19430. * created function returns `true` for elements that contain the equivalent
  19431. * source properties, otherwise it returns `false`.
  19432. *
  19433. * @static
  19434. * @since 4.0.0
  19435. * @memberOf _
  19436. * @category Util
  19437. * @param {*} [func=_.identity] The value to convert to a callback.
  19438. * @returns {Function} Returns the callback.
  19439. * @example
  19440. *
  19441. * var users = [
  19442. * { 'user': 'barney', 'age': 36, 'active': true },
  19443. * { 'user': 'fred', 'age': 40, 'active': false }
  19444. * ];
  19445. *
  19446. * // The `_.matches` iteratee shorthand.
  19447. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  19448. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  19449. *
  19450. * // The `_.matchesProperty` iteratee shorthand.
  19451. * _.filter(users, _.iteratee(['user', 'fred']));
  19452. * // => [{ 'user': 'fred', 'age': 40 }]
  19453. *
  19454. * // The `_.property` iteratee shorthand.
  19455. * _.map(users, _.iteratee('user'));
  19456. * // => ['barney', 'fred']
  19457. *
  19458. * // Create custom iteratee shorthands.
  19459. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  19460. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  19461. * return func.test(string);
  19462. * };
  19463. * });
  19464. *
  19465. * _.filter(['abc', 'def'], /ef/);
  19466. * // => ['def']
  19467. */
  19468. function iteratee(func) {
  19469. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  19470. }
  19471. /**
  19472. * Creates a function that performs a partial deep comparison between a given
  19473. * object and `source`, returning `true` if the given object has equivalent
  19474. * property values, else `false`.
  19475. *
  19476. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  19477. * partially applied.
  19478. *
  19479. * Partial comparisons will match empty array and empty object `source`
  19480. * values against any array or object value, respectively. See `_.isEqual`
  19481. * for a list of supported value comparisons.
  19482. *
  19483. * @static
  19484. * @memberOf _
  19485. * @since 3.0.0
  19486. * @category Util
  19487. * @param {Object} source The object of property values to match.
  19488. * @returns {Function} Returns the new spec function.
  19489. * @example
  19490. *
  19491. * var objects = [
  19492. * { 'a': 1, 'b': 2, 'c': 3 },
  19493. * { 'a': 4, 'b': 5, 'c': 6 }
  19494. * ];
  19495. *
  19496. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  19497. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  19498. */
  19499. function matches(source) {
  19500. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  19501. }
  19502. /**
  19503. * Creates a function that performs a partial deep comparison between the
  19504. * value at `path` of a given object to `srcValue`, returning `true` if the
  19505. * object value is equivalent, else `false`.
  19506. *
  19507. * **Note:** Partial comparisons will match empty array and empty object
  19508. * `srcValue` values against any array or object value, respectively. See
  19509. * `_.isEqual` for a list of supported value comparisons.
  19510. *
  19511. * @static
  19512. * @memberOf _
  19513. * @since 3.2.0
  19514. * @category Util
  19515. * @param {Array|string} path The path of the property to get.
  19516. * @param {*} srcValue The value to match.
  19517. * @returns {Function} Returns the new spec function.
  19518. * @example
  19519. *
  19520. * var objects = [
  19521. * { 'a': 1, 'b': 2, 'c': 3 },
  19522. * { 'a': 4, 'b': 5, 'c': 6 }
  19523. * ];
  19524. *
  19525. * _.find(objects, _.matchesProperty('a', 4));
  19526. * // => { 'a': 4, 'b': 5, 'c': 6 }
  19527. */
  19528. function matchesProperty(path, srcValue) {
  19529. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  19530. }
  19531. /**
  19532. * Creates a function that invokes the method at `path` of a given object.
  19533. * Any additional arguments are provided to the invoked method.
  19534. *
  19535. * @static
  19536. * @memberOf _
  19537. * @since 3.7.0
  19538. * @category Util
  19539. * @param {Array|string} path The path of the method to invoke.
  19540. * @param {...*} [args] The arguments to invoke the method with.
  19541. * @returns {Function} Returns the new invoker function.
  19542. * @example
  19543. *
  19544. * var objects = [
  19545. * { 'a': { 'b': _.constant(2) } },
  19546. * { 'a': { 'b': _.constant(1) } }
  19547. * ];
  19548. *
  19549. * _.map(objects, _.method('a.b'));
  19550. * // => [2, 1]
  19551. *
  19552. * _.map(objects, _.method(['a', 'b']));
  19553. * // => [2, 1]
  19554. */
  19555. var method = baseRest(function(path, args) {
  19556. return function(object) {
  19557. return baseInvoke(object, path, args);
  19558. };
  19559. });
  19560. /**
  19561. * The opposite of `_.method`; this method creates a function that invokes
  19562. * the method at a given path of `object`. Any additional arguments are
  19563. * provided to the invoked method.
  19564. *
  19565. * @static
  19566. * @memberOf _
  19567. * @since 3.7.0
  19568. * @category Util
  19569. * @param {Object} object The object to query.
  19570. * @param {...*} [args] The arguments to invoke the method with.
  19571. * @returns {Function} Returns the new invoker function.
  19572. * @example
  19573. *
  19574. * var array = _.times(3, _.constant),
  19575. * object = { 'a': array, 'b': array, 'c': array };
  19576. *
  19577. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  19578. * // => [2, 0]
  19579. *
  19580. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  19581. * // => [2, 0]
  19582. */
  19583. var methodOf = baseRest(function(object, args) {
  19584. return function(path) {
  19585. return baseInvoke(object, path, args);
  19586. };
  19587. });
  19588. /**
  19589. * Adds all own enumerable string keyed function properties of a source
  19590. * object to the destination object. If `object` is a function, then methods
  19591. * are added to its prototype as well.
  19592. *
  19593. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  19594. * avoid conflicts caused by modifying the original.
  19595. *
  19596. * @static
  19597. * @since 0.1.0
  19598. * @memberOf _
  19599. * @category Util
  19600. * @param {Function|Object} [object=lodash] The destination object.
  19601. * @param {Object} source The object of functions to add.
  19602. * @param {Object} [options={}] The options object.
  19603. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  19604. * @returns {Function|Object} Returns `object`.
  19605. * @example
  19606. *
  19607. * function vowels(string) {
  19608. * return _.filter(string, function(v) {
  19609. * return /[aeiou]/i.test(v);
  19610. * });
  19611. * }
  19612. *
  19613. * _.mixin({ 'vowels': vowels });
  19614. * _.vowels('fred');
  19615. * // => ['e']
  19616. *
  19617. * _('fred').vowels().value();
  19618. * // => ['e']
  19619. *
  19620. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  19621. * _('fred').vowels();
  19622. * // => ['e']
  19623. */
  19624. function mixin(object, source, options) {
  19625. var props = keys(source),
  19626. methodNames = baseFunctions(source, props);
  19627. if (options == null &&
  19628. !(isObject(source) && (methodNames.length || !props.length))) {
  19629. options = source;
  19630. source = object;
  19631. object = this;
  19632. methodNames = baseFunctions(source, keys(source));
  19633. }
  19634. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  19635. isFunc = isFunction(object);
  19636. arrayEach(methodNames, function(methodName) {
  19637. var func = source[methodName];
  19638. object[methodName] = func;
  19639. if (isFunc) {
  19640. object.prototype[methodName] = function() {
  19641. var chainAll = this.__chain__;
  19642. if (chain || chainAll) {
  19643. var result = object(this.__wrapped__),
  19644. actions = result.__actions__ = copyArray(this.__actions__);
  19645. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  19646. result.__chain__ = chainAll;
  19647. return result;
  19648. }
  19649. return func.apply(object, arrayPush([this.value()], arguments));
  19650. };
  19651. }
  19652. });
  19653. return object;
  19654. }
  19655. /**
  19656. * Reverts the `_` variable to its previous value and returns a reference to
  19657. * the `lodash` function.
  19658. *
  19659. * @static
  19660. * @since 0.1.0
  19661. * @memberOf _
  19662. * @category Util
  19663. * @returns {Function} Returns the `lodash` function.
  19664. * @example
  19665. *
  19666. * var lodash = _.noConflict();
  19667. */
  19668. function noConflict() {
  19669. if (root._ === this) {
  19670. root._ = oldDash;
  19671. }
  19672. return this;
  19673. }
  19674. /**
  19675. * This method returns `undefined`.
  19676. *
  19677. * @static
  19678. * @memberOf _
  19679. * @since 2.3.0
  19680. * @category Util
  19681. * @example
  19682. *
  19683. * _.times(2, _.noop);
  19684. * // => [undefined, undefined]
  19685. */
  19686. function noop() {
  19687. // No operation performed.
  19688. }
  19689. /**
  19690. * Creates a function that gets the argument at index `n`. If `n` is negative,
  19691. * the nth argument from the end is returned.
  19692. *
  19693. * @static
  19694. * @memberOf _
  19695. * @since 4.0.0
  19696. * @category Util
  19697. * @param {number} [n=0] The index of the argument to return.
  19698. * @returns {Function} Returns the new pass-thru function.
  19699. * @example
  19700. *
  19701. * var func = _.nthArg(1);
  19702. * func('a', 'b', 'c', 'd');
  19703. * // => 'b'
  19704. *
  19705. * var func = _.nthArg(-2);
  19706. * func('a', 'b', 'c', 'd');
  19707. * // => 'c'
  19708. */
  19709. function nthArg(n) {
  19710. n = toInteger(n);
  19711. return baseRest(function(args) {
  19712. return baseNth(args, n);
  19713. });
  19714. }
  19715. /**
  19716. * Creates a function that invokes `iteratees` with the arguments it receives
  19717. * and returns their results.
  19718. *
  19719. * @static
  19720. * @memberOf _
  19721. * @since 4.0.0
  19722. * @category Util
  19723. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  19724. * The iteratees to invoke.
  19725. * @returns {Function} Returns the new function.
  19726. * @example
  19727. *
  19728. * var func = _.over([Math.max, Math.min]);
  19729. *
  19730. * func(1, 2, 3, 4);
  19731. * // => [4, 1]
  19732. */
  19733. var over = createOver(arrayMap);
  19734. /**
  19735. * Creates a function that checks if **all** of the `predicates` return
  19736. * truthy when invoked with the arguments it receives.
  19737. *
  19738. * @static
  19739. * @memberOf _
  19740. * @since 4.0.0
  19741. * @category Util
  19742. * @param {...(Function|Function[])} [predicates=[_.identity]]
  19743. * The predicates to check.
  19744. * @returns {Function} Returns the new function.
  19745. * @example
  19746. *
  19747. * var func = _.overEvery([Boolean, isFinite]);
  19748. *
  19749. * func('1');
  19750. * // => true
  19751. *
  19752. * func(null);
  19753. * // => false
  19754. *
  19755. * func(NaN);
  19756. * // => false
  19757. */
  19758. var overEvery = createOver(arrayEvery);
  19759. /**
  19760. * Creates a function that checks if **any** of the `predicates` return
  19761. * truthy when invoked with the arguments it receives.
  19762. *
  19763. * @static
  19764. * @memberOf _
  19765. * @since 4.0.0
  19766. * @category Util
  19767. * @param {...(Function|Function[])} [predicates=[_.identity]]
  19768. * The predicates to check.
  19769. * @returns {Function} Returns the new function.
  19770. * @example
  19771. *
  19772. * var func = _.overSome([Boolean, isFinite]);
  19773. *
  19774. * func('1');
  19775. * // => true
  19776. *
  19777. * func(null);
  19778. * // => true
  19779. *
  19780. * func(NaN);
  19781. * // => false
  19782. */
  19783. var overSome = createOver(arraySome);
  19784. /**
  19785. * Creates a function that returns the value at `path` of a given object.
  19786. *
  19787. * @static
  19788. * @memberOf _
  19789. * @since 2.4.0
  19790. * @category Util
  19791. * @param {Array|string} path The path of the property to get.
  19792. * @returns {Function} Returns the new accessor function.
  19793. * @example
  19794. *
  19795. * var objects = [
  19796. * { 'a': { 'b': 2 } },
  19797. * { 'a': { 'b': 1 } }
  19798. * ];
  19799. *
  19800. * _.map(objects, _.property('a.b'));
  19801. * // => [2, 1]
  19802. *
  19803. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  19804. * // => [1, 2]
  19805. */
  19806. function property(path) {
  19807. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  19808. }
  19809. /**
  19810. * The opposite of `_.property`; this method creates a function that returns
  19811. * the value at a given path of `object`.
  19812. *
  19813. * @static
  19814. * @memberOf _
  19815. * @since 3.0.0
  19816. * @category Util
  19817. * @param {Object} object The object to query.
  19818. * @returns {Function} Returns the new accessor function.
  19819. * @example
  19820. *
  19821. * var array = [0, 1, 2],
  19822. * object = { 'a': array, 'b': array, 'c': array };
  19823. *
  19824. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  19825. * // => [2, 0]
  19826. *
  19827. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  19828. * // => [2, 0]
  19829. */
  19830. function propertyOf(object) {
  19831. return function(path) {
  19832. return object == null ? undefined : baseGet(object, path);
  19833. };
  19834. }
  19835. /**
  19836. * Creates an array of numbers (positive and/or negative) progressing from
  19837. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  19838. * `start` is specified without an `end` or `step`. If `end` is not specified,
  19839. * it's set to `start` with `start` then set to `0`.
  19840. *
  19841. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  19842. * floating-point values which can produce unexpected results.
  19843. *
  19844. * @static
  19845. * @since 0.1.0
  19846. * @memberOf _
  19847. * @category Util
  19848. * @param {number} [start=0] The start of the range.
  19849. * @param {number} end The end of the range.
  19850. * @param {number} [step=1] The value to increment or decrement by.
  19851. * @returns {Array} Returns the range of numbers.
  19852. * @see _.inRange, _.rangeRight
  19853. * @example
  19854. *
  19855. * _.range(4);
  19856. * // => [0, 1, 2, 3]
  19857. *
  19858. * _.range(-4);
  19859. * // => [0, -1, -2, -3]
  19860. *
  19861. * _.range(1, 5);
  19862. * // => [1, 2, 3, 4]
  19863. *
  19864. * _.range(0, 20, 5);
  19865. * // => [0, 5, 10, 15]
  19866. *
  19867. * _.range(0, -4, -1);
  19868. * // => [0, -1, -2, -3]
  19869. *
  19870. * _.range(1, 4, 0);
  19871. * // => [1, 1, 1]
  19872. *
  19873. * _.range(0);
  19874. * // => []
  19875. */
  19876. var range = createRange();
  19877. /**
  19878. * This method is like `_.range` except that it populates values in
  19879. * descending order.
  19880. *
  19881. * @static
  19882. * @memberOf _
  19883. * @since 4.0.0
  19884. * @category Util
  19885. * @param {number} [start=0] The start of the range.
  19886. * @param {number} end The end of the range.
  19887. * @param {number} [step=1] The value to increment or decrement by.
  19888. * @returns {Array} Returns the range of numbers.
  19889. * @see _.inRange, _.range
  19890. * @example
  19891. *
  19892. * _.rangeRight(4);
  19893. * // => [3, 2, 1, 0]
  19894. *
  19895. * _.rangeRight(-4);
  19896. * // => [-3, -2, -1, 0]
  19897. *
  19898. * _.rangeRight(1, 5);
  19899. * // => [4, 3, 2, 1]
  19900. *
  19901. * _.rangeRight(0, 20, 5);
  19902. * // => [15, 10, 5, 0]
  19903. *
  19904. * _.rangeRight(0, -4, -1);
  19905. * // => [-3, -2, -1, 0]
  19906. *
  19907. * _.rangeRight(1, 4, 0);
  19908. * // => [1, 1, 1]
  19909. *
  19910. * _.rangeRight(0);
  19911. * // => []
  19912. */
  19913. var rangeRight = createRange(true);
  19914. /**
  19915. * This method returns a new empty array.
  19916. *
  19917. * @static
  19918. * @memberOf _
  19919. * @since 4.13.0
  19920. * @category Util
  19921. * @returns {Array} Returns the new empty array.
  19922. * @example
  19923. *
  19924. * var arrays = _.times(2, _.stubArray);
  19925. *
  19926. * console.log(arrays);
  19927. * // => [[], []]
  19928. *
  19929. * console.log(arrays[0] === arrays[1]);
  19930. * // => false
  19931. */
  19932. function stubArray() {
  19933. return [];
  19934. }
  19935. /**
  19936. * This method returns `false`.
  19937. *
  19938. * @static
  19939. * @memberOf _
  19940. * @since 4.13.0
  19941. * @category Util
  19942. * @returns {boolean} Returns `false`.
  19943. * @example
  19944. *
  19945. * _.times(2, _.stubFalse);
  19946. * // => [false, false]
  19947. */
  19948. function stubFalse() {
  19949. return false;
  19950. }
  19951. /**
  19952. * This method returns a new empty object.
  19953. *
  19954. * @static
  19955. * @memberOf _
  19956. * @since 4.13.0
  19957. * @category Util
  19958. * @returns {Object} Returns the new empty object.
  19959. * @example
  19960. *
  19961. * var objects = _.times(2, _.stubObject);
  19962. *
  19963. * console.log(objects);
  19964. * // => [{}, {}]
  19965. *
  19966. * console.log(objects[0] === objects[1]);
  19967. * // => false
  19968. */
  19969. function stubObject() {
  19970. return {};
  19971. }
  19972. /**
  19973. * This method returns an empty string.
  19974. *
  19975. * @static
  19976. * @memberOf _
  19977. * @since 4.13.0
  19978. * @category Util
  19979. * @returns {string} Returns the empty string.
  19980. * @example
  19981. *
  19982. * _.times(2, _.stubString);
  19983. * // => ['', '']
  19984. */
  19985. function stubString() {
  19986. return '';
  19987. }
  19988. /**
  19989. * This method returns `true`.
  19990. *
  19991. * @static
  19992. * @memberOf _
  19993. * @since 4.13.0
  19994. * @category Util
  19995. * @returns {boolean} Returns `true`.
  19996. * @example
  19997. *
  19998. * _.times(2, _.stubTrue);
  19999. * // => [true, true]
  20000. */
  20001. function stubTrue() {
  20002. return true;
  20003. }
  20004. /**
  20005. * Invokes the iteratee `n` times, returning an array of the results of
  20006. * each invocation. The iteratee is invoked with one argument; (index).
  20007. *
  20008. * @static
  20009. * @since 0.1.0
  20010. * @memberOf _
  20011. * @category Util
  20012. * @param {number} n The number of times to invoke `iteratee`.
  20013. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20014. * @returns {Array} Returns the array of results.
  20015. * @example
  20016. *
  20017. * _.times(3, String);
  20018. * // => ['0', '1', '2']
  20019. *
  20020. * _.times(4, _.constant(0));
  20021. * // => [0, 0, 0, 0]
  20022. */
  20023. function times(n, iteratee) {
  20024. n = toInteger(n);
  20025. if (n < 1 || n > MAX_SAFE_INTEGER) {
  20026. return [];
  20027. }
  20028. var index = MAX_ARRAY_LENGTH,
  20029. length = nativeMin(n, MAX_ARRAY_LENGTH);
  20030. iteratee = getIteratee(iteratee);
  20031. n -= MAX_ARRAY_LENGTH;
  20032. var result = baseTimes(length, iteratee);
  20033. while (++index < n) {
  20034. iteratee(index);
  20035. }
  20036. return result;
  20037. }
  20038. /**
  20039. * Converts `value` to a property path array.
  20040. *
  20041. * @static
  20042. * @memberOf _
  20043. * @since 4.0.0
  20044. * @category Util
  20045. * @param {*} value The value to convert.
  20046. * @returns {Array} Returns the new property path array.
  20047. * @example
  20048. *
  20049. * _.toPath('a.b.c');
  20050. * // => ['a', 'b', 'c']
  20051. *
  20052. * _.toPath('a[0].b.c');
  20053. * // => ['a', '0', 'b', 'c']
  20054. */
  20055. function toPath(value) {
  20056. if (isArray(value)) {
  20057. return arrayMap(value, toKey);
  20058. }
  20059. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  20060. }
  20061. /**
  20062. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  20063. *
  20064. * @static
  20065. * @since 0.1.0
  20066. * @memberOf _
  20067. * @category Util
  20068. * @param {string} [prefix=''] The value to prefix the ID with.
  20069. * @returns {string} Returns the unique ID.
  20070. * @example
  20071. *
  20072. * _.uniqueId('contact_');
  20073. * // => 'contact_104'
  20074. *
  20075. * _.uniqueId();
  20076. * // => '105'
  20077. */
  20078. function uniqueId(prefix) {
  20079. var id = ++idCounter;
  20080. return toString(prefix) + id;
  20081. }
  20082. /*------------------------------------------------------------------------*/
  20083. /**
  20084. * Adds two numbers.
  20085. *
  20086. * @static
  20087. * @memberOf _
  20088. * @since 3.4.0
  20089. * @category Math
  20090. * @param {number} augend The first number in an addition.
  20091. * @param {number} addend The second number in an addition.
  20092. * @returns {number} Returns the total.
  20093. * @example
  20094. *
  20095. * _.add(6, 4);
  20096. * // => 10
  20097. */
  20098. var add = createMathOperation(function(augend, addend) {
  20099. return augend + addend;
  20100. }, 0);
  20101. /**
  20102. * Computes `number` rounded up to `precision`.
  20103. *
  20104. * @static
  20105. * @memberOf _
  20106. * @since 3.10.0
  20107. * @category Math
  20108. * @param {number} number The number to round up.
  20109. * @param {number} [precision=0] The precision to round up to.
  20110. * @returns {number} Returns the rounded up number.
  20111. * @example
  20112. *
  20113. * _.ceil(4.006);
  20114. * // => 5
  20115. *
  20116. * _.ceil(6.004, 2);
  20117. * // => 6.01
  20118. *
  20119. * _.ceil(6040, -2);
  20120. * // => 6100
  20121. */
  20122. var ceil = createRound('ceil');
  20123. /**
  20124. * Divide two numbers.
  20125. *
  20126. * @static
  20127. * @memberOf _
  20128. * @since 4.7.0
  20129. * @category Math
  20130. * @param {number} dividend The first number in a division.
  20131. * @param {number} divisor The second number in a division.
  20132. * @returns {number} Returns the quotient.
  20133. * @example
  20134. *
  20135. * _.divide(6, 4);
  20136. * // => 1.5
  20137. */
  20138. var divide = createMathOperation(function(dividend, divisor) {
  20139. return dividend / divisor;
  20140. }, 1);
  20141. /**
  20142. * Computes `number` rounded down to `precision`.
  20143. *
  20144. * @static
  20145. * @memberOf _
  20146. * @since 3.10.0
  20147. * @category Math
  20148. * @param {number} number The number to round down.
  20149. * @param {number} [precision=0] The precision to round down to.
  20150. * @returns {number} Returns the rounded down number.
  20151. * @example
  20152. *
  20153. * _.floor(4.006);
  20154. * // => 4
  20155. *
  20156. * _.floor(0.046, 2);
  20157. * // => 0.04
  20158. *
  20159. * _.floor(4060, -2);
  20160. * // => 4000
  20161. */
  20162. var floor = createRound('floor');
  20163. /**
  20164. * Computes the maximum value of `array`. If `array` is empty or falsey,
  20165. * `undefined` is returned.
  20166. *
  20167. * @static
  20168. * @since 0.1.0
  20169. * @memberOf _
  20170. * @category Math
  20171. * @param {Array} array The array to iterate over.
  20172. * @returns {*} Returns the maximum value.
  20173. * @example
  20174. *
  20175. * _.max([4, 2, 8, 6]);
  20176. * // => 8
  20177. *
  20178. * _.max([]);
  20179. * // => undefined
  20180. */
  20181. function max(array) {
  20182. return (array && array.length)
  20183. ? baseExtremum(array, identity, baseGt)
  20184. : undefined;
  20185. }
  20186. /**
  20187. * This method is like `_.max` except that it accepts `iteratee` which is
  20188. * invoked for each element in `array` to generate the criterion by which
  20189. * the value is ranked. The iteratee is invoked with one argument: (value).
  20190. *
  20191. * @static
  20192. * @memberOf _
  20193. * @since 4.0.0
  20194. * @category Math
  20195. * @param {Array} array The array to iterate over.
  20196. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20197. * @returns {*} Returns the maximum value.
  20198. * @example
  20199. *
  20200. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  20201. *
  20202. * _.maxBy(objects, function(o) { return o.n; });
  20203. * // => { 'n': 2 }
  20204. *
  20205. * // The `_.property` iteratee shorthand.
  20206. * _.maxBy(objects, 'n');
  20207. * // => { 'n': 2 }
  20208. */
  20209. function maxBy(array, iteratee) {
  20210. return (array && array.length)
  20211. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  20212. : undefined;
  20213. }
  20214. /**
  20215. * Computes the mean of the values in `array`.
  20216. *
  20217. * @static
  20218. * @memberOf _
  20219. * @since 4.0.0
  20220. * @category Math
  20221. * @param {Array} array The array to iterate over.
  20222. * @returns {number} Returns the mean.
  20223. * @example
  20224. *
  20225. * _.mean([4, 2, 8, 6]);
  20226. * // => 5
  20227. */
  20228. function mean(array) {
  20229. return baseMean(array, identity);
  20230. }
  20231. /**
  20232. * This method is like `_.mean` except that it accepts `iteratee` which is
  20233. * invoked for each element in `array` to generate the value to be averaged.
  20234. * The iteratee is invoked with one argument: (value).
  20235. *
  20236. * @static
  20237. * @memberOf _
  20238. * @since 4.7.0
  20239. * @category Math
  20240. * @param {Array} array The array to iterate over.
  20241. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20242. * @returns {number} Returns the mean.
  20243. * @example
  20244. *
  20245. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  20246. *
  20247. * _.meanBy(objects, function(o) { return o.n; });
  20248. * // => 5
  20249. *
  20250. * // The `_.property` iteratee shorthand.
  20251. * _.meanBy(objects, 'n');
  20252. * // => 5
  20253. */
  20254. function meanBy(array, iteratee) {
  20255. return baseMean(array, getIteratee(iteratee, 2));
  20256. }
  20257. /**
  20258. * Computes the minimum value of `array`. If `array` is empty or falsey,
  20259. * `undefined` is returned.
  20260. *
  20261. * @static
  20262. * @since 0.1.0
  20263. * @memberOf _
  20264. * @category Math
  20265. * @param {Array} array The array to iterate over.
  20266. * @returns {*} Returns the minimum value.
  20267. * @example
  20268. *
  20269. * _.min([4, 2, 8, 6]);
  20270. * // => 2
  20271. *
  20272. * _.min([]);
  20273. * // => undefined
  20274. */
  20275. function min(array) {
  20276. return (array && array.length)
  20277. ? baseExtremum(array, identity, baseLt)
  20278. : undefined;
  20279. }
  20280. /**
  20281. * This method is like `_.min` except that it accepts `iteratee` which is
  20282. * invoked for each element in `array` to generate the criterion by which
  20283. * the value is ranked. The iteratee is invoked with one argument: (value).
  20284. *
  20285. * @static
  20286. * @memberOf _
  20287. * @since 4.0.0
  20288. * @category Math
  20289. * @param {Array} array The array to iterate over.
  20290. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20291. * @returns {*} Returns the minimum value.
  20292. * @example
  20293. *
  20294. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  20295. *
  20296. * _.minBy(objects, function(o) { return o.n; });
  20297. * // => { 'n': 1 }
  20298. *
  20299. * // The `_.property` iteratee shorthand.
  20300. * _.minBy(objects, 'n');
  20301. * // => { 'n': 1 }
  20302. */
  20303. function minBy(array, iteratee) {
  20304. return (array && array.length)
  20305. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  20306. : undefined;
  20307. }
  20308. /**
  20309. * Multiply two numbers.
  20310. *
  20311. * @static
  20312. * @memberOf _
  20313. * @since 4.7.0
  20314. * @category Math
  20315. * @param {number} multiplier The first number in a multiplication.
  20316. * @param {number} multiplicand The second number in a multiplication.
  20317. * @returns {number} Returns the product.
  20318. * @example
  20319. *
  20320. * _.multiply(6, 4);
  20321. * // => 24
  20322. */
  20323. var multiply = createMathOperation(function(multiplier, multiplicand) {
  20324. return multiplier * multiplicand;
  20325. }, 1);
  20326. /**
  20327. * Computes `number` rounded to `precision`.
  20328. *
  20329. * @static
  20330. * @memberOf _
  20331. * @since 3.10.0
  20332. * @category Math
  20333. * @param {number} number The number to round.
  20334. * @param {number} [precision=0] The precision to round to.
  20335. * @returns {number} Returns the rounded number.
  20336. * @example
  20337. *
  20338. * _.round(4.006);
  20339. * // => 4
  20340. *
  20341. * _.round(4.006, 2);
  20342. * // => 4.01
  20343. *
  20344. * _.round(4060, -2);
  20345. * // => 4100
  20346. */
  20347. var round = createRound('round');
  20348. /**
  20349. * Subtract two numbers.
  20350. *
  20351. * @static
  20352. * @memberOf _
  20353. * @since 4.0.0
  20354. * @category Math
  20355. * @param {number} minuend The first number in a subtraction.
  20356. * @param {number} subtrahend The second number in a subtraction.
  20357. * @returns {number} Returns the difference.
  20358. * @example
  20359. *
  20360. * _.subtract(6, 4);
  20361. * // => 2
  20362. */
  20363. var subtract = createMathOperation(function(minuend, subtrahend) {
  20364. return minuend - subtrahend;
  20365. }, 0);
  20366. /**
  20367. * Computes the sum of the values in `array`.
  20368. *
  20369. * @static
  20370. * @memberOf _
  20371. * @since 3.4.0
  20372. * @category Math
  20373. * @param {Array} array The array to iterate over.
  20374. * @returns {number} Returns the sum.
  20375. * @example
  20376. *
  20377. * _.sum([4, 2, 8, 6]);
  20378. * // => 20
  20379. */
  20380. function sum(array) {
  20381. return (array && array.length)
  20382. ? baseSum(array, identity)
  20383. : 0;
  20384. }
  20385. /**
  20386. * This method is like `_.sum` except that it accepts `iteratee` which is
  20387. * invoked for each element in `array` to generate the value to be summed.
  20388. * The iteratee is invoked with one argument: (value).
  20389. *
  20390. * @static
  20391. * @memberOf _
  20392. * @since 4.0.0
  20393. * @category Math
  20394. * @param {Array} array The array to iterate over.
  20395. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20396. * @returns {number} Returns the sum.
  20397. * @example
  20398. *
  20399. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  20400. *
  20401. * _.sumBy(objects, function(o) { return o.n; });
  20402. * // => 20
  20403. *
  20404. * // The `_.property` iteratee shorthand.
  20405. * _.sumBy(objects, 'n');
  20406. * // => 20
  20407. */
  20408. function sumBy(array, iteratee) {
  20409. return (array && array.length)
  20410. ? baseSum(array, getIteratee(iteratee, 2))
  20411. : 0;
  20412. }
  20413. /*------------------------------------------------------------------------*/
  20414. // Add methods that return wrapped values in chain sequences.
  20415. lodash.after = after;
  20416. lodash.ary = ary;
  20417. lodash.assign = assign;
  20418. lodash.assignIn = assignIn;
  20419. lodash.assignInWith = assignInWith;
  20420. lodash.assignWith = assignWith;
  20421. lodash.at = at;
  20422. lodash.before = before;
  20423. lodash.bind = bind;
  20424. lodash.bindAll = bindAll;
  20425. lodash.bindKey = bindKey;
  20426. lodash.castArray = castArray;
  20427. lodash.chain = chain;
  20428. lodash.chunk = chunk;
  20429. lodash.compact = compact;
  20430. lodash.concat = concat;
  20431. lodash.cond = cond;
  20432. lodash.conforms = conforms;
  20433. lodash.constant = constant;
  20434. lodash.countBy = countBy;
  20435. lodash.create = create;
  20436. lodash.curry = curry;
  20437. lodash.curryRight = curryRight;
  20438. lodash.debounce = debounce;
  20439. lodash.defaults = defaults;
  20440. lodash.defaultsDeep = defaultsDeep;
  20441. lodash.defer = defer;
  20442. lodash.delay = delay;
  20443. lodash.difference = difference;
  20444. lodash.differenceBy = differenceBy;
  20445. lodash.differenceWith = differenceWith;
  20446. lodash.drop = drop;
  20447. lodash.dropRight = dropRight;
  20448. lodash.dropRightWhile = dropRightWhile;
  20449. lodash.dropWhile = dropWhile;
  20450. lodash.fill = fill;
  20451. lodash.filter = filter;
  20452. lodash.flatMap = flatMap;
  20453. lodash.flatMapDeep = flatMapDeep;
  20454. lodash.flatMapDepth = flatMapDepth;
  20455. lodash.flatten = flatten;
  20456. lodash.flattenDeep = flattenDeep;
  20457. lodash.flattenDepth = flattenDepth;
  20458. lodash.flip = flip;
  20459. lodash.flow = flow;
  20460. lodash.flowRight = flowRight;
  20461. lodash.fromPairs = fromPairs;
  20462. lodash.functions = functions;
  20463. lodash.functionsIn = functionsIn;
  20464. lodash.groupBy = groupBy;
  20465. lodash.initial = initial;
  20466. lodash.intersection = intersection;
  20467. lodash.intersectionBy = intersectionBy;
  20468. lodash.intersectionWith = intersectionWith;
  20469. lodash.invert = invert;
  20470. lodash.invertBy = invertBy;
  20471. lodash.invokeMap = invokeMap;
  20472. lodash.iteratee = iteratee;
  20473. lodash.keyBy = keyBy;
  20474. lodash.keys = keys;
  20475. lodash.keysIn = keysIn;
  20476. lodash.map = map;
  20477. lodash.mapKeys = mapKeys;
  20478. lodash.mapValues = mapValues;
  20479. lodash.matches = matches;
  20480. lodash.matchesProperty = matchesProperty;
  20481. lodash.memoize = memoize;
  20482. lodash.merge = merge;
  20483. lodash.mergeWith = mergeWith;
  20484. lodash.method = method;
  20485. lodash.methodOf = methodOf;
  20486. lodash.mixin = mixin;
  20487. lodash.negate = negate;
  20488. lodash.nthArg = nthArg;
  20489. lodash.omit = omit;
  20490. lodash.omitBy = omitBy;
  20491. lodash.once = once;
  20492. lodash.orderBy = orderBy;
  20493. lodash.over = over;
  20494. lodash.overArgs = overArgs;
  20495. lodash.overEvery = overEvery;
  20496. lodash.overSome = overSome;
  20497. lodash.partial = partial;
  20498. lodash.partialRight = partialRight;
  20499. lodash.partition = partition;
  20500. lodash.pick = pick;
  20501. lodash.pickBy = pickBy;
  20502. lodash.property = property;
  20503. lodash.propertyOf = propertyOf;
  20504. lodash.pull = pull;
  20505. lodash.pullAll = pullAll;
  20506. lodash.pullAllBy = pullAllBy;
  20507. lodash.pullAllWith = pullAllWith;
  20508. lodash.pullAt = pullAt;
  20509. lodash.range = range;
  20510. lodash.rangeRight = rangeRight;
  20511. lodash.rearg = rearg;
  20512. lodash.reject = reject;
  20513. lodash.remove = remove;
  20514. lodash.rest = rest;
  20515. lodash.reverse = reverse;
  20516. lodash.sampleSize = sampleSize;
  20517. lodash.set = set;
  20518. lodash.setWith = setWith;
  20519. lodash.shuffle = shuffle;
  20520. lodash.slice = slice;
  20521. lodash.sortBy = sortBy;
  20522. lodash.sortedUniq = sortedUniq;
  20523. lodash.sortedUniqBy = sortedUniqBy;
  20524. lodash.split = split;
  20525. lodash.spread = spread;
  20526. lodash.tail = tail;
  20527. lodash.take = take;
  20528. lodash.takeRight = takeRight;
  20529. lodash.takeRightWhile = takeRightWhile;
  20530. lodash.takeWhile = takeWhile;
  20531. lodash.tap = tap;
  20532. lodash.throttle = throttle;
  20533. lodash.thru = thru;
  20534. lodash.toArray = toArray;
  20535. lodash.toPairs = toPairs;
  20536. lodash.toPairsIn = toPairsIn;
  20537. lodash.toPath = toPath;
  20538. lodash.toPlainObject = toPlainObject;
  20539. lodash.transform = transform;
  20540. lodash.unary = unary;
  20541. lodash.union = union;
  20542. lodash.unionBy = unionBy;
  20543. lodash.unionWith = unionWith;
  20544. lodash.uniq = uniq;
  20545. lodash.uniqBy = uniqBy;
  20546. lodash.uniqWith = uniqWith;
  20547. lodash.unset = unset;
  20548. lodash.unzip = unzip;
  20549. lodash.unzipWith = unzipWith;
  20550. lodash.update = update;
  20551. lodash.updateWith = updateWith;
  20552. lodash.values = values;
  20553. lodash.valuesIn = valuesIn;
  20554. lodash.without = without;
  20555. lodash.words = words;
  20556. lodash.wrap = wrap;
  20557. lodash.xor = xor;
  20558. lodash.xorBy = xorBy;
  20559. lodash.xorWith = xorWith;
  20560. lodash.zip = zip;
  20561. lodash.zipObject = zipObject;
  20562. lodash.zipObjectDeep = zipObjectDeep;
  20563. lodash.zipWith = zipWith;
  20564. // Add aliases.
  20565. lodash.entries = toPairs;
  20566. lodash.entriesIn = toPairsIn;
  20567. lodash.extend = assignIn;
  20568. lodash.extendWith = assignInWith;
  20569. // Add methods to `lodash.prototype`.
  20570. mixin(lodash, lodash);
  20571. /*------------------------------------------------------------------------*/
  20572. // Add methods that return unwrapped values in chain sequences.
  20573. lodash.add = add;
  20574. lodash.attempt = attempt;
  20575. lodash.camelCase = camelCase;
  20576. lodash.capitalize = capitalize;
  20577. lodash.ceil = ceil;
  20578. lodash.clamp = clamp;
  20579. lodash.clone = clone;
  20580. lodash.cloneDeep = cloneDeep;
  20581. lodash.cloneDeepWith = cloneDeepWith;
  20582. lodash.cloneWith = cloneWith;
  20583. lodash.conformsTo = conformsTo;
  20584. lodash.deburr = deburr;
  20585. lodash.defaultTo = defaultTo;
  20586. lodash.divide = divide;
  20587. lodash.endsWith = endsWith;
  20588. lodash.eq = eq;
  20589. lodash.escape = escape;
  20590. lodash.escapeRegExp = escapeRegExp;
  20591. lodash.every = every;
  20592. lodash.find = find;
  20593. lodash.findIndex = findIndex;
  20594. lodash.findKey = findKey;
  20595. lodash.findLast = findLast;
  20596. lodash.findLastIndex = findLastIndex;
  20597. lodash.findLastKey = findLastKey;
  20598. lodash.floor = floor;
  20599. lodash.forEach = forEach;
  20600. lodash.forEachRight = forEachRight;
  20601. lodash.forIn = forIn;
  20602. lodash.forInRight = forInRight;
  20603. lodash.forOwn = forOwn;
  20604. lodash.forOwnRight = forOwnRight;
  20605. lodash.get = get;
  20606. lodash.gt = gt;
  20607. lodash.gte = gte;
  20608. lodash.has = has;
  20609. lodash.hasIn = hasIn;
  20610. lodash.head = head;
  20611. lodash.identity = identity;
  20612. lodash.includes = includes;
  20613. lodash.indexOf = indexOf;
  20614. lodash.inRange = inRange;
  20615. lodash.invoke = invoke;
  20616. lodash.isArguments = isArguments;
  20617. lodash.isArray = isArray;
  20618. lodash.isArrayBuffer = isArrayBuffer;
  20619. lodash.isArrayLike = isArrayLike;
  20620. lodash.isArrayLikeObject = isArrayLikeObject;
  20621. lodash.isBoolean = isBoolean;
  20622. lodash.isBuffer = isBuffer;
  20623. lodash.isDate = isDate;
  20624. lodash.isElement = isElement;
  20625. lodash.isEmpty = isEmpty;
  20626. lodash.isEqual = isEqual;
  20627. lodash.isEqualWith = isEqualWith;
  20628. lodash.isError = isError;
  20629. lodash.isFinite = isFinite;
  20630. lodash.isFunction = isFunction;
  20631. lodash.isInteger = isInteger;
  20632. lodash.isLength = isLength;
  20633. lodash.isMap = isMap;
  20634. lodash.isMatch = isMatch;
  20635. lodash.isMatchWith = isMatchWith;
  20636. lodash.isNaN = isNaN;
  20637. lodash.isNative = isNative;
  20638. lodash.isNil = isNil;
  20639. lodash.isNull = isNull;
  20640. lodash.isNumber = isNumber;
  20641. lodash.isObject = isObject;
  20642. lodash.isObjectLike = isObjectLike;
  20643. lodash.isPlainObject = isPlainObject;
  20644. lodash.isRegExp = isRegExp;
  20645. lodash.isSafeInteger = isSafeInteger;
  20646. lodash.isSet = isSet;
  20647. lodash.isString = isString;
  20648. lodash.isSymbol = isSymbol;
  20649. lodash.isTypedArray = isTypedArray;
  20650. lodash.isUndefined = isUndefined;
  20651. lodash.isWeakMap = isWeakMap;
  20652. lodash.isWeakSet = isWeakSet;
  20653. lodash.join = join;
  20654. lodash.kebabCase = kebabCase;
  20655. lodash.last = last;
  20656. lodash.lastIndexOf = lastIndexOf;
  20657. lodash.lowerCase = lowerCase;
  20658. lodash.lowerFirst = lowerFirst;
  20659. lodash.lt = lt;
  20660. lodash.lte = lte;
  20661. lodash.max = max;
  20662. lodash.maxBy = maxBy;
  20663. lodash.mean = mean;
  20664. lodash.meanBy = meanBy;
  20665. lodash.min = min;
  20666. lodash.minBy = minBy;
  20667. lodash.stubArray = stubArray;
  20668. lodash.stubFalse = stubFalse;
  20669. lodash.stubObject = stubObject;
  20670. lodash.stubString = stubString;
  20671. lodash.stubTrue = stubTrue;
  20672. lodash.multiply = multiply;
  20673. lodash.nth = nth;
  20674. lodash.noConflict = noConflict;
  20675. lodash.noop = noop;
  20676. lodash.now = now;
  20677. lodash.pad = pad;
  20678. lodash.padEnd = padEnd;
  20679. lodash.padStart = padStart;
  20680. lodash.parseInt = parseInt;
  20681. lodash.random = random;
  20682. lodash.reduce = reduce;
  20683. lodash.reduceRight = reduceRight;
  20684. lodash.repeat = repeat;
  20685. lodash.replace = replace;
  20686. lodash.result = result;
  20687. lodash.round = round;
  20688. lodash.runInContext = runInContext;
  20689. lodash.sample = sample;
  20690. lodash.size = size;
  20691. lodash.snakeCase = snakeCase;
  20692. lodash.some = some;
  20693. lodash.sortedIndex = sortedIndex;
  20694. lodash.sortedIndexBy = sortedIndexBy;
  20695. lodash.sortedIndexOf = sortedIndexOf;
  20696. lodash.sortedLastIndex = sortedLastIndex;
  20697. lodash.sortedLastIndexBy = sortedLastIndexBy;
  20698. lodash.sortedLastIndexOf = sortedLastIndexOf;
  20699. lodash.startCase = startCase;
  20700. lodash.startsWith = startsWith;
  20701. lodash.subtract = subtract;
  20702. lodash.sum = sum;
  20703. lodash.sumBy = sumBy;
  20704. lodash.template = template;
  20705. lodash.times = times;
  20706. lodash.toFinite = toFinite;
  20707. lodash.toInteger = toInteger;
  20708. lodash.toLength = toLength;
  20709. lodash.toLower = toLower;
  20710. lodash.toNumber = toNumber;
  20711. lodash.toSafeInteger = toSafeInteger;
  20712. lodash.toString = toString;
  20713. lodash.toUpper = toUpper;
  20714. lodash.trim = trim;
  20715. lodash.trimEnd = trimEnd;
  20716. lodash.trimStart = trimStart;
  20717. lodash.truncate = truncate;
  20718. lodash.unescape = unescape;
  20719. lodash.uniqueId = uniqueId;
  20720. lodash.upperCase = upperCase;
  20721. lodash.upperFirst = upperFirst;
  20722. // Add aliases.
  20723. lodash.each = forEach;
  20724. lodash.eachRight = forEachRight;
  20725. lodash.first = head;
  20726. mixin(lodash, (function() {
  20727. var source = {};
  20728. baseForOwn(lodash, function(func, methodName) {
  20729. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  20730. source[methodName] = func;
  20731. }
  20732. });
  20733. return source;
  20734. }()), { 'chain': false });
  20735. /*------------------------------------------------------------------------*/
  20736. /**
  20737. * The semantic version number.
  20738. *
  20739. * @static
  20740. * @memberOf _
  20741. * @type {string}
  20742. */
  20743. lodash.VERSION = VERSION;
  20744. // Assign default placeholders.
  20745. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  20746. lodash[methodName].placeholder = lodash;
  20747. });
  20748. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  20749. arrayEach(['drop', 'take'], function(methodName, index) {
  20750. LazyWrapper.prototype[methodName] = function(n) {
  20751. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  20752. var result = (this.__filtered__ && !index)
  20753. ? new LazyWrapper(this)
  20754. : this.clone();
  20755. if (result.__filtered__) {
  20756. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  20757. } else {
  20758. result.__views__.push({
  20759. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  20760. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  20761. });
  20762. }
  20763. return result;
  20764. };
  20765. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  20766. return this.reverse()[methodName](n).reverse();
  20767. };
  20768. });
  20769. // Add `LazyWrapper` methods that accept an `iteratee` value.
  20770. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  20771. var type = index + 1,
  20772. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  20773. LazyWrapper.prototype[methodName] = function(iteratee) {
  20774. var result = this.clone();
  20775. result.__iteratees__.push({
  20776. 'iteratee': getIteratee(iteratee, 3),
  20777. 'type': type
  20778. });
  20779. result.__filtered__ = result.__filtered__ || isFilter;
  20780. return result;
  20781. };
  20782. });
  20783. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  20784. arrayEach(['head', 'last'], function(methodName, index) {
  20785. var takeName = 'take' + (index ? 'Right' : '');
  20786. LazyWrapper.prototype[methodName] = function() {
  20787. return this[takeName](1).value()[0];
  20788. };
  20789. });
  20790. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  20791. arrayEach(['initial', 'tail'], function(methodName, index) {
  20792. var dropName = 'drop' + (index ? '' : 'Right');
  20793. LazyWrapper.prototype[methodName] = function() {
  20794. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  20795. };
  20796. });
  20797. LazyWrapper.prototype.compact = function() {
  20798. return this.filter(identity);
  20799. };
  20800. LazyWrapper.prototype.find = function(predicate) {
  20801. return this.filter(predicate).head();
  20802. };
  20803. LazyWrapper.prototype.findLast = function(predicate) {
  20804. return this.reverse().find(predicate);
  20805. };
  20806. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  20807. if (typeof path == 'function') {
  20808. return new LazyWrapper(this);
  20809. }
  20810. return this.map(function(value) {
  20811. return baseInvoke(value, path, args);
  20812. });
  20813. });
  20814. LazyWrapper.prototype.reject = function(predicate) {
  20815. return this.filter(negate(getIteratee(predicate)));
  20816. };
  20817. LazyWrapper.prototype.slice = function(start, end) {
  20818. start = toInteger(start);
  20819. var result = this;
  20820. if (result.__filtered__ && (start > 0 || end < 0)) {
  20821. return new LazyWrapper(result);
  20822. }
  20823. if (start < 0) {
  20824. result = result.takeRight(-start);
  20825. } else if (start) {
  20826. result = result.drop(start);
  20827. }
  20828. if (end !== undefined) {
  20829. end = toInteger(end);
  20830. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  20831. }
  20832. return result;
  20833. };
  20834. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  20835. return this.reverse().takeWhile(predicate).reverse();
  20836. };
  20837. LazyWrapper.prototype.toArray = function() {
  20838. return this.take(MAX_ARRAY_LENGTH);
  20839. };
  20840. // Add `LazyWrapper` methods to `lodash.prototype`.
  20841. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  20842. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  20843. isTaker = /^(?:head|last)$/.test(methodName),
  20844. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  20845. retUnwrapped = isTaker || /^find/.test(methodName);
  20846. if (!lodashFunc) {
  20847. return;
  20848. }
  20849. lodash.prototype[methodName] = function() {
  20850. var value = this.__wrapped__,
  20851. args = isTaker ? [1] : arguments,
  20852. isLazy = value instanceof LazyWrapper,
  20853. iteratee = args[0],
  20854. useLazy = isLazy || isArray(value);
  20855. var interceptor = function(value) {
  20856. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  20857. return (isTaker && chainAll) ? result[0] : result;
  20858. };
  20859. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  20860. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  20861. isLazy = useLazy = false;
  20862. }
  20863. var chainAll = this.__chain__,
  20864. isHybrid = !!this.__actions__.length,
  20865. isUnwrapped = retUnwrapped && !chainAll,
  20866. onlyLazy = isLazy && !isHybrid;
  20867. if (!retUnwrapped && useLazy) {
  20868. value = onlyLazy ? value : new LazyWrapper(this);
  20869. var result = func.apply(value, args);
  20870. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  20871. return new LodashWrapper(result, chainAll);
  20872. }
  20873. if (isUnwrapped && onlyLazy) {
  20874. return func.apply(this, args);
  20875. }
  20876. result = this.thru(interceptor);
  20877. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  20878. };
  20879. });
  20880. // Add `Array` methods to `lodash.prototype`.
  20881. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  20882. var func = arrayProto[methodName],
  20883. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  20884. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  20885. lodash.prototype[methodName] = function() {
  20886. var args = arguments;
  20887. if (retUnwrapped && !this.__chain__) {
  20888. var value = this.value();
  20889. return func.apply(isArray(value) ? value : [], args);
  20890. }
  20891. return this[chainName](function(value) {
  20892. return func.apply(isArray(value) ? value : [], args);
  20893. });
  20894. };
  20895. });
  20896. // Map minified method names to their real names.
  20897. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  20898. var lodashFunc = lodash[methodName];
  20899. if (lodashFunc) {
  20900. var key = (lodashFunc.name + ''),
  20901. names = realNames[key] || (realNames[key] = []);
  20902. names.push({ 'name': methodName, 'func': lodashFunc });
  20903. }
  20904. });
  20905. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  20906. 'name': 'wrapper',
  20907. 'func': undefined
  20908. }];
  20909. // Add methods to `LazyWrapper`.
  20910. LazyWrapper.prototype.clone = lazyClone;
  20911. LazyWrapper.prototype.reverse = lazyReverse;
  20912. LazyWrapper.prototype.value = lazyValue;
  20913. // Add chain sequence methods to the `lodash` wrapper.
  20914. lodash.prototype.at = wrapperAt;
  20915. lodash.prototype.chain = wrapperChain;
  20916. lodash.prototype.commit = wrapperCommit;
  20917. lodash.prototype.next = wrapperNext;
  20918. lodash.prototype.plant = wrapperPlant;
  20919. lodash.prototype.reverse = wrapperReverse;
  20920. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  20921. // Add lazy aliases.
  20922. lodash.prototype.first = lodash.prototype.head;
  20923. if (symIterator) {
  20924. lodash.prototype[symIterator] = wrapperToIterator;
  20925. }
  20926. return lodash;
  20927. });
  20928. /*--------------------------------------------------------------------------*/
  20929. // Export lodash.
  20930. var _ = runInContext();
  20931. // Some AMD build optimizers, like r.js, check for condition patterns like:
  20932. if (true) {
  20933. // Expose Lodash on the global object to prevent errors when Lodash is
  20934. // loaded by a script tag in the presence of an AMD loader.
  20935. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  20936. // Use `_.noConflict` to remove Lodash from the global object.
  20937. root._ = _;
  20938. // Define as an anonymous module so, through path mapping, it can be
  20939. // referenced as the "underscore" module.
  20940. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  20941. return _;
  20942. }).call(exports, __webpack_require__, exports, module),
  20943. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20944. }
  20945. // Check for `exports` after `define` in case a build optimizer adds it.
  20946. else {}
  20947. }.call(this));
  20948. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  20949. /***/ }),
  20950. /***/ "../../node_modules/object-assign/index.js":
  20951. /*!***************************************************************!*\
  20952. !*** D:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  20953. \***************************************************************/
  20954. /*! no static exports found */
  20955. /***/ (function(module, exports, __webpack_require__) {
  20956. "use strict";
  20957. /*
  20958. object-assign
  20959. (c) Sindre Sorhus
  20960. @license MIT
  20961. */
  20962. /* eslint-disable no-unused-vars */
  20963. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  20964. var hasOwnProperty = Object.prototype.hasOwnProperty;
  20965. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  20966. function toObject(val) {
  20967. if (val === null || val === undefined) {
  20968. throw new TypeError('Object.assign cannot be called with null or undefined');
  20969. }
  20970. return Object(val);
  20971. }
  20972. function shouldUseNative() {
  20973. try {
  20974. if (!Object.assign) {
  20975. return false;
  20976. }
  20977. // Detect buggy property enumeration order in older V8 versions.
  20978. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  20979. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  20980. test1[5] = 'de';
  20981. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  20982. return false;
  20983. }
  20984. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  20985. var test2 = {};
  20986. for (var i = 0; i < 10; i++) {
  20987. test2['_' + String.fromCharCode(i)] = i;
  20988. }
  20989. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  20990. return test2[n];
  20991. });
  20992. if (order2.join('') !== '0123456789') {
  20993. return false;
  20994. }
  20995. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  20996. var test3 = {};
  20997. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  20998. test3[letter] = letter;
  20999. });
  21000. if (Object.keys(Object.assign({}, test3)).join('') !==
  21001. 'abcdefghijklmnopqrst') {
  21002. return false;
  21003. }
  21004. return true;
  21005. } catch (err) {
  21006. // We don't expect any of the above to throw, but better to be safe.
  21007. return false;
  21008. }
  21009. }
  21010. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  21011. var from;
  21012. var to = toObject(target);
  21013. var symbols;
  21014. for (var s = 1; s < arguments.length; s++) {
  21015. from = Object(arguments[s]);
  21016. for (var key in from) {
  21017. if (hasOwnProperty.call(from, key)) {
  21018. to[key] = from[key];
  21019. }
  21020. }
  21021. if (getOwnPropertySymbols) {
  21022. symbols = getOwnPropertySymbols(from);
  21023. for (var i = 0; i < symbols.length; i++) {
  21024. if (propIsEnumerable.call(from, symbols[i])) {
  21025. to[symbols[i]] = from[symbols[i]];
  21026. }
  21027. }
  21028. }
  21029. }
  21030. return to;
  21031. };
  21032. /***/ }),
  21033. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  21034. /*!*********************************************************************!*\
  21035. !*** D:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  21036. \*********************************************************************/
  21037. /*! no static exports found */
  21038. /***/ (function(module, exports, __webpack_require__) {
  21039. "use strict";
  21040. /**
  21041. * Copyright (c) 2013-present, Facebook, Inc.
  21042. *
  21043. * This source code is licensed under the MIT license found in the
  21044. * LICENSE file in the root directory of this source tree.
  21045. */
  21046. var printWarning = function() {};
  21047. if (true) {
  21048. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  21049. var loggedTypeFailures = {};
  21050. printWarning = function(text) {
  21051. var message = 'Warning: ' + text;
  21052. if (typeof console !== 'undefined') {
  21053. console.error(message);
  21054. }
  21055. try {
  21056. // --- Welcome to debugging React ---
  21057. // This error was thrown as a convenience so that you can use this stack
  21058. // to find the callsite that caused this warning to fire.
  21059. throw new Error(message);
  21060. } catch (x) {}
  21061. };
  21062. }
  21063. /**
  21064. * Assert that the values match with the type specs.
  21065. * Error messages are memorized and will only be shown once.
  21066. *
  21067. * @param {object} typeSpecs Map of name to a ReactPropType
  21068. * @param {object} values Runtime values that need to be type-checked
  21069. * @param {string} location e.g. "prop", "context", "child context"
  21070. * @param {string} componentName Name of the component for error messages.
  21071. * @param {?Function} getStack Returns the component stack.
  21072. * @private
  21073. */
  21074. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  21075. if (true) {
  21076. for (var typeSpecName in typeSpecs) {
  21077. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  21078. var error;
  21079. // Prop type validation may throw. In case they do, we don't want to
  21080. // fail the render phase where it didn't fail before. So we log it.
  21081. // After these have been cleaned up, we'll let them throw.
  21082. try {
  21083. // This is intentionally an invariant that gets caught. It's the same
  21084. // behavior as without this statement except with a better message.
  21085. if (typeof typeSpecs[typeSpecName] !== 'function') {
  21086. var err = Error(
  21087. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  21088. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  21089. );
  21090. err.name = 'Invariant Violation';
  21091. throw err;
  21092. }
  21093. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  21094. } catch (ex) {
  21095. error = ex;
  21096. }
  21097. if (error && !(error instanceof Error)) {
  21098. printWarning(
  21099. (componentName || 'React class') + ': type specification of ' +
  21100. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  21101. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  21102. 'You may have forgotten to pass an argument to the type checker ' +
  21103. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  21104. 'shape all require an argument).'
  21105. )
  21106. }
  21107. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  21108. // Only monitor this failure once because there tends to be a lot of the
  21109. // same error.
  21110. loggedTypeFailures[error.message] = true;
  21111. var stack = getStack ? getStack() : '';
  21112. printWarning(
  21113. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  21114. );
  21115. }
  21116. }
  21117. }
  21118. }
  21119. }
  21120. module.exports = checkPropTypes;
  21121. /***/ }),
  21122. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  21123. /*!******************************************************************************!*\
  21124. !*** D:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  21125. \******************************************************************************/
  21126. /*! no static exports found */
  21127. /***/ (function(module, exports, __webpack_require__) {
  21128. "use strict";
  21129. /**
  21130. * Copyright (c) 2013-present, Facebook, Inc.
  21131. *
  21132. * This source code is licensed under the MIT license found in the
  21133. * LICENSE file in the root directory of this source tree.
  21134. */
  21135. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  21136. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  21137. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  21138. var printWarning = function() {};
  21139. if (true) {
  21140. printWarning = function(text) {
  21141. var message = 'Warning: ' + text;
  21142. if (typeof console !== 'undefined') {
  21143. console.error(message);
  21144. }
  21145. try {
  21146. // --- Welcome to debugging React ---
  21147. // This error was thrown as a convenience so that you can use this stack
  21148. // to find the callsite that caused this warning to fire.
  21149. throw new Error(message);
  21150. } catch (x) {}
  21151. };
  21152. }
  21153. function emptyFunctionThatReturnsNull() {
  21154. return null;
  21155. }
  21156. module.exports = function(isValidElement, throwOnDirectAccess) {
  21157. /* global Symbol */
  21158. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  21159. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  21160. /**
  21161. * Returns the iterator method function contained on the iterable object.
  21162. *
  21163. * Be sure to invoke the function with the iterable as context:
  21164. *
  21165. * var iteratorFn = getIteratorFn(myIterable);
  21166. * if (iteratorFn) {
  21167. * var iterator = iteratorFn.call(myIterable);
  21168. * ...
  21169. * }
  21170. *
  21171. * @param {?object} maybeIterable
  21172. * @return {?function}
  21173. */
  21174. function getIteratorFn(maybeIterable) {
  21175. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  21176. if (typeof iteratorFn === 'function') {
  21177. return iteratorFn;
  21178. }
  21179. }
  21180. /**
  21181. * Collection of methods that allow declaration and validation of props that are
  21182. * supplied to React components. Example usage:
  21183. *
  21184. * var Props = require('ReactPropTypes');
  21185. * var MyArticle = React.createClass({
  21186. * propTypes: {
  21187. * // An optional string prop named "description".
  21188. * description: Props.string,
  21189. *
  21190. * // A required enum prop named "category".
  21191. * category: Props.oneOf(['News','Photos']).isRequired,
  21192. *
  21193. * // A prop named "dialog" that requires an instance of Dialog.
  21194. * dialog: Props.instanceOf(Dialog).isRequired
  21195. * },
  21196. * render: function() { ... }
  21197. * });
  21198. *
  21199. * A more formal specification of how these methods are used:
  21200. *
  21201. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  21202. * decl := ReactPropTypes.{type}(.isRequired)?
  21203. *
  21204. * Each and every declaration produces a function with the same signature. This
  21205. * allows the creation of custom validation functions. For example:
  21206. *
  21207. * var MyLink = React.createClass({
  21208. * propTypes: {
  21209. * // An optional string or URI prop named "href".
  21210. * href: function(props, propName, componentName) {
  21211. * var propValue = props[propName];
  21212. * if (propValue != null && typeof propValue !== 'string' &&
  21213. * !(propValue instanceof URI)) {
  21214. * return new Error(
  21215. * 'Expected a string or an URI for ' + propName + ' in ' +
  21216. * componentName
  21217. * );
  21218. * }
  21219. * }
  21220. * },
  21221. * render: function() {...}
  21222. * });
  21223. *
  21224. * @internal
  21225. */
  21226. var ANONYMOUS = '<<anonymous>>';
  21227. // Important!
  21228. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  21229. var ReactPropTypes = {
  21230. array: createPrimitiveTypeChecker('array'),
  21231. bool: createPrimitiveTypeChecker('boolean'),
  21232. func: createPrimitiveTypeChecker('function'),
  21233. number: createPrimitiveTypeChecker('number'),
  21234. object: createPrimitiveTypeChecker('object'),
  21235. string: createPrimitiveTypeChecker('string'),
  21236. symbol: createPrimitiveTypeChecker('symbol'),
  21237. any: createAnyTypeChecker(),
  21238. arrayOf: createArrayOfTypeChecker,
  21239. element: createElementTypeChecker(),
  21240. instanceOf: createInstanceTypeChecker,
  21241. node: createNodeChecker(),
  21242. objectOf: createObjectOfTypeChecker,
  21243. oneOf: createEnumTypeChecker,
  21244. oneOfType: createUnionTypeChecker,
  21245. shape: createShapeTypeChecker,
  21246. exact: createStrictShapeTypeChecker,
  21247. };
  21248. /**
  21249. * inlined Object.is polyfill to avoid requiring consumers ship their own
  21250. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  21251. */
  21252. /*eslint-disable no-self-compare*/
  21253. function is(x, y) {
  21254. // SameValue algorithm
  21255. if (x === y) {
  21256. // Steps 1-5, 7-10
  21257. // Steps 6.b-6.e: +0 != -0
  21258. return x !== 0 || 1 / x === 1 / y;
  21259. } else {
  21260. // Step 6.a: NaN == NaN
  21261. return x !== x && y !== y;
  21262. }
  21263. }
  21264. /*eslint-enable no-self-compare*/
  21265. /**
  21266. * We use an Error-like object for backward compatibility as people may call
  21267. * PropTypes directly and inspect their output. However, we don't use real
  21268. * Errors anymore. We don't inspect their stack anyway, and creating them
  21269. * is prohibitively expensive if they are created too often, such as what
  21270. * happens in oneOfType() for any type before the one that matched.
  21271. */
  21272. function PropTypeError(message) {
  21273. this.message = message;
  21274. this.stack = '';
  21275. }
  21276. // Make `instanceof Error` still work for returned errors.
  21277. PropTypeError.prototype = Error.prototype;
  21278. function createChainableTypeChecker(validate) {
  21279. if (true) {
  21280. var manualPropTypeCallCache = {};
  21281. var manualPropTypeWarningCount = 0;
  21282. }
  21283. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  21284. componentName = componentName || ANONYMOUS;
  21285. propFullName = propFullName || propName;
  21286. if (secret !== ReactPropTypesSecret) {
  21287. if (throwOnDirectAccess) {
  21288. // New behavior only for users of `prop-types` package
  21289. var err = new Error(
  21290. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  21291. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  21292. 'Read more at http://fb.me/use-check-prop-types'
  21293. );
  21294. err.name = 'Invariant Violation';
  21295. throw err;
  21296. } else if ( true && typeof console !== 'undefined') {
  21297. // Old behavior for people using React.PropTypes
  21298. var cacheKey = componentName + ':' + propName;
  21299. if (
  21300. !manualPropTypeCallCache[cacheKey] &&
  21301. // Avoid spamming the console because they are often not actionable except for lib authors
  21302. manualPropTypeWarningCount < 3
  21303. ) {
  21304. printWarning(
  21305. 'You are manually calling a React.PropTypes validation ' +
  21306. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  21307. 'and will throw in the standalone `prop-types` package. ' +
  21308. 'You may be seeing this warning due to a third-party PropTypes ' +
  21309. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  21310. );
  21311. manualPropTypeCallCache[cacheKey] = true;
  21312. manualPropTypeWarningCount++;
  21313. }
  21314. }
  21315. }
  21316. if (props[propName] == null) {
  21317. if (isRequired) {
  21318. if (props[propName] === null) {
  21319. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  21320. }
  21321. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  21322. }
  21323. return null;
  21324. } else {
  21325. return validate(props, propName, componentName, location, propFullName);
  21326. }
  21327. }
  21328. var chainedCheckType = checkType.bind(null, false);
  21329. chainedCheckType.isRequired = checkType.bind(null, true);
  21330. return chainedCheckType;
  21331. }
  21332. function createPrimitiveTypeChecker(expectedType) {
  21333. function validate(props, propName, componentName, location, propFullName, secret) {
  21334. var propValue = props[propName];
  21335. var propType = getPropType(propValue);
  21336. if (propType !== expectedType) {
  21337. // `propValue` being instance of, say, date/regexp, pass the 'object'
  21338. // check, but we can offer a more precise error message here rather than
  21339. // 'of type `object`'.
  21340. var preciseType = getPreciseType(propValue);
  21341. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  21342. }
  21343. return null;
  21344. }
  21345. return createChainableTypeChecker(validate);
  21346. }
  21347. function createAnyTypeChecker() {
  21348. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  21349. }
  21350. function createArrayOfTypeChecker(typeChecker) {
  21351. function validate(props, propName, componentName, location, propFullName) {
  21352. if (typeof typeChecker !== 'function') {
  21353. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  21354. }
  21355. var propValue = props[propName];
  21356. if (!Array.isArray(propValue)) {
  21357. var propType = getPropType(propValue);
  21358. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  21359. }
  21360. for (var i = 0; i < propValue.length; i++) {
  21361. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  21362. if (error instanceof Error) {
  21363. return error;
  21364. }
  21365. }
  21366. return null;
  21367. }
  21368. return createChainableTypeChecker(validate);
  21369. }
  21370. function createElementTypeChecker() {
  21371. function validate(props, propName, componentName, location, propFullName) {
  21372. var propValue = props[propName];
  21373. if (!isValidElement(propValue)) {
  21374. var propType = getPropType(propValue);
  21375. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  21376. }
  21377. return null;
  21378. }
  21379. return createChainableTypeChecker(validate);
  21380. }
  21381. function createInstanceTypeChecker(expectedClass) {
  21382. function validate(props, propName, componentName, location, propFullName) {
  21383. if (!(props[propName] instanceof expectedClass)) {
  21384. var expectedClassName = expectedClass.name || ANONYMOUS;
  21385. var actualClassName = getClassName(props[propName]);
  21386. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  21387. }
  21388. return null;
  21389. }
  21390. return createChainableTypeChecker(validate);
  21391. }
  21392. function createEnumTypeChecker(expectedValues) {
  21393. if (!Array.isArray(expectedValues)) {
  21394. true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
  21395. return emptyFunctionThatReturnsNull;
  21396. }
  21397. function validate(props, propName, componentName, location, propFullName) {
  21398. var propValue = props[propName];
  21399. for (var i = 0; i < expectedValues.length; i++) {
  21400. if (is(propValue, expectedValues[i])) {
  21401. return null;
  21402. }
  21403. }
  21404. var valuesString = JSON.stringify(expectedValues);
  21405. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  21406. }
  21407. return createChainableTypeChecker(validate);
  21408. }
  21409. function createObjectOfTypeChecker(typeChecker) {
  21410. function validate(props, propName, componentName, location, propFullName) {
  21411. if (typeof typeChecker !== 'function') {
  21412. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  21413. }
  21414. var propValue = props[propName];
  21415. var propType = getPropType(propValue);
  21416. if (propType !== 'object') {
  21417. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  21418. }
  21419. for (var key in propValue) {
  21420. if (propValue.hasOwnProperty(key)) {
  21421. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  21422. if (error instanceof Error) {
  21423. return error;
  21424. }
  21425. }
  21426. }
  21427. return null;
  21428. }
  21429. return createChainableTypeChecker(validate);
  21430. }
  21431. function createUnionTypeChecker(arrayOfTypeCheckers) {
  21432. if (!Array.isArray(arrayOfTypeCheckers)) {
  21433. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  21434. return emptyFunctionThatReturnsNull;
  21435. }
  21436. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  21437. var checker = arrayOfTypeCheckers[i];
  21438. if (typeof checker !== 'function') {
  21439. printWarning(
  21440. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  21441. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  21442. );
  21443. return emptyFunctionThatReturnsNull;
  21444. }
  21445. }
  21446. function validate(props, propName, componentName, location, propFullName) {
  21447. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  21448. var checker = arrayOfTypeCheckers[i];
  21449. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  21450. return null;
  21451. }
  21452. }
  21453. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  21454. }
  21455. return createChainableTypeChecker(validate);
  21456. }
  21457. function createNodeChecker() {
  21458. function validate(props, propName, componentName, location, propFullName) {
  21459. if (!isNode(props[propName])) {
  21460. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  21461. }
  21462. return null;
  21463. }
  21464. return createChainableTypeChecker(validate);
  21465. }
  21466. function createShapeTypeChecker(shapeTypes) {
  21467. function validate(props, propName, componentName, location, propFullName) {
  21468. var propValue = props[propName];
  21469. var propType = getPropType(propValue);
  21470. if (propType !== 'object') {
  21471. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  21472. }
  21473. for (var key in shapeTypes) {
  21474. var checker = shapeTypes[key];
  21475. if (!checker) {
  21476. continue;
  21477. }
  21478. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  21479. if (error) {
  21480. return error;
  21481. }
  21482. }
  21483. return null;
  21484. }
  21485. return createChainableTypeChecker(validate);
  21486. }
  21487. function createStrictShapeTypeChecker(shapeTypes) {
  21488. function validate(props, propName, componentName, location, propFullName) {
  21489. var propValue = props[propName];
  21490. var propType = getPropType(propValue);
  21491. if (propType !== 'object') {
  21492. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  21493. }
  21494. // We need to check all keys in case some are required but missing from
  21495. // props.
  21496. var allKeys = assign({}, props[propName], shapeTypes);
  21497. for (var key in allKeys) {
  21498. var checker = shapeTypes[key];
  21499. if (!checker) {
  21500. return new PropTypeError(
  21501. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  21502. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  21503. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  21504. );
  21505. }
  21506. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  21507. if (error) {
  21508. return error;
  21509. }
  21510. }
  21511. return null;
  21512. }
  21513. return createChainableTypeChecker(validate);
  21514. }
  21515. function isNode(propValue) {
  21516. switch (typeof propValue) {
  21517. case 'number':
  21518. case 'string':
  21519. case 'undefined':
  21520. return true;
  21521. case 'boolean':
  21522. return !propValue;
  21523. case 'object':
  21524. if (Array.isArray(propValue)) {
  21525. return propValue.every(isNode);
  21526. }
  21527. if (propValue === null || isValidElement(propValue)) {
  21528. return true;
  21529. }
  21530. var iteratorFn = getIteratorFn(propValue);
  21531. if (iteratorFn) {
  21532. var iterator = iteratorFn.call(propValue);
  21533. var step;
  21534. if (iteratorFn !== propValue.entries) {
  21535. while (!(step = iterator.next()).done) {
  21536. if (!isNode(step.value)) {
  21537. return false;
  21538. }
  21539. }
  21540. } else {
  21541. // Iterator will provide entry [k,v] tuples rather than values.
  21542. while (!(step = iterator.next()).done) {
  21543. var entry = step.value;
  21544. if (entry) {
  21545. if (!isNode(entry[1])) {
  21546. return false;
  21547. }
  21548. }
  21549. }
  21550. }
  21551. } else {
  21552. return false;
  21553. }
  21554. return true;
  21555. default:
  21556. return false;
  21557. }
  21558. }
  21559. function isSymbol(propType, propValue) {
  21560. // Native Symbol.
  21561. if (propType === 'symbol') {
  21562. return true;
  21563. }
  21564. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  21565. if (propValue['@@toStringTag'] === 'Symbol') {
  21566. return true;
  21567. }
  21568. // Fallback for non-spec compliant Symbols which are polyfilled.
  21569. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  21570. return true;
  21571. }
  21572. return false;
  21573. }
  21574. // Equivalent of `typeof` but with special handling for array and regexp.
  21575. function getPropType(propValue) {
  21576. var propType = typeof propValue;
  21577. if (Array.isArray(propValue)) {
  21578. return 'array';
  21579. }
  21580. if (propValue instanceof RegExp) {
  21581. // Old webkits (at least until Android 4.0) return 'function' rather than
  21582. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  21583. // passes PropTypes.object.
  21584. return 'object';
  21585. }
  21586. if (isSymbol(propType, propValue)) {
  21587. return 'symbol';
  21588. }
  21589. return propType;
  21590. }
  21591. // This handles more types than `getPropType`. Only used for error messages.
  21592. // See `createPrimitiveTypeChecker`.
  21593. function getPreciseType(propValue) {
  21594. if (typeof propValue === 'undefined' || propValue === null) {
  21595. return '' + propValue;
  21596. }
  21597. var propType = getPropType(propValue);
  21598. if (propType === 'object') {
  21599. if (propValue instanceof Date) {
  21600. return 'date';
  21601. } else if (propValue instanceof RegExp) {
  21602. return 'regexp';
  21603. }
  21604. }
  21605. return propType;
  21606. }
  21607. // Returns a string that is postfixed to a warning about an invalid type.
  21608. // For example, "undefined" or "of type array"
  21609. function getPostfixForTypeWarning(value) {
  21610. var type = getPreciseType(value);
  21611. switch (type) {
  21612. case 'array':
  21613. case 'object':
  21614. return 'an ' + type;
  21615. case 'boolean':
  21616. case 'date':
  21617. case 'regexp':
  21618. return 'a ' + type;
  21619. default:
  21620. return type;
  21621. }
  21622. }
  21623. // Returns class name of the object, if any.
  21624. function getClassName(propValue) {
  21625. if (!propValue.constructor || !propValue.constructor.name) {
  21626. return ANONYMOUS;
  21627. }
  21628. return propValue.constructor.name;
  21629. }
  21630. ReactPropTypes.checkPropTypes = checkPropTypes;
  21631. ReactPropTypes.PropTypes = ReactPropTypes;
  21632. return ReactPropTypes;
  21633. };
  21634. /***/ }),
  21635. /***/ "../../node_modules/prop-types/index.js":
  21636. /*!************************************************************!*\
  21637. !*** D:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  21638. \************************************************************/
  21639. /*! no static exports found */
  21640. /***/ (function(module, exports, __webpack_require__) {
  21641. /**
  21642. * Copyright (c) 2013-present, Facebook, Inc.
  21643. *
  21644. * This source code is licensed under the MIT license found in the
  21645. * LICENSE file in the root directory of this source tree.
  21646. */
  21647. if (true) {
  21648. var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
  21649. Symbol.for &&
  21650. Symbol.for('react.element')) ||
  21651. 0xeac7;
  21652. var isValidElement = function(object) {
  21653. return typeof object === 'object' &&
  21654. object !== null &&
  21655. object.$$typeof === REACT_ELEMENT_TYPE;
  21656. };
  21657. // By explicitly using `prop-types` you are opting into new development behavior.
  21658. // http://fb.me/prop-types-in-prod
  21659. var throwOnDirectAccess = true;
  21660. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
  21661. } else {}
  21662. /***/ }),
  21663. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  21664. /*!*******************************************************************************!*\
  21665. !*** D:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  21666. \*******************************************************************************/
  21667. /*! no static exports found */
  21668. /***/ (function(module, exports, __webpack_require__) {
  21669. "use strict";
  21670. /**
  21671. * Copyright (c) 2013-present, Facebook, Inc.
  21672. *
  21673. * This source code is licensed under the MIT license found in the
  21674. * LICENSE file in the root directory of this source tree.
  21675. */
  21676. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  21677. module.exports = ReactPropTypesSecret;
  21678. /***/ }),
  21679. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  21680. /*!*******************************************************************************!*\
  21681. !*** D:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  21682. \*******************************************************************************/
  21683. /*! no static exports found */
  21684. /***/ (function(module, exports, __webpack_require__) {
  21685. "use strict";
  21686. /** @license React v16.6.1
  21687. * react-dom.development.js
  21688. *
  21689. * Copyright (c) Facebook, Inc. and its affiliates.
  21690. *
  21691. * This source code is licensed under the MIT license found in the
  21692. * LICENSE file in the root directory of this source tree.
  21693. */
  21694. if (true) {
  21695. (function() {
  21696. 'use strict';
  21697. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  21698. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  21699. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  21700. var scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  21701. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  21702. /**
  21703. * Use invariant() to assert state which your program assumes to be true.
  21704. *
  21705. * Provide sprintf-style format (only %s is supported) and arguments
  21706. * to provide information about what broke and what you were
  21707. * expecting.
  21708. *
  21709. * The invariant message will be stripped in production, but the invariant
  21710. * will remain to ensure logic does not differ in production.
  21711. */
  21712. var validateFormat = function () {};
  21713. {
  21714. validateFormat = function (format) {
  21715. if (format === undefined) {
  21716. throw new Error('invariant requires an error message argument');
  21717. }
  21718. };
  21719. }
  21720. function invariant(condition, format, a, b, c, d, e, f) {
  21721. validateFormat(format);
  21722. if (!condition) {
  21723. var error = void 0;
  21724. if (format === undefined) {
  21725. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  21726. } else {
  21727. var args = [a, b, c, d, e, f];
  21728. var argIndex = 0;
  21729. error = new Error(format.replace(/%s/g, function () {
  21730. return args[argIndex++];
  21731. }));
  21732. error.name = 'Invariant Violation';
  21733. }
  21734. error.framesToPop = 1; // we don't care about invariant's own frame
  21735. throw error;
  21736. }
  21737. }
  21738. // Relying on the `invariant()` implementation lets us
  21739. // preserve the format and params in the www builds.
  21740. !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
  21741. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  21742. var funcArgs = Array.prototype.slice.call(arguments, 3);
  21743. try {
  21744. func.apply(context, funcArgs);
  21745. } catch (error) {
  21746. this.onError(error);
  21747. }
  21748. };
  21749. {
  21750. // In DEV mode, we swap out invokeGuardedCallback for a special version
  21751. // that plays more nicely with the browser's DevTools. The idea is to preserve
  21752. // "Pause on exceptions" behavior. Because React wraps all user-provided
  21753. // functions in invokeGuardedCallback, and the production version of
  21754. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  21755. // like caught exceptions, and the DevTools won't pause unless the developer
  21756. // takes the extra step of enabling pause on caught exceptions. This is
  21757. // untintuitive, though, because even though React has caught the error, from
  21758. // the developer's perspective, the error is uncaught.
  21759. //
  21760. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  21761. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  21762. // DOM node, and call the user-provided callback from inside an event handler
  21763. // for that fake event. If the callback throws, the error is "captured" using
  21764. // a global event handler. But because the error happens in a different
  21765. // event loop context, it does not interrupt the normal program flow.
  21766. // Effectively, this gives us try-catch behavior without actually using
  21767. // try-catch. Neat!
  21768. // Check that the browser supports the APIs we need to implement our special
  21769. // DEV version of invokeGuardedCallback
  21770. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  21771. var fakeNode = document.createElement('react');
  21772. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  21773. // If document doesn't exist we know for sure we will crash in this method
  21774. // when we call document.createEvent(). However this can cause confusing
  21775. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  21776. // So we preemptively throw with a better message instead.
  21777. !(typeof document !== 'undefined') ? invariant(false, '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.') : void 0;
  21778. var evt = document.createEvent('Event');
  21779. // Keeps track of whether the user-provided callback threw an error. We
  21780. // set this to true at the beginning, then set it to false right after
  21781. // calling the function. If the function errors, `didError` will never be
  21782. // set to false. This strategy works even if the browser is flaky and
  21783. // fails to call our global error handler, because it doesn't rely on
  21784. // the error event at all.
  21785. var didError = true;
  21786. // Keeps track of the value of window.event so that we can reset it
  21787. // during the callback to let user code access window.event in the
  21788. // browsers that support it.
  21789. var windowEvent = window.event;
  21790. // Keeps track of the descriptor of window.event to restore it after event
  21791. // dispatching: https://github.com/facebook/react/issues/13688
  21792. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  21793. // Create an event handler for our fake event. We will synchronously
  21794. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  21795. // call the user-provided callback.
  21796. var funcArgs = Array.prototype.slice.call(arguments, 3);
  21797. function callCallback() {
  21798. // We immediately remove the callback from event listeners so that
  21799. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  21800. // nested call would trigger the fake event handlers of any call higher
  21801. // in the stack.
  21802. fakeNode.removeEventListener(evtType, callCallback, false);
  21803. // We check for window.hasOwnProperty('event') to prevent the
  21804. // window.event assignment in both IE <= 10 as they throw an error
  21805. // "Member not found" in strict mode, and in Firefox which does not
  21806. // support window.event.
  21807. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  21808. window.event = windowEvent;
  21809. }
  21810. func.apply(context, funcArgs);
  21811. didError = false;
  21812. }
  21813. // Create a global error event handler. We use this to capture the value
  21814. // that was thrown. It's possible that this error handler will fire more
  21815. // than once; for example, if non-React code also calls `dispatchEvent`
  21816. // and a handler for that event throws. We should be resilient to most of
  21817. // those cases. Even if our error event handler fires more than once, the
  21818. // last error event is always used. If the callback actually does error,
  21819. // we know that the last error event is the correct one, because it's not
  21820. // possible for anything else to have happened in between our callback
  21821. // erroring and the code that follows the `dispatchEvent` call below. If
  21822. // the callback doesn't error, but the error event was fired, we know to
  21823. // ignore it because `didError` will be false, as described above.
  21824. var error = void 0;
  21825. // Use this to track whether the error event is ever called.
  21826. var didSetError = false;
  21827. var isCrossOriginError = false;
  21828. function handleWindowError(event) {
  21829. error = event.error;
  21830. didSetError = true;
  21831. if (error === null && event.colno === 0 && event.lineno === 0) {
  21832. isCrossOriginError = true;
  21833. }
  21834. if (event.defaultPrevented) {
  21835. // Some other error handler has prevented default.
  21836. // Browsers silence the error report if this happens.
  21837. // We'll remember this to later decide whether to log it or not.
  21838. if (error != null && typeof error === 'object') {
  21839. try {
  21840. error._suppressLogging = true;
  21841. } catch (inner) {
  21842. // Ignore.
  21843. }
  21844. }
  21845. }
  21846. }
  21847. // Create a fake event type.
  21848. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  21849. // Attach our event handlers
  21850. window.addEventListener('error', handleWindowError);
  21851. fakeNode.addEventListener(evtType, callCallback, false);
  21852. // Synchronously dispatch our fake event. If the user-provided function
  21853. // errors, it will trigger our global error handler.
  21854. evt.initEvent(evtType, false, false);
  21855. fakeNode.dispatchEvent(evt);
  21856. if (windowEventDescriptor) {
  21857. Object.defineProperty(window, 'event', windowEventDescriptor);
  21858. }
  21859. if (didError) {
  21860. if (!didSetError) {
  21861. // The callback errored, but the error event never fired.
  21862. 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.');
  21863. } else if (isCrossOriginError) {
  21864. 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.');
  21865. }
  21866. this.onError(error);
  21867. }
  21868. // Remove our event listeners
  21869. window.removeEventListener('error', handleWindowError);
  21870. };
  21871. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  21872. }
  21873. }
  21874. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  21875. // Used by Fiber to simulate a try-catch.
  21876. var hasError = false;
  21877. var caughtError = null;
  21878. // Used by event system to capture/rethrow the first error.
  21879. var hasRethrowError = false;
  21880. var rethrowError = null;
  21881. var reporter = {
  21882. onError: function (error) {
  21883. hasError = true;
  21884. caughtError = error;
  21885. }
  21886. };
  21887. /**
  21888. * Call a function while guarding against errors that happens within it.
  21889. * Returns an error if it throws, otherwise null.
  21890. *
  21891. * In production, this is implemented using a try-catch. The reason we don't
  21892. * use a try-catch directly is so that we can swap out a different
  21893. * implementation in DEV mode.
  21894. *
  21895. * @param {String} name of the guard to use for logging or debugging
  21896. * @param {Function} func The function to invoke
  21897. * @param {*} context The context to use when calling the function
  21898. * @param {...*} args Arguments for function
  21899. */
  21900. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  21901. hasError = false;
  21902. caughtError = null;
  21903. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  21904. }
  21905. /**
  21906. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  21907. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  21908. * TODO: See if caughtError and rethrowError can be unified.
  21909. *
  21910. * @param {String} name of the guard to use for logging or debugging
  21911. * @param {Function} func The function to invoke
  21912. * @param {*} context The context to use when calling the function
  21913. * @param {...*} args Arguments for function
  21914. */
  21915. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  21916. invokeGuardedCallback.apply(this, arguments);
  21917. if (hasError) {
  21918. var error = clearCaughtError();
  21919. if (!hasRethrowError) {
  21920. hasRethrowError = true;
  21921. rethrowError = error;
  21922. }
  21923. }
  21924. }
  21925. /**
  21926. * During execution of guarded functions we will capture the first error which
  21927. * we will rethrow to be handled by the top level error handler.
  21928. */
  21929. function rethrowCaughtError() {
  21930. if (hasRethrowError) {
  21931. var error = rethrowError;
  21932. hasRethrowError = false;
  21933. rethrowError = null;
  21934. throw error;
  21935. }
  21936. }
  21937. function hasCaughtError() {
  21938. return hasError;
  21939. }
  21940. function clearCaughtError() {
  21941. if (hasError) {
  21942. var error = caughtError;
  21943. hasError = false;
  21944. caughtError = null;
  21945. return error;
  21946. } else {
  21947. invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
  21948. }
  21949. }
  21950. /**
  21951. * Injectable ordering of event plugins.
  21952. */
  21953. var eventPluginOrder = null;
  21954. /**
  21955. * Injectable mapping from names to event plugin modules.
  21956. */
  21957. var namesToPlugins = {};
  21958. /**
  21959. * Recomputes the plugin list using the injected plugins and plugin ordering.
  21960. *
  21961. * @private
  21962. */
  21963. function recomputePluginOrdering() {
  21964. if (!eventPluginOrder) {
  21965. // Wait until an `eventPluginOrder` is injected.
  21966. return;
  21967. }
  21968. for (var pluginName in namesToPlugins) {
  21969. var pluginModule = namesToPlugins[pluginName];
  21970. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  21971. !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
  21972. if (plugins[pluginIndex]) {
  21973. continue;
  21974. }
  21975. !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
  21976. plugins[pluginIndex] = pluginModule;
  21977. var publishedEvents = pluginModule.eventTypes;
  21978. for (var eventName in publishedEvents) {
  21979. !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
  21980. }
  21981. }
  21982. }
  21983. /**
  21984. * Publishes an event so that it can be dispatched by the supplied plugin.
  21985. *
  21986. * @param {object} dispatchConfig Dispatch configuration for the event.
  21987. * @param {object} PluginModule Plugin publishing the event.
  21988. * @return {boolean} True if the event was successfully published.
  21989. * @private
  21990. */
  21991. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  21992. !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
  21993. eventNameDispatchConfigs[eventName] = dispatchConfig;
  21994. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  21995. if (phasedRegistrationNames) {
  21996. for (var phaseName in phasedRegistrationNames) {
  21997. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  21998. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  21999. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  22000. }
  22001. }
  22002. return true;
  22003. } else if (dispatchConfig.registrationName) {
  22004. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  22005. return true;
  22006. }
  22007. return false;
  22008. }
  22009. /**
  22010. * Publishes a registration name that is used to identify dispatched events.
  22011. *
  22012. * @param {string} registrationName Registration name to add.
  22013. * @param {object} PluginModule Plugin publishing the event.
  22014. * @private
  22015. */
  22016. function publishRegistrationName(registrationName, pluginModule, eventName) {
  22017. !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
  22018. registrationNameModules[registrationName] = pluginModule;
  22019. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  22020. {
  22021. var lowerCasedName = registrationName.toLowerCase();
  22022. possibleRegistrationNames[lowerCasedName] = registrationName;
  22023. if (registrationName === 'onDoubleClick') {
  22024. possibleRegistrationNames.ondblclick = registrationName;
  22025. }
  22026. }
  22027. }
  22028. /**
  22029. * Registers plugins so that they can extract and dispatch events.
  22030. *
  22031. * @see {EventPluginHub}
  22032. */
  22033. /**
  22034. * Ordered list of injected plugins.
  22035. */
  22036. var plugins = [];
  22037. /**
  22038. * Mapping from event name to dispatch config
  22039. */
  22040. var eventNameDispatchConfigs = {};
  22041. /**
  22042. * Mapping from registration name to plugin module
  22043. */
  22044. var registrationNameModules = {};
  22045. /**
  22046. * Mapping from registration name to event name
  22047. */
  22048. var registrationNameDependencies = {};
  22049. /**
  22050. * Mapping from lowercase registration names to the properly cased version,
  22051. * used to warn in the case of missing event handlers. Available
  22052. * only in true.
  22053. * @type {Object}
  22054. */
  22055. var possibleRegistrationNames = {};
  22056. // Trust the developer to only use possibleRegistrationNames in true
  22057. /**
  22058. * Injects an ordering of plugins (by plugin name). This allows the ordering
  22059. * to be decoupled from injection of the actual plugins so that ordering is
  22060. * always deterministic regardless of packaging, on-the-fly injection, etc.
  22061. *
  22062. * @param {array} InjectedEventPluginOrder
  22063. * @internal
  22064. * @see {EventPluginHub.injection.injectEventPluginOrder}
  22065. */
  22066. function injectEventPluginOrder(injectedEventPluginOrder) {
  22067. !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
  22068. // Clone the ordering so it cannot be dynamically mutated.
  22069. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  22070. recomputePluginOrdering();
  22071. }
  22072. /**
  22073. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  22074. * in the ordering injected by `injectEventPluginOrder`.
  22075. *
  22076. * Plugins can be injected as part of page initialization or on-the-fly.
  22077. *
  22078. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  22079. * @internal
  22080. * @see {EventPluginHub.injection.injectEventPluginsByName}
  22081. */
  22082. function injectEventPluginsByName(injectedNamesToPlugins) {
  22083. var isOrderingDirty = false;
  22084. for (var pluginName in injectedNamesToPlugins) {
  22085. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  22086. continue;
  22087. }
  22088. var pluginModule = injectedNamesToPlugins[pluginName];
  22089. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  22090. !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
  22091. namesToPlugins[pluginName] = pluginModule;
  22092. isOrderingDirty = true;
  22093. }
  22094. }
  22095. if (isOrderingDirty) {
  22096. recomputePluginOrdering();
  22097. }
  22098. }
  22099. /**
  22100. * Similar to invariant but only logs a warning if the condition is not met.
  22101. * This can be used to log issues in development environments in critical
  22102. * paths. Removing the logging code for production environments will keep the
  22103. * same logic and follow the same code paths.
  22104. */
  22105. var warningWithoutStack = function () {};
  22106. {
  22107. warningWithoutStack = function (condition, format) {
  22108. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  22109. args[_key - 2] = arguments[_key];
  22110. }
  22111. if (format === undefined) {
  22112. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  22113. }
  22114. if (args.length > 8) {
  22115. // Check before the condition to catch violations early.
  22116. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  22117. }
  22118. if (condition) {
  22119. return;
  22120. }
  22121. if (typeof console !== 'undefined') {
  22122. var argsWithFormat = args.map(function (item) {
  22123. return '' + item;
  22124. });
  22125. argsWithFormat.unshift('Warning: ' + format);
  22126. // We intentionally don't use spread (or .apply) directly because it
  22127. // breaks IE9: https://github.com/facebook/react/issues/13610
  22128. Function.prototype.apply.call(console.error, console, argsWithFormat);
  22129. }
  22130. try {
  22131. // --- Welcome to debugging React ---
  22132. // This error was thrown as a convenience so that you can use this stack
  22133. // to find the callsite that caused this warning to fire.
  22134. var argIndex = 0;
  22135. var message = 'Warning: ' + format.replace(/%s/g, function () {
  22136. return args[argIndex++];
  22137. });
  22138. throw new Error(message);
  22139. } catch (x) {}
  22140. };
  22141. }
  22142. var warningWithoutStack$1 = warningWithoutStack;
  22143. var getFiberCurrentPropsFromNode = null;
  22144. var getInstanceFromNode = null;
  22145. var getNodeFromInstance = null;
  22146. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  22147. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  22148. getInstanceFromNode = getInstanceFromNodeImpl;
  22149. getNodeFromInstance = getNodeFromInstanceImpl;
  22150. {
  22151. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  22152. }
  22153. }
  22154. var validateEventDispatches = void 0;
  22155. {
  22156. validateEventDispatches = function (event) {
  22157. var dispatchListeners = event._dispatchListeners;
  22158. var dispatchInstances = event._dispatchInstances;
  22159. var listenersIsArr = Array.isArray(dispatchListeners);
  22160. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  22161. var instancesIsArr = Array.isArray(dispatchInstances);
  22162. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  22163. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  22164. };
  22165. }
  22166. /**
  22167. * Dispatch the event to the listener.
  22168. * @param {SyntheticEvent} event SyntheticEvent to handle
  22169. * @param {function} listener Application-level callback
  22170. * @param {*} inst Internal component instance
  22171. */
  22172. function executeDispatch(event, listener, inst) {
  22173. var type = event.type || 'unknown-event';
  22174. event.currentTarget = getNodeFromInstance(inst);
  22175. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  22176. event.currentTarget = null;
  22177. }
  22178. /**
  22179. * Standard/simple iteration through an event's collected dispatches.
  22180. */
  22181. function executeDispatchesInOrder(event) {
  22182. var dispatchListeners = event._dispatchListeners;
  22183. var dispatchInstances = event._dispatchInstances;
  22184. {
  22185. validateEventDispatches(event);
  22186. }
  22187. if (Array.isArray(dispatchListeners)) {
  22188. for (var i = 0; i < dispatchListeners.length; i++) {
  22189. if (event.isPropagationStopped()) {
  22190. break;
  22191. }
  22192. // Listeners and Instances are two parallel arrays that are always in sync.
  22193. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  22194. }
  22195. } else if (dispatchListeners) {
  22196. executeDispatch(event, dispatchListeners, dispatchInstances);
  22197. }
  22198. event._dispatchListeners = null;
  22199. event._dispatchInstances = null;
  22200. }
  22201. /**
  22202. * @see executeDispatchesInOrderStopAtTrueImpl
  22203. */
  22204. /**
  22205. * Execution of a "direct" dispatch - there must be at most one dispatch
  22206. * accumulated on the event or it is considered an error. It doesn't really make
  22207. * sense for an event with multiple dispatches (bubbled) to keep track of the
  22208. * return values at each dispatch execution, but it does tend to make sense when
  22209. * dealing with "direct" dispatches.
  22210. *
  22211. * @return {*} The return value of executing the single dispatch.
  22212. */
  22213. /**
  22214. * @param {SyntheticEvent} event
  22215. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  22216. */
  22217. /**
  22218. * Accumulates items that must not be null or undefined into the first one. This
  22219. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  22220. * API cleanness. Since `current` can be null before being passed in and not
  22221. * null after this function, make sure to assign it back to `current`:
  22222. *
  22223. * `a = accumulateInto(a, b);`
  22224. *
  22225. * This API should be sparingly used. Try `accumulate` for something cleaner.
  22226. *
  22227. * @return {*|array<*>} An accumulation of items.
  22228. */
  22229. function accumulateInto(current, next) {
  22230. !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
  22231. if (current == null) {
  22232. return next;
  22233. }
  22234. // Both are not empty. Warning: Never call x.concat(y) when you are not
  22235. // certain that x is an Array (x could be a string with concat method).
  22236. if (Array.isArray(current)) {
  22237. if (Array.isArray(next)) {
  22238. current.push.apply(current, next);
  22239. return current;
  22240. }
  22241. current.push(next);
  22242. return current;
  22243. }
  22244. if (Array.isArray(next)) {
  22245. // A bit too dangerous to mutate `next`.
  22246. return [current].concat(next);
  22247. }
  22248. return [current, next];
  22249. }
  22250. /**
  22251. * @param {array} arr an "accumulation" of items which is either an Array or
  22252. * a single item. Useful when paired with the `accumulate` module. This is a
  22253. * simple utility that allows us to reason about a collection of items, but
  22254. * handling the case when there is exactly one item (and we do not need to
  22255. * allocate an array).
  22256. * @param {function} cb Callback invoked with each element or a collection.
  22257. * @param {?} [scope] Scope used as `this` in a callback.
  22258. */
  22259. function forEachAccumulated(arr, cb, scope) {
  22260. if (Array.isArray(arr)) {
  22261. arr.forEach(cb, scope);
  22262. } else if (arr) {
  22263. cb.call(scope, arr);
  22264. }
  22265. }
  22266. /**
  22267. * Internal queue of events that have accumulated their dispatches and are
  22268. * waiting to have their dispatches executed.
  22269. */
  22270. var eventQueue = null;
  22271. /**
  22272. * Dispatches an event and releases it back into the pool, unless persistent.
  22273. *
  22274. * @param {?object} event Synthetic event to be dispatched.
  22275. * @private
  22276. */
  22277. var executeDispatchesAndRelease = function (event) {
  22278. if (event) {
  22279. executeDispatchesInOrder(event);
  22280. if (!event.isPersistent()) {
  22281. event.constructor.release(event);
  22282. }
  22283. }
  22284. };
  22285. var executeDispatchesAndReleaseTopLevel = function (e) {
  22286. return executeDispatchesAndRelease(e);
  22287. };
  22288. function isInteractive(tag) {
  22289. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  22290. }
  22291. function shouldPreventMouseEvent(name, type, props) {
  22292. switch (name) {
  22293. case 'onClick':
  22294. case 'onClickCapture':
  22295. case 'onDoubleClick':
  22296. case 'onDoubleClickCapture':
  22297. case 'onMouseDown':
  22298. case 'onMouseDownCapture':
  22299. case 'onMouseMove':
  22300. case 'onMouseMoveCapture':
  22301. case 'onMouseUp':
  22302. case 'onMouseUpCapture':
  22303. return !!(props.disabled && isInteractive(type));
  22304. default:
  22305. return false;
  22306. }
  22307. }
  22308. /**
  22309. * This is a unified interface for event plugins to be installed and configured.
  22310. *
  22311. * Event plugins can implement the following properties:
  22312. *
  22313. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  22314. * Required. When a top-level event is fired, this method is expected to
  22315. * extract synthetic events that will in turn be queued and dispatched.
  22316. *
  22317. * `eventTypes` {object}
  22318. * Optional, plugins that fire events must publish a mapping of registration
  22319. * names that are used to register listeners. Values of this mapping must
  22320. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  22321. *
  22322. * `executeDispatch` {function(object, function, string)}
  22323. * Optional, allows plugins to override how an event gets dispatched. By
  22324. * default, the listener is simply invoked.
  22325. *
  22326. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  22327. *
  22328. * @public
  22329. */
  22330. /**
  22331. * Methods for injecting dependencies.
  22332. */
  22333. var injection = {
  22334. /**
  22335. * @param {array} InjectedEventPluginOrder
  22336. * @public
  22337. */
  22338. injectEventPluginOrder: injectEventPluginOrder,
  22339. /**
  22340. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  22341. */
  22342. injectEventPluginsByName: injectEventPluginsByName
  22343. };
  22344. /**
  22345. * @param {object} inst The instance, which is the source of events.
  22346. * @param {string} registrationName Name of listener (e.g. `onClick`).
  22347. * @return {?function} The stored callback.
  22348. */
  22349. function getListener(inst, registrationName) {
  22350. var listener = void 0;
  22351. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  22352. // live here; needs to be moved to a better place soon
  22353. var stateNode = inst.stateNode;
  22354. if (!stateNode) {
  22355. // Work in progress (ex: onload events in incremental mode).
  22356. return null;
  22357. }
  22358. var props = getFiberCurrentPropsFromNode(stateNode);
  22359. if (!props) {
  22360. // Work in progress.
  22361. return null;
  22362. }
  22363. listener = props[registrationName];
  22364. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  22365. return null;
  22366. }
  22367. !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
  22368. return listener;
  22369. }
  22370. /**
  22371. * Allows registered plugins an opportunity to extract events from top-level
  22372. * native browser events.
  22373. *
  22374. * @return {*} An accumulation of synthetic events.
  22375. * @internal
  22376. */
  22377. function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  22378. var events = null;
  22379. for (var i = 0; i < plugins.length; i++) {
  22380. // Not every plugin in the ordering may be loaded at runtime.
  22381. var possiblePlugin = plugins[i];
  22382. if (possiblePlugin) {
  22383. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  22384. if (extractedEvents) {
  22385. events = accumulateInto(events, extractedEvents);
  22386. }
  22387. }
  22388. }
  22389. return events;
  22390. }
  22391. function runEventsInBatch(events) {
  22392. if (events !== null) {
  22393. eventQueue = accumulateInto(eventQueue, events);
  22394. }
  22395. // Set `eventQueue` to null before processing it so that we can tell if more
  22396. // events get enqueued while processing.
  22397. var processingEventQueue = eventQueue;
  22398. eventQueue = null;
  22399. if (!processingEventQueue) {
  22400. return;
  22401. }
  22402. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  22403. !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
  22404. // This would be a good time to rethrow if any of the event handlers threw.
  22405. rethrowCaughtError();
  22406. }
  22407. function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  22408. var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  22409. runEventsInBatch(events);
  22410. }
  22411. var FunctionComponent = 0;
  22412. var ClassComponent = 1;
  22413. var IndeterminateComponent = 2; // Before we know whether it is function or class
  22414. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  22415. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  22416. var HostComponent = 5;
  22417. var HostText = 6;
  22418. var Fragment = 7;
  22419. var Mode = 8;
  22420. var ContextConsumer = 9;
  22421. var ContextProvider = 10;
  22422. var ForwardRef = 11;
  22423. var Profiler = 12;
  22424. var SuspenseComponent = 13;
  22425. var MemoComponent = 14;
  22426. var SimpleMemoComponent = 15;
  22427. var LazyComponent = 16;
  22428. var IncompleteClassComponent = 17;
  22429. var randomKey = Math.random().toString(36).slice(2);
  22430. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  22431. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  22432. function precacheFiberNode(hostInst, node) {
  22433. node[internalInstanceKey] = hostInst;
  22434. }
  22435. /**
  22436. * Given a DOM node, return the closest ReactDOMComponent or
  22437. * ReactDOMTextComponent instance ancestor.
  22438. */
  22439. function getClosestInstanceFromNode(node) {
  22440. if (node[internalInstanceKey]) {
  22441. return node[internalInstanceKey];
  22442. }
  22443. while (!node[internalInstanceKey]) {
  22444. if (node.parentNode) {
  22445. node = node.parentNode;
  22446. } else {
  22447. // Top of the tree. This node must not be part of a React tree (or is
  22448. // unmounted, potentially).
  22449. return null;
  22450. }
  22451. }
  22452. var inst = node[internalInstanceKey];
  22453. if (inst.tag === HostComponent || inst.tag === HostText) {
  22454. // In Fiber, this will always be the deepest root.
  22455. return inst;
  22456. }
  22457. return null;
  22458. }
  22459. /**
  22460. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  22461. * instance, or null if the node was not rendered by this React.
  22462. */
  22463. function getInstanceFromNode$1(node) {
  22464. var inst = node[internalInstanceKey];
  22465. if (inst) {
  22466. if (inst.tag === HostComponent || inst.tag === HostText) {
  22467. return inst;
  22468. } else {
  22469. return null;
  22470. }
  22471. }
  22472. return null;
  22473. }
  22474. /**
  22475. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  22476. * DOM node.
  22477. */
  22478. function getNodeFromInstance$1(inst) {
  22479. if (inst.tag === HostComponent || inst.tag === HostText) {
  22480. // In Fiber this, is just the state node right now. We assume it will be
  22481. // a host component or host text.
  22482. return inst.stateNode;
  22483. }
  22484. // Without this first invariant, passing a non-DOM-component triggers the next
  22485. // invariant for a missing parent, which is super confusing.
  22486. invariant(false, 'getNodeFromInstance: Invalid argument.');
  22487. }
  22488. function getFiberCurrentPropsFromNode$1(node) {
  22489. return node[internalEventHandlersKey] || null;
  22490. }
  22491. function updateFiberProps(node, props) {
  22492. node[internalEventHandlersKey] = props;
  22493. }
  22494. function getParent(inst) {
  22495. do {
  22496. inst = inst.return;
  22497. // TODO: If this is a HostRoot we might want to bail out.
  22498. // That is depending on if we want nested subtrees (layers) to bubble
  22499. // events to their parent. We could also go through parentNode on the
  22500. // host node but that wouldn't work for React Native and doesn't let us
  22501. // do the portal feature.
  22502. } while (inst && inst.tag !== HostComponent);
  22503. if (inst) {
  22504. return inst;
  22505. }
  22506. return null;
  22507. }
  22508. /**
  22509. * Return the lowest common ancestor of A and B, or null if they are in
  22510. * different trees.
  22511. */
  22512. function getLowestCommonAncestor(instA, instB) {
  22513. var depthA = 0;
  22514. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  22515. depthA++;
  22516. }
  22517. var depthB = 0;
  22518. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  22519. depthB++;
  22520. }
  22521. // If A is deeper, crawl up.
  22522. while (depthA - depthB > 0) {
  22523. instA = getParent(instA);
  22524. depthA--;
  22525. }
  22526. // If B is deeper, crawl up.
  22527. while (depthB - depthA > 0) {
  22528. instB = getParent(instB);
  22529. depthB--;
  22530. }
  22531. // Walk in lockstep until we find a match.
  22532. var depth = depthA;
  22533. while (depth--) {
  22534. if (instA === instB || instA === instB.alternate) {
  22535. return instA;
  22536. }
  22537. instA = getParent(instA);
  22538. instB = getParent(instB);
  22539. }
  22540. return null;
  22541. }
  22542. /**
  22543. * Return if A is an ancestor of B.
  22544. */
  22545. /**
  22546. * Return the parent instance of the passed-in instance.
  22547. */
  22548. /**
  22549. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  22550. */
  22551. function traverseTwoPhase(inst, fn, arg) {
  22552. var path = [];
  22553. while (inst) {
  22554. path.push(inst);
  22555. inst = getParent(inst);
  22556. }
  22557. var i = void 0;
  22558. for (i = path.length; i-- > 0;) {
  22559. fn(path[i], 'captured', arg);
  22560. }
  22561. for (i = 0; i < path.length; i++) {
  22562. fn(path[i], 'bubbled', arg);
  22563. }
  22564. }
  22565. /**
  22566. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  22567. * should would receive a `mouseEnter` or `mouseLeave` event.
  22568. *
  22569. * Does not invoke the callback on the nearest common ancestor because nothing
  22570. * "entered" or "left" that element.
  22571. */
  22572. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  22573. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  22574. var pathFrom = [];
  22575. while (true) {
  22576. if (!from) {
  22577. break;
  22578. }
  22579. if (from === common) {
  22580. break;
  22581. }
  22582. var alternate = from.alternate;
  22583. if (alternate !== null && alternate === common) {
  22584. break;
  22585. }
  22586. pathFrom.push(from);
  22587. from = getParent(from);
  22588. }
  22589. var pathTo = [];
  22590. while (true) {
  22591. if (!to) {
  22592. break;
  22593. }
  22594. if (to === common) {
  22595. break;
  22596. }
  22597. var _alternate = to.alternate;
  22598. if (_alternate !== null && _alternate === common) {
  22599. break;
  22600. }
  22601. pathTo.push(to);
  22602. to = getParent(to);
  22603. }
  22604. for (var i = 0; i < pathFrom.length; i++) {
  22605. fn(pathFrom[i], 'bubbled', argFrom);
  22606. }
  22607. for (var _i = pathTo.length; _i-- > 0;) {
  22608. fn(pathTo[_i], 'captured', argTo);
  22609. }
  22610. }
  22611. /**
  22612. * Some event types have a notion of different registration names for different
  22613. * "phases" of propagation. This finds listeners by a given phase.
  22614. */
  22615. function listenerAtPhase(inst, event, propagationPhase) {
  22616. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  22617. return getListener(inst, registrationName);
  22618. }
  22619. /**
  22620. * A small set of propagation patterns, each of which will accept a small amount
  22621. * of information, and generate a set of "dispatch ready event objects" - which
  22622. * are sets of events that have already been annotated with a set of dispatched
  22623. * listener functions/ids. The API is designed this way to discourage these
  22624. * propagation strategies from actually executing the dispatches, since we
  22625. * always want to collect the entire set of dispatches before executing even a
  22626. * single one.
  22627. */
  22628. /**
  22629. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  22630. * here, allows us to not have to bind or create functions for each event.
  22631. * Mutating the event's members allows us to not have to create a wrapping
  22632. * "dispatch" object that pairs the event with the listener.
  22633. */
  22634. function accumulateDirectionalDispatches(inst, phase, event) {
  22635. {
  22636. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  22637. }
  22638. var listener = listenerAtPhase(inst, event, phase);
  22639. if (listener) {
  22640. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  22641. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  22642. }
  22643. }
  22644. /**
  22645. * Collect dispatches (must be entirely collected before dispatching - see unit
  22646. * tests). Lazily allocate the array to conserve memory. We must loop through
  22647. * each event and perform the traversal for each one. We cannot perform a
  22648. * single traversal for the entire collection of events because each event may
  22649. * have a different target.
  22650. */
  22651. function accumulateTwoPhaseDispatchesSingle(event) {
  22652. if (event && event.dispatchConfig.phasedRegistrationNames) {
  22653. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  22654. }
  22655. }
  22656. /**
  22657. * Accumulates without regard to direction, does not look for phased
  22658. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  22659. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  22660. */
  22661. function accumulateDispatches(inst, ignoredDirection, event) {
  22662. if (inst && event && event.dispatchConfig.registrationName) {
  22663. var registrationName = event.dispatchConfig.registrationName;
  22664. var listener = getListener(inst, registrationName);
  22665. if (listener) {
  22666. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  22667. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  22668. }
  22669. }
  22670. }
  22671. /**
  22672. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  22673. * `dispatchMarker`.
  22674. * @param {SyntheticEvent} event
  22675. */
  22676. function accumulateDirectDispatchesSingle(event) {
  22677. if (event && event.dispatchConfig.registrationName) {
  22678. accumulateDispatches(event._targetInst, null, event);
  22679. }
  22680. }
  22681. function accumulateTwoPhaseDispatches(events) {
  22682. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  22683. }
  22684. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  22685. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  22686. }
  22687. function accumulateDirectDispatches(events) {
  22688. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  22689. }
  22690. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  22691. // Do not uses the below two methods directly!
  22692. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  22693. // (It is the only module that is allowed to access these methods.)
  22694. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  22695. return topLevelType;
  22696. }
  22697. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  22698. return topLevelType;
  22699. }
  22700. /**
  22701. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  22702. *
  22703. * @param {string} styleProp
  22704. * @param {string} eventName
  22705. * @returns {object}
  22706. */
  22707. function makePrefixMap(styleProp, eventName) {
  22708. var prefixes = {};
  22709. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  22710. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  22711. prefixes['Moz' + styleProp] = 'moz' + eventName;
  22712. return prefixes;
  22713. }
  22714. /**
  22715. * A list of event names to a configurable list of vendor prefixes.
  22716. */
  22717. var vendorPrefixes = {
  22718. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  22719. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  22720. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  22721. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  22722. };
  22723. /**
  22724. * Event names that have already been detected and prefixed (if applicable).
  22725. */
  22726. var prefixedEventNames = {};
  22727. /**
  22728. * Element to check for prefixes on.
  22729. */
  22730. var style = {};
  22731. /**
  22732. * Bootstrap if a DOM exists.
  22733. */
  22734. if (canUseDOM) {
  22735. style = document.createElement('div').style;
  22736. // On some platforms, in particular some releases of Android 4.x,
  22737. // the un-prefixed "animation" and "transition" properties are defined on the
  22738. // style object but the events that fire will still be prefixed, so we need
  22739. // to check if the un-prefixed events are usable, and if not remove them from the map.
  22740. if (!('AnimationEvent' in window)) {
  22741. delete vendorPrefixes.animationend.animation;
  22742. delete vendorPrefixes.animationiteration.animation;
  22743. delete vendorPrefixes.animationstart.animation;
  22744. }
  22745. // Same as above
  22746. if (!('TransitionEvent' in window)) {
  22747. delete vendorPrefixes.transitionend.transition;
  22748. }
  22749. }
  22750. /**
  22751. * Attempts to determine the correct vendor prefixed event name.
  22752. *
  22753. * @param {string} eventName
  22754. * @returns {string}
  22755. */
  22756. function getVendorPrefixedEventName(eventName) {
  22757. if (prefixedEventNames[eventName]) {
  22758. return prefixedEventNames[eventName];
  22759. } else if (!vendorPrefixes[eventName]) {
  22760. return eventName;
  22761. }
  22762. var prefixMap = vendorPrefixes[eventName];
  22763. for (var styleProp in prefixMap) {
  22764. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  22765. return prefixedEventNames[eventName] = prefixMap[styleProp];
  22766. }
  22767. }
  22768. return eventName;
  22769. }
  22770. /**
  22771. * To identify top level events in ReactDOM, we use constants defined by this
  22772. * module. This is the only module that uses the unsafe* methods to express
  22773. * that the constants actually correspond to the browser event names. This lets
  22774. * us save some bundle size by avoiding a top level type -> event name map.
  22775. * The rest of ReactDOM code should import top level types from this file.
  22776. */
  22777. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  22778. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  22779. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  22780. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  22781. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  22782. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  22783. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  22784. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  22785. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  22786. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  22787. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  22788. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  22789. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  22790. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  22791. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  22792. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  22793. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  22794. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  22795. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  22796. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  22797. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  22798. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  22799. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  22800. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  22801. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  22802. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  22803. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  22804. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  22805. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  22806. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  22807. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  22808. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  22809. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  22810. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  22811. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  22812. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  22813. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  22814. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  22815. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  22816. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  22817. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  22818. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  22819. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  22820. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  22821. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  22822. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  22823. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  22824. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  22825. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  22826. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  22827. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  22828. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  22829. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  22830. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  22831. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  22832. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  22833. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  22834. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  22835. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  22836. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  22837. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  22838. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  22839. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  22840. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  22841. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  22842. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  22843. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  22844. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  22845. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  22846. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  22847. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  22848. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  22849. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  22850. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  22851. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  22852. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  22853. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  22854. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  22855. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  22856. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  22857. // List of events that need to be individually attached to media elements.
  22858. // Note that events in this list will *not* be listened to at the top level
  22859. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  22860. 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];
  22861. function getRawEventName(topLevelType) {
  22862. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  22863. }
  22864. /**
  22865. * These variables store information about text content of a target node,
  22866. * allowing comparison of content before and after a given event.
  22867. *
  22868. * Identify the node where selection currently begins, then observe
  22869. * both its text content and its current position in the DOM. Since the
  22870. * browser may natively replace the target node during composition, we can
  22871. * use its position to find its replacement.
  22872. *
  22873. *
  22874. */
  22875. var root = null;
  22876. var startText = null;
  22877. var fallbackText = null;
  22878. function initialize(nativeEventTarget) {
  22879. root = nativeEventTarget;
  22880. startText = getText();
  22881. return true;
  22882. }
  22883. function reset() {
  22884. root = null;
  22885. startText = null;
  22886. fallbackText = null;
  22887. }
  22888. function getData() {
  22889. if (fallbackText) {
  22890. return fallbackText;
  22891. }
  22892. var start = void 0;
  22893. var startValue = startText;
  22894. var startLength = startValue.length;
  22895. var end = void 0;
  22896. var endValue = getText();
  22897. var endLength = endValue.length;
  22898. for (start = 0; start < startLength; start++) {
  22899. if (startValue[start] !== endValue[start]) {
  22900. break;
  22901. }
  22902. }
  22903. var minEnd = startLength - start;
  22904. for (end = 1; end <= minEnd; end++) {
  22905. if (startValue[startLength - end] !== endValue[endLength - end]) {
  22906. break;
  22907. }
  22908. }
  22909. var sliceTail = end > 1 ? 1 - end : undefined;
  22910. fallbackText = endValue.slice(start, sliceTail);
  22911. return fallbackText;
  22912. }
  22913. function getText() {
  22914. if ('value' in root) {
  22915. return root.value;
  22916. }
  22917. return root.textContent;
  22918. }
  22919. /* eslint valid-typeof: 0 */
  22920. var EVENT_POOL_SIZE = 10;
  22921. /**
  22922. * @interface Event
  22923. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  22924. */
  22925. var EventInterface = {
  22926. type: null,
  22927. target: null,
  22928. // currentTarget is set when dispatching; no use in copying it here
  22929. currentTarget: function () {
  22930. return null;
  22931. },
  22932. eventPhase: null,
  22933. bubbles: null,
  22934. cancelable: null,
  22935. timeStamp: function (event) {
  22936. return event.timeStamp || Date.now();
  22937. },
  22938. defaultPrevented: null,
  22939. isTrusted: null
  22940. };
  22941. function functionThatReturnsTrue() {
  22942. return true;
  22943. }
  22944. function functionThatReturnsFalse() {
  22945. return false;
  22946. }
  22947. /**
  22948. * Synthetic events are dispatched by event plugins, typically in response to a
  22949. * top-level event delegation handler.
  22950. *
  22951. * These systems should generally use pooling to reduce the frequency of garbage
  22952. * collection. The system should check `isPersistent` to determine whether the
  22953. * event should be released into the pool after being dispatched. Users that
  22954. * need a persisted event should invoke `persist`.
  22955. *
  22956. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  22957. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  22958. * DOM interface; custom application-specific events can also subclass this.
  22959. *
  22960. * @param {object} dispatchConfig Configuration used to dispatch this event.
  22961. * @param {*} targetInst Marker identifying the event target.
  22962. * @param {object} nativeEvent Native browser event.
  22963. * @param {DOMEventTarget} nativeEventTarget Target node.
  22964. */
  22965. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  22966. {
  22967. // these have a getter/setter for warnings
  22968. delete this.nativeEvent;
  22969. delete this.preventDefault;
  22970. delete this.stopPropagation;
  22971. delete this.isDefaultPrevented;
  22972. delete this.isPropagationStopped;
  22973. }
  22974. this.dispatchConfig = dispatchConfig;
  22975. this._targetInst = targetInst;
  22976. this.nativeEvent = nativeEvent;
  22977. var Interface = this.constructor.Interface;
  22978. for (var propName in Interface) {
  22979. if (!Interface.hasOwnProperty(propName)) {
  22980. continue;
  22981. }
  22982. {
  22983. delete this[propName]; // this has a getter/setter for warnings
  22984. }
  22985. var normalize = Interface[propName];
  22986. if (normalize) {
  22987. this[propName] = normalize(nativeEvent);
  22988. } else {
  22989. if (propName === 'target') {
  22990. this.target = nativeEventTarget;
  22991. } else {
  22992. this[propName] = nativeEvent[propName];
  22993. }
  22994. }
  22995. }
  22996. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  22997. if (defaultPrevented) {
  22998. this.isDefaultPrevented = functionThatReturnsTrue;
  22999. } else {
  23000. this.isDefaultPrevented = functionThatReturnsFalse;
  23001. }
  23002. this.isPropagationStopped = functionThatReturnsFalse;
  23003. return this;
  23004. }
  23005. _assign(SyntheticEvent.prototype, {
  23006. preventDefault: function () {
  23007. this.defaultPrevented = true;
  23008. var event = this.nativeEvent;
  23009. if (!event) {
  23010. return;
  23011. }
  23012. if (event.preventDefault) {
  23013. event.preventDefault();
  23014. } else if (typeof event.returnValue !== 'unknown') {
  23015. event.returnValue = false;
  23016. }
  23017. this.isDefaultPrevented = functionThatReturnsTrue;
  23018. },
  23019. stopPropagation: function () {
  23020. var event = this.nativeEvent;
  23021. if (!event) {
  23022. return;
  23023. }
  23024. if (event.stopPropagation) {
  23025. event.stopPropagation();
  23026. } else if (typeof event.cancelBubble !== 'unknown') {
  23027. // The ChangeEventPlugin registers a "propertychange" event for
  23028. // IE. This event does not support bubbling or cancelling, and
  23029. // any references to cancelBubble throw "Member not found". A
  23030. // typeof check of "unknown" circumvents this issue (and is also
  23031. // IE specific).
  23032. event.cancelBubble = true;
  23033. }
  23034. this.isPropagationStopped = functionThatReturnsTrue;
  23035. },
  23036. /**
  23037. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  23038. * them back into the pool. This allows a way to hold onto a reference that
  23039. * won't be added back into the pool.
  23040. */
  23041. persist: function () {
  23042. this.isPersistent = functionThatReturnsTrue;
  23043. },
  23044. /**
  23045. * Checks if this event should be released back into the pool.
  23046. *
  23047. * @return {boolean} True if this should not be released, false otherwise.
  23048. */
  23049. isPersistent: functionThatReturnsFalse,
  23050. /**
  23051. * `PooledClass` looks for `destructor` on each instance it releases.
  23052. */
  23053. destructor: function () {
  23054. var Interface = this.constructor.Interface;
  23055. for (var propName in Interface) {
  23056. {
  23057. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  23058. }
  23059. }
  23060. this.dispatchConfig = null;
  23061. this._targetInst = null;
  23062. this.nativeEvent = null;
  23063. this.isDefaultPrevented = functionThatReturnsFalse;
  23064. this.isPropagationStopped = functionThatReturnsFalse;
  23065. this._dispatchListeners = null;
  23066. this._dispatchInstances = null;
  23067. {
  23068. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  23069. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  23070. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  23071. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  23072. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  23073. }
  23074. }
  23075. });
  23076. SyntheticEvent.Interface = EventInterface;
  23077. /**
  23078. * Helper to reduce boilerplate when creating subclasses.
  23079. */
  23080. SyntheticEvent.extend = function (Interface) {
  23081. var Super = this;
  23082. var E = function () {};
  23083. E.prototype = Super.prototype;
  23084. var prototype = new E();
  23085. function Class() {
  23086. return Super.apply(this, arguments);
  23087. }
  23088. _assign(prototype, Class.prototype);
  23089. Class.prototype = prototype;
  23090. Class.prototype.constructor = Class;
  23091. Class.Interface = _assign({}, Super.Interface, Interface);
  23092. Class.extend = Super.extend;
  23093. addEventPoolingTo(Class);
  23094. return Class;
  23095. };
  23096. addEventPoolingTo(SyntheticEvent);
  23097. /**
  23098. * Helper to nullify syntheticEvent instance properties when destructing
  23099. *
  23100. * @param {String} propName
  23101. * @param {?object} getVal
  23102. * @return {object} defineProperty object
  23103. */
  23104. function getPooledWarningPropertyDefinition(propName, getVal) {
  23105. var isFunction = typeof getVal === 'function';
  23106. return {
  23107. configurable: true,
  23108. set: set,
  23109. get: get
  23110. };
  23111. function set(val) {
  23112. var action = isFunction ? 'setting the method' : 'setting the property';
  23113. warn(action, 'This is effectively a no-op');
  23114. return val;
  23115. }
  23116. function get() {
  23117. var action = isFunction ? 'accessing the method' : 'accessing the property';
  23118. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  23119. warn(action, result);
  23120. return getVal;
  23121. }
  23122. function warn(action, result) {
  23123. var warningCondition = false;
  23124. !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
  23125. }
  23126. }
  23127. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  23128. var EventConstructor = this;
  23129. if (EventConstructor.eventPool.length) {
  23130. var instance = EventConstructor.eventPool.pop();
  23131. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  23132. return instance;
  23133. }
  23134. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  23135. }
  23136. function releasePooledEvent(event) {
  23137. var EventConstructor = this;
  23138. !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
  23139. event.destructor();
  23140. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  23141. EventConstructor.eventPool.push(event);
  23142. }
  23143. }
  23144. function addEventPoolingTo(EventConstructor) {
  23145. EventConstructor.eventPool = [];
  23146. EventConstructor.getPooled = getPooledEvent;
  23147. EventConstructor.release = releasePooledEvent;
  23148. }
  23149. /**
  23150. * @interface Event
  23151. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  23152. */
  23153. var SyntheticCompositionEvent = SyntheticEvent.extend({
  23154. data: null
  23155. });
  23156. /**
  23157. * @interface Event
  23158. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  23159. * /#events-inputevents
  23160. */
  23161. var SyntheticInputEvent = SyntheticEvent.extend({
  23162. data: null
  23163. });
  23164. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  23165. var START_KEYCODE = 229;
  23166. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  23167. var documentMode = null;
  23168. if (canUseDOM && 'documentMode' in document) {
  23169. documentMode = document.documentMode;
  23170. }
  23171. // Webkit offers a very useful `textInput` event that can be used to
  23172. // directly represent `beforeInput`. The IE `textinput` event is not as
  23173. // useful, so we don't use it.
  23174. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  23175. // In IE9+, we have access to composition events, but the data supplied
  23176. // by the native compositionend event may be incorrect. Japanese ideographic
  23177. // spaces, for instance (\u3000) are not recorded correctly.
  23178. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  23179. var SPACEBAR_CODE = 32;
  23180. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  23181. // Events and their corresponding property names.
  23182. var eventTypes = {
  23183. beforeInput: {
  23184. phasedRegistrationNames: {
  23185. bubbled: 'onBeforeInput',
  23186. captured: 'onBeforeInputCapture'
  23187. },
  23188. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  23189. },
  23190. compositionEnd: {
  23191. phasedRegistrationNames: {
  23192. bubbled: 'onCompositionEnd',
  23193. captured: 'onCompositionEndCapture'
  23194. },
  23195. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  23196. },
  23197. compositionStart: {
  23198. phasedRegistrationNames: {
  23199. bubbled: 'onCompositionStart',
  23200. captured: 'onCompositionStartCapture'
  23201. },
  23202. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  23203. },
  23204. compositionUpdate: {
  23205. phasedRegistrationNames: {
  23206. bubbled: 'onCompositionUpdate',
  23207. captured: 'onCompositionUpdateCapture'
  23208. },
  23209. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  23210. }
  23211. };
  23212. // Track whether we've ever handled a keypress on the space key.
  23213. var hasSpaceKeypress = false;
  23214. /**
  23215. * Return whether a native keypress event is assumed to be a command.
  23216. * This is required because Firefox fires `keypress` events for key commands
  23217. * (cut, copy, select-all, etc.) even though no character is inserted.
  23218. */
  23219. function isKeypressCommand(nativeEvent) {
  23220. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  23221. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  23222. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  23223. }
  23224. /**
  23225. * Translate native top level events into event types.
  23226. *
  23227. * @param {string} topLevelType
  23228. * @return {object}
  23229. */
  23230. function getCompositionEventType(topLevelType) {
  23231. switch (topLevelType) {
  23232. case TOP_COMPOSITION_START:
  23233. return eventTypes.compositionStart;
  23234. case TOP_COMPOSITION_END:
  23235. return eventTypes.compositionEnd;
  23236. case TOP_COMPOSITION_UPDATE:
  23237. return eventTypes.compositionUpdate;
  23238. }
  23239. }
  23240. /**
  23241. * Does our fallback best-guess model think this event signifies that
  23242. * composition has begun?
  23243. *
  23244. * @param {string} topLevelType
  23245. * @param {object} nativeEvent
  23246. * @return {boolean}
  23247. */
  23248. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  23249. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  23250. }
  23251. /**
  23252. * Does our fallback mode think that this event is the end of composition?
  23253. *
  23254. * @param {string} topLevelType
  23255. * @param {object} nativeEvent
  23256. * @return {boolean}
  23257. */
  23258. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  23259. switch (topLevelType) {
  23260. case TOP_KEY_UP:
  23261. // Command keys insert or clear IME input.
  23262. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  23263. case TOP_KEY_DOWN:
  23264. // Expect IME keyCode on each keydown. If we get any other
  23265. // code we must have exited earlier.
  23266. return nativeEvent.keyCode !== START_KEYCODE;
  23267. case TOP_KEY_PRESS:
  23268. case TOP_MOUSE_DOWN:
  23269. case TOP_BLUR:
  23270. // Events are not possible without cancelling IME.
  23271. return true;
  23272. default:
  23273. return false;
  23274. }
  23275. }
  23276. /**
  23277. * Google Input Tools provides composition data via a CustomEvent,
  23278. * with the `data` property populated in the `detail` object. If this
  23279. * is available on the event object, use it. If not, this is a plain
  23280. * composition event and we have nothing special to extract.
  23281. *
  23282. * @param {object} nativeEvent
  23283. * @return {?string}
  23284. */
  23285. function getDataFromCustomEvent(nativeEvent) {
  23286. var detail = nativeEvent.detail;
  23287. if (typeof detail === 'object' && 'data' in detail) {
  23288. return detail.data;
  23289. }
  23290. return null;
  23291. }
  23292. /**
  23293. * Check if a composition event was triggered by Korean IME.
  23294. * Our fallback mode does not work well with IE's Korean IME,
  23295. * so just use native composition events when Korean IME is used.
  23296. * Although CompositionEvent.locale property is deprecated,
  23297. * it is available in IE, where our fallback mode is enabled.
  23298. *
  23299. * @param {object} nativeEvent
  23300. * @return {boolean}
  23301. */
  23302. function isUsingKoreanIME(nativeEvent) {
  23303. return nativeEvent.locale === 'ko';
  23304. }
  23305. // Track the current IME composition status, if any.
  23306. var isComposing = false;
  23307. /**
  23308. * @return {?object} A SyntheticCompositionEvent.
  23309. */
  23310. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23311. var eventType = void 0;
  23312. var fallbackData = void 0;
  23313. if (canUseCompositionEvent) {
  23314. eventType = getCompositionEventType(topLevelType);
  23315. } else if (!isComposing) {
  23316. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  23317. eventType = eventTypes.compositionStart;
  23318. }
  23319. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  23320. eventType = eventTypes.compositionEnd;
  23321. }
  23322. if (!eventType) {
  23323. return null;
  23324. }
  23325. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  23326. // The current composition is stored statically and must not be
  23327. // overwritten while composition continues.
  23328. if (!isComposing && eventType === eventTypes.compositionStart) {
  23329. isComposing = initialize(nativeEventTarget);
  23330. } else if (eventType === eventTypes.compositionEnd) {
  23331. if (isComposing) {
  23332. fallbackData = getData();
  23333. }
  23334. }
  23335. }
  23336. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  23337. if (fallbackData) {
  23338. // Inject data generated from fallback path into the synthetic event.
  23339. // This matches the property of native CompositionEventInterface.
  23340. event.data = fallbackData;
  23341. } else {
  23342. var customData = getDataFromCustomEvent(nativeEvent);
  23343. if (customData !== null) {
  23344. event.data = customData;
  23345. }
  23346. }
  23347. accumulateTwoPhaseDispatches(event);
  23348. return event;
  23349. }
  23350. /**
  23351. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  23352. * @param {object} nativeEvent Native browser event.
  23353. * @return {?string} The string corresponding to this `beforeInput` event.
  23354. */
  23355. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  23356. switch (topLevelType) {
  23357. case TOP_COMPOSITION_END:
  23358. return getDataFromCustomEvent(nativeEvent);
  23359. case TOP_KEY_PRESS:
  23360. /**
  23361. * If native `textInput` events are available, our goal is to make
  23362. * use of them. However, there is a special case: the spacebar key.
  23363. * In Webkit, preventing default on a spacebar `textInput` event
  23364. * cancels character insertion, but it *also* causes the browser
  23365. * to fall back to its default spacebar behavior of scrolling the
  23366. * page.
  23367. *
  23368. * Tracking at:
  23369. * https://code.google.com/p/chromium/issues/detail?id=355103
  23370. *
  23371. * To avoid this issue, use the keypress event as if no `textInput`
  23372. * event is available.
  23373. */
  23374. var which = nativeEvent.which;
  23375. if (which !== SPACEBAR_CODE) {
  23376. return null;
  23377. }
  23378. hasSpaceKeypress = true;
  23379. return SPACEBAR_CHAR;
  23380. case TOP_TEXT_INPUT:
  23381. // Record the characters to be added to the DOM.
  23382. var chars = nativeEvent.data;
  23383. // If it's a spacebar character, assume that we have already handled
  23384. // it at the keypress level and bail immediately. Android Chrome
  23385. // doesn't give us keycodes, so we need to ignore it.
  23386. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  23387. return null;
  23388. }
  23389. return chars;
  23390. default:
  23391. // For other native event types, do nothing.
  23392. return null;
  23393. }
  23394. }
  23395. /**
  23396. * For browsers that do not provide the `textInput` event, extract the
  23397. * appropriate string to use for SyntheticInputEvent.
  23398. *
  23399. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  23400. * @param {object} nativeEvent Native browser event.
  23401. * @return {?string} The fallback string for this `beforeInput` event.
  23402. */
  23403. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  23404. // If we are currently composing (IME) and using a fallback to do so,
  23405. // try to extract the composed characters from the fallback object.
  23406. // If composition event is available, we extract a string only at
  23407. // compositionevent, otherwise extract it at fallback events.
  23408. if (isComposing) {
  23409. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  23410. var chars = getData();
  23411. reset();
  23412. isComposing = false;
  23413. return chars;
  23414. }
  23415. return null;
  23416. }
  23417. switch (topLevelType) {
  23418. case TOP_PASTE:
  23419. // If a paste event occurs after a keypress, throw out the input
  23420. // chars. Paste events should not lead to BeforeInput events.
  23421. return null;
  23422. case TOP_KEY_PRESS:
  23423. /**
  23424. * As of v27, Firefox may fire keypress events even when no character
  23425. * will be inserted. A few possibilities:
  23426. *
  23427. * - `which` is `0`. Arrow keys, Esc key, etc.
  23428. *
  23429. * - `which` is the pressed key code, but no char is available.
  23430. * Ex: 'AltGr + d` in Polish. There is no modified character for
  23431. * this key combination and no character is inserted into the
  23432. * document, but FF fires the keypress for char code `100` anyway.
  23433. * No `input` event will occur.
  23434. *
  23435. * - `which` is the pressed key code, but a command combination is
  23436. * being used. Ex: `Cmd+C`. No character is inserted, and no
  23437. * `input` event will occur.
  23438. */
  23439. if (!isKeypressCommand(nativeEvent)) {
  23440. // IE fires the `keypress` event when a user types an emoji via
  23441. // Touch keyboard of Windows. In such a case, the `char` property
  23442. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  23443. // is 2, the property `which` does not represent an emoji correctly.
  23444. // In such a case, we directly return the `char` property instead of
  23445. // using `which`.
  23446. if (nativeEvent.char && nativeEvent.char.length > 1) {
  23447. return nativeEvent.char;
  23448. } else if (nativeEvent.which) {
  23449. return String.fromCharCode(nativeEvent.which);
  23450. }
  23451. }
  23452. return null;
  23453. case TOP_COMPOSITION_END:
  23454. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  23455. default:
  23456. return null;
  23457. }
  23458. }
  23459. /**
  23460. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  23461. * `textInput` or fallback behavior.
  23462. *
  23463. * @return {?object} A SyntheticInputEvent.
  23464. */
  23465. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23466. var chars = void 0;
  23467. if (canUseTextInputEvent) {
  23468. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  23469. } else {
  23470. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  23471. }
  23472. // If no characters are being inserted, no BeforeInput event should
  23473. // be fired.
  23474. if (!chars) {
  23475. return null;
  23476. }
  23477. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  23478. event.data = chars;
  23479. accumulateTwoPhaseDispatches(event);
  23480. return event;
  23481. }
  23482. /**
  23483. * Create an `onBeforeInput` event to match
  23484. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  23485. *
  23486. * This event plugin is based on the native `textInput` event
  23487. * available in Chrome, Safari, Opera, and IE. This event fires after
  23488. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  23489. *
  23490. * `beforeInput` is spec'd but not implemented in any browsers, and
  23491. * the `input` event does not provide any useful information about what has
  23492. * actually been added, contrary to the spec. Thus, `textInput` is the best
  23493. * available event to identify the characters that have actually been inserted
  23494. * into the target node.
  23495. *
  23496. * This plugin is also responsible for emitting `composition` events, thus
  23497. * allowing us to share composition fallback code for both `beforeInput` and
  23498. * `composition` event types.
  23499. */
  23500. var BeforeInputEventPlugin = {
  23501. eventTypes: eventTypes,
  23502. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23503. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  23504. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  23505. if (composition === null) {
  23506. return beforeInput;
  23507. }
  23508. if (beforeInput === null) {
  23509. return composition;
  23510. }
  23511. return [composition, beforeInput];
  23512. }
  23513. };
  23514. // Use to restore controlled state after a change event has fired.
  23515. var restoreImpl = null;
  23516. var restoreTarget = null;
  23517. var restoreQueue = null;
  23518. function restoreStateOfTarget(target) {
  23519. // We perform this translation at the end of the event loop so that we
  23520. // always receive the correct fiber here
  23521. var internalInstance = getInstanceFromNode(target);
  23522. if (!internalInstance) {
  23523. // Unmounted
  23524. return;
  23525. }
  23526. !(typeof restoreImpl === 'function') ? invariant(false, '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.') : void 0;
  23527. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  23528. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  23529. }
  23530. function setRestoreImplementation(impl) {
  23531. restoreImpl = impl;
  23532. }
  23533. function enqueueStateRestore(target) {
  23534. if (restoreTarget) {
  23535. if (restoreQueue) {
  23536. restoreQueue.push(target);
  23537. } else {
  23538. restoreQueue = [target];
  23539. }
  23540. } else {
  23541. restoreTarget = target;
  23542. }
  23543. }
  23544. function needsStateRestore() {
  23545. return restoreTarget !== null || restoreQueue !== null;
  23546. }
  23547. function restoreStateIfNeeded() {
  23548. if (!restoreTarget) {
  23549. return;
  23550. }
  23551. var target = restoreTarget;
  23552. var queuedTargets = restoreQueue;
  23553. restoreTarget = null;
  23554. restoreQueue = null;
  23555. restoreStateOfTarget(target);
  23556. if (queuedTargets) {
  23557. for (var i = 0; i < queuedTargets.length; i++) {
  23558. restoreStateOfTarget(queuedTargets[i]);
  23559. }
  23560. }
  23561. }
  23562. // Used as a way to call batchedUpdates when we don't have a reference to
  23563. // the renderer. Such as when we're dispatching events or if third party
  23564. // libraries need to call batchedUpdates. Eventually, this API will go away when
  23565. // everything is batched by default. We'll then have a similar API to opt-out of
  23566. // scheduled work and instead do synchronous work.
  23567. // Defaults
  23568. var _batchedUpdatesImpl = function (fn, bookkeeping) {
  23569. return fn(bookkeeping);
  23570. };
  23571. var _interactiveUpdatesImpl = function (fn, a, b) {
  23572. return fn(a, b);
  23573. };
  23574. var _flushInteractiveUpdatesImpl = function () {};
  23575. var isBatching = false;
  23576. function batchedUpdates(fn, bookkeeping) {
  23577. if (isBatching) {
  23578. // If we are currently inside another batch, we need to wait until it
  23579. // fully completes before restoring state.
  23580. return fn(bookkeeping);
  23581. }
  23582. isBatching = true;
  23583. try {
  23584. return _batchedUpdatesImpl(fn, bookkeeping);
  23585. } finally {
  23586. // Here we wait until all updates have propagated, which is important
  23587. // when using controlled components within layers:
  23588. // https://github.com/facebook/react/issues/1698
  23589. // Then we restore state of any controlled component.
  23590. isBatching = false;
  23591. var controlledComponentsHavePendingUpdates = needsStateRestore();
  23592. if (controlledComponentsHavePendingUpdates) {
  23593. // If a controlled event was fired, we may need to restore the state of
  23594. // the DOM node back to the controlled value. This is necessary when React
  23595. // bails out of the update without touching the DOM.
  23596. _flushInteractiveUpdatesImpl();
  23597. restoreStateIfNeeded();
  23598. }
  23599. }
  23600. }
  23601. function interactiveUpdates(fn, a, b) {
  23602. return _interactiveUpdatesImpl(fn, a, b);
  23603. }
  23604. function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
  23605. _batchedUpdatesImpl = batchedUpdatesImpl;
  23606. _interactiveUpdatesImpl = interactiveUpdatesImpl;
  23607. _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
  23608. }
  23609. /**
  23610. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  23611. */
  23612. var supportedInputTypes = {
  23613. color: true,
  23614. date: true,
  23615. datetime: true,
  23616. 'datetime-local': true,
  23617. email: true,
  23618. month: true,
  23619. number: true,
  23620. password: true,
  23621. range: true,
  23622. search: true,
  23623. tel: true,
  23624. text: true,
  23625. time: true,
  23626. url: true,
  23627. week: true
  23628. };
  23629. function isTextInputElement(elem) {
  23630. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  23631. if (nodeName === 'input') {
  23632. return !!supportedInputTypes[elem.type];
  23633. }
  23634. if (nodeName === 'textarea') {
  23635. return true;
  23636. }
  23637. return false;
  23638. }
  23639. /**
  23640. * HTML nodeType values that represent the type of the node
  23641. */
  23642. var ELEMENT_NODE = 1;
  23643. var TEXT_NODE = 3;
  23644. var COMMENT_NODE = 8;
  23645. var DOCUMENT_NODE = 9;
  23646. var DOCUMENT_FRAGMENT_NODE = 11;
  23647. /**
  23648. * Gets the target node from a native browser event by accounting for
  23649. * inconsistencies in browser DOM APIs.
  23650. *
  23651. * @param {object} nativeEvent Native browser event.
  23652. * @return {DOMEventTarget} Target node.
  23653. */
  23654. function getEventTarget(nativeEvent) {
  23655. // Fallback to nativeEvent.srcElement for IE9
  23656. // https://github.com/facebook/react/issues/12506
  23657. var target = nativeEvent.target || nativeEvent.srcElement || window;
  23658. // Normalize SVG <use> element events #4963
  23659. if (target.correspondingUseElement) {
  23660. target = target.correspondingUseElement;
  23661. }
  23662. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  23663. // @see http://www.quirksmode.org/js/events_properties.html
  23664. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  23665. }
  23666. /**
  23667. * Checks if an event is supported in the current execution environment.
  23668. *
  23669. * NOTE: This will not work correctly for non-generic events such as `change`,
  23670. * `reset`, `load`, `error`, and `select`.
  23671. *
  23672. * Borrows from Modernizr.
  23673. *
  23674. * @param {string} eventNameSuffix Event name, e.g. "click".
  23675. * @return {boolean} True if the event is supported.
  23676. * @internal
  23677. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  23678. */
  23679. function isEventSupported(eventNameSuffix) {
  23680. if (!canUseDOM) {
  23681. return false;
  23682. }
  23683. var eventName = 'on' + eventNameSuffix;
  23684. var isSupported = eventName in document;
  23685. if (!isSupported) {
  23686. var element = document.createElement('div');
  23687. element.setAttribute(eventName, 'return;');
  23688. isSupported = typeof element[eventName] === 'function';
  23689. }
  23690. return isSupported;
  23691. }
  23692. function isCheckable(elem) {
  23693. var type = elem.type;
  23694. var nodeName = elem.nodeName;
  23695. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  23696. }
  23697. function getTracker(node) {
  23698. return node._valueTracker;
  23699. }
  23700. function detachTracker(node) {
  23701. node._valueTracker = null;
  23702. }
  23703. function getValueFromNode(node) {
  23704. var value = '';
  23705. if (!node) {
  23706. return value;
  23707. }
  23708. if (isCheckable(node)) {
  23709. value = node.checked ? 'true' : 'false';
  23710. } else {
  23711. value = node.value;
  23712. }
  23713. return value;
  23714. }
  23715. function trackValueOnNode(node) {
  23716. var valueField = isCheckable(node) ? 'checked' : 'value';
  23717. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  23718. var currentValue = '' + node[valueField];
  23719. // if someone has already defined a value or Safari, then bail
  23720. // and don't track value will cause over reporting of changes,
  23721. // but it's better then a hard failure
  23722. // (needed for certain tests that spyOn input values and Safari)
  23723. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  23724. return;
  23725. }
  23726. var get = descriptor.get,
  23727. set = descriptor.set;
  23728. Object.defineProperty(node, valueField, {
  23729. configurable: true,
  23730. get: function () {
  23731. return get.call(this);
  23732. },
  23733. set: function (value) {
  23734. currentValue = '' + value;
  23735. set.call(this, value);
  23736. }
  23737. });
  23738. // We could've passed this the first time
  23739. // but it triggers a bug in IE11 and Edge 14/15.
  23740. // Calling defineProperty() again should be equivalent.
  23741. // https://github.com/facebook/react/issues/11768
  23742. Object.defineProperty(node, valueField, {
  23743. enumerable: descriptor.enumerable
  23744. });
  23745. var tracker = {
  23746. getValue: function () {
  23747. return currentValue;
  23748. },
  23749. setValue: function (value) {
  23750. currentValue = '' + value;
  23751. },
  23752. stopTracking: function () {
  23753. detachTracker(node);
  23754. delete node[valueField];
  23755. }
  23756. };
  23757. return tracker;
  23758. }
  23759. function track(node) {
  23760. if (getTracker(node)) {
  23761. return;
  23762. }
  23763. // TODO: Once it's just Fiber we can move this to node._wrapperState
  23764. node._valueTracker = trackValueOnNode(node);
  23765. }
  23766. function updateValueIfChanged(node) {
  23767. if (!node) {
  23768. return false;
  23769. }
  23770. var tracker = getTracker(node);
  23771. // if there is no tracker at this point it's unlikely
  23772. // that trying again will succeed
  23773. if (!tracker) {
  23774. return true;
  23775. }
  23776. var lastValue = tracker.getValue();
  23777. var nextValue = getValueFromNode(node);
  23778. if (nextValue !== lastValue) {
  23779. tracker.setValue(nextValue);
  23780. return true;
  23781. }
  23782. return false;
  23783. }
  23784. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  23785. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  23786. var describeComponentFrame = function (name, source, ownerName) {
  23787. var sourceInfo = '';
  23788. if (source) {
  23789. var path = source.fileName;
  23790. var fileName = path.replace(BEFORE_SLASH_RE, '');
  23791. {
  23792. // In DEV, include code for a common special case:
  23793. // prefer "folder/index.js" instead of just "index.js".
  23794. if (/^index\./.test(fileName)) {
  23795. var match = path.match(BEFORE_SLASH_RE);
  23796. if (match) {
  23797. var pathBeforeSlash = match[1];
  23798. if (pathBeforeSlash) {
  23799. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  23800. fileName = folderName + '/' + fileName;
  23801. }
  23802. }
  23803. }
  23804. }
  23805. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  23806. } else if (ownerName) {
  23807. sourceInfo = ' (created by ' + ownerName + ')';
  23808. }
  23809. return '\n in ' + (name || 'Unknown') + sourceInfo;
  23810. };
  23811. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  23812. // nor polyfill, then a plain number is used for performance.
  23813. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  23814. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  23815. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  23816. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  23817. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  23818. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  23819. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  23820. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  23821. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  23822. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  23823. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  23824. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  23825. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  23826. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  23827. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  23828. function getIteratorFn(maybeIterable) {
  23829. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  23830. return null;
  23831. }
  23832. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  23833. if (typeof maybeIterator === 'function') {
  23834. return maybeIterator;
  23835. }
  23836. return null;
  23837. }
  23838. var Pending = 0;
  23839. var Resolved = 1;
  23840. var Rejected = 2;
  23841. function refineResolvedLazyComponent(lazyComponent) {
  23842. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  23843. }
  23844. function getWrappedName(outerType, innerType, wrapperName) {
  23845. var functionName = innerType.displayName || innerType.name || '';
  23846. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  23847. }
  23848. function getComponentName(type) {
  23849. if (type == null) {
  23850. // Host root, text node or just invalid type.
  23851. return null;
  23852. }
  23853. {
  23854. if (typeof type.tag === 'number') {
  23855. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  23856. }
  23857. }
  23858. if (typeof type === 'function') {
  23859. return type.displayName || type.name || null;
  23860. }
  23861. if (typeof type === 'string') {
  23862. return type;
  23863. }
  23864. switch (type) {
  23865. case REACT_CONCURRENT_MODE_TYPE:
  23866. return 'ConcurrentMode';
  23867. case REACT_FRAGMENT_TYPE:
  23868. return 'Fragment';
  23869. case REACT_PORTAL_TYPE:
  23870. return 'Portal';
  23871. case REACT_PROFILER_TYPE:
  23872. return 'Profiler';
  23873. case REACT_STRICT_MODE_TYPE:
  23874. return 'StrictMode';
  23875. case REACT_SUSPENSE_TYPE:
  23876. return 'Suspense';
  23877. }
  23878. if (typeof type === 'object') {
  23879. switch (type.$$typeof) {
  23880. case REACT_CONTEXT_TYPE:
  23881. return 'Context.Consumer';
  23882. case REACT_PROVIDER_TYPE:
  23883. return 'Context.Provider';
  23884. case REACT_FORWARD_REF_TYPE:
  23885. return getWrappedName(type, type.render, 'ForwardRef');
  23886. case REACT_MEMO_TYPE:
  23887. return getComponentName(type.type);
  23888. case REACT_LAZY_TYPE:
  23889. {
  23890. var thenable = type;
  23891. var resolvedThenable = refineResolvedLazyComponent(thenable);
  23892. if (resolvedThenable) {
  23893. return getComponentName(resolvedThenable);
  23894. }
  23895. }
  23896. }
  23897. }
  23898. return null;
  23899. }
  23900. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  23901. function describeFiber(fiber) {
  23902. switch (fiber.tag) {
  23903. case IndeterminateComponent:
  23904. case LazyComponent:
  23905. case FunctionComponent:
  23906. case ClassComponent:
  23907. case HostComponent:
  23908. case Mode:
  23909. case SuspenseComponent:
  23910. var owner = fiber._debugOwner;
  23911. var source = fiber._debugSource;
  23912. var name = getComponentName(fiber.type);
  23913. var ownerName = null;
  23914. if (owner) {
  23915. ownerName = getComponentName(owner.type);
  23916. }
  23917. return describeComponentFrame(name, source, ownerName);
  23918. default:
  23919. return '';
  23920. }
  23921. }
  23922. function getStackByFiberInDevAndProd(workInProgress) {
  23923. var info = '';
  23924. var node = workInProgress;
  23925. do {
  23926. info += describeFiber(node);
  23927. node = node.return;
  23928. } while (node);
  23929. return info;
  23930. }
  23931. var current = null;
  23932. var phase = null;
  23933. function getCurrentFiberOwnerNameInDevOrNull() {
  23934. {
  23935. if (current === null) {
  23936. return null;
  23937. }
  23938. var owner = current._debugOwner;
  23939. if (owner !== null && typeof owner !== 'undefined') {
  23940. return getComponentName(owner.type);
  23941. }
  23942. }
  23943. return null;
  23944. }
  23945. function getCurrentFiberStackInDev() {
  23946. {
  23947. if (current === null) {
  23948. return '';
  23949. }
  23950. // Safe because if current fiber exists, we are reconciling,
  23951. // and it is guaranteed to be the work-in-progress version.
  23952. return getStackByFiberInDevAndProd(current);
  23953. }
  23954. return '';
  23955. }
  23956. function resetCurrentFiber() {
  23957. {
  23958. ReactDebugCurrentFrame.getCurrentStack = null;
  23959. current = null;
  23960. phase = null;
  23961. }
  23962. }
  23963. function setCurrentFiber(fiber) {
  23964. {
  23965. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  23966. current = fiber;
  23967. phase = null;
  23968. }
  23969. }
  23970. function setCurrentPhase(lifeCyclePhase) {
  23971. {
  23972. phase = lifeCyclePhase;
  23973. }
  23974. }
  23975. /**
  23976. * Similar to invariant but only logs a warning if the condition is not met.
  23977. * This can be used to log issues in development environments in critical
  23978. * paths. Removing the logging code for production environments will keep the
  23979. * same logic and follow the same code paths.
  23980. */
  23981. var warning = warningWithoutStack$1;
  23982. {
  23983. warning = function (condition, format) {
  23984. if (condition) {
  23985. return;
  23986. }
  23987. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  23988. var stack = ReactDebugCurrentFrame.getStackAddendum();
  23989. // eslint-disable-next-line react-internal/warning-and-invariant-args
  23990. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  23991. args[_key - 2] = arguments[_key];
  23992. }
  23993. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  23994. };
  23995. }
  23996. var warning$1 = warning;
  23997. // A reserved attribute.
  23998. // It is handled by React separately and shouldn't be written to the DOM.
  23999. var RESERVED = 0;
  24000. // A simple string attribute.
  24001. // Attributes that aren't in the whitelist are presumed to have this type.
  24002. var STRING = 1;
  24003. // A string attribute that accepts booleans in React. In HTML, these are called
  24004. // "enumerated" attributes with "true" and "false" as possible values.
  24005. // When true, it should be set to a "true" string.
  24006. // When false, it should be set to a "false" string.
  24007. var BOOLEANISH_STRING = 2;
  24008. // A real boolean attribute.
  24009. // When true, it should be present (set either to an empty string or its name).
  24010. // When false, it should be omitted.
  24011. var BOOLEAN = 3;
  24012. // An attribute that can be used as a flag as well as with a value.
  24013. // When true, it should be present (set either to an empty string or its name).
  24014. // When false, it should be omitted.
  24015. // For any other value, should be present with that value.
  24016. var OVERLOADED_BOOLEAN = 4;
  24017. // An attribute that must be numeric or parse as a numeric.
  24018. // When falsy, it should be removed.
  24019. var NUMERIC = 5;
  24020. // An attribute that must be positive numeric or parse as a positive numeric.
  24021. // When falsy, it should be removed.
  24022. var POSITIVE_NUMERIC = 6;
  24023. /* eslint-disable max-len */
  24024. 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';
  24025. /* eslint-enable max-len */
  24026. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  24027. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  24028. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  24029. var hasOwnProperty = Object.prototype.hasOwnProperty;
  24030. var illegalAttributeNameCache = {};
  24031. var validatedAttributeNameCache = {};
  24032. function isAttributeNameSafe(attributeName) {
  24033. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  24034. return true;
  24035. }
  24036. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  24037. return false;
  24038. }
  24039. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  24040. validatedAttributeNameCache[attributeName] = true;
  24041. return true;
  24042. }
  24043. illegalAttributeNameCache[attributeName] = true;
  24044. {
  24045. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  24046. }
  24047. return false;
  24048. }
  24049. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  24050. if (propertyInfo !== null) {
  24051. return propertyInfo.type === RESERVED;
  24052. }
  24053. if (isCustomComponentTag) {
  24054. return false;
  24055. }
  24056. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  24057. return true;
  24058. }
  24059. return false;
  24060. }
  24061. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  24062. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  24063. return false;
  24064. }
  24065. switch (typeof value) {
  24066. case 'function':
  24067. // $FlowIssue symbol is perfectly valid here
  24068. case 'symbol':
  24069. // eslint-disable-line
  24070. return true;
  24071. case 'boolean':
  24072. {
  24073. if (isCustomComponentTag) {
  24074. return false;
  24075. }
  24076. if (propertyInfo !== null) {
  24077. return !propertyInfo.acceptsBooleans;
  24078. } else {
  24079. var prefix = name.toLowerCase().slice(0, 5);
  24080. return prefix !== 'data-' && prefix !== 'aria-';
  24081. }
  24082. }
  24083. default:
  24084. return false;
  24085. }
  24086. }
  24087. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  24088. if (value === null || typeof value === 'undefined') {
  24089. return true;
  24090. }
  24091. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  24092. return true;
  24093. }
  24094. if (isCustomComponentTag) {
  24095. return false;
  24096. }
  24097. if (propertyInfo !== null) {
  24098. switch (propertyInfo.type) {
  24099. case BOOLEAN:
  24100. return !value;
  24101. case OVERLOADED_BOOLEAN:
  24102. return value === false;
  24103. case NUMERIC:
  24104. return isNaN(value);
  24105. case POSITIVE_NUMERIC:
  24106. return isNaN(value) || value < 1;
  24107. }
  24108. }
  24109. return false;
  24110. }
  24111. function getPropertyInfo(name) {
  24112. return properties.hasOwnProperty(name) ? properties[name] : null;
  24113. }
  24114. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
  24115. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  24116. this.attributeName = attributeName;
  24117. this.attributeNamespace = attributeNamespace;
  24118. this.mustUseProperty = mustUseProperty;
  24119. this.propertyName = name;
  24120. this.type = type;
  24121. }
  24122. // When adding attributes to this list, be sure to also add them to
  24123. // the `possibleStandardNames` module to ensure casing and incorrect
  24124. // name warnings.
  24125. var properties = {};
  24126. // These props are reserved by React. They shouldn't be written to the DOM.
  24127. ['children', 'dangerouslySetInnerHTML',
  24128. // TODO: This prevents the assignment of defaultValue to regular
  24129. // elements (not just inputs). Now that ReactDOMInput assigns to the
  24130. // defaultValue property -- do we need this?
  24131. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  24132. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  24133. name, // attributeName
  24134. null);
  24135. } // attributeNamespace
  24136. );
  24137. // A few React string attributes have a different name.
  24138. // This is a mapping from React prop names to the attribute names.
  24139. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  24140. var name = _ref[0],
  24141. attributeName = _ref[1];
  24142. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24143. attributeName, // attributeName
  24144. null);
  24145. } // attributeNamespace
  24146. );
  24147. // These are "enumerated" HTML attributes that accept "true" and "false".
  24148. // In React, we let users pass `true` and `false` even though technically
  24149. // these aren't boolean attributes (they are coerced to strings).
  24150. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  24151. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  24152. name.toLowerCase(), // attributeName
  24153. null);
  24154. } // attributeNamespace
  24155. );
  24156. // These are "enumerated" SVG attributes that accept "true" and "false".
  24157. // In React, we let users pass `true` and `false` even though technically
  24158. // these aren't boolean attributes (they are coerced to strings).
  24159. // Since these are SVG attributes, their attribute names are case-sensitive.
  24160. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  24161. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  24162. name, // attributeName
  24163. null);
  24164. } // attributeNamespace
  24165. );
  24166. // These are HTML boolean attributes.
  24167. ['allowFullScreen', 'async',
  24168. // Note: there is a special case that prevents it from being written to the DOM
  24169. // on the client side because the browsers are inconsistent. Instead we call focus().
  24170. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  24171. // Microdata
  24172. 'itemScope'].forEach(function (name) {
  24173. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  24174. name.toLowerCase(), // attributeName
  24175. null);
  24176. } // attributeNamespace
  24177. );
  24178. // These are the few React props that we set as DOM properties
  24179. // rather than attributes. These are all booleans.
  24180. ['checked',
  24181. // Note: `option.selected` is not updated if `select.multiple` is
  24182. // disabled with `removeAttribute`. We have special logic for handling this.
  24183. 'multiple', 'muted', 'selected'].forEach(function (name) {
  24184. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  24185. name, // attributeName
  24186. null);
  24187. } // attributeNamespace
  24188. );
  24189. // These are HTML attributes that are "overloaded booleans": they behave like
  24190. // booleans, but can also accept a string value.
  24191. ['capture', 'download'].forEach(function (name) {
  24192. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  24193. name, // attributeName
  24194. null);
  24195. } // attributeNamespace
  24196. );
  24197. // These are HTML attributes that must be positive numbers.
  24198. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  24199. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  24200. name, // attributeName
  24201. null);
  24202. } // attributeNamespace
  24203. );
  24204. // These are HTML attributes that must be numbers.
  24205. ['rowSpan', 'start'].forEach(function (name) {
  24206. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  24207. name.toLowerCase(), // attributeName
  24208. null);
  24209. } // attributeNamespace
  24210. );
  24211. var CAMELIZE = /[\-\:]([a-z])/g;
  24212. var capitalize = function (token) {
  24213. return token[1].toUpperCase();
  24214. };
  24215. // This is a list of all SVG attributes that need special casing, namespacing,
  24216. // or boolean value assignment. Regular attributes that just accept strings
  24217. // and have the same names are omitted, just like in the HTML whitelist.
  24218. // Some of these attributes can be hard to find. This list was created by
  24219. // scrapping the MDN documentation.
  24220. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
  24221. var name = attributeName.replace(CAMELIZE, capitalize);
  24222. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24223. attributeName, null);
  24224. } // attributeNamespace
  24225. );
  24226. // String SVG attributes with the xlink namespace.
  24227. ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  24228. var name = attributeName.replace(CAMELIZE, capitalize);
  24229. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24230. attributeName, 'http://www.w3.org/1999/xlink');
  24231. });
  24232. // String SVG attributes with the xml namespace.
  24233. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  24234. var name = attributeName.replace(CAMELIZE, capitalize);
  24235. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  24236. attributeName, 'http://www.w3.org/XML/1998/namespace');
  24237. });
  24238. // Special case: this attribute exists both in HTML and SVG.
  24239. // Its "tabindex" attribute name is case-sensitive in SVG so we can't just use
  24240. // its React `tabIndex` name, like we do for attributes that exist only in HTML.
  24241. properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty
  24242. 'tabindex', // attributeName
  24243. null);
  24244. /**
  24245. * Get the value for a property on a node. Only used in DEV for SSR validation.
  24246. * The "expected" argument is used as a hint of what the expected value is.
  24247. * Some properties have multiple equivalent values.
  24248. */
  24249. function getValueForProperty(node, name, expected, propertyInfo) {
  24250. {
  24251. if (propertyInfo.mustUseProperty) {
  24252. var propertyName = propertyInfo.propertyName;
  24253. return node[propertyName];
  24254. } else {
  24255. var attributeName = propertyInfo.attributeName;
  24256. var stringValue = null;
  24257. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  24258. if (node.hasAttribute(attributeName)) {
  24259. var value = node.getAttribute(attributeName);
  24260. if (value === '') {
  24261. return true;
  24262. }
  24263. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  24264. return value;
  24265. }
  24266. if (value === '' + expected) {
  24267. return expected;
  24268. }
  24269. return value;
  24270. }
  24271. } else if (node.hasAttribute(attributeName)) {
  24272. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  24273. // We had an attribute but shouldn't have had one, so read it
  24274. // for the error message.
  24275. return node.getAttribute(attributeName);
  24276. }
  24277. if (propertyInfo.type === BOOLEAN) {
  24278. // If this was a boolean, it doesn't matter what the value is
  24279. // the fact that we have it is the same as the expected.
  24280. return expected;
  24281. }
  24282. // Even if this property uses a namespace we use getAttribute
  24283. // because we assume its namespaced name is the same as our config.
  24284. // To use getAttributeNS we need the local name which we don't have
  24285. // in our config atm.
  24286. stringValue = node.getAttribute(attributeName);
  24287. }
  24288. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  24289. return stringValue === null ? expected : stringValue;
  24290. } else if (stringValue === '' + expected) {
  24291. return expected;
  24292. } else {
  24293. return stringValue;
  24294. }
  24295. }
  24296. }
  24297. }
  24298. /**
  24299. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  24300. * The third argument is used as a hint of what the expected value is. Some
  24301. * attributes have multiple equivalent values.
  24302. */
  24303. function getValueForAttribute(node, name, expected) {
  24304. {
  24305. if (!isAttributeNameSafe(name)) {
  24306. return;
  24307. }
  24308. if (!node.hasAttribute(name)) {
  24309. return expected === undefined ? undefined : null;
  24310. }
  24311. var value = node.getAttribute(name);
  24312. if (value === '' + expected) {
  24313. return expected;
  24314. }
  24315. return value;
  24316. }
  24317. }
  24318. /**
  24319. * Sets the value for a property on a node.
  24320. *
  24321. * @param {DOMElement} node
  24322. * @param {string} name
  24323. * @param {*} value
  24324. */
  24325. function setValueForProperty(node, name, value, isCustomComponentTag) {
  24326. var propertyInfo = getPropertyInfo(name);
  24327. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  24328. return;
  24329. }
  24330. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  24331. value = null;
  24332. }
  24333. // If the prop isn't in the special list, treat it as a simple attribute.
  24334. if (isCustomComponentTag || propertyInfo === null) {
  24335. if (isAttributeNameSafe(name)) {
  24336. var _attributeName = name;
  24337. if (value === null) {
  24338. node.removeAttribute(_attributeName);
  24339. } else {
  24340. node.setAttribute(_attributeName, '' + value);
  24341. }
  24342. }
  24343. return;
  24344. }
  24345. var mustUseProperty = propertyInfo.mustUseProperty;
  24346. if (mustUseProperty) {
  24347. var propertyName = propertyInfo.propertyName;
  24348. if (value === null) {
  24349. var type = propertyInfo.type;
  24350. node[propertyName] = type === BOOLEAN ? false : '';
  24351. } else {
  24352. // Contrary to `setAttribute`, object properties are properly
  24353. // `toString`ed by IE8/9.
  24354. node[propertyName] = value;
  24355. }
  24356. return;
  24357. }
  24358. // The rest are treated as attributes with special cases.
  24359. var attributeName = propertyInfo.attributeName,
  24360. attributeNamespace = propertyInfo.attributeNamespace;
  24361. if (value === null) {
  24362. node.removeAttribute(attributeName);
  24363. } else {
  24364. var _type = propertyInfo.type;
  24365. var attributeValue = void 0;
  24366. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  24367. attributeValue = '';
  24368. } else {
  24369. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  24370. // ('' + value) makes it output the correct toString()-value.
  24371. attributeValue = '' + value;
  24372. }
  24373. if (attributeNamespace) {
  24374. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  24375. } else {
  24376. node.setAttribute(attributeName, attributeValue);
  24377. }
  24378. }
  24379. }
  24380. // Flow does not allow string concatenation of most non-string types. To work
  24381. // around this limitation, we use an opaque type that can only be obtained by
  24382. // passing the value through getToStringValue first.
  24383. function toString(value) {
  24384. return '' + value;
  24385. }
  24386. function getToStringValue(value) {
  24387. switch (typeof value) {
  24388. case 'boolean':
  24389. case 'number':
  24390. case 'object':
  24391. case 'string':
  24392. case 'undefined':
  24393. return value;
  24394. default:
  24395. // function, symbol are assigned as empty strings
  24396. return '';
  24397. }
  24398. }
  24399. var ReactDebugCurrentFrame$1 = null;
  24400. var ReactControlledValuePropTypes = {
  24401. checkPropTypes: null
  24402. };
  24403. {
  24404. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  24405. var hasReadOnlyValue = {
  24406. button: true,
  24407. checkbox: true,
  24408. image: true,
  24409. hidden: true,
  24410. radio: true,
  24411. reset: true,
  24412. submit: true
  24413. };
  24414. var propTypes = {
  24415. value: function (props, propName, componentName) {
  24416. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  24417. return null;
  24418. }
  24419. 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`.');
  24420. },
  24421. checked: function (props, propName, componentName) {
  24422. if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  24423. return null;
  24424. }
  24425. 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`.');
  24426. }
  24427. };
  24428. /**
  24429. * Provide a linked `value` attribute for controlled forms. You should not use
  24430. * this outside of the ReactDOM controlled form components.
  24431. */
  24432. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  24433. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);
  24434. };
  24435. }
  24436. var enableUserTimingAPI = true;
  24437. var enableHooks = false;
  24438. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  24439. var debugRenderPhaseSideEffects = false;
  24440. // In some cases, StrictMode should also double-render lifecycles.
  24441. // This can be confusing for tests though,
  24442. // And it can be bad for performance in production.
  24443. // This feature flag can be used to control the behavior:
  24444. var debugRenderPhaseSideEffectsForStrictMode = true;
  24445. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  24446. // replay the begin phase of a failed component inside invokeGuardedCallback.
  24447. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  24448. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  24449. var warnAboutDeprecatedLifecycles = false;
  24450. // Gather advanced timing metrics for Profiler subtrees.
  24451. var enableProfilerTimer = true;
  24452. // Trace which interactions trigger each commit.
  24453. var enableSchedulerTracing = true;
  24454. // Only used in www builds.
  24455. // Only used in www builds.
  24456. // React Fire: prevent the value and checked attributes from syncing
  24457. // with their related DOM properties
  24458. var disableInputAttributeSyncing = false;
  24459. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  24460. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  24461. var enableStableConcurrentModeAPIs = false;
  24462. // TODO: direct imports like some-package/src/* are bad. Fix me.
  24463. var didWarnValueDefaultValue = false;
  24464. var didWarnCheckedDefaultChecked = false;
  24465. var didWarnControlledToUncontrolled = false;
  24466. var didWarnUncontrolledToControlled = false;
  24467. function isControlled(props) {
  24468. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  24469. return usesChecked ? props.checked != null : props.value != null;
  24470. }
  24471. /**
  24472. * Implements an <input> host component that allows setting these optional
  24473. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  24474. *
  24475. * If `checked` or `value` are not supplied (or null/undefined), user actions
  24476. * that affect the checked state or value will trigger updates to the element.
  24477. *
  24478. * If they are supplied (and not null/undefined), the rendered element will not
  24479. * trigger updates to the element. Instead, the props must change in order for
  24480. * the rendered element to be updated.
  24481. *
  24482. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  24483. * with an empty value (or `defaultValue`).
  24484. *
  24485. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  24486. */
  24487. function getHostProps(element, props) {
  24488. var node = element;
  24489. var checked = props.checked;
  24490. var hostProps = _assign({}, props, {
  24491. defaultChecked: undefined,
  24492. defaultValue: undefined,
  24493. value: undefined,
  24494. checked: checked != null ? checked : node._wrapperState.initialChecked
  24495. });
  24496. return hostProps;
  24497. }
  24498. function initWrapperState(element, props) {
  24499. {
  24500. ReactControlledValuePropTypes.checkPropTypes('input', props);
  24501. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  24502. warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  24503. didWarnCheckedDefaultChecked = true;
  24504. }
  24505. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  24506. warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  24507. didWarnValueDefaultValue = true;
  24508. }
  24509. }
  24510. var node = element;
  24511. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  24512. node._wrapperState = {
  24513. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  24514. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  24515. controlled: isControlled(props)
  24516. };
  24517. }
  24518. function updateChecked(element, props) {
  24519. var node = element;
  24520. var checked = props.checked;
  24521. if (checked != null) {
  24522. setValueForProperty(node, 'checked', checked, false);
  24523. }
  24524. }
  24525. function updateWrapper(element, props) {
  24526. var node = element;
  24527. {
  24528. var _controlled = isControlled(props);
  24529. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  24530. warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  24531. didWarnUncontrolledToControlled = true;
  24532. }
  24533. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  24534. warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  24535. didWarnControlledToUncontrolled = true;
  24536. }
  24537. }
  24538. updateChecked(element, props);
  24539. var value = getToStringValue(props.value);
  24540. var type = props.type;
  24541. if (value != null) {
  24542. if (type === 'number') {
  24543. if (value === 0 && node.value === '' ||
  24544. // We explicitly want to coerce to number here if possible.
  24545. // eslint-disable-next-line
  24546. node.value != value) {
  24547. node.value = toString(value);
  24548. }
  24549. } else if (node.value !== toString(value)) {
  24550. node.value = toString(value);
  24551. }
  24552. } else if (type === 'submit' || type === 'reset') {
  24553. // Submit/reset inputs need the attribute removed completely to avoid
  24554. // blank-text buttons.
  24555. node.removeAttribute('value');
  24556. return;
  24557. }
  24558. if (disableInputAttributeSyncing) {
  24559. // When not syncing the value attribute, React only assigns a new value
  24560. // whenever the defaultValue React prop has changed. When not present,
  24561. // React does nothing
  24562. if (props.hasOwnProperty('defaultValue')) {
  24563. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  24564. }
  24565. } else {
  24566. // When syncing the value attribute, the value comes from a cascade of
  24567. // properties:
  24568. // 1. The value React property
  24569. // 2. The defaultValue React property
  24570. // 3. Otherwise there should be no change
  24571. if (props.hasOwnProperty('value')) {
  24572. setDefaultValue(node, props.type, value);
  24573. } else if (props.hasOwnProperty('defaultValue')) {
  24574. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  24575. }
  24576. }
  24577. if (disableInputAttributeSyncing) {
  24578. // When not syncing the checked attribute, the attribute is directly
  24579. // controllable from the defaultValue React property. It needs to be
  24580. // updated as new props come in.
  24581. if (props.defaultChecked == null) {
  24582. node.removeAttribute('checked');
  24583. } else {
  24584. node.defaultChecked = !!props.defaultChecked;
  24585. }
  24586. } else {
  24587. // When syncing the checked attribute, it only changes when it needs
  24588. // to be removed, such as transitioning from a checkbox into a text input
  24589. if (props.checked == null && props.defaultChecked != null) {
  24590. node.defaultChecked = !!props.defaultChecked;
  24591. }
  24592. }
  24593. }
  24594. function postMountWrapper(element, props, isHydrating) {
  24595. var node = element;
  24596. // Do not assign value if it is already set. This prevents user text input
  24597. // from being lost during SSR hydration.
  24598. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  24599. var type = props.type;
  24600. var isButton = type === 'submit' || type === 'reset';
  24601. // Avoid setting value attribute on submit/reset inputs as it overrides the
  24602. // default value provided by the browser. See: #12872
  24603. if (isButton && (props.value === undefined || props.value === null)) {
  24604. return;
  24605. }
  24606. var _initialValue = toString(node._wrapperState.initialValue);
  24607. // Do not assign value if it is already set. This prevents user text input
  24608. // from being lost during SSR hydration.
  24609. if (!isHydrating) {
  24610. if (disableInputAttributeSyncing) {
  24611. var value = getToStringValue(props.value);
  24612. // When not syncing the value attribute, the value property points
  24613. // directly to the React prop. Only assign it if it exists.
  24614. if (value != null) {
  24615. // Always assign on buttons so that it is possible to assign an
  24616. // empty string to clear button text.
  24617. //
  24618. // Otherwise, do not re-assign the value property if is empty. This
  24619. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  24620. // prematurely marking required inputs as invalid. Equality is compared
  24621. // to the current value in case the browser provided value is not an
  24622. // empty string.
  24623. if (isButton || value !== node.value) {
  24624. node.value = toString(value);
  24625. }
  24626. }
  24627. } else {
  24628. // When syncing the value attribute, the value property should use
  24629. // the wrapperState._initialValue property. This uses:
  24630. //
  24631. // 1. The value React property when present
  24632. // 2. The defaultValue React property when present
  24633. // 3. An empty string
  24634. if (_initialValue !== node.value) {
  24635. node.value = _initialValue;
  24636. }
  24637. }
  24638. }
  24639. if (disableInputAttributeSyncing) {
  24640. // When not syncing the value attribute, assign the value attribute
  24641. // directly from the defaultValue React property (when present)
  24642. var defaultValue = getToStringValue(props.defaultValue);
  24643. if (defaultValue != null) {
  24644. node.defaultValue = toString(defaultValue);
  24645. }
  24646. } else {
  24647. // Otherwise, the value attribute is synchronized to the property,
  24648. // so we assign defaultValue to the same thing as the value property
  24649. // assignment step above.
  24650. node.defaultValue = _initialValue;
  24651. }
  24652. }
  24653. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  24654. // this is needed to work around a chrome bug where setting defaultChecked
  24655. // will sometimes influence the value of checked (even after detachment).
  24656. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  24657. // We need to temporarily unset name to avoid disrupting radio button groups.
  24658. var name = node.name;
  24659. if (name !== '') {
  24660. node.name = '';
  24661. }
  24662. if (disableInputAttributeSyncing) {
  24663. // When not syncing the checked attribute, the checked property
  24664. // never gets assigned. It must be manually set. We don't want
  24665. // to do this when hydrating so that existing user input isn't
  24666. // modified
  24667. if (!isHydrating) {
  24668. updateChecked(element, props);
  24669. }
  24670. // Only assign the checked attribute if it is defined. This saves
  24671. // a DOM write when controlling the checked attribute isn't needed
  24672. // (text inputs, submit/reset)
  24673. if (props.hasOwnProperty('defaultChecked')) {
  24674. node.defaultChecked = !node.defaultChecked;
  24675. node.defaultChecked = !!props.defaultChecked;
  24676. }
  24677. } else {
  24678. // When syncing the checked attribute, both the checked property and
  24679. // attribute are assigned at the same time using defaultChecked. This uses:
  24680. //
  24681. // 1. The checked React property when present
  24682. // 2. The defaultChecked React property when present
  24683. // 3. Otherwise, false
  24684. node.defaultChecked = !node.defaultChecked;
  24685. node.defaultChecked = !!node._wrapperState.initialChecked;
  24686. }
  24687. if (name !== '') {
  24688. node.name = name;
  24689. }
  24690. }
  24691. function restoreControlledState(element, props) {
  24692. var node = element;
  24693. updateWrapper(node, props);
  24694. updateNamedCousins(node, props);
  24695. }
  24696. function updateNamedCousins(rootNode, props) {
  24697. var name = props.name;
  24698. if (props.type === 'radio' && name != null) {
  24699. var queryRoot = rootNode;
  24700. while (queryRoot.parentNode) {
  24701. queryRoot = queryRoot.parentNode;
  24702. }
  24703. // If `rootNode.form` was non-null, then we could try `form.elements`,
  24704. // but that sometimes behaves strangely in IE8. We could also try using
  24705. // `form.getElementsByName`, but that will only return direct children
  24706. // and won't include inputs that use the HTML5 `form=` attribute. Since
  24707. // the input might not even be in a form. It might not even be in the
  24708. // document. Let's just use the local `querySelectorAll` to ensure we don't
  24709. // miss anything.
  24710. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  24711. for (var i = 0; i < group.length; i++) {
  24712. var otherNode = group[i];
  24713. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  24714. continue;
  24715. }
  24716. // This will throw if radio buttons rendered by different copies of React
  24717. // and the same name are rendered into the same form (same as #1939).
  24718. // That's probably okay; we don't support it just as we don't support
  24719. // mixing React radio buttons with non-React ones.
  24720. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  24721. !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;
  24722. // We need update the tracked value on the named cousin since the value
  24723. // was changed but the input saw no event or value set
  24724. updateValueIfChanged(otherNode);
  24725. // If this is a controlled radio button group, forcing the input that
  24726. // was previously checked to update will cause it to be come re-checked
  24727. // as appropriate.
  24728. updateWrapper(otherNode, otherProps);
  24729. }
  24730. }
  24731. }
  24732. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  24733. // For number inputs, the display value loses trailing decimal points. For email inputs,
  24734. // Chrome raises "The specified value <x> is not a valid email address".
  24735. //
  24736. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  24737. // when the user is inputting text
  24738. //
  24739. // https://github.com/facebook/react/issues/7253
  24740. function setDefaultValue(node, type, value) {
  24741. if (
  24742. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  24743. type !== 'number' || node.ownerDocument.activeElement !== node) {
  24744. if (value == null) {
  24745. node.defaultValue = toString(node._wrapperState.initialValue);
  24746. } else if (node.defaultValue !== toString(value)) {
  24747. node.defaultValue = toString(value);
  24748. }
  24749. }
  24750. }
  24751. var eventTypes$1 = {
  24752. change: {
  24753. phasedRegistrationNames: {
  24754. bubbled: 'onChange',
  24755. captured: 'onChangeCapture'
  24756. },
  24757. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  24758. }
  24759. };
  24760. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  24761. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  24762. event.type = 'change';
  24763. // Flag this event loop as needing state restore.
  24764. enqueueStateRestore(target);
  24765. accumulateTwoPhaseDispatches(event);
  24766. return event;
  24767. }
  24768. /**
  24769. * For IE shims
  24770. */
  24771. var activeElement = null;
  24772. var activeElementInst = null;
  24773. /**
  24774. * SECTION: handle `change` event
  24775. */
  24776. function shouldUseChangeEvent(elem) {
  24777. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  24778. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  24779. }
  24780. function manualDispatchChangeEvent(nativeEvent) {
  24781. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  24782. // If change and propertychange bubbled, we'd just bind to it like all the
  24783. // other events and have it go through ReactBrowserEventEmitter. Since it
  24784. // doesn't, we manually listen for the events and so we have to enqueue and
  24785. // process the abstract event manually.
  24786. //
  24787. // Batching is necessary here in order to ensure that all event handlers run
  24788. // before the next rerender (including event handlers attached to ancestor
  24789. // elements instead of directly on the input). Without this, controlled
  24790. // components don't work properly in conjunction with event bubbling because
  24791. // the component is rerendered and the value reverted before all the event
  24792. // handlers can run. See https://github.com/facebook/react/issues/708.
  24793. batchedUpdates(runEventInBatch, event);
  24794. }
  24795. function runEventInBatch(event) {
  24796. runEventsInBatch(event);
  24797. }
  24798. function getInstIfValueChanged(targetInst) {
  24799. var targetNode = getNodeFromInstance$1(targetInst);
  24800. if (updateValueIfChanged(targetNode)) {
  24801. return targetInst;
  24802. }
  24803. }
  24804. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  24805. if (topLevelType === TOP_CHANGE) {
  24806. return targetInst;
  24807. }
  24808. }
  24809. /**
  24810. * SECTION: handle `input` event
  24811. */
  24812. var isInputEventSupported = false;
  24813. if (canUseDOM) {
  24814. // IE9 claims to support the input event but fails to trigger it when
  24815. // deleting text, so we ignore its input events.
  24816. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  24817. }
  24818. /**
  24819. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  24820. * and override the value property so that we can distinguish user events from
  24821. * value changes in JS.
  24822. */
  24823. function startWatchingForValueChange(target, targetInst) {
  24824. activeElement = target;
  24825. activeElementInst = targetInst;
  24826. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  24827. }
  24828. /**
  24829. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  24830. * if any exists.
  24831. */
  24832. function stopWatchingForValueChange() {
  24833. if (!activeElement) {
  24834. return;
  24835. }
  24836. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  24837. activeElement = null;
  24838. activeElementInst = null;
  24839. }
  24840. /**
  24841. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  24842. * the value of the active element has changed.
  24843. */
  24844. function handlePropertyChange(nativeEvent) {
  24845. if (nativeEvent.propertyName !== 'value') {
  24846. return;
  24847. }
  24848. if (getInstIfValueChanged(activeElementInst)) {
  24849. manualDispatchChangeEvent(nativeEvent);
  24850. }
  24851. }
  24852. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  24853. if (topLevelType === TOP_FOCUS) {
  24854. // In IE9, propertychange fires for most input events but is buggy and
  24855. // doesn't fire when text is deleted, but conveniently, selectionchange
  24856. // appears to fire in all of the remaining cases so we catch those and
  24857. // forward the event if the value has changed
  24858. // In either case, we don't want to call the event handler if the value
  24859. // is changed from JS so we redefine a setter for `.value` that updates
  24860. // our activeElementValue variable, allowing us to ignore those changes
  24861. //
  24862. // stopWatching() should be a noop here but we call it just in case we
  24863. // missed a blur event somehow.
  24864. stopWatchingForValueChange();
  24865. startWatchingForValueChange(target, targetInst);
  24866. } else if (topLevelType === TOP_BLUR) {
  24867. stopWatchingForValueChange();
  24868. }
  24869. }
  24870. // For IE8 and IE9.
  24871. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  24872. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  24873. // On the selectionchange event, the target is just document which isn't
  24874. // helpful for us so just check activeElement instead.
  24875. //
  24876. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  24877. // propertychange on the first input event after setting `value` from a
  24878. // script and fires only keydown, keypress, keyup. Catching keyup usually
  24879. // gets it and catching keydown lets us fire an event for the first
  24880. // keystroke if user does a key repeat (it'll be a little delayed: right
  24881. // before the second keystroke). Other input methods (e.g., paste) seem to
  24882. // fire selectionchange normally.
  24883. return getInstIfValueChanged(activeElementInst);
  24884. }
  24885. }
  24886. /**
  24887. * SECTION: handle `click` event
  24888. */
  24889. function shouldUseClickEvent(elem) {
  24890. // Use the `click` event to detect changes to checkbox and radio inputs.
  24891. // This approach works across all browsers, whereas `change` does not fire
  24892. // until `blur` in IE8.
  24893. var nodeName = elem.nodeName;
  24894. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  24895. }
  24896. function getTargetInstForClickEvent(topLevelType, targetInst) {
  24897. if (topLevelType === TOP_CLICK) {
  24898. return getInstIfValueChanged(targetInst);
  24899. }
  24900. }
  24901. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  24902. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  24903. return getInstIfValueChanged(targetInst);
  24904. }
  24905. }
  24906. function handleControlledInputBlur(node) {
  24907. var state = node._wrapperState;
  24908. if (!state || !state.controlled || node.type !== 'number') {
  24909. return;
  24910. }
  24911. if (!disableInputAttributeSyncing) {
  24912. // If controlled, assign the value attribute to the current value on blur
  24913. setDefaultValue(node, 'number', node.value);
  24914. }
  24915. }
  24916. /**
  24917. * This plugin creates an `onChange` event that normalizes change events
  24918. * across form elements. This event fires at a time when it's possible to
  24919. * change the element's value without seeing a flicker.
  24920. *
  24921. * Supported elements are:
  24922. * - input (see `isTextInputElement`)
  24923. * - textarea
  24924. * - select
  24925. */
  24926. var ChangeEventPlugin = {
  24927. eventTypes: eventTypes$1,
  24928. _isInputEventSupported: isInputEventSupported,
  24929. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  24930. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  24931. var getTargetInstFunc = void 0,
  24932. handleEventFunc = void 0;
  24933. if (shouldUseChangeEvent(targetNode)) {
  24934. getTargetInstFunc = getTargetInstForChangeEvent;
  24935. } else if (isTextInputElement(targetNode)) {
  24936. if (isInputEventSupported) {
  24937. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  24938. } else {
  24939. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  24940. handleEventFunc = handleEventsForInputEventPolyfill;
  24941. }
  24942. } else if (shouldUseClickEvent(targetNode)) {
  24943. getTargetInstFunc = getTargetInstForClickEvent;
  24944. }
  24945. if (getTargetInstFunc) {
  24946. var inst = getTargetInstFunc(topLevelType, targetInst);
  24947. if (inst) {
  24948. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  24949. return event;
  24950. }
  24951. }
  24952. if (handleEventFunc) {
  24953. handleEventFunc(topLevelType, targetNode, targetInst);
  24954. }
  24955. // When blurring, set the value attribute for number inputs
  24956. if (topLevelType === TOP_BLUR) {
  24957. handleControlledInputBlur(targetNode);
  24958. }
  24959. }
  24960. };
  24961. /**
  24962. * Module that is injectable into `EventPluginHub`, that specifies a
  24963. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  24964. * plugins, without having to package every one of them. This is better than
  24965. * having plugins be ordered in the same order that they are injected because
  24966. * that ordering would be influenced by the packaging order.
  24967. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  24968. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  24969. */
  24970. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  24971. var SyntheticUIEvent = SyntheticEvent.extend({
  24972. view: null,
  24973. detail: null
  24974. });
  24975. var modifierKeyToProp = {
  24976. Alt: 'altKey',
  24977. Control: 'ctrlKey',
  24978. Meta: 'metaKey',
  24979. Shift: 'shiftKey'
  24980. };
  24981. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  24982. // getModifierState. If getModifierState is not supported, we map it to a set of
  24983. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  24984. /**
  24985. * Translation from modifier key to the associated property in the event.
  24986. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  24987. */
  24988. function modifierStateGetter(keyArg) {
  24989. var syntheticEvent = this;
  24990. var nativeEvent = syntheticEvent.nativeEvent;
  24991. if (nativeEvent.getModifierState) {
  24992. return nativeEvent.getModifierState(keyArg);
  24993. }
  24994. var keyProp = modifierKeyToProp[keyArg];
  24995. return keyProp ? !!nativeEvent[keyProp] : false;
  24996. }
  24997. function getEventModifierState(nativeEvent) {
  24998. return modifierStateGetter;
  24999. }
  25000. var previousScreenX = 0;
  25001. var previousScreenY = 0;
  25002. // Use flags to signal movementX/Y has already been set
  25003. var isMovementXSet = false;
  25004. var isMovementYSet = false;
  25005. /**
  25006. * @interface MouseEvent
  25007. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25008. */
  25009. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  25010. screenX: null,
  25011. screenY: null,
  25012. clientX: null,
  25013. clientY: null,
  25014. pageX: null,
  25015. pageY: null,
  25016. ctrlKey: null,
  25017. shiftKey: null,
  25018. altKey: null,
  25019. metaKey: null,
  25020. getModifierState: getEventModifierState,
  25021. button: null,
  25022. buttons: null,
  25023. relatedTarget: function (event) {
  25024. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  25025. },
  25026. movementX: function (event) {
  25027. if ('movementX' in event) {
  25028. return event.movementX;
  25029. }
  25030. var screenX = previousScreenX;
  25031. previousScreenX = event.screenX;
  25032. if (!isMovementXSet) {
  25033. isMovementXSet = true;
  25034. return 0;
  25035. }
  25036. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  25037. },
  25038. movementY: function (event) {
  25039. if ('movementY' in event) {
  25040. return event.movementY;
  25041. }
  25042. var screenY = previousScreenY;
  25043. previousScreenY = event.screenY;
  25044. if (!isMovementYSet) {
  25045. isMovementYSet = true;
  25046. return 0;
  25047. }
  25048. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  25049. }
  25050. });
  25051. /**
  25052. * @interface PointerEvent
  25053. * @see http://www.w3.org/TR/pointerevents/
  25054. */
  25055. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  25056. pointerId: null,
  25057. width: null,
  25058. height: null,
  25059. pressure: null,
  25060. tangentialPressure: null,
  25061. tiltX: null,
  25062. tiltY: null,
  25063. twist: null,
  25064. pointerType: null,
  25065. isPrimary: null
  25066. });
  25067. var eventTypes$2 = {
  25068. mouseEnter: {
  25069. registrationName: 'onMouseEnter',
  25070. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  25071. },
  25072. mouseLeave: {
  25073. registrationName: 'onMouseLeave',
  25074. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  25075. },
  25076. pointerEnter: {
  25077. registrationName: 'onPointerEnter',
  25078. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  25079. },
  25080. pointerLeave: {
  25081. registrationName: 'onPointerLeave',
  25082. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  25083. }
  25084. };
  25085. var EnterLeaveEventPlugin = {
  25086. eventTypes: eventTypes$2,
  25087. /**
  25088. * For almost every interaction we care about, there will be both a top-level
  25089. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  25090. * we do not extract duplicate events. However, moving the mouse into the
  25091. * browser from outside will not fire a `mouseout` event. In this case, we use
  25092. * the `mouseover` top-level event.
  25093. */
  25094. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25095. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  25096. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  25097. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  25098. return null;
  25099. }
  25100. if (!isOutEvent && !isOverEvent) {
  25101. // Must not be a mouse or pointer in or out - ignoring.
  25102. return null;
  25103. }
  25104. var win = void 0;
  25105. if (nativeEventTarget.window === nativeEventTarget) {
  25106. // `nativeEventTarget` is probably a window object.
  25107. win = nativeEventTarget;
  25108. } else {
  25109. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  25110. var doc = nativeEventTarget.ownerDocument;
  25111. if (doc) {
  25112. win = doc.defaultView || doc.parentWindow;
  25113. } else {
  25114. win = window;
  25115. }
  25116. }
  25117. var from = void 0;
  25118. var to = void 0;
  25119. if (isOutEvent) {
  25120. from = targetInst;
  25121. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  25122. to = related ? getClosestInstanceFromNode(related) : null;
  25123. } else {
  25124. // Moving to a node from outside the window.
  25125. from = null;
  25126. to = targetInst;
  25127. }
  25128. if (from === to) {
  25129. // Nothing pertains to our managed components.
  25130. return null;
  25131. }
  25132. var eventInterface = void 0,
  25133. leaveEventType = void 0,
  25134. enterEventType = void 0,
  25135. eventTypePrefix = void 0;
  25136. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  25137. eventInterface = SyntheticMouseEvent;
  25138. leaveEventType = eventTypes$2.mouseLeave;
  25139. enterEventType = eventTypes$2.mouseEnter;
  25140. eventTypePrefix = 'mouse';
  25141. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  25142. eventInterface = SyntheticPointerEvent;
  25143. leaveEventType = eventTypes$2.pointerLeave;
  25144. enterEventType = eventTypes$2.pointerEnter;
  25145. eventTypePrefix = 'pointer';
  25146. }
  25147. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  25148. var toNode = to == null ? win : getNodeFromInstance$1(to);
  25149. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  25150. leave.type = eventTypePrefix + 'leave';
  25151. leave.target = fromNode;
  25152. leave.relatedTarget = toNode;
  25153. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  25154. enter.type = eventTypePrefix + 'enter';
  25155. enter.target = toNode;
  25156. enter.relatedTarget = fromNode;
  25157. accumulateEnterLeaveDispatches(leave, enter, from, to);
  25158. return [leave, enter];
  25159. }
  25160. };
  25161. /*eslint-disable no-self-compare */
  25162. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  25163. /**
  25164. * inlined Object.is polyfill to avoid requiring consumers ship their own
  25165. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  25166. */
  25167. function is(x, y) {
  25168. // SameValue algorithm
  25169. if (x === y) {
  25170. // Steps 1-5, 7-10
  25171. // Steps 6.b-6.e: +0 != -0
  25172. // Added the nonzero y check to make Flow happy, but it is redundant
  25173. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  25174. } else {
  25175. // Step 6.a: NaN == NaN
  25176. return x !== x && y !== y;
  25177. }
  25178. }
  25179. /**
  25180. * Performs equality by iterating through keys on an object and returning false
  25181. * when any key has values which are not strictly equal between the arguments.
  25182. * Returns true when the values of all keys are strictly equal.
  25183. */
  25184. function shallowEqual(objA, objB) {
  25185. if (is(objA, objB)) {
  25186. return true;
  25187. }
  25188. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  25189. return false;
  25190. }
  25191. var keysA = Object.keys(objA);
  25192. var keysB = Object.keys(objB);
  25193. if (keysA.length !== keysB.length) {
  25194. return false;
  25195. }
  25196. // Test for A's keys different from B.
  25197. for (var i = 0; i < keysA.length; i++) {
  25198. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  25199. return false;
  25200. }
  25201. }
  25202. return true;
  25203. }
  25204. /**
  25205. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  25206. * instance (key) and the internal representation (value). This allows public
  25207. * methods to accept the user facing instance as an argument and map them back
  25208. * to internal methods.
  25209. *
  25210. * Note that this module is currently shared and assumed to be stateless.
  25211. * If this becomes an actual Map, that will break.
  25212. */
  25213. /**
  25214. * This API should be called `delete` but we'd have to make sure to always
  25215. * transform these to strings for IE support. When this transform is fully
  25216. * supported we can rename it.
  25217. */
  25218. function get(key) {
  25219. return key._reactInternalFiber;
  25220. }
  25221. function has(key) {
  25222. return key._reactInternalFiber !== undefined;
  25223. }
  25224. function set(key, value) {
  25225. key._reactInternalFiber = value;
  25226. }
  25227. // Don't change these two values. They're used by React Dev Tools.
  25228. var NoEffect = /* */0;
  25229. var PerformedWork = /* */1;
  25230. // You can change the rest (and add more).
  25231. var Placement = /* */2;
  25232. var Update = /* */4;
  25233. var PlacementAndUpdate = /* */6;
  25234. var Deletion = /* */8;
  25235. var ContentReset = /* */16;
  25236. var Callback = /* */32;
  25237. var DidCapture = /* */64;
  25238. var Ref = /* */128;
  25239. var Snapshot = /* */256;
  25240. var Passive = /* */512;
  25241. // Passive & Update & Callback & Ref & Snapshot
  25242. var LifecycleEffectMask = /* */932;
  25243. // Union of all host effects
  25244. var HostEffectMask = /* */1023;
  25245. var Incomplete = /* */1024;
  25246. var ShouldCapture = /* */2048;
  25247. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  25248. var MOUNTING = 1;
  25249. var MOUNTED = 2;
  25250. var UNMOUNTED = 3;
  25251. function isFiberMountedImpl(fiber) {
  25252. var node = fiber;
  25253. if (!fiber.alternate) {
  25254. // If there is no alternate, this might be a new tree that isn't inserted
  25255. // yet. If it is, then it will have a pending insertion effect on it.
  25256. if ((node.effectTag & Placement) !== NoEffect) {
  25257. return MOUNTING;
  25258. }
  25259. while (node.return) {
  25260. node = node.return;
  25261. if ((node.effectTag & Placement) !== NoEffect) {
  25262. return MOUNTING;
  25263. }
  25264. }
  25265. } else {
  25266. while (node.return) {
  25267. node = node.return;
  25268. }
  25269. }
  25270. if (node.tag === HostRoot) {
  25271. // TODO: Check if this was a nested HostRoot when used with
  25272. // renderContainerIntoSubtree.
  25273. return MOUNTED;
  25274. }
  25275. // If we didn't hit the root, that means that we're in an disconnected tree
  25276. // that has been unmounted.
  25277. return UNMOUNTED;
  25278. }
  25279. function isFiberMounted(fiber) {
  25280. return isFiberMountedImpl(fiber) === MOUNTED;
  25281. }
  25282. function isMounted(component) {
  25283. {
  25284. var owner = ReactCurrentOwner$1.current;
  25285. if (owner !== null && owner.tag === ClassComponent) {
  25286. var ownerFiber = owner;
  25287. var instance = ownerFiber.stateNode;
  25288. !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
  25289. instance._warnedAboutRefsInRender = true;
  25290. }
  25291. }
  25292. var fiber = get(component);
  25293. if (!fiber) {
  25294. return false;
  25295. }
  25296. return isFiberMountedImpl(fiber) === MOUNTED;
  25297. }
  25298. function assertIsMounted(fiber) {
  25299. !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  25300. }
  25301. function findCurrentFiberUsingSlowPath(fiber) {
  25302. var alternate = fiber.alternate;
  25303. if (!alternate) {
  25304. // If there is no alternate, then we only need to check if it is mounted.
  25305. var state = isFiberMountedImpl(fiber);
  25306. !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  25307. if (state === MOUNTING) {
  25308. return null;
  25309. }
  25310. return fiber;
  25311. }
  25312. // If we have two possible branches, we'll walk backwards up to the root
  25313. // to see what path the root points to. On the way we may hit one of the
  25314. // special cases and we'll deal with them.
  25315. var a = fiber;
  25316. var b = alternate;
  25317. while (true) {
  25318. var parentA = a.return;
  25319. var parentB = parentA ? parentA.alternate : null;
  25320. if (!parentA || !parentB) {
  25321. // We're at the root.
  25322. break;
  25323. }
  25324. // If both copies of the parent fiber point to the same child, we can
  25325. // assume that the child is current. This happens when we bailout on low
  25326. // priority: the bailed out fiber's child reuses the current child.
  25327. if (parentA.child === parentB.child) {
  25328. var child = parentA.child;
  25329. while (child) {
  25330. if (child === a) {
  25331. // We've determined that A is the current branch.
  25332. assertIsMounted(parentA);
  25333. return fiber;
  25334. }
  25335. if (child === b) {
  25336. // We've determined that B is the current branch.
  25337. assertIsMounted(parentA);
  25338. return alternate;
  25339. }
  25340. child = child.sibling;
  25341. }
  25342. // We should never have an alternate for any mounting node. So the only
  25343. // way this could possibly happen is if this was unmounted, if at all.
  25344. invariant(false, 'Unable to find node on an unmounted component.');
  25345. }
  25346. if (a.return !== b.return) {
  25347. // The return pointer of A and the return pointer of B point to different
  25348. // fibers. We assume that return pointers never criss-cross, so A must
  25349. // belong to the child set of A.return, and B must belong to the child
  25350. // set of B.return.
  25351. a = parentA;
  25352. b = parentB;
  25353. } else {
  25354. // The return pointers point to the same fiber. We'll have to use the
  25355. // default, slow path: scan the child sets of each parent alternate to see
  25356. // which child belongs to which set.
  25357. //
  25358. // Search parent A's child set
  25359. var didFindChild = false;
  25360. var _child = parentA.child;
  25361. while (_child) {
  25362. if (_child === a) {
  25363. didFindChild = true;
  25364. a = parentA;
  25365. b = parentB;
  25366. break;
  25367. }
  25368. if (_child === b) {
  25369. didFindChild = true;
  25370. b = parentA;
  25371. a = parentB;
  25372. break;
  25373. }
  25374. _child = _child.sibling;
  25375. }
  25376. if (!didFindChild) {
  25377. // Search parent B's child set
  25378. _child = parentB.child;
  25379. while (_child) {
  25380. if (_child === a) {
  25381. didFindChild = true;
  25382. a = parentB;
  25383. b = parentA;
  25384. break;
  25385. }
  25386. if (_child === b) {
  25387. didFindChild = true;
  25388. b = parentB;
  25389. a = parentA;
  25390. break;
  25391. }
  25392. _child = _child.sibling;
  25393. }
  25394. !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;
  25395. }
  25396. }
  25397. !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  25398. }
  25399. // If the root is not a host container, we're in a disconnected tree. I.e.
  25400. // unmounted.
  25401. !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  25402. if (a.stateNode.current === a) {
  25403. // We've determined that A is the current branch.
  25404. return fiber;
  25405. }
  25406. // Otherwise B has to be current branch.
  25407. return alternate;
  25408. }
  25409. function findCurrentHostFiber(parent) {
  25410. var currentParent = findCurrentFiberUsingSlowPath(parent);
  25411. if (!currentParent) {
  25412. return null;
  25413. }
  25414. // Next we'll drill down this component to find the first HostComponent/Text.
  25415. var node = currentParent;
  25416. while (true) {
  25417. if (node.tag === HostComponent || node.tag === HostText) {
  25418. return node;
  25419. } else if (node.child) {
  25420. node.child.return = node;
  25421. node = node.child;
  25422. continue;
  25423. }
  25424. if (node === currentParent) {
  25425. return null;
  25426. }
  25427. while (!node.sibling) {
  25428. if (!node.return || node.return === currentParent) {
  25429. return null;
  25430. }
  25431. node = node.return;
  25432. }
  25433. node.sibling.return = node.return;
  25434. node = node.sibling;
  25435. }
  25436. // Flow needs the return null here, but ESLint complains about it.
  25437. // eslint-disable-next-line no-unreachable
  25438. return null;
  25439. }
  25440. function findCurrentHostFiberWithNoPortals(parent) {
  25441. var currentParent = findCurrentFiberUsingSlowPath(parent);
  25442. if (!currentParent) {
  25443. return null;
  25444. }
  25445. // Next we'll drill down this component to find the first HostComponent/Text.
  25446. var node = currentParent;
  25447. while (true) {
  25448. if (node.tag === HostComponent || node.tag === HostText) {
  25449. return node;
  25450. } else if (node.child && node.tag !== HostPortal) {
  25451. node.child.return = node;
  25452. node = node.child;
  25453. continue;
  25454. }
  25455. if (node === currentParent) {
  25456. return null;
  25457. }
  25458. while (!node.sibling) {
  25459. if (!node.return || node.return === currentParent) {
  25460. return null;
  25461. }
  25462. node = node.return;
  25463. }
  25464. node.sibling.return = node.return;
  25465. node = node.sibling;
  25466. }
  25467. // Flow needs the return null here, but ESLint complains about it.
  25468. // eslint-disable-next-line no-unreachable
  25469. return null;
  25470. }
  25471. function addEventBubbleListener(element, eventType, listener) {
  25472. element.addEventListener(eventType, listener, false);
  25473. }
  25474. function addEventCaptureListener(element, eventType, listener) {
  25475. element.addEventListener(eventType, listener, true);
  25476. }
  25477. /**
  25478. * @interface Event
  25479. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  25480. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  25481. */
  25482. var SyntheticAnimationEvent = SyntheticEvent.extend({
  25483. animationName: null,
  25484. elapsedTime: null,
  25485. pseudoElement: null
  25486. });
  25487. /**
  25488. * @interface Event
  25489. * @see http://www.w3.org/TR/clipboard-apis/
  25490. */
  25491. var SyntheticClipboardEvent = SyntheticEvent.extend({
  25492. clipboardData: function (event) {
  25493. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  25494. }
  25495. });
  25496. /**
  25497. * @interface FocusEvent
  25498. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25499. */
  25500. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  25501. relatedTarget: null
  25502. });
  25503. /**
  25504. * `charCode` represents the actual "character code" and is safe to use with
  25505. * `String.fromCharCode`. As such, only keys that correspond to printable
  25506. * characters produce a valid `charCode`, the only exception to this is Enter.
  25507. * The Tab-key is considered non-printable and does not have a `charCode`,
  25508. * presumably because it does not produce a tab-character in browsers.
  25509. *
  25510. * @param {object} nativeEvent Native browser event.
  25511. * @return {number} Normalized `charCode` property.
  25512. */
  25513. function getEventCharCode(nativeEvent) {
  25514. var charCode = void 0;
  25515. var keyCode = nativeEvent.keyCode;
  25516. if ('charCode' in nativeEvent) {
  25517. charCode = nativeEvent.charCode;
  25518. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  25519. if (charCode === 0 && keyCode === 13) {
  25520. charCode = 13;
  25521. }
  25522. } else {
  25523. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  25524. charCode = keyCode;
  25525. }
  25526. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  25527. // report Enter as charCode 10 when ctrl is pressed.
  25528. if (charCode === 10) {
  25529. charCode = 13;
  25530. }
  25531. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  25532. // Must not discard the (non-)printable Enter-key.
  25533. if (charCode >= 32 || charCode === 13) {
  25534. return charCode;
  25535. }
  25536. return 0;
  25537. }
  25538. /**
  25539. * Normalization of deprecated HTML5 `key` values
  25540. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  25541. */
  25542. var normalizeKey = {
  25543. Esc: 'Escape',
  25544. Spacebar: ' ',
  25545. Left: 'ArrowLeft',
  25546. Up: 'ArrowUp',
  25547. Right: 'ArrowRight',
  25548. Down: 'ArrowDown',
  25549. Del: 'Delete',
  25550. Win: 'OS',
  25551. Menu: 'ContextMenu',
  25552. Apps: 'ContextMenu',
  25553. Scroll: 'ScrollLock',
  25554. MozPrintableKey: 'Unidentified'
  25555. };
  25556. /**
  25557. * Translation from legacy `keyCode` to HTML5 `key`
  25558. * Only special keys supported, all others depend on keyboard layout or browser
  25559. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  25560. */
  25561. var translateToKey = {
  25562. '8': 'Backspace',
  25563. '9': 'Tab',
  25564. '12': 'Clear',
  25565. '13': 'Enter',
  25566. '16': 'Shift',
  25567. '17': 'Control',
  25568. '18': 'Alt',
  25569. '19': 'Pause',
  25570. '20': 'CapsLock',
  25571. '27': 'Escape',
  25572. '32': ' ',
  25573. '33': 'PageUp',
  25574. '34': 'PageDown',
  25575. '35': 'End',
  25576. '36': 'Home',
  25577. '37': 'ArrowLeft',
  25578. '38': 'ArrowUp',
  25579. '39': 'ArrowRight',
  25580. '40': 'ArrowDown',
  25581. '45': 'Insert',
  25582. '46': 'Delete',
  25583. '112': 'F1',
  25584. '113': 'F2',
  25585. '114': 'F3',
  25586. '115': 'F4',
  25587. '116': 'F5',
  25588. '117': 'F6',
  25589. '118': 'F7',
  25590. '119': 'F8',
  25591. '120': 'F9',
  25592. '121': 'F10',
  25593. '122': 'F11',
  25594. '123': 'F12',
  25595. '144': 'NumLock',
  25596. '145': 'ScrollLock',
  25597. '224': 'Meta'
  25598. };
  25599. /**
  25600. * @param {object} nativeEvent Native browser event.
  25601. * @return {string} Normalized `key` property.
  25602. */
  25603. function getEventKey(nativeEvent) {
  25604. if (nativeEvent.key) {
  25605. // Normalize inconsistent values reported by browsers due to
  25606. // implementations of a working draft specification.
  25607. // FireFox implements `key` but returns `MozPrintableKey` for all
  25608. // printable characters (normalized to `Unidentified`), ignore it.
  25609. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  25610. if (key !== 'Unidentified') {
  25611. return key;
  25612. }
  25613. }
  25614. // Browser does not implement `key`, polyfill as much of it as we can.
  25615. if (nativeEvent.type === 'keypress') {
  25616. var charCode = getEventCharCode(nativeEvent);
  25617. // The enter-key is technically both printable and non-printable and can
  25618. // thus be captured by `keypress`, no other non-printable key should.
  25619. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  25620. }
  25621. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  25622. // While user keyboard layout determines the actual meaning of each
  25623. // `keyCode` value, almost all function keys have a universal value.
  25624. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  25625. }
  25626. return '';
  25627. }
  25628. /**
  25629. * @interface KeyboardEvent
  25630. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25631. */
  25632. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  25633. key: getEventKey,
  25634. location: null,
  25635. ctrlKey: null,
  25636. shiftKey: null,
  25637. altKey: null,
  25638. metaKey: null,
  25639. repeat: null,
  25640. locale: null,
  25641. getModifierState: getEventModifierState,
  25642. // Legacy Interface
  25643. charCode: function (event) {
  25644. // `charCode` is the result of a KeyPress event and represents the value of
  25645. // the actual printable character.
  25646. // KeyPress is deprecated, but its replacement is not yet final and not
  25647. // implemented in any major browser. Only KeyPress has charCode.
  25648. if (event.type === 'keypress') {
  25649. return getEventCharCode(event);
  25650. }
  25651. return 0;
  25652. },
  25653. keyCode: function (event) {
  25654. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  25655. // physical keyboard key.
  25656. // The actual meaning of the value depends on the users' keyboard layout
  25657. // which cannot be detected. Assuming that it is a US keyboard layout
  25658. // provides a surprisingly accurate mapping for US and European users.
  25659. // Due to this, it is left to the user to implement at this time.
  25660. if (event.type === 'keydown' || event.type === 'keyup') {
  25661. return event.keyCode;
  25662. }
  25663. return 0;
  25664. },
  25665. which: function (event) {
  25666. // `which` is an alias for either `keyCode` or `charCode` depending on the
  25667. // type of the event.
  25668. if (event.type === 'keypress') {
  25669. return getEventCharCode(event);
  25670. }
  25671. if (event.type === 'keydown' || event.type === 'keyup') {
  25672. return event.keyCode;
  25673. }
  25674. return 0;
  25675. }
  25676. });
  25677. /**
  25678. * @interface DragEvent
  25679. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25680. */
  25681. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  25682. dataTransfer: null
  25683. });
  25684. /**
  25685. * @interface TouchEvent
  25686. * @see http://www.w3.org/TR/touch-events/
  25687. */
  25688. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  25689. touches: null,
  25690. targetTouches: null,
  25691. changedTouches: null,
  25692. altKey: null,
  25693. metaKey: null,
  25694. ctrlKey: null,
  25695. shiftKey: null,
  25696. getModifierState: getEventModifierState
  25697. });
  25698. /**
  25699. * @interface Event
  25700. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  25701. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  25702. */
  25703. var SyntheticTransitionEvent = SyntheticEvent.extend({
  25704. propertyName: null,
  25705. elapsedTime: null,
  25706. pseudoElement: null
  25707. });
  25708. /**
  25709. * @interface WheelEvent
  25710. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  25711. */
  25712. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  25713. deltaX: function (event) {
  25714. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  25715. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  25716. },
  25717. deltaY: function (event) {
  25718. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  25719. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  25720. 'wheelDelta' in event ? -event.wheelDelta : 0;
  25721. },
  25722. deltaZ: null,
  25723. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  25724. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  25725. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  25726. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  25727. deltaMode: null
  25728. });
  25729. /**
  25730. * Turns
  25731. * ['abort', ...]
  25732. * into
  25733. * eventTypes = {
  25734. * 'abort': {
  25735. * phasedRegistrationNames: {
  25736. * bubbled: 'onAbort',
  25737. * captured: 'onAbortCapture',
  25738. * },
  25739. * dependencies: [TOP_ABORT],
  25740. * },
  25741. * ...
  25742. * };
  25743. * topLevelEventsToDispatchConfig = new Map([
  25744. * [TOP_ABORT, { sameConfig }],
  25745. * ]);
  25746. */
  25747. var interactiveEventTypeNames = [[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']];
  25748. var nonInteractiveEventTypeNames = [[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_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [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_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];
  25749. var eventTypes$4 = {};
  25750. var topLevelEventsToDispatchConfig = {};
  25751. function addEventTypeNameToConfig(_ref, isInteractive) {
  25752. var topEvent = _ref[0],
  25753. event = _ref[1];
  25754. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  25755. var onEvent = 'on' + capitalizedEvent;
  25756. var type = {
  25757. phasedRegistrationNames: {
  25758. bubbled: onEvent,
  25759. captured: onEvent + 'Capture'
  25760. },
  25761. dependencies: [topEvent],
  25762. isInteractive: isInteractive
  25763. };
  25764. eventTypes$4[event] = type;
  25765. topLevelEventsToDispatchConfig[topEvent] = type;
  25766. }
  25767. interactiveEventTypeNames.forEach(function (eventTuple) {
  25768. addEventTypeNameToConfig(eventTuple, true);
  25769. });
  25770. nonInteractiveEventTypeNames.forEach(function (eventTuple) {
  25771. addEventTypeNameToConfig(eventTuple, false);
  25772. });
  25773. // Only used in DEV for exhaustiveness validation.
  25774. 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];
  25775. var SimpleEventPlugin = {
  25776. eventTypes: eventTypes$4,
  25777. isInteractiveTopLevelEventType: function (topLevelType) {
  25778. var config = topLevelEventsToDispatchConfig[topLevelType];
  25779. return config !== undefined && config.isInteractive === true;
  25780. },
  25781. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  25782. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  25783. if (!dispatchConfig) {
  25784. return null;
  25785. }
  25786. var EventConstructor = void 0;
  25787. switch (topLevelType) {
  25788. case TOP_KEY_PRESS:
  25789. // Firefox creates a keypress event for function keys too. This removes
  25790. // the unwanted keypress events. Enter is however both printable and
  25791. // non-printable. One would expect Tab to be as well (but it isn't).
  25792. if (getEventCharCode(nativeEvent) === 0) {
  25793. return null;
  25794. }
  25795. /* falls through */
  25796. case TOP_KEY_DOWN:
  25797. case TOP_KEY_UP:
  25798. EventConstructor = SyntheticKeyboardEvent;
  25799. break;
  25800. case TOP_BLUR:
  25801. case TOP_FOCUS:
  25802. EventConstructor = SyntheticFocusEvent;
  25803. break;
  25804. case TOP_CLICK:
  25805. // Firefox creates a click event on right mouse clicks. This removes the
  25806. // unwanted click events.
  25807. if (nativeEvent.button === 2) {
  25808. return null;
  25809. }
  25810. /* falls through */
  25811. case TOP_AUX_CLICK:
  25812. case TOP_DOUBLE_CLICK:
  25813. case TOP_MOUSE_DOWN:
  25814. case TOP_MOUSE_MOVE:
  25815. case TOP_MOUSE_UP:
  25816. // TODO: Disabled elements should not respond to mouse events
  25817. /* falls through */
  25818. case TOP_MOUSE_OUT:
  25819. case TOP_MOUSE_OVER:
  25820. case TOP_CONTEXT_MENU:
  25821. EventConstructor = SyntheticMouseEvent;
  25822. break;
  25823. case TOP_DRAG:
  25824. case TOP_DRAG_END:
  25825. case TOP_DRAG_ENTER:
  25826. case TOP_DRAG_EXIT:
  25827. case TOP_DRAG_LEAVE:
  25828. case TOP_DRAG_OVER:
  25829. case TOP_DRAG_START:
  25830. case TOP_DROP:
  25831. EventConstructor = SyntheticDragEvent;
  25832. break;
  25833. case TOP_TOUCH_CANCEL:
  25834. case TOP_TOUCH_END:
  25835. case TOP_TOUCH_MOVE:
  25836. case TOP_TOUCH_START:
  25837. EventConstructor = SyntheticTouchEvent;
  25838. break;
  25839. case TOP_ANIMATION_END:
  25840. case TOP_ANIMATION_ITERATION:
  25841. case TOP_ANIMATION_START:
  25842. EventConstructor = SyntheticAnimationEvent;
  25843. break;
  25844. case TOP_TRANSITION_END:
  25845. EventConstructor = SyntheticTransitionEvent;
  25846. break;
  25847. case TOP_SCROLL:
  25848. EventConstructor = SyntheticUIEvent;
  25849. break;
  25850. case TOP_WHEEL:
  25851. EventConstructor = SyntheticWheelEvent;
  25852. break;
  25853. case TOP_COPY:
  25854. case TOP_CUT:
  25855. case TOP_PASTE:
  25856. EventConstructor = SyntheticClipboardEvent;
  25857. break;
  25858. case TOP_GOT_POINTER_CAPTURE:
  25859. case TOP_LOST_POINTER_CAPTURE:
  25860. case TOP_POINTER_CANCEL:
  25861. case TOP_POINTER_DOWN:
  25862. case TOP_POINTER_MOVE:
  25863. case TOP_POINTER_OUT:
  25864. case TOP_POINTER_OVER:
  25865. case TOP_POINTER_UP:
  25866. EventConstructor = SyntheticPointerEvent;
  25867. break;
  25868. default:
  25869. {
  25870. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  25871. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  25872. }
  25873. }
  25874. // HTML Events
  25875. // @see http://www.w3.org/TR/html5/index.html#events-0
  25876. EventConstructor = SyntheticEvent;
  25877. break;
  25878. }
  25879. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  25880. accumulateTwoPhaseDispatches(event);
  25881. return event;
  25882. }
  25883. };
  25884. var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;
  25885. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  25886. var callbackBookkeepingPool = [];
  25887. /**
  25888. * Find the deepest React component completely containing the root of the
  25889. * passed-in instance (for use when entire React trees are nested within each
  25890. * other). If React trees are not nested, returns null.
  25891. */
  25892. function findRootContainerNode(inst) {
  25893. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  25894. // traversal, but caching is difficult to do correctly without using a
  25895. // mutation observer to listen for all DOM changes.
  25896. while (inst.return) {
  25897. inst = inst.return;
  25898. }
  25899. if (inst.tag !== HostRoot) {
  25900. // This can happen if we're in a detached tree.
  25901. return null;
  25902. }
  25903. return inst.stateNode.containerInfo;
  25904. }
  25905. // Used to store ancestor hierarchy in top level callback
  25906. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  25907. if (callbackBookkeepingPool.length) {
  25908. var instance = callbackBookkeepingPool.pop();
  25909. instance.topLevelType = topLevelType;
  25910. instance.nativeEvent = nativeEvent;
  25911. instance.targetInst = targetInst;
  25912. return instance;
  25913. }
  25914. return {
  25915. topLevelType: topLevelType,
  25916. nativeEvent: nativeEvent,
  25917. targetInst: targetInst,
  25918. ancestors: []
  25919. };
  25920. }
  25921. function releaseTopLevelCallbackBookKeeping(instance) {
  25922. instance.topLevelType = null;
  25923. instance.nativeEvent = null;
  25924. instance.targetInst = null;
  25925. instance.ancestors.length = 0;
  25926. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  25927. callbackBookkeepingPool.push(instance);
  25928. }
  25929. }
  25930. function handleTopLevel(bookKeeping) {
  25931. var targetInst = bookKeeping.targetInst;
  25932. // Loop through the hierarchy, in case there's any nested components.
  25933. // It's important that we build the array of ancestors before calling any
  25934. // event handlers, because event handlers can modify the DOM, leading to
  25935. // inconsistencies with ReactMount's node cache. See #1105.
  25936. var ancestor = targetInst;
  25937. do {
  25938. if (!ancestor) {
  25939. bookKeeping.ancestors.push(ancestor);
  25940. break;
  25941. }
  25942. var root = findRootContainerNode(ancestor);
  25943. if (!root) {
  25944. break;
  25945. }
  25946. bookKeeping.ancestors.push(ancestor);
  25947. ancestor = getClosestInstanceFromNode(root);
  25948. } while (ancestor);
  25949. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  25950. targetInst = bookKeeping.ancestors[i];
  25951. runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  25952. }
  25953. }
  25954. // TODO: can we stop exporting these?
  25955. var _enabled = true;
  25956. function setEnabled(enabled) {
  25957. _enabled = !!enabled;
  25958. }
  25959. function isEnabled() {
  25960. return _enabled;
  25961. }
  25962. /**
  25963. * Traps top-level events by using event bubbling.
  25964. *
  25965. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  25966. * @param {object} element Element on which to attach listener.
  25967. * @return {?object} An object with a remove function which will forcefully
  25968. * remove the listener.
  25969. * @internal
  25970. */
  25971. function trapBubbledEvent(topLevelType, element) {
  25972. if (!element) {
  25973. return null;
  25974. }
  25975. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  25976. addEventBubbleListener(element, getRawEventName(topLevelType),
  25977. // Check if interactive and wrap in interactiveUpdates
  25978. dispatch.bind(null, topLevelType));
  25979. }
  25980. /**
  25981. * Traps a top-level event by using event capturing.
  25982. *
  25983. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  25984. * @param {object} element Element on which to attach listener.
  25985. * @return {?object} An object with a remove function which will forcefully
  25986. * remove the listener.
  25987. * @internal
  25988. */
  25989. function trapCapturedEvent(topLevelType, element) {
  25990. if (!element) {
  25991. return null;
  25992. }
  25993. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  25994. addEventCaptureListener(element, getRawEventName(topLevelType),
  25995. // Check if interactive and wrap in interactiveUpdates
  25996. dispatch.bind(null, topLevelType));
  25997. }
  25998. function dispatchInteractiveEvent(topLevelType, nativeEvent) {
  25999. interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);
  26000. }
  26001. function dispatchEvent(topLevelType, nativeEvent) {
  26002. if (!_enabled) {
  26003. return;
  26004. }
  26005. var nativeEventTarget = getEventTarget(nativeEvent);
  26006. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  26007. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  26008. // If we get an event (ex: img onload) before committing that
  26009. // component's mount, ignore it for now (that is, treat it as if it was an
  26010. // event on a non-React tree). We might also consider queueing events and
  26011. // dispatching them after the mount.
  26012. targetInst = null;
  26013. }
  26014. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  26015. try {
  26016. // Event queue being processed in the same cycle allows
  26017. // `preventDefault`.
  26018. batchedUpdates(handleTopLevel, bookKeeping);
  26019. } finally {
  26020. releaseTopLevelCallbackBookKeeping(bookKeeping);
  26021. }
  26022. }
  26023. /**
  26024. * Summary of `ReactBrowserEventEmitter` event handling:
  26025. *
  26026. * - Top-level delegation is used to trap most native browser events. This
  26027. * may only occur in the main thread and is the responsibility of
  26028. * ReactDOMEventListener, which is injected and can therefore support
  26029. * pluggable event sources. This is the only work that occurs in the main
  26030. * thread.
  26031. *
  26032. * - We normalize and de-duplicate events to account for browser quirks. This
  26033. * may be done in the worker thread.
  26034. *
  26035. * - Forward these native events (with the associated top-level type used to
  26036. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  26037. * to extract any synthetic events.
  26038. *
  26039. * - The `EventPluginHub` will then process each event by annotating them with
  26040. * "dispatches", a sequence of listeners and IDs that care about that event.
  26041. *
  26042. * - The `EventPluginHub` then dispatches the events.
  26043. *
  26044. * Overview of React and the event system:
  26045. *
  26046. * +------------+ .
  26047. * | DOM | .
  26048. * +------------+ .
  26049. * | .
  26050. * v .
  26051. * +------------+ .
  26052. * | ReactEvent | .
  26053. * | Listener | .
  26054. * +------------+ . +-----------+
  26055. * | . +--------+|SimpleEvent|
  26056. * | . | |Plugin |
  26057. * +-----|------+ . v +-----------+
  26058. * | | | . +--------------+ +------------+
  26059. * | +-----------.--->|EventPluginHub| | Event |
  26060. * | | . | | +-----------+ | Propagators|
  26061. * | ReactEvent | . | | |TapEvent | |------------|
  26062. * | Emitter | . | |<---+|Plugin | |other plugin|
  26063. * | | . | | +-----------+ | utilities |
  26064. * | +-----------.--->| | +------------+
  26065. * | | | . +--------------+
  26066. * +-----|------+ . ^ +-----------+
  26067. * | . | |Enter/Leave|
  26068. * + . +-------+|Plugin |
  26069. * +-------------+ . +-----------+
  26070. * | application | .
  26071. * |-------------| .
  26072. * | | .
  26073. * | | .
  26074. * +-------------+ .
  26075. * .
  26076. * React Core . General Purpose Event Plugin System
  26077. */
  26078. var alreadyListeningTo = {};
  26079. var reactTopListenersCounter = 0;
  26080. /**
  26081. * To ensure no conflicts with other potential React instances on the page
  26082. */
  26083. var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);
  26084. function getListeningForDocument(mountAt) {
  26085. // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  26086. // directly.
  26087. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
  26088. mountAt[topListenersIDKey] = reactTopListenersCounter++;
  26089. alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  26090. }
  26091. return alreadyListeningTo[mountAt[topListenersIDKey]];
  26092. }
  26093. /**
  26094. * We listen for bubbled touch events on the document object.
  26095. *
  26096. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  26097. * mounting `onmousemove` events at some node that was not the document
  26098. * element. The symptoms were that if your mouse is not moving over something
  26099. * contained within that mount point (for example on the background) the
  26100. * top-level listeners for `onmousemove` won't be called. However, if you
  26101. * register the `mousemove` on the document object, then it will of course
  26102. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  26103. * top-level listeners to the document object only, at least for these
  26104. * movement types of events and possibly all events.
  26105. *
  26106. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  26107. *
  26108. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  26109. * they bubble to document.
  26110. *
  26111. * @param {string} registrationName Name of listener (e.g. `onClick`).
  26112. * @param {object} mountAt Container where to mount the listener
  26113. */
  26114. function listenTo(registrationName, mountAt) {
  26115. var isListening = getListeningForDocument(mountAt);
  26116. var dependencies = registrationNameDependencies[registrationName];
  26117. for (var i = 0; i < dependencies.length; i++) {
  26118. var dependency = dependencies[i];
  26119. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  26120. switch (dependency) {
  26121. case TOP_SCROLL:
  26122. trapCapturedEvent(TOP_SCROLL, mountAt);
  26123. break;
  26124. case TOP_FOCUS:
  26125. case TOP_BLUR:
  26126. trapCapturedEvent(TOP_FOCUS, mountAt);
  26127. trapCapturedEvent(TOP_BLUR, mountAt);
  26128. // We set the flag for a single dependency later in this function,
  26129. // but this ensures we mark both as attached rather than just one.
  26130. isListening[TOP_BLUR] = true;
  26131. isListening[TOP_FOCUS] = true;
  26132. break;
  26133. case TOP_CANCEL:
  26134. case TOP_CLOSE:
  26135. if (isEventSupported(getRawEventName(dependency))) {
  26136. trapCapturedEvent(dependency, mountAt);
  26137. }
  26138. break;
  26139. case TOP_INVALID:
  26140. case TOP_SUBMIT:
  26141. case TOP_RESET:
  26142. // We listen to them on the target DOM elements.
  26143. // Some of them bubble so we don't want them to fire twice.
  26144. break;
  26145. default:
  26146. // By default, listen on the top level to all non-media events.
  26147. // Media events don't bubble so adding the listener wouldn't do anything.
  26148. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  26149. if (!isMediaEvent) {
  26150. trapBubbledEvent(dependency, mountAt);
  26151. }
  26152. break;
  26153. }
  26154. isListening[dependency] = true;
  26155. }
  26156. }
  26157. }
  26158. function isListeningToAllDependencies(registrationName, mountAt) {
  26159. var isListening = getListeningForDocument(mountAt);
  26160. var dependencies = registrationNameDependencies[registrationName];
  26161. for (var i = 0; i < dependencies.length; i++) {
  26162. var dependency = dependencies[i];
  26163. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  26164. return false;
  26165. }
  26166. }
  26167. return true;
  26168. }
  26169. function getActiveElement(doc) {
  26170. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  26171. if (typeof doc === 'undefined') {
  26172. return null;
  26173. }
  26174. try {
  26175. return doc.activeElement || doc.body;
  26176. } catch (e) {
  26177. return doc.body;
  26178. }
  26179. }
  26180. /**
  26181. * Given any node return the first leaf node without children.
  26182. *
  26183. * @param {DOMElement|DOMTextNode} node
  26184. * @return {DOMElement|DOMTextNode}
  26185. */
  26186. function getLeafNode(node) {
  26187. while (node && node.firstChild) {
  26188. node = node.firstChild;
  26189. }
  26190. return node;
  26191. }
  26192. /**
  26193. * Get the next sibling within a container. This will walk up the
  26194. * DOM if a node's siblings have been exhausted.
  26195. *
  26196. * @param {DOMElement|DOMTextNode} node
  26197. * @return {?DOMElement|DOMTextNode}
  26198. */
  26199. function getSiblingNode(node) {
  26200. while (node) {
  26201. if (node.nextSibling) {
  26202. return node.nextSibling;
  26203. }
  26204. node = node.parentNode;
  26205. }
  26206. }
  26207. /**
  26208. * Get object describing the nodes which contain characters at offset.
  26209. *
  26210. * @param {DOMElement|DOMTextNode} root
  26211. * @param {number} offset
  26212. * @return {?object}
  26213. */
  26214. function getNodeForCharacterOffset(root, offset) {
  26215. var node = getLeafNode(root);
  26216. var nodeStart = 0;
  26217. var nodeEnd = 0;
  26218. while (node) {
  26219. if (node.nodeType === TEXT_NODE) {
  26220. nodeEnd = nodeStart + node.textContent.length;
  26221. if (nodeStart <= offset && nodeEnd >= offset) {
  26222. return {
  26223. node: node,
  26224. offset: offset - nodeStart
  26225. };
  26226. }
  26227. nodeStart = nodeEnd;
  26228. }
  26229. node = getLeafNode(getSiblingNode(node));
  26230. }
  26231. }
  26232. /**
  26233. * @param {DOMElement} outerNode
  26234. * @return {?object}
  26235. */
  26236. function getOffsets(outerNode) {
  26237. var ownerDocument = outerNode.ownerDocument;
  26238. var win = ownerDocument && ownerDocument.defaultView || window;
  26239. var selection = win.getSelection && win.getSelection();
  26240. if (!selection || selection.rangeCount === 0) {
  26241. return null;
  26242. }
  26243. var anchorNode = selection.anchorNode,
  26244. anchorOffset = selection.anchorOffset,
  26245. focusNode = selection.focusNode,
  26246. focusOffset = selection.focusOffset;
  26247. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  26248. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  26249. // expose properties, triggering a "Permission denied error" if any of its
  26250. // properties are accessed. The only seemingly possible way to avoid erroring
  26251. // is to access a property that typically works for non-anonymous divs and
  26252. // catch any error that may otherwise arise. See
  26253. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  26254. try {
  26255. /* eslint-disable no-unused-expressions */
  26256. anchorNode.nodeType;
  26257. focusNode.nodeType;
  26258. /* eslint-enable no-unused-expressions */
  26259. } catch (e) {
  26260. return null;
  26261. }
  26262. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  26263. }
  26264. /**
  26265. * Returns {start, end} where `start` is the character/codepoint index of
  26266. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  26267. * `end` is the index of (focusNode, focusOffset).
  26268. *
  26269. * Returns null if you pass in garbage input but we should probably just crash.
  26270. *
  26271. * Exported only for testing.
  26272. */
  26273. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  26274. var length = 0;
  26275. var start = -1;
  26276. var end = -1;
  26277. var indexWithinAnchor = 0;
  26278. var indexWithinFocus = 0;
  26279. var node = outerNode;
  26280. var parentNode = null;
  26281. outer: while (true) {
  26282. var next = null;
  26283. while (true) {
  26284. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  26285. start = length + anchorOffset;
  26286. }
  26287. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  26288. end = length + focusOffset;
  26289. }
  26290. if (node.nodeType === TEXT_NODE) {
  26291. length += node.nodeValue.length;
  26292. }
  26293. if ((next = node.firstChild) === null) {
  26294. break;
  26295. }
  26296. // Moving from `node` to its first child `next`.
  26297. parentNode = node;
  26298. node = next;
  26299. }
  26300. while (true) {
  26301. if (node === outerNode) {
  26302. // If `outerNode` has children, this is always the second time visiting
  26303. // it. If it has no children, this is still the first loop, and the only
  26304. // valid selection is anchorNode and focusNode both equal to this node
  26305. // and both offsets 0, in which case we will have handled above.
  26306. break outer;
  26307. }
  26308. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  26309. start = length;
  26310. }
  26311. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  26312. end = length;
  26313. }
  26314. if ((next = node.nextSibling) !== null) {
  26315. break;
  26316. }
  26317. node = parentNode;
  26318. parentNode = node.parentNode;
  26319. }
  26320. // Moving from `node` to its next sibling `next`.
  26321. node = next;
  26322. }
  26323. if (start === -1 || end === -1) {
  26324. // This should never happen. (Would happen if the anchor/focus nodes aren't
  26325. // actually inside the passed-in node.)
  26326. return null;
  26327. }
  26328. return {
  26329. start: start,
  26330. end: end
  26331. };
  26332. }
  26333. /**
  26334. * In modern non-IE browsers, we can support both forward and backward
  26335. * selections.
  26336. *
  26337. * Note: IE10+ supports the Selection object, but it does not support
  26338. * the `extend` method, which means that even in modern IE, it's not possible
  26339. * to programmatically create a backward selection. Thus, for all IE
  26340. * versions, we use the old IE API to create our selections.
  26341. *
  26342. * @param {DOMElement|DOMTextNode} node
  26343. * @param {object} offsets
  26344. */
  26345. function setOffsets(node, offsets) {
  26346. var doc = node.ownerDocument || document;
  26347. var win = doc && doc.defaultView || window;
  26348. // Edge fails with "Object expected" in some scenarios.
  26349. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  26350. // fails when pasting 100+ items)
  26351. if (!win.getSelection) {
  26352. return;
  26353. }
  26354. var selection = win.getSelection();
  26355. var length = node.textContent.length;
  26356. var start = Math.min(offsets.start, length);
  26357. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  26358. // IE 11 uses modern selection, but doesn't support the extend method.
  26359. // Flip backward selections, so we can set with a single range.
  26360. if (!selection.extend && start > end) {
  26361. var temp = end;
  26362. end = start;
  26363. start = temp;
  26364. }
  26365. var startMarker = getNodeForCharacterOffset(node, start);
  26366. var endMarker = getNodeForCharacterOffset(node, end);
  26367. if (startMarker && endMarker) {
  26368. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  26369. return;
  26370. }
  26371. var range = doc.createRange();
  26372. range.setStart(startMarker.node, startMarker.offset);
  26373. selection.removeAllRanges();
  26374. if (start > end) {
  26375. selection.addRange(range);
  26376. selection.extend(endMarker.node, endMarker.offset);
  26377. } else {
  26378. range.setEnd(endMarker.node, endMarker.offset);
  26379. selection.addRange(range);
  26380. }
  26381. }
  26382. }
  26383. function isTextNode(node) {
  26384. return node && node.nodeType === TEXT_NODE;
  26385. }
  26386. function containsNode(outerNode, innerNode) {
  26387. if (!outerNode || !innerNode) {
  26388. return false;
  26389. } else if (outerNode === innerNode) {
  26390. return true;
  26391. } else if (isTextNode(outerNode)) {
  26392. return false;
  26393. } else if (isTextNode(innerNode)) {
  26394. return containsNode(outerNode, innerNode.parentNode);
  26395. } else if ('contains' in outerNode) {
  26396. return outerNode.contains(innerNode);
  26397. } else if (outerNode.compareDocumentPosition) {
  26398. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  26399. } else {
  26400. return false;
  26401. }
  26402. }
  26403. function isInDocument(node) {
  26404. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  26405. }
  26406. function getActiveElementDeep() {
  26407. var win = window;
  26408. var element = getActiveElement();
  26409. while (element instanceof win.HTMLIFrameElement) {
  26410. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  26411. // to throw, e.g. if it has a cross-origin src attribute
  26412. try {
  26413. win = element.contentDocument.defaultView;
  26414. } catch (e) {
  26415. return element;
  26416. }
  26417. element = getActiveElement(win.document);
  26418. }
  26419. return element;
  26420. }
  26421. /**
  26422. * @ReactInputSelection: React input selection module. Based on Selection.js,
  26423. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  26424. * assume buttons have range selections allowed).
  26425. * Input selection module for React.
  26426. */
  26427. /**
  26428. * @hasSelectionCapabilities: we get the element types that support selection
  26429. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  26430. * and `selectionEnd` rows.
  26431. */
  26432. function hasSelectionCapabilities(elem) {
  26433. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  26434. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  26435. }
  26436. function getSelectionInformation() {
  26437. var focusedElem = getActiveElementDeep();
  26438. return {
  26439. focusedElem: focusedElem,
  26440. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  26441. };
  26442. }
  26443. /**
  26444. * @restoreSelection: If any selection information was potentially lost,
  26445. * restore it. This is useful when performing operations that could remove dom
  26446. * nodes and place them back in, resulting in focus being lost.
  26447. */
  26448. function restoreSelection(priorSelectionInformation) {
  26449. var curFocusedElem = getActiveElementDeep();
  26450. var priorFocusedElem = priorSelectionInformation.focusedElem;
  26451. var priorSelectionRange = priorSelectionInformation.selectionRange;
  26452. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  26453. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  26454. setSelection(priorFocusedElem, priorSelectionRange);
  26455. }
  26456. // Focusing a node can change the scroll position, which is undesirable
  26457. var ancestors = [];
  26458. var ancestor = priorFocusedElem;
  26459. while (ancestor = ancestor.parentNode) {
  26460. if (ancestor.nodeType === ELEMENT_NODE) {
  26461. ancestors.push({
  26462. element: ancestor,
  26463. left: ancestor.scrollLeft,
  26464. top: ancestor.scrollTop
  26465. });
  26466. }
  26467. }
  26468. if (typeof priorFocusedElem.focus === 'function') {
  26469. priorFocusedElem.focus();
  26470. }
  26471. for (var i = 0; i < ancestors.length; i++) {
  26472. var info = ancestors[i];
  26473. info.element.scrollLeft = info.left;
  26474. info.element.scrollTop = info.top;
  26475. }
  26476. }
  26477. }
  26478. /**
  26479. * @getSelection: Gets the selection bounds of a focused textarea, input or
  26480. * contentEditable node.
  26481. * -@input: Look up selection bounds of this input
  26482. * -@return {start: selectionStart, end: selectionEnd}
  26483. */
  26484. function getSelection$1(input) {
  26485. var selection = void 0;
  26486. if ('selectionStart' in input) {
  26487. // Modern browser with input or textarea.
  26488. selection = {
  26489. start: input.selectionStart,
  26490. end: input.selectionEnd
  26491. };
  26492. } else {
  26493. // Content editable or old IE textarea.
  26494. selection = getOffsets(input);
  26495. }
  26496. return selection || { start: 0, end: 0 };
  26497. }
  26498. /**
  26499. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  26500. * the input.
  26501. * -@input Set selection bounds of this input or textarea
  26502. * -@offsets Object of same form that is returned from get*
  26503. */
  26504. function setSelection(input, offsets) {
  26505. var start = offsets.start,
  26506. end = offsets.end;
  26507. if (end === undefined) {
  26508. end = start;
  26509. }
  26510. if ('selectionStart' in input) {
  26511. input.selectionStart = start;
  26512. input.selectionEnd = Math.min(end, input.value.length);
  26513. } else {
  26514. setOffsets(input, offsets);
  26515. }
  26516. }
  26517. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  26518. var eventTypes$3 = {
  26519. select: {
  26520. phasedRegistrationNames: {
  26521. bubbled: 'onSelect',
  26522. captured: 'onSelectCapture'
  26523. },
  26524. 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]
  26525. }
  26526. };
  26527. var activeElement$1 = null;
  26528. var activeElementInst$1 = null;
  26529. var lastSelection = null;
  26530. var mouseDown = false;
  26531. /**
  26532. * Get an object which is a unique representation of the current selection.
  26533. *
  26534. * The return value will not be consistent across nodes or browsers, but
  26535. * two identical selections on the same node will return identical objects.
  26536. *
  26537. * @param {DOMElement} node
  26538. * @return {object}
  26539. */
  26540. function getSelection(node) {
  26541. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  26542. return {
  26543. start: node.selectionStart,
  26544. end: node.selectionEnd
  26545. };
  26546. } else {
  26547. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  26548. var selection = win.getSelection();
  26549. return {
  26550. anchorNode: selection.anchorNode,
  26551. anchorOffset: selection.anchorOffset,
  26552. focusNode: selection.focusNode,
  26553. focusOffset: selection.focusOffset
  26554. };
  26555. }
  26556. }
  26557. /**
  26558. * Get document associated with the event target.
  26559. *
  26560. * @param {object} nativeEventTarget
  26561. * @return {Document}
  26562. */
  26563. function getEventTargetDocument(eventTarget) {
  26564. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  26565. }
  26566. /**
  26567. * Poll selection to see whether it's changed.
  26568. *
  26569. * @param {object} nativeEvent
  26570. * @param {object} nativeEventTarget
  26571. * @return {?SyntheticEvent}
  26572. */
  26573. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  26574. // Ensure we have the right element, and that the user is not dragging a
  26575. // selection (this matches native `select` event behavior). In HTML5, select
  26576. // fires only on input and textarea thus if there's no focused element we
  26577. // won't dispatch.
  26578. var doc = getEventTargetDocument(nativeEventTarget);
  26579. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  26580. return null;
  26581. }
  26582. // Only fire when selection has actually changed.
  26583. var currentSelection = getSelection(activeElement$1);
  26584. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  26585. lastSelection = currentSelection;
  26586. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  26587. syntheticEvent.type = 'select';
  26588. syntheticEvent.target = activeElement$1;
  26589. accumulateTwoPhaseDispatches(syntheticEvent);
  26590. return syntheticEvent;
  26591. }
  26592. return null;
  26593. }
  26594. /**
  26595. * This plugin creates an `onSelect` event that normalizes select events
  26596. * across form elements.
  26597. *
  26598. * Supported elements are:
  26599. * - input (see `isTextInputElement`)
  26600. * - textarea
  26601. * - contentEditable
  26602. *
  26603. * This differs from native browser implementations in the following ways:
  26604. * - Fires on contentEditable fields as well as inputs.
  26605. * - Fires for collapsed selection.
  26606. * - Fires after user input.
  26607. */
  26608. var SelectEventPlugin = {
  26609. eventTypes: eventTypes$3,
  26610. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  26611. var doc = getEventTargetDocument(nativeEventTarget);
  26612. // Track whether all listeners exists for this plugin. If none exist, we do
  26613. // not extract events. See #3639.
  26614. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  26615. return null;
  26616. }
  26617. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  26618. switch (topLevelType) {
  26619. // Track the input node that has focus.
  26620. case TOP_FOCUS:
  26621. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  26622. activeElement$1 = targetNode;
  26623. activeElementInst$1 = targetInst;
  26624. lastSelection = null;
  26625. }
  26626. break;
  26627. case TOP_BLUR:
  26628. activeElement$1 = null;
  26629. activeElementInst$1 = null;
  26630. lastSelection = null;
  26631. break;
  26632. // Don't fire the event while the user is dragging. This matches the
  26633. // semantics of the native select event.
  26634. case TOP_MOUSE_DOWN:
  26635. mouseDown = true;
  26636. break;
  26637. case TOP_CONTEXT_MENU:
  26638. case TOP_MOUSE_UP:
  26639. case TOP_DRAG_END:
  26640. mouseDown = false;
  26641. return constructSelectEvent(nativeEvent, nativeEventTarget);
  26642. // Chrome and IE fire non-standard event when selection is changed (and
  26643. // sometimes when it hasn't). IE's event fires out of order with respect
  26644. // to key and input events on deletion, so we discard it.
  26645. //
  26646. // Firefox doesn't support selectionchange, so check selection status
  26647. // after each key entry. The selection changes after keydown and before
  26648. // keyup, but we check on keydown as well in the case of holding down a
  26649. // key, when multiple keydown events are fired but only one keyup is.
  26650. // This is also our approach for IE handling, for the reason above.
  26651. case TOP_SELECTION_CHANGE:
  26652. if (skipSelectionChangeEvent) {
  26653. break;
  26654. }
  26655. // falls through
  26656. case TOP_KEY_DOWN:
  26657. case TOP_KEY_UP:
  26658. return constructSelectEvent(nativeEvent, nativeEventTarget);
  26659. }
  26660. return null;
  26661. }
  26662. };
  26663. /**
  26664. * Inject modules for resolving DOM hierarchy and plugin ordering.
  26665. */
  26666. injection.injectEventPluginOrder(DOMEventPluginOrder);
  26667. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  26668. /**
  26669. * Some important event plugins included by default (without having to require
  26670. * them).
  26671. */
  26672. injection.injectEventPluginsByName({
  26673. SimpleEventPlugin: SimpleEventPlugin,
  26674. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  26675. ChangeEventPlugin: ChangeEventPlugin,
  26676. SelectEventPlugin: SelectEventPlugin,
  26677. BeforeInputEventPlugin: BeforeInputEventPlugin
  26678. });
  26679. var didWarnSelectedSetOnOption = false;
  26680. var didWarnInvalidChild = false;
  26681. function flattenChildren(children) {
  26682. var content = '';
  26683. // Flatten children. We'll warn if they are invalid
  26684. // during validateProps() which runs for hydration too.
  26685. // Note that this would throw on non-element objects.
  26686. // Elements are stringified (which is normally irrelevant
  26687. // but matters for <fbt>).
  26688. React.Children.forEach(children, function (child) {
  26689. if (child == null) {
  26690. return;
  26691. }
  26692. content += child;
  26693. // Note: we don't warn about invalid children here.
  26694. // Instead, this is done separately below so that
  26695. // it happens during the hydration codepath too.
  26696. });
  26697. return content;
  26698. }
  26699. /**
  26700. * Implements an <option> host component that warns when `selected` is set.
  26701. */
  26702. function validateProps(element, props) {
  26703. {
  26704. // This mirrors the codepath above, but runs for hydration too.
  26705. // Warn about invalid children here so that client and hydration are consistent.
  26706. // TODO: this seems like it could cause a DEV-only throw for hydration
  26707. // if children contains a non-element object. We should try to avoid that.
  26708. if (typeof props.children === 'object' && props.children !== null) {
  26709. React.Children.forEach(props.children, function (child) {
  26710. if (child == null) {
  26711. return;
  26712. }
  26713. if (typeof child === 'string' || typeof child === 'number') {
  26714. return;
  26715. }
  26716. if (typeof child.type !== 'string') {
  26717. return;
  26718. }
  26719. if (!didWarnInvalidChild) {
  26720. didWarnInvalidChild = true;
  26721. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  26722. }
  26723. });
  26724. }
  26725. // TODO: Remove support for `selected` in <option>.
  26726. if (props.selected != null && !didWarnSelectedSetOnOption) {
  26727. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  26728. didWarnSelectedSetOnOption = true;
  26729. }
  26730. }
  26731. }
  26732. function postMountWrapper$1(element, props) {
  26733. // value="" should make a value attribute (#6219)
  26734. if (props.value != null) {
  26735. element.setAttribute('value', toString(getToStringValue(props.value)));
  26736. }
  26737. }
  26738. function getHostProps$1(element, props) {
  26739. var hostProps = _assign({ children: undefined }, props);
  26740. var content = flattenChildren(props.children);
  26741. if (content) {
  26742. hostProps.children = content;
  26743. }
  26744. return hostProps;
  26745. }
  26746. // TODO: direct imports like some-package/src/* are bad. Fix me.
  26747. var didWarnValueDefaultValue$1 = void 0;
  26748. {
  26749. didWarnValueDefaultValue$1 = false;
  26750. }
  26751. function getDeclarationErrorAddendum() {
  26752. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  26753. if (ownerName) {
  26754. return '\n\nCheck the render method of `' + ownerName + '`.';
  26755. }
  26756. return '';
  26757. }
  26758. var valuePropNames = ['value', 'defaultValue'];
  26759. /**
  26760. * Validation function for `value` and `defaultValue`.
  26761. */
  26762. function checkSelectPropTypes(props) {
  26763. ReactControlledValuePropTypes.checkPropTypes('select', props);
  26764. for (var i = 0; i < valuePropNames.length; i++) {
  26765. var propName = valuePropNames[i];
  26766. if (props[propName] == null) {
  26767. continue;
  26768. }
  26769. var isArray = Array.isArray(props[propName]);
  26770. if (props.multiple && !isArray) {
  26771. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  26772. } else if (!props.multiple && isArray) {
  26773. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  26774. }
  26775. }
  26776. }
  26777. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  26778. var options = node.options;
  26779. if (multiple) {
  26780. var selectedValues = propValue;
  26781. var selectedValue = {};
  26782. for (var i = 0; i < selectedValues.length; i++) {
  26783. // Prefix to avoid chaos with special keys.
  26784. selectedValue['$' + selectedValues[i]] = true;
  26785. }
  26786. for (var _i = 0; _i < options.length; _i++) {
  26787. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  26788. if (options[_i].selected !== selected) {
  26789. options[_i].selected = selected;
  26790. }
  26791. if (selected && setDefaultSelected) {
  26792. options[_i].defaultSelected = true;
  26793. }
  26794. }
  26795. } else {
  26796. // Do not set `select.value` as exact behavior isn't consistent across all
  26797. // browsers for all cases.
  26798. var _selectedValue = toString(getToStringValue(propValue));
  26799. var defaultSelected = null;
  26800. for (var _i2 = 0; _i2 < options.length; _i2++) {
  26801. if (options[_i2].value === _selectedValue) {
  26802. options[_i2].selected = true;
  26803. if (setDefaultSelected) {
  26804. options[_i2].defaultSelected = true;
  26805. }
  26806. return;
  26807. }
  26808. if (defaultSelected === null && !options[_i2].disabled) {
  26809. defaultSelected = options[_i2];
  26810. }
  26811. }
  26812. if (defaultSelected !== null) {
  26813. defaultSelected.selected = true;
  26814. }
  26815. }
  26816. }
  26817. /**
  26818. * Implements a <select> host component that allows optionally setting the
  26819. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  26820. * stringable. If `multiple` is true, the prop must be an array of stringables.
  26821. *
  26822. * If `value` is not supplied (or null/undefined), user actions that change the
  26823. * selected option will trigger updates to the rendered options.
  26824. *
  26825. * If it is supplied (and not null/undefined), the rendered options will not
  26826. * update in response to user actions. Instead, the `value` prop must change in
  26827. * order for the rendered options to update.
  26828. *
  26829. * If `defaultValue` is provided, any options with the supplied values will be
  26830. * selected.
  26831. */
  26832. function getHostProps$2(element, props) {
  26833. return _assign({}, props, {
  26834. value: undefined
  26835. });
  26836. }
  26837. function initWrapperState$1(element, props) {
  26838. var node = element;
  26839. {
  26840. checkSelectPropTypes(props);
  26841. }
  26842. node._wrapperState = {
  26843. wasMultiple: !!props.multiple
  26844. };
  26845. {
  26846. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  26847. warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
  26848. didWarnValueDefaultValue$1 = true;
  26849. }
  26850. }
  26851. }
  26852. function postMountWrapper$2(element, props) {
  26853. var node = element;
  26854. node.multiple = !!props.multiple;
  26855. var value = props.value;
  26856. if (value != null) {
  26857. updateOptions(node, !!props.multiple, value, false);
  26858. } else if (props.defaultValue != null) {
  26859. updateOptions(node, !!props.multiple, props.defaultValue, true);
  26860. }
  26861. }
  26862. function postUpdateWrapper(element, props) {
  26863. var node = element;
  26864. var wasMultiple = node._wrapperState.wasMultiple;
  26865. node._wrapperState.wasMultiple = !!props.multiple;
  26866. var value = props.value;
  26867. if (value != null) {
  26868. updateOptions(node, !!props.multiple, value, false);
  26869. } else if (wasMultiple !== !!props.multiple) {
  26870. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  26871. if (props.defaultValue != null) {
  26872. updateOptions(node, !!props.multiple, props.defaultValue, true);
  26873. } else {
  26874. // Revert the select back to its default unselected state.
  26875. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  26876. }
  26877. }
  26878. }
  26879. function restoreControlledState$2(element, props) {
  26880. var node = element;
  26881. var value = props.value;
  26882. if (value != null) {
  26883. updateOptions(node, !!props.multiple, value, false);
  26884. }
  26885. }
  26886. var didWarnValDefaultVal = false;
  26887. /**
  26888. * Implements a <textarea> host component that allows setting `value`, and
  26889. * `defaultValue`. This differs from the traditional DOM API because value is
  26890. * usually set as PCDATA children.
  26891. *
  26892. * If `value` is not supplied (or null/undefined), user actions that affect the
  26893. * value will trigger updates to the element.
  26894. *
  26895. * If `value` is supplied (and not null/undefined), the rendered element will
  26896. * not trigger updates to the element. Instead, the `value` prop must change in
  26897. * order for the rendered element to be updated.
  26898. *
  26899. * The rendered element will be initialized with an empty value, the prop
  26900. * `defaultValue` if specified, or the children content (deprecated).
  26901. */
  26902. function getHostProps$3(element, props) {
  26903. var node = element;
  26904. !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;
  26905. // Always set children to the same thing. In IE9, the selection range will
  26906. // get reset if `textContent` is mutated. We could add a check in setTextContent
  26907. // to only set the value if/when the value differs from the node value (which would
  26908. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  26909. // solution. The value can be a boolean or object so that's why it's forced
  26910. // to be a string.
  26911. var hostProps = _assign({}, props, {
  26912. value: undefined,
  26913. defaultValue: undefined,
  26914. children: toString(node._wrapperState.initialValue)
  26915. });
  26916. return hostProps;
  26917. }
  26918. function initWrapperState$2(element, props) {
  26919. var node = element;
  26920. {
  26921. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  26922. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  26923. warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  26924. didWarnValDefaultVal = true;
  26925. }
  26926. }
  26927. var initialValue = props.value;
  26928. // Only bother fetching default value if we're going to use it
  26929. if (initialValue == null) {
  26930. var defaultValue = props.defaultValue;
  26931. // TODO (yungsters): Remove support for children content in <textarea>.
  26932. var children = props.children;
  26933. if (children != null) {
  26934. {
  26935. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  26936. }
  26937. !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
  26938. if (Array.isArray(children)) {
  26939. !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;
  26940. children = children[0];
  26941. }
  26942. defaultValue = children;
  26943. }
  26944. if (defaultValue == null) {
  26945. defaultValue = '';
  26946. }
  26947. initialValue = defaultValue;
  26948. }
  26949. node._wrapperState = {
  26950. initialValue: getToStringValue(initialValue)
  26951. };
  26952. }
  26953. function updateWrapper$1(element, props) {
  26954. var node = element;
  26955. var value = getToStringValue(props.value);
  26956. var defaultValue = getToStringValue(props.defaultValue);
  26957. if (value != null) {
  26958. // Cast `value` to a string to ensure the value is set correctly. While
  26959. // browsers typically do this as necessary, jsdom doesn't.
  26960. var newValue = toString(value);
  26961. // To avoid side effects (such as losing text selection), only set value if changed
  26962. if (newValue !== node.value) {
  26963. node.value = newValue;
  26964. }
  26965. if (props.defaultValue == null && node.defaultValue !== newValue) {
  26966. node.defaultValue = newValue;
  26967. }
  26968. }
  26969. if (defaultValue != null) {
  26970. node.defaultValue = toString(defaultValue);
  26971. }
  26972. }
  26973. function postMountWrapper$3(element, props) {
  26974. var node = element;
  26975. // This is in postMount because we need access to the DOM node, which is not
  26976. // available until after the component has mounted.
  26977. var textContent = node.textContent;
  26978. // Only set node.value if textContent is equal to the expected
  26979. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  26980. // will populate textContent as well.
  26981. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  26982. if (textContent === node._wrapperState.initialValue) {
  26983. node.value = textContent;
  26984. }
  26985. }
  26986. function restoreControlledState$3(element, props) {
  26987. // DOM component is still mounted; update
  26988. updateWrapper$1(element, props);
  26989. }
  26990. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  26991. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  26992. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  26993. var Namespaces = {
  26994. html: HTML_NAMESPACE$1,
  26995. mathml: MATH_NAMESPACE,
  26996. svg: SVG_NAMESPACE
  26997. };
  26998. // Assumes there is no parent namespace.
  26999. function getIntrinsicNamespace(type) {
  27000. switch (type) {
  27001. case 'svg':
  27002. return SVG_NAMESPACE;
  27003. case 'math':
  27004. return MATH_NAMESPACE;
  27005. default:
  27006. return HTML_NAMESPACE$1;
  27007. }
  27008. }
  27009. function getChildNamespace(parentNamespace, type) {
  27010. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  27011. // No (or default) parent namespace: potential entry point.
  27012. return getIntrinsicNamespace(type);
  27013. }
  27014. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  27015. // We're leaving SVG.
  27016. return HTML_NAMESPACE$1;
  27017. }
  27018. // By default, pass namespace below.
  27019. return parentNamespace;
  27020. }
  27021. /* globals MSApp */
  27022. /**
  27023. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  27024. */
  27025. var createMicrosoftUnsafeLocalFunction = function (func) {
  27026. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  27027. return function (arg0, arg1, arg2, arg3) {
  27028. MSApp.execUnsafeLocalFunction(function () {
  27029. return func(arg0, arg1, arg2, arg3);
  27030. });
  27031. };
  27032. } else {
  27033. return func;
  27034. }
  27035. };
  27036. // SVG temp container for IE lacking innerHTML
  27037. var reusableSVGContainer = void 0;
  27038. /**
  27039. * Set the innerHTML property of a node
  27040. *
  27041. * @param {DOMElement} node
  27042. * @param {string} html
  27043. * @internal
  27044. */
  27045. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  27046. // IE does not have innerHTML for SVG nodes, so instead we inject the
  27047. // new markup in a temp node and then move the child nodes across into
  27048. // the target node
  27049. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  27050. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  27051. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  27052. var svgNode = reusableSVGContainer.firstChild;
  27053. while (node.firstChild) {
  27054. node.removeChild(node.firstChild);
  27055. }
  27056. while (svgNode.firstChild) {
  27057. node.appendChild(svgNode.firstChild);
  27058. }
  27059. } else {
  27060. node.innerHTML = html;
  27061. }
  27062. });
  27063. /**
  27064. * Set the textContent property of a node. For text updates, it's faster
  27065. * to set the `nodeValue` of the Text node directly instead of using
  27066. * `.textContent` which will remove the existing node and create a new one.
  27067. *
  27068. * @param {DOMElement} node
  27069. * @param {string} text
  27070. * @internal
  27071. */
  27072. var setTextContent = function (node, text) {
  27073. if (text) {
  27074. var firstChild = node.firstChild;
  27075. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  27076. firstChild.nodeValue = text;
  27077. return;
  27078. }
  27079. }
  27080. node.textContent = text;
  27081. };
  27082. /**
  27083. * CSS properties which accept numbers but are not in units of "px".
  27084. */
  27085. var isUnitlessNumber = {
  27086. animationIterationCount: true,
  27087. borderImageOutset: true,
  27088. borderImageSlice: true,
  27089. borderImageWidth: true,
  27090. boxFlex: true,
  27091. boxFlexGroup: true,
  27092. boxOrdinalGroup: true,
  27093. columnCount: true,
  27094. columns: true,
  27095. flex: true,
  27096. flexGrow: true,
  27097. flexPositive: true,
  27098. flexShrink: true,
  27099. flexNegative: true,
  27100. flexOrder: true,
  27101. gridArea: true,
  27102. gridRow: true,
  27103. gridRowEnd: true,
  27104. gridRowSpan: true,
  27105. gridRowStart: true,
  27106. gridColumn: true,
  27107. gridColumnEnd: true,
  27108. gridColumnSpan: true,
  27109. gridColumnStart: true,
  27110. fontWeight: true,
  27111. lineClamp: true,
  27112. lineHeight: true,
  27113. opacity: true,
  27114. order: true,
  27115. orphans: true,
  27116. tabSize: true,
  27117. widows: true,
  27118. zIndex: true,
  27119. zoom: true,
  27120. // SVG-related properties
  27121. fillOpacity: true,
  27122. floodOpacity: true,
  27123. stopOpacity: true,
  27124. strokeDasharray: true,
  27125. strokeDashoffset: true,
  27126. strokeMiterlimit: true,
  27127. strokeOpacity: true,
  27128. strokeWidth: true
  27129. };
  27130. /**
  27131. * @param {string} prefix vendor-specific prefix, eg: Webkit
  27132. * @param {string} key style name, eg: transitionDuration
  27133. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  27134. * WebkitTransitionDuration
  27135. */
  27136. function prefixKey(prefix, key) {
  27137. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  27138. }
  27139. /**
  27140. * Support style names that may come passed in prefixed by adding permutations
  27141. * of vendor prefixes.
  27142. */
  27143. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  27144. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  27145. // infinite loop, because it iterates over the newly added props too.
  27146. Object.keys(isUnitlessNumber).forEach(function (prop) {
  27147. prefixes.forEach(function (prefix) {
  27148. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  27149. });
  27150. });
  27151. /**
  27152. * Convert a value into the proper css writable value. The style name `name`
  27153. * should be logical (no hyphens), as specified
  27154. * in `CSSProperty.isUnitlessNumber`.
  27155. *
  27156. * @param {string} name CSS property name such as `topMargin`.
  27157. * @param {*} value CSS property value such as `10px`.
  27158. * @return {string} Normalized style value with dimensions applied.
  27159. */
  27160. function dangerousStyleValue(name, value, isCustomProperty) {
  27161. // Note that we've removed escapeTextForBrowser() calls here since the
  27162. // whole string will be escaped when the attribute is injected into
  27163. // the markup. If you provide unsafe user data here they can inject
  27164. // arbitrary CSS which may be problematic (I couldn't repro this):
  27165. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  27166. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  27167. // This is not an XSS hole but instead a potential CSS injection issue
  27168. // which has lead to a greater discussion about how we're going to
  27169. // trust URLs moving forward. See #2115901
  27170. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  27171. if (isEmpty) {
  27172. return '';
  27173. }
  27174. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  27175. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  27176. }
  27177. return ('' + value).trim();
  27178. }
  27179. var uppercasePattern = /([A-Z])/g;
  27180. var msPattern = /^ms-/;
  27181. /**
  27182. * Hyphenates a camelcased CSS property name, for example:
  27183. *
  27184. * > hyphenateStyleName('backgroundColor')
  27185. * < "background-color"
  27186. * > hyphenateStyleName('MozTransition')
  27187. * < "-moz-transition"
  27188. * > hyphenateStyleName('msTransition')
  27189. * < "-ms-transition"
  27190. *
  27191. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  27192. * is converted to `-ms-`.
  27193. */
  27194. function hyphenateStyleName(name) {
  27195. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  27196. }
  27197. var warnValidStyle = function () {};
  27198. {
  27199. // 'msTransform' is correct, but the other prefixes should be capitalized
  27200. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  27201. var msPattern$1 = /^-ms-/;
  27202. var hyphenPattern = /-(.)/g;
  27203. // style values shouldn't contain a semicolon
  27204. var badStyleValueWithSemicolonPattern = /;\s*$/;
  27205. var warnedStyleNames = {};
  27206. var warnedStyleValues = {};
  27207. var warnedForNaNValue = false;
  27208. var warnedForInfinityValue = false;
  27209. var camelize = function (string) {
  27210. return string.replace(hyphenPattern, function (_, character) {
  27211. return character.toUpperCase();
  27212. });
  27213. };
  27214. var warnHyphenatedStyleName = function (name) {
  27215. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  27216. return;
  27217. }
  27218. warnedStyleNames[name] = true;
  27219. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  27220. // As Andi Smith suggests
  27221. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  27222. // is converted to lowercase `ms`.
  27223. camelize(name.replace(msPattern$1, 'ms-')));
  27224. };
  27225. var warnBadVendoredStyleName = function (name) {
  27226. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  27227. return;
  27228. }
  27229. warnedStyleNames[name] = true;
  27230. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  27231. };
  27232. var warnStyleValueWithSemicolon = function (name, value) {
  27233. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  27234. return;
  27235. }
  27236. warnedStyleValues[value] = true;
  27237. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  27238. };
  27239. var warnStyleValueIsNaN = function (name, value) {
  27240. if (warnedForNaNValue) {
  27241. return;
  27242. }
  27243. warnedForNaNValue = true;
  27244. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  27245. };
  27246. var warnStyleValueIsInfinity = function (name, value) {
  27247. if (warnedForInfinityValue) {
  27248. return;
  27249. }
  27250. warnedForInfinityValue = true;
  27251. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  27252. };
  27253. warnValidStyle = function (name, value) {
  27254. if (name.indexOf('-') > -1) {
  27255. warnHyphenatedStyleName(name);
  27256. } else if (badVendoredStyleNamePattern.test(name)) {
  27257. warnBadVendoredStyleName(name);
  27258. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  27259. warnStyleValueWithSemicolon(name, value);
  27260. }
  27261. if (typeof value === 'number') {
  27262. if (isNaN(value)) {
  27263. warnStyleValueIsNaN(name, value);
  27264. } else if (!isFinite(value)) {
  27265. warnStyleValueIsInfinity(name, value);
  27266. }
  27267. }
  27268. };
  27269. }
  27270. var warnValidStyle$1 = warnValidStyle;
  27271. /**
  27272. * Operations for dealing with CSS properties.
  27273. */
  27274. /**
  27275. * This creates a string that is expected to be equivalent to the style
  27276. * attribute generated by server-side rendering. It by-passes warnings and
  27277. * security checks so it's not safe to use this value for anything other than
  27278. * comparison. It is only used in DEV for SSR validation.
  27279. */
  27280. function createDangerousStringForStyles(styles) {
  27281. {
  27282. var serialized = '';
  27283. var delimiter = '';
  27284. for (var styleName in styles) {
  27285. if (!styles.hasOwnProperty(styleName)) {
  27286. continue;
  27287. }
  27288. var styleValue = styles[styleName];
  27289. if (styleValue != null) {
  27290. var isCustomProperty = styleName.indexOf('--') === 0;
  27291. serialized += delimiter + hyphenateStyleName(styleName) + ':';
  27292. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  27293. delimiter = ';';
  27294. }
  27295. }
  27296. return serialized || null;
  27297. }
  27298. }
  27299. /**
  27300. * Sets the value for multiple styles on a node. If a value is specified as
  27301. * '' (empty string), the corresponding style property will be unset.
  27302. *
  27303. * @param {DOMElement} node
  27304. * @param {object} styles
  27305. */
  27306. function setValueForStyles(node, styles) {
  27307. var style = node.style;
  27308. for (var styleName in styles) {
  27309. if (!styles.hasOwnProperty(styleName)) {
  27310. continue;
  27311. }
  27312. var isCustomProperty = styleName.indexOf('--') === 0;
  27313. {
  27314. if (!isCustomProperty) {
  27315. warnValidStyle$1(styleName, styles[styleName]);
  27316. }
  27317. }
  27318. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  27319. if (styleName === 'float') {
  27320. styleName = 'cssFloat';
  27321. }
  27322. if (isCustomProperty) {
  27323. style.setProperty(styleName, styleValue);
  27324. } else {
  27325. style[styleName] = styleValue;
  27326. }
  27327. }
  27328. }
  27329. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  27330. // those special-case tags.
  27331. var omittedCloseTags = {
  27332. area: true,
  27333. base: true,
  27334. br: true,
  27335. col: true,
  27336. embed: true,
  27337. hr: true,
  27338. img: true,
  27339. input: true,
  27340. keygen: true,
  27341. link: true,
  27342. meta: true,
  27343. param: true,
  27344. source: true,
  27345. track: true,
  27346. wbr: true
  27347. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  27348. };
  27349. // For HTML, certain tags cannot have children. This has the same purpose as
  27350. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  27351. var voidElementTags = _assign({
  27352. menuitem: true
  27353. }, omittedCloseTags);
  27354. // TODO: We can remove this if we add invariantWithStack()
  27355. // or add stack by default to invariants where possible.
  27356. var HTML$1 = '__html';
  27357. var ReactDebugCurrentFrame$2 = null;
  27358. {
  27359. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  27360. }
  27361. function assertValidProps(tag, props) {
  27362. if (!props) {
  27363. return;
  27364. }
  27365. // Note the use of `==` which checks for null or undefined.
  27366. if (voidElementTags[tag]) {
  27367. !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  27368. }
  27369. if (props.dangerouslySetInnerHTML != null) {
  27370. !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;
  27371. !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
  27372. }
  27373. {
  27374. !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
  27375. }
  27376. !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  27377. }
  27378. function isCustomComponent(tagName, props) {
  27379. if (tagName.indexOf('-') === -1) {
  27380. return typeof props.is === 'string';
  27381. }
  27382. switch (tagName) {
  27383. // These are reserved SVG and MathML elements.
  27384. // We don't mind this whitelist too much because we expect it to never grow.
  27385. // The alternative is to track the namespace in a few places which is convoluted.
  27386. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  27387. case 'annotation-xml':
  27388. case 'color-profile':
  27389. case 'font-face':
  27390. case 'font-face-src':
  27391. case 'font-face-uri':
  27392. case 'font-face-format':
  27393. case 'font-face-name':
  27394. case 'missing-glyph':
  27395. return false;
  27396. default:
  27397. return true;
  27398. }
  27399. }
  27400. // When adding attributes to the HTML or SVG whitelist, be sure to
  27401. // also add them to this module to ensure casing and incorrect name
  27402. // warnings.
  27403. var possibleStandardNames = {
  27404. // HTML
  27405. accept: 'accept',
  27406. acceptcharset: 'acceptCharset',
  27407. 'accept-charset': 'acceptCharset',
  27408. accesskey: 'accessKey',
  27409. action: 'action',
  27410. allowfullscreen: 'allowFullScreen',
  27411. alt: 'alt',
  27412. as: 'as',
  27413. async: 'async',
  27414. autocapitalize: 'autoCapitalize',
  27415. autocomplete: 'autoComplete',
  27416. autocorrect: 'autoCorrect',
  27417. autofocus: 'autoFocus',
  27418. autoplay: 'autoPlay',
  27419. autosave: 'autoSave',
  27420. capture: 'capture',
  27421. cellpadding: 'cellPadding',
  27422. cellspacing: 'cellSpacing',
  27423. challenge: 'challenge',
  27424. charset: 'charSet',
  27425. checked: 'checked',
  27426. children: 'children',
  27427. cite: 'cite',
  27428. class: 'className',
  27429. classid: 'classID',
  27430. classname: 'className',
  27431. cols: 'cols',
  27432. colspan: 'colSpan',
  27433. content: 'content',
  27434. contenteditable: 'contentEditable',
  27435. contextmenu: 'contextMenu',
  27436. controls: 'controls',
  27437. controlslist: 'controlsList',
  27438. coords: 'coords',
  27439. crossorigin: 'crossOrigin',
  27440. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  27441. data: 'data',
  27442. datetime: 'dateTime',
  27443. default: 'default',
  27444. defaultchecked: 'defaultChecked',
  27445. defaultvalue: 'defaultValue',
  27446. defer: 'defer',
  27447. dir: 'dir',
  27448. disabled: 'disabled',
  27449. download: 'download',
  27450. draggable: 'draggable',
  27451. enctype: 'encType',
  27452. for: 'htmlFor',
  27453. form: 'form',
  27454. formmethod: 'formMethod',
  27455. formaction: 'formAction',
  27456. formenctype: 'formEncType',
  27457. formnovalidate: 'formNoValidate',
  27458. formtarget: 'formTarget',
  27459. frameborder: 'frameBorder',
  27460. headers: 'headers',
  27461. height: 'height',
  27462. hidden: 'hidden',
  27463. high: 'high',
  27464. href: 'href',
  27465. hreflang: 'hrefLang',
  27466. htmlfor: 'htmlFor',
  27467. httpequiv: 'httpEquiv',
  27468. 'http-equiv': 'httpEquiv',
  27469. icon: 'icon',
  27470. id: 'id',
  27471. innerhtml: 'innerHTML',
  27472. inputmode: 'inputMode',
  27473. integrity: 'integrity',
  27474. is: 'is',
  27475. itemid: 'itemID',
  27476. itemprop: 'itemProp',
  27477. itemref: 'itemRef',
  27478. itemscope: 'itemScope',
  27479. itemtype: 'itemType',
  27480. keyparams: 'keyParams',
  27481. keytype: 'keyType',
  27482. kind: 'kind',
  27483. label: 'label',
  27484. lang: 'lang',
  27485. list: 'list',
  27486. loop: 'loop',
  27487. low: 'low',
  27488. manifest: 'manifest',
  27489. marginwidth: 'marginWidth',
  27490. marginheight: 'marginHeight',
  27491. max: 'max',
  27492. maxlength: 'maxLength',
  27493. media: 'media',
  27494. mediagroup: 'mediaGroup',
  27495. method: 'method',
  27496. min: 'min',
  27497. minlength: 'minLength',
  27498. multiple: 'multiple',
  27499. muted: 'muted',
  27500. name: 'name',
  27501. nomodule: 'noModule',
  27502. nonce: 'nonce',
  27503. novalidate: 'noValidate',
  27504. open: 'open',
  27505. optimum: 'optimum',
  27506. pattern: 'pattern',
  27507. placeholder: 'placeholder',
  27508. playsinline: 'playsInline',
  27509. poster: 'poster',
  27510. preload: 'preload',
  27511. profile: 'profile',
  27512. radiogroup: 'radioGroup',
  27513. readonly: 'readOnly',
  27514. referrerpolicy: 'referrerPolicy',
  27515. rel: 'rel',
  27516. required: 'required',
  27517. reversed: 'reversed',
  27518. role: 'role',
  27519. rows: 'rows',
  27520. rowspan: 'rowSpan',
  27521. sandbox: 'sandbox',
  27522. scope: 'scope',
  27523. scoped: 'scoped',
  27524. scrolling: 'scrolling',
  27525. seamless: 'seamless',
  27526. selected: 'selected',
  27527. shape: 'shape',
  27528. size: 'size',
  27529. sizes: 'sizes',
  27530. span: 'span',
  27531. spellcheck: 'spellCheck',
  27532. src: 'src',
  27533. srcdoc: 'srcDoc',
  27534. srclang: 'srcLang',
  27535. srcset: 'srcSet',
  27536. start: 'start',
  27537. step: 'step',
  27538. style: 'style',
  27539. summary: 'summary',
  27540. tabindex: 'tabIndex',
  27541. target: 'target',
  27542. title: 'title',
  27543. type: 'type',
  27544. usemap: 'useMap',
  27545. value: 'value',
  27546. width: 'width',
  27547. wmode: 'wmode',
  27548. wrap: 'wrap',
  27549. // SVG
  27550. about: 'about',
  27551. accentheight: 'accentHeight',
  27552. 'accent-height': 'accentHeight',
  27553. accumulate: 'accumulate',
  27554. additive: 'additive',
  27555. alignmentbaseline: 'alignmentBaseline',
  27556. 'alignment-baseline': 'alignmentBaseline',
  27557. allowreorder: 'allowReorder',
  27558. alphabetic: 'alphabetic',
  27559. amplitude: 'amplitude',
  27560. arabicform: 'arabicForm',
  27561. 'arabic-form': 'arabicForm',
  27562. ascent: 'ascent',
  27563. attributename: 'attributeName',
  27564. attributetype: 'attributeType',
  27565. autoreverse: 'autoReverse',
  27566. azimuth: 'azimuth',
  27567. basefrequency: 'baseFrequency',
  27568. baselineshift: 'baselineShift',
  27569. 'baseline-shift': 'baselineShift',
  27570. baseprofile: 'baseProfile',
  27571. bbox: 'bbox',
  27572. begin: 'begin',
  27573. bias: 'bias',
  27574. by: 'by',
  27575. calcmode: 'calcMode',
  27576. capheight: 'capHeight',
  27577. 'cap-height': 'capHeight',
  27578. clip: 'clip',
  27579. clippath: 'clipPath',
  27580. 'clip-path': 'clipPath',
  27581. clippathunits: 'clipPathUnits',
  27582. cliprule: 'clipRule',
  27583. 'clip-rule': 'clipRule',
  27584. color: 'color',
  27585. colorinterpolation: 'colorInterpolation',
  27586. 'color-interpolation': 'colorInterpolation',
  27587. colorinterpolationfilters: 'colorInterpolationFilters',
  27588. 'color-interpolation-filters': 'colorInterpolationFilters',
  27589. colorprofile: 'colorProfile',
  27590. 'color-profile': 'colorProfile',
  27591. colorrendering: 'colorRendering',
  27592. 'color-rendering': 'colorRendering',
  27593. contentscripttype: 'contentScriptType',
  27594. contentstyletype: 'contentStyleType',
  27595. cursor: 'cursor',
  27596. cx: 'cx',
  27597. cy: 'cy',
  27598. d: 'd',
  27599. datatype: 'datatype',
  27600. decelerate: 'decelerate',
  27601. descent: 'descent',
  27602. diffuseconstant: 'diffuseConstant',
  27603. direction: 'direction',
  27604. display: 'display',
  27605. divisor: 'divisor',
  27606. dominantbaseline: 'dominantBaseline',
  27607. 'dominant-baseline': 'dominantBaseline',
  27608. dur: 'dur',
  27609. dx: 'dx',
  27610. dy: 'dy',
  27611. edgemode: 'edgeMode',
  27612. elevation: 'elevation',
  27613. enablebackground: 'enableBackground',
  27614. 'enable-background': 'enableBackground',
  27615. end: 'end',
  27616. exponent: 'exponent',
  27617. externalresourcesrequired: 'externalResourcesRequired',
  27618. fill: 'fill',
  27619. fillopacity: 'fillOpacity',
  27620. 'fill-opacity': 'fillOpacity',
  27621. fillrule: 'fillRule',
  27622. 'fill-rule': 'fillRule',
  27623. filter: 'filter',
  27624. filterres: 'filterRes',
  27625. filterunits: 'filterUnits',
  27626. floodopacity: 'floodOpacity',
  27627. 'flood-opacity': 'floodOpacity',
  27628. floodcolor: 'floodColor',
  27629. 'flood-color': 'floodColor',
  27630. focusable: 'focusable',
  27631. fontfamily: 'fontFamily',
  27632. 'font-family': 'fontFamily',
  27633. fontsize: 'fontSize',
  27634. 'font-size': 'fontSize',
  27635. fontsizeadjust: 'fontSizeAdjust',
  27636. 'font-size-adjust': 'fontSizeAdjust',
  27637. fontstretch: 'fontStretch',
  27638. 'font-stretch': 'fontStretch',
  27639. fontstyle: 'fontStyle',
  27640. 'font-style': 'fontStyle',
  27641. fontvariant: 'fontVariant',
  27642. 'font-variant': 'fontVariant',
  27643. fontweight: 'fontWeight',
  27644. 'font-weight': 'fontWeight',
  27645. format: 'format',
  27646. from: 'from',
  27647. fx: 'fx',
  27648. fy: 'fy',
  27649. g1: 'g1',
  27650. g2: 'g2',
  27651. glyphname: 'glyphName',
  27652. 'glyph-name': 'glyphName',
  27653. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  27654. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  27655. glyphorientationvertical: 'glyphOrientationVertical',
  27656. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  27657. glyphref: 'glyphRef',
  27658. gradienttransform: 'gradientTransform',
  27659. gradientunits: 'gradientUnits',
  27660. hanging: 'hanging',
  27661. horizadvx: 'horizAdvX',
  27662. 'horiz-adv-x': 'horizAdvX',
  27663. horizoriginx: 'horizOriginX',
  27664. 'horiz-origin-x': 'horizOriginX',
  27665. ideographic: 'ideographic',
  27666. imagerendering: 'imageRendering',
  27667. 'image-rendering': 'imageRendering',
  27668. in2: 'in2',
  27669. in: 'in',
  27670. inlist: 'inlist',
  27671. intercept: 'intercept',
  27672. k1: 'k1',
  27673. k2: 'k2',
  27674. k3: 'k3',
  27675. k4: 'k4',
  27676. k: 'k',
  27677. kernelmatrix: 'kernelMatrix',
  27678. kernelunitlength: 'kernelUnitLength',
  27679. kerning: 'kerning',
  27680. keypoints: 'keyPoints',
  27681. keysplines: 'keySplines',
  27682. keytimes: 'keyTimes',
  27683. lengthadjust: 'lengthAdjust',
  27684. letterspacing: 'letterSpacing',
  27685. 'letter-spacing': 'letterSpacing',
  27686. lightingcolor: 'lightingColor',
  27687. 'lighting-color': 'lightingColor',
  27688. limitingconeangle: 'limitingConeAngle',
  27689. local: 'local',
  27690. markerend: 'markerEnd',
  27691. 'marker-end': 'markerEnd',
  27692. markerheight: 'markerHeight',
  27693. markermid: 'markerMid',
  27694. 'marker-mid': 'markerMid',
  27695. markerstart: 'markerStart',
  27696. 'marker-start': 'markerStart',
  27697. markerunits: 'markerUnits',
  27698. markerwidth: 'markerWidth',
  27699. mask: 'mask',
  27700. maskcontentunits: 'maskContentUnits',
  27701. maskunits: 'maskUnits',
  27702. mathematical: 'mathematical',
  27703. mode: 'mode',
  27704. numoctaves: 'numOctaves',
  27705. offset: 'offset',
  27706. opacity: 'opacity',
  27707. operator: 'operator',
  27708. order: 'order',
  27709. orient: 'orient',
  27710. orientation: 'orientation',
  27711. origin: 'origin',
  27712. overflow: 'overflow',
  27713. overlineposition: 'overlinePosition',
  27714. 'overline-position': 'overlinePosition',
  27715. overlinethickness: 'overlineThickness',
  27716. 'overline-thickness': 'overlineThickness',
  27717. paintorder: 'paintOrder',
  27718. 'paint-order': 'paintOrder',
  27719. panose1: 'panose1',
  27720. 'panose-1': 'panose1',
  27721. pathlength: 'pathLength',
  27722. patterncontentunits: 'patternContentUnits',
  27723. patterntransform: 'patternTransform',
  27724. patternunits: 'patternUnits',
  27725. pointerevents: 'pointerEvents',
  27726. 'pointer-events': 'pointerEvents',
  27727. points: 'points',
  27728. pointsatx: 'pointsAtX',
  27729. pointsaty: 'pointsAtY',
  27730. pointsatz: 'pointsAtZ',
  27731. prefix: 'prefix',
  27732. preservealpha: 'preserveAlpha',
  27733. preserveaspectratio: 'preserveAspectRatio',
  27734. primitiveunits: 'primitiveUnits',
  27735. property: 'property',
  27736. r: 'r',
  27737. radius: 'radius',
  27738. refx: 'refX',
  27739. refy: 'refY',
  27740. renderingintent: 'renderingIntent',
  27741. 'rendering-intent': 'renderingIntent',
  27742. repeatcount: 'repeatCount',
  27743. repeatdur: 'repeatDur',
  27744. requiredextensions: 'requiredExtensions',
  27745. requiredfeatures: 'requiredFeatures',
  27746. resource: 'resource',
  27747. restart: 'restart',
  27748. result: 'result',
  27749. results: 'results',
  27750. rotate: 'rotate',
  27751. rx: 'rx',
  27752. ry: 'ry',
  27753. scale: 'scale',
  27754. security: 'security',
  27755. seed: 'seed',
  27756. shaperendering: 'shapeRendering',
  27757. 'shape-rendering': 'shapeRendering',
  27758. slope: 'slope',
  27759. spacing: 'spacing',
  27760. specularconstant: 'specularConstant',
  27761. specularexponent: 'specularExponent',
  27762. speed: 'speed',
  27763. spreadmethod: 'spreadMethod',
  27764. startoffset: 'startOffset',
  27765. stddeviation: 'stdDeviation',
  27766. stemh: 'stemh',
  27767. stemv: 'stemv',
  27768. stitchtiles: 'stitchTiles',
  27769. stopcolor: 'stopColor',
  27770. 'stop-color': 'stopColor',
  27771. stopopacity: 'stopOpacity',
  27772. 'stop-opacity': 'stopOpacity',
  27773. strikethroughposition: 'strikethroughPosition',
  27774. 'strikethrough-position': 'strikethroughPosition',
  27775. strikethroughthickness: 'strikethroughThickness',
  27776. 'strikethrough-thickness': 'strikethroughThickness',
  27777. string: 'string',
  27778. stroke: 'stroke',
  27779. strokedasharray: 'strokeDasharray',
  27780. 'stroke-dasharray': 'strokeDasharray',
  27781. strokedashoffset: 'strokeDashoffset',
  27782. 'stroke-dashoffset': 'strokeDashoffset',
  27783. strokelinecap: 'strokeLinecap',
  27784. 'stroke-linecap': 'strokeLinecap',
  27785. strokelinejoin: 'strokeLinejoin',
  27786. 'stroke-linejoin': 'strokeLinejoin',
  27787. strokemiterlimit: 'strokeMiterlimit',
  27788. 'stroke-miterlimit': 'strokeMiterlimit',
  27789. strokewidth: 'strokeWidth',
  27790. 'stroke-width': 'strokeWidth',
  27791. strokeopacity: 'strokeOpacity',
  27792. 'stroke-opacity': 'strokeOpacity',
  27793. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  27794. suppresshydrationwarning: 'suppressHydrationWarning',
  27795. surfacescale: 'surfaceScale',
  27796. systemlanguage: 'systemLanguage',
  27797. tablevalues: 'tableValues',
  27798. targetx: 'targetX',
  27799. targety: 'targetY',
  27800. textanchor: 'textAnchor',
  27801. 'text-anchor': 'textAnchor',
  27802. textdecoration: 'textDecoration',
  27803. 'text-decoration': 'textDecoration',
  27804. textlength: 'textLength',
  27805. textrendering: 'textRendering',
  27806. 'text-rendering': 'textRendering',
  27807. to: 'to',
  27808. transform: 'transform',
  27809. typeof: 'typeof',
  27810. u1: 'u1',
  27811. u2: 'u2',
  27812. underlineposition: 'underlinePosition',
  27813. 'underline-position': 'underlinePosition',
  27814. underlinethickness: 'underlineThickness',
  27815. 'underline-thickness': 'underlineThickness',
  27816. unicode: 'unicode',
  27817. unicodebidi: 'unicodeBidi',
  27818. 'unicode-bidi': 'unicodeBidi',
  27819. unicoderange: 'unicodeRange',
  27820. 'unicode-range': 'unicodeRange',
  27821. unitsperem: 'unitsPerEm',
  27822. 'units-per-em': 'unitsPerEm',
  27823. unselectable: 'unselectable',
  27824. valphabetic: 'vAlphabetic',
  27825. 'v-alphabetic': 'vAlphabetic',
  27826. values: 'values',
  27827. vectoreffect: 'vectorEffect',
  27828. 'vector-effect': 'vectorEffect',
  27829. version: 'version',
  27830. vertadvy: 'vertAdvY',
  27831. 'vert-adv-y': 'vertAdvY',
  27832. vertoriginx: 'vertOriginX',
  27833. 'vert-origin-x': 'vertOriginX',
  27834. vertoriginy: 'vertOriginY',
  27835. 'vert-origin-y': 'vertOriginY',
  27836. vhanging: 'vHanging',
  27837. 'v-hanging': 'vHanging',
  27838. videographic: 'vIdeographic',
  27839. 'v-ideographic': 'vIdeographic',
  27840. viewbox: 'viewBox',
  27841. viewtarget: 'viewTarget',
  27842. visibility: 'visibility',
  27843. vmathematical: 'vMathematical',
  27844. 'v-mathematical': 'vMathematical',
  27845. vocab: 'vocab',
  27846. widths: 'widths',
  27847. wordspacing: 'wordSpacing',
  27848. 'word-spacing': 'wordSpacing',
  27849. writingmode: 'writingMode',
  27850. 'writing-mode': 'writingMode',
  27851. x1: 'x1',
  27852. x2: 'x2',
  27853. x: 'x',
  27854. xchannelselector: 'xChannelSelector',
  27855. xheight: 'xHeight',
  27856. 'x-height': 'xHeight',
  27857. xlinkactuate: 'xlinkActuate',
  27858. 'xlink:actuate': 'xlinkActuate',
  27859. xlinkarcrole: 'xlinkArcrole',
  27860. 'xlink:arcrole': 'xlinkArcrole',
  27861. xlinkhref: 'xlinkHref',
  27862. 'xlink:href': 'xlinkHref',
  27863. xlinkrole: 'xlinkRole',
  27864. 'xlink:role': 'xlinkRole',
  27865. xlinkshow: 'xlinkShow',
  27866. 'xlink:show': 'xlinkShow',
  27867. xlinktitle: 'xlinkTitle',
  27868. 'xlink:title': 'xlinkTitle',
  27869. xlinktype: 'xlinkType',
  27870. 'xlink:type': 'xlinkType',
  27871. xmlbase: 'xmlBase',
  27872. 'xml:base': 'xmlBase',
  27873. xmllang: 'xmlLang',
  27874. 'xml:lang': 'xmlLang',
  27875. xmlns: 'xmlns',
  27876. 'xml:space': 'xmlSpace',
  27877. xmlnsxlink: 'xmlnsXlink',
  27878. 'xmlns:xlink': 'xmlnsXlink',
  27879. xmlspace: 'xmlSpace',
  27880. y1: 'y1',
  27881. y2: 'y2',
  27882. y: 'y',
  27883. ychannelselector: 'yChannelSelector',
  27884. z: 'z',
  27885. zoomandpan: 'zoomAndPan'
  27886. };
  27887. var ariaProperties = {
  27888. 'aria-current': 0, // state
  27889. 'aria-details': 0,
  27890. 'aria-disabled': 0, // state
  27891. 'aria-hidden': 0, // state
  27892. 'aria-invalid': 0, // state
  27893. 'aria-keyshortcuts': 0,
  27894. 'aria-label': 0,
  27895. 'aria-roledescription': 0,
  27896. // Widget Attributes
  27897. 'aria-autocomplete': 0,
  27898. 'aria-checked': 0,
  27899. 'aria-expanded': 0,
  27900. 'aria-haspopup': 0,
  27901. 'aria-level': 0,
  27902. 'aria-modal': 0,
  27903. 'aria-multiline': 0,
  27904. 'aria-multiselectable': 0,
  27905. 'aria-orientation': 0,
  27906. 'aria-placeholder': 0,
  27907. 'aria-pressed': 0,
  27908. 'aria-readonly': 0,
  27909. 'aria-required': 0,
  27910. 'aria-selected': 0,
  27911. 'aria-sort': 0,
  27912. 'aria-valuemax': 0,
  27913. 'aria-valuemin': 0,
  27914. 'aria-valuenow': 0,
  27915. 'aria-valuetext': 0,
  27916. // Live Region Attributes
  27917. 'aria-atomic': 0,
  27918. 'aria-busy': 0,
  27919. 'aria-live': 0,
  27920. 'aria-relevant': 0,
  27921. // Drag-and-Drop Attributes
  27922. 'aria-dropeffect': 0,
  27923. 'aria-grabbed': 0,
  27924. // Relationship Attributes
  27925. 'aria-activedescendant': 0,
  27926. 'aria-colcount': 0,
  27927. 'aria-colindex': 0,
  27928. 'aria-colspan': 0,
  27929. 'aria-controls': 0,
  27930. 'aria-describedby': 0,
  27931. 'aria-errormessage': 0,
  27932. 'aria-flowto': 0,
  27933. 'aria-labelledby': 0,
  27934. 'aria-owns': 0,
  27935. 'aria-posinset': 0,
  27936. 'aria-rowcount': 0,
  27937. 'aria-rowindex': 0,
  27938. 'aria-rowspan': 0,
  27939. 'aria-setsize': 0
  27940. };
  27941. var warnedProperties = {};
  27942. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  27943. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  27944. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  27945. function validateProperty(tagName, name) {
  27946. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  27947. return true;
  27948. }
  27949. if (rARIACamel.test(name)) {
  27950. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  27951. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  27952. // If this is an aria-* attribute, but is not listed in the known DOM
  27953. // DOM properties, then it is an invalid aria-* attribute.
  27954. if (correctName == null) {
  27955. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  27956. warnedProperties[name] = true;
  27957. return true;
  27958. }
  27959. // aria-* attributes should be lowercase; suggest the lowercase version.
  27960. if (name !== correctName) {
  27961. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  27962. warnedProperties[name] = true;
  27963. return true;
  27964. }
  27965. }
  27966. if (rARIA.test(name)) {
  27967. var lowerCasedName = name.toLowerCase();
  27968. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  27969. // If this is an aria-* attribute, but is not listed in the known DOM
  27970. // DOM properties, then it is an invalid aria-* attribute.
  27971. if (standardName == null) {
  27972. warnedProperties[name] = true;
  27973. return false;
  27974. }
  27975. // aria-* attributes should be lowercase; suggest the lowercase version.
  27976. if (name !== standardName) {
  27977. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  27978. warnedProperties[name] = true;
  27979. return true;
  27980. }
  27981. }
  27982. return true;
  27983. }
  27984. function warnInvalidARIAProps(type, props) {
  27985. var invalidProps = [];
  27986. for (var key in props) {
  27987. var isValid = validateProperty(type, key);
  27988. if (!isValid) {
  27989. invalidProps.push(key);
  27990. }
  27991. }
  27992. var unknownPropString = invalidProps.map(function (prop) {
  27993. return '`' + prop + '`';
  27994. }).join(', ');
  27995. if (invalidProps.length === 1) {
  27996. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  27997. } else if (invalidProps.length > 1) {
  27998. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  27999. }
  28000. }
  28001. function validateProperties(type, props) {
  28002. if (isCustomComponent(type, props)) {
  28003. return;
  28004. }
  28005. warnInvalidARIAProps(type, props);
  28006. }
  28007. var didWarnValueNull = false;
  28008. function validateProperties$1(type, props) {
  28009. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  28010. return;
  28011. }
  28012. if (props != null && props.value === null && !didWarnValueNull) {
  28013. didWarnValueNull = true;
  28014. if (type === 'select' && props.multiple) {
  28015. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
  28016. } else {
  28017. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  28018. }
  28019. }
  28020. }
  28021. var validateProperty$1 = function () {};
  28022. {
  28023. var warnedProperties$1 = {};
  28024. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  28025. var EVENT_NAME_REGEX = /^on./;
  28026. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  28027. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  28028. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  28029. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  28030. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  28031. return true;
  28032. }
  28033. var lowerCasedName = name.toLowerCase();
  28034. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  28035. warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
  28036. warnedProperties$1[name] = true;
  28037. return true;
  28038. }
  28039. // We can't rely on the event system being injected on the server.
  28040. if (canUseEventSystem) {
  28041. if (registrationNameModules.hasOwnProperty(name)) {
  28042. return true;
  28043. }
  28044. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  28045. if (registrationName != null) {
  28046. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  28047. warnedProperties$1[name] = true;
  28048. return true;
  28049. }
  28050. if (EVENT_NAME_REGEX.test(name)) {
  28051. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  28052. warnedProperties$1[name] = true;
  28053. return true;
  28054. }
  28055. } else if (EVENT_NAME_REGEX.test(name)) {
  28056. // If no event plugins have been injected, we are in a server environment.
  28057. // So we can't tell if the event name is correct for sure, but we can filter
  28058. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  28059. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  28060. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  28061. }
  28062. warnedProperties$1[name] = true;
  28063. return true;
  28064. }
  28065. // Let the ARIA attribute hook validate ARIA attributes
  28066. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  28067. return true;
  28068. }
  28069. if (lowerCasedName === 'innerhtml') {
  28070. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  28071. warnedProperties$1[name] = true;
  28072. return true;
  28073. }
  28074. if (lowerCasedName === 'aria') {
  28075. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  28076. warnedProperties$1[name] = true;
  28077. return true;
  28078. }
  28079. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  28080. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  28081. warnedProperties$1[name] = true;
  28082. return true;
  28083. }
  28084. if (typeof value === 'number' && isNaN(value)) {
  28085. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  28086. warnedProperties$1[name] = true;
  28087. return true;
  28088. }
  28089. var propertyInfo = getPropertyInfo(name);
  28090. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  28091. // Known attributes should match the casing specified in the property config.
  28092. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  28093. var standardName = possibleStandardNames[lowerCasedName];
  28094. if (standardName !== name) {
  28095. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  28096. warnedProperties$1[name] = true;
  28097. return true;
  28098. }
  28099. } else if (!isReserved && name !== lowerCasedName) {
  28100. // Unknown attributes should have lowercase casing since that's how they
  28101. // will be cased anyway with server rendering.
  28102. warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
  28103. warnedProperties$1[name] = true;
  28104. return true;
  28105. }
  28106. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  28107. if (value) {
  28108. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
  28109. } else {
  28110. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
  28111. }
  28112. warnedProperties$1[name] = true;
  28113. return true;
  28114. }
  28115. // Now that we've validated casing, do not validate
  28116. // data types for reserved props
  28117. if (isReserved) {
  28118. return true;
  28119. }
  28120. // Warn when a known attribute is a bad type
  28121. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  28122. warnedProperties$1[name] = true;
  28123. return false;
  28124. }
  28125. // Warn when passing the strings 'false' or 'true' into a boolean prop
  28126. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  28127. warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
  28128. warnedProperties$1[name] = true;
  28129. return true;
  28130. }
  28131. return true;
  28132. };
  28133. }
  28134. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  28135. var unknownProps = [];
  28136. for (var key in props) {
  28137. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  28138. if (!isValid) {
  28139. unknownProps.push(key);
  28140. }
  28141. }
  28142. var unknownPropString = unknownProps.map(function (prop) {
  28143. return '`' + prop + '`';
  28144. }).join(', ');
  28145. if (unknownProps.length === 1) {
  28146. warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  28147. } else if (unknownProps.length > 1) {
  28148. warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  28149. }
  28150. };
  28151. function validateProperties$2(type, props, canUseEventSystem) {
  28152. if (isCustomComponent(type, props)) {
  28153. return;
  28154. }
  28155. warnUnknownProperties(type, props, canUseEventSystem);
  28156. }
  28157. // TODO: direct imports like some-package/src/* are bad. Fix me.
  28158. var didWarnInvalidHydration = false;
  28159. var didWarnShadyDOM = false;
  28160. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  28161. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  28162. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  28163. var AUTOFOCUS = 'autoFocus';
  28164. var CHILDREN = 'children';
  28165. var STYLE$1 = 'style';
  28166. var HTML = '__html';
  28167. var HTML_NAMESPACE = Namespaces.html;
  28168. var warnedUnknownTags = void 0;
  28169. var suppressHydrationWarning = void 0;
  28170. var validatePropertiesInDevelopment = void 0;
  28171. var warnForTextDifference = void 0;
  28172. var warnForPropDifference = void 0;
  28173. var warnForExtraAttributes = void 0;
  28174. var warnForInvalidEventListener = void 0;
  28175. var canDiffStyleForHydrationWarning = void 0;
  28176. var normalizeMarkupForTextOrAttribute = void 0;
  28177. var normalizeHTML = void 0;
  28178. {
  28179. warnedUnknownTags = {
  28180. // Chrome is the only major browser not shipping <time>. But as of July
  28181. // 2017 it intends to ship it due to widespread usage. We intentionally
  28182. // *don't* warn for <time> even if it's unrecognized by Chrome because
  28183. // it soon will be, and many apps have been using it anyway.
  28184. time: true,
  28185. // There are working polyfills for <dialog>. Let people use it.
  28186. dialog: true,
  28187. // Electron ships a custom <webview> tag to display external web content in
  28188. // an isolated frame and process.
  28189. // This tag is not present in non Electron environments such as JSDom which
  28190. // is often used for testing purposes.
  28191. // @see https://electronjs.org/docs/api/webview-tag
  28192. webview: true
  28193. };
  28194. validatePropertiesInDevelopment = function (type, props) {
  28195. validateProperties(type, props);
  28196. validateProperties$1(type, props);
  28197. validateProperties$2(type, props, /* canUseEventSystem */true);
  28198. };
  28199. // IE 11 parses & normalizes the style attribute as opposed to other
  28200. // browsers. It adds spaces and sorts the properties in some
  28201. // non-alphabetical order. Handling that would require sorting CSS
  28202. // properties in the client & server versions or applying
  28203. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  28204. // normalized. Since it only affects IE, we're skipping style warnings
  28205. // in that browser completely in favor of doing all that work.
  28206. // See https://github.com/facebook/react/issues/11807
  28207. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  28208. // HTML parsing normalizes CR and CRLF to LF.
  28209. // It also can turn \u0000 into \uFFFD inside attributes.
  28210. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  28211. // If we have a mismatch, it might be caused by that.
  28212. // We will still patch up in this case but not fire the warning.
  28213. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  28214. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  28215. normalizeMarkupForTextOrAttribute = function (markup) {
  28216. var markupString = typeof markup === 'string' ? markup : '' + markup;
  28217. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  28218. };
  28219. warnForTextDifference = function (serverText, clientText) {
  28220. if (didWarnInvalidHydration) {
  28221. return;
  28222. }
  28223. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  28224. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  28225. if (normalizedServerText === normalizedClientText) {
  28226. return;
  28227. }
  28228. didWarnInvalidHydration = true;
  28229. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  28230. };
  28231. warnForPropDifference = function (propName, serverValue, clientValue) {
  28232. if (didWarnInvalidHydration) {
  28233. return;
  28234. }
  28235. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  28236. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  28237. if (normalizedServerValue === normalizedClientValue) {
  28238. return;
  28239. }
  28240. didWarnInvalidHydration = true;
  28241. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  28242. };
  28243. warnForExtraAttributes = function (attributeNames) {
  28244. if (didWarnInvalidHydration) {
  28245. return;
  28246. }
  28247. didWarnInvalidHydration = true;
  28248. var names = [];
  28249. attributeNames.forEach(function (name) {
  28250. names.push(name);
  28251. });
  28252. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  28253. };
  28254. warnForInvalidEventListener = function (registrationName, listener) {
  28255. if (listener === false) {
  28256. warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
  28257. } else {
  28258. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  28259. }
  28260. };
  28261. // Parse the HTML and read it back to normalize the HTML string so that it
  28262. // can be used for comparison.
  28263. normalizeHTML = function (parent, html) {
  28264. // We could have created a separate document here to avoid
  28265. // re-initializing custom elements if they exist. But this breaks
  28266. // how <noscript> is being handled. So we use the same document.
  28267. // See the discussion in https://github.com/facebook/react/pull/11157.
  28268. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  28269. testElement.innerHTML = html;
  28270. return testElement.innerHTML;
  28271. };
  28272. }
  28273. function ensureListeningTo(rootContainerElement, registrationName) {
  28274. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  28275. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  28276. listenTo(registrationName, doc);
  28277. }
  28278. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  28279. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  28280. }
  28281. function noop() {}
  28282. function trapClickOnNonInteractiveElement(node) {
  28283. // Mobile Safari does not fire properly bubble click events on
  28284. // non-interactive elements, which means delegated click listeners do not
  28285. // fire. The workaround for this bug involves attaching an empty click
  28286. // listener on the target node.
  28287. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  28288. // Just set it using the onclick property so that we don't have to manage any
  28289. // bookkeeping for it. Not sure if we need to clear it when the listener is
  28290. // removed.
  28291. // TODO: Only do this for the relevant Safaris maybe?
  28292. node.onclick = noop;
  28293. }
  28294. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  28295. for (var propKey in nextProps) {
  28296. if (!nextProps.hasOwnProperty(propKey)) {
  28297. continue;
  28298. }
  28299. var nextProp = nextProps[propKey];
  28300. if (propKey === STYLE$1) {
  28301. {
  28302. if (nextProp) {
  28303. // Freeze the next style object so that we can assume it won't be
  28304. // mutated. We have already warned for this in the past.
  28305. Object.freeze(nextProp);
  28306. }
  28307. }
  28308. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  28309. setValueForStyles(domElement, nextProp);
  28310. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28311. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  28312. if (nextHtml != null) {
  28313. setInnerHTML(domElement, nextHtml);
  28314. }
  28315. } else if (propKey === CHILDREN) {
  28316. if (typeof nextProp === 'string') {
  28317. // Avoid setting initial textContent when the text is empty. In IE11 setting
  28318. // textContent on a <textarea> will cause the placeholder to not
  28319. // show within the <textarea> until it has been focused and blurred again.
  28320. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  28321. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  28322. if (canSetTextContent) {
  28323. setTextContent(domElement, nextProp);
  28324. }
  28325. } else if (typeof nextProp === 'number') {
  28326. setTextContent(domElement, '' + nextProp);
  28327. }
  28328. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  28329. // Noop
  28330. } else if (propKey === AUTOFOCUS) {
  28331. // We polyfill it separately on the client during commit.
  28332. // We could have excluded it in the property list instead of
  28333. // adding a special case here, but then it wouldn't be emitted
  28334. // on server rendering (but we *do* want to emit it in SSR).
  28335. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28336. if (nextProp != null) {
  28337. if ( true && typeof nextProp !== 'function') {
  28338. warnForInvalidEventListener(propKey, nextProp);
  28339. }
  28340. ensureListeningTo(rootContainerElement, propKey);
  28341. }
  28342. } else if (nextProp != null) {
  28343. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  28344. }
  28345. }
  28346. }
  28347. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  28348. // TODO: Handle wasCustomComponentTag
  28349. for (var i = 0; i < updatePayload.length; i += 2) {
  28350. var propKey = updatePayload[i];
  28351. var propValue = updatePayload[i + 1];
  28352. if (propKey === STYLE$1) {
  28353. setValueForStyles(domElement, propValue);
  28354. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28355. setInnerHTML(domElement, propValue);
  28356. } else if (propKey === CHILDREN) {
  28357. setTextContent(domElement, propValue);
  28358. } else {
  28359. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  28360. }
  28361. }
  28362. }
  28363. function createElement(type, props, rootContainerElement, parentNamespace) {
  28364. var isCustomComponentTag = void 0;
  28365. // We create tags in the namespace of their parent container, except HTML
  28366. // tags get no namespace.
  28367. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  28368. var domElement = void 0;
  28369. var namespaceURI = parentNamespace;
  28370. if (namespaceURI === HTML_NAMESPACE) {
  28371. namespaceURI = getIntrinsicNamespace(type);
  28372. }
  28373. if (namespaceURI === HTML_NAMESPACE) {
  28374. {
  28375. isCustomComponentTag = isCustomComponent(type, props);
  28376. // Should this check be gated by parent namespace? Not sure we want to
  28377. // allow <SVG> or <mATH>.
  28378. !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
  28379. }
  28380. if (type === 'script') {
  28381. // Create the script via .innerHTML so its "parser-inserted" flag is
  28382. // set to true and it does not execute
  28383. var div = ownerDocument.createElement('div');
  28384. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  28385. // This is guaranteed to yield a script element.
  28386. var firstChild = div.firstChild;
  28387. domElement = div.removeChild(firstChild);
  28388. } else if (typeof props.is === 'string') {
  28389. // $FlowIssue `createElement` should be updated for Web Components
  28390. domElement = ownerDocument.createElement(type, { is: props.is });
  28391. } else {
  28392. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  28393. // See discussion in https://github.com/facebook/react/pull/6896
  28394. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  28395. domElement = ownerDocument.createElement(type);
  28396. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`
  28397. // attribute on `select`s needs to be added before `option`s are inserted. This prevents
  28398. // a bug where the `select` does not scroll to the correct option because singular
  28399. // `select` elements automatically pick the first item.
  28400. // See https://github.com/facebook/react/issues/13222
  28401. if (type === 'select' && props.multiple) {
  28402. var node = domElement;
  28403. node.multiple = true;
  28404. }
  28405. }
  28406. } else {
  28407. domElement = ownerDocument.createElementNS(namespaceURI, type);
  28408. }
  28409. {
  28410. if (namespaceURI === HTML_NAMESPACE) {
  28411. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  28412. warnedUnknownTags[type] = true;
  28413. warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  28414. }
  28415. }
  28416. }
  28417. return domElement;
  28418. }
  28419. function createTextNode(text, rootContainerElement) {
  28420. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  28421. }
  28422. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  28423. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  28424. {
  28425. validatePropertiesInDevelopment(tag, rawProps);
  28426. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  28427. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  28428. didWarnShadyDOM = true;
  28429. }
  28430. }
  28431. // TODO: Make sure that we check isMounted before firing any of these events.
  28432. var props = void 0;
  28433. switch (tag) {
  28434. case 'iframe':
  28435. case 'object':
  28436. trapBubbledEvent(TOP_LOAD, domElement);
  28437. props = rawProps;
  28438. break;
  28439. case 'video':
  28440. case 'audio':
  28441. // Create listener for each media event
  28442. for (var i = 0; i < mediaEventTypes.length; i++) {
  28443. trapBubbledEvent(mediaEventTypes[i], domElement);
  28444. }
  28445. props = rawProps;
  28446. break;
  28447. case 'source':
  28448. trapBubbledEvent(TOP_ERROR, domElement);
  28449. props = rawProps;
  28450. break;
  28451. case 'img':
  28452. case 'image':
  28453. case 'link':
  28454. trapBubbledEvent(TOP_ERROR, domElement);
  28455. trapBubbledEvent(TOP_LOAD, domElement);
  28456. props = rawProps;
  28457. break;
  28458. case 'form':
  28459. trapBubbledEvent(TOP_RESET, domElement);
  28460. trapBubbledEvent(TOP_SUBMIT, domElement);
  28461. props = rawProps;
  28462. break;
  28463. case 'details':
  28464. trapBubbledEvent(TOP_TOGGLE, domElement);
  28465. props = rawProps;
  28466. break;
  28467. case 'input':
  28468. initWrapperState(domElement, rawProps);
  28469. props = getHostProps(domElement, rawProps);
  28470. trapBubbledEvent(TOP_INVALID, domElement);
  28471. // For controlled components we always need to ensure we're listening
  28472. // to onChange. Even if there is no listener.
  28473. ensureListeningTo(rootContainerElement, 'onChange');
  28474. break;
  28475. case 'option':
  28476. validateProps(domElement, rawProps);
  28477. props = getHostProps$1(domElement, rawProps);
  28478. break;
  28479. case 'select':
  28480. initWrapperState$1(domElement, rawProps);
  28481. props = getHostProps$2(domElement, rawProps);
  28482. trapBubbledEvent(TOP_INVALID, domElement);
  28483. // For controlled components we always need to ensure we're listening
  28484. // to onChange. Even if there is no listener.
  28485. ensureListeningTo(rootContainerElement, 'onChange');
  28486. break;
  28487. case 'textarea':
  28488. initWrapperState$2(domElement, rawProps);
  28489. props = getHostProps$3(domElement, rawProps);
  28490. trapBubbledEvent(TOP_INVALID, domElement);
  28491. // For controlled components we always need to ensure we're listening
  28492. // to onChange. Even if there is no listener.
  28493. ensureListeningTo(rootContainerElement, 'onChange');
  28494. break;
  28495. default:
  28496. props = rawProps;
  28497. }
  28498. assertValidProps(tag, props);
  28499. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  28500. switch (tag) {
  28501. case 'input':
  28502. // TODO: Make sure we check if this is still unmounted or do any clean
  28503. // up necessary since we never stop tracking anymore.
  28504. track(domElement);
  28505. postMountWrapper(domElement, rawProps, false);
  28506. break;
  28507. case 'textarea':
  28508. // TODO: Make sure we check if this is still unmounted or do any clean
  28509. // up necessary since we never stop tracking anymore.
  28510. track(domElement);
  28511. postMountWrapper$3(domElement, rawProps);
  28512. break;
  28513. case 'option':
  28514. postMountWrapper$1(domElement, rawProps);
  28515. break;
  28516. case 'select':
  28517. postMountWrapper$2(domElement, rawProps);
  28518. break;
  28519. default:
  28520. if (typeof props.onClick === 'function') {
  28521. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28522. trapClickOnNonInteractiveElement(domElement);
  28523. }
  28524. break;
  28525. }
  28526. }
  28527. // Calculate the diff between the two objects.
  28528. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  28529. {
  28530. validatePropertiesInDevelopment(tag, nextRawProps);
  28531. }
  28532. var updatePayload = null;
  28533. var lastProps = void 0;
  28534. var nextProps = void 0;
  28535. switch (tag) {
  28536. case 'input':
  28537. lastProps = getHostProps(domElement, lastRawProps);
  28538. nextProps = getHostProps(domElement, nextRawProps);
  28539. updatePayload = [];
  28540. break;
  28541. case 'option':
  28542. lastProps = getHostProps$1(domElement, lastRawProps);
  28543. nextProps = getHostProps$1(domElement, nextRawProps);
  28544. updatePayload = [];
  28545. break;
  28546. case 'select':
  28547. lastProps = getHostProps$2(domElement, lastRawProps);
  28548. nextProps = getHostProps$2(domElement, nextRawProps);
  28549. updatePayload = [];
  28550. break;
  28551. case 'textarea':
  28552. lastProps = getHostProps$3(domElement, lastRawProps);
  28553. nextProps = getHostProps$3(domElement, nextRawProps);
  28554. updatePayload = [];
  28555. break;
  28556. default:
  28557. lastProps = lastRawProps;
  28558. nextProps = nextRawProps;
  28559. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  28560. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28561. trapClickOnNonInteractiveElement(domElement);
  28562. }
  28563. break;
  28564. }
  28565. assertValidProps(tag, nextProps);
  28566. var propKey = void 0;
  28567. var styleName = void 0;
  28568. var styleUpdates = null;
  28569. for (propKey in lastProps) {
  28570. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  28571. continue;
  28572. }
  28573. if (propKey === STYLE$1) {
  28574. var lastStyle = lastProps[propKey];
  28575. for (styleName in lastStyle) {
  28576. if (lastStyle.hasOwnProperty(styleName)) {
  28577. if (!styleUpdates) {
  28578. styleUpdates = {};
  28579. }
  28580. styleUpdates[styleName] = '';
  28581. }
  28582. }
  28583. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  28584. // Noop. This is handled by the clear text mechanism.
  28585. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  28586. // Noop
  28587. } else if (propKey === AUTOFOCUS) {
  28588. // Noop. It doesn't work on updates anyway.
  28589. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28590. // This is a special case. If any listener updates we need to ensure
  28591. // that the "current" fiber pointer gets updated so we need a commit
  28592. // to update this element.
  28593. if (!updatePayload) {
  28594. updatePayload = [];
  28595. }
  28596. } else {
  28597. // For all other deleted properties we add it to the queue. We use
  28598. // the whitelist in the commit phase instead.
  28599. (updatePayload = updatePayload || []).push(propKey, null);
  28600. }
  28601. }
  28602. for (propKey in nextProps) {
  28603. var nextProp = nextProps[propKey];
  28604. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  28605. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  28606. continue;
  28607. }
  28608. if (propKey === STYLE$1) {
  28609. {
  28610. if (nextProp) {
  28611. // Freeze the next style object so that we can assume it won't be
  28612. // mutated. We have already warned for this in the past.
  28613. Object.freeze(nextProp);
  28614. }
  28615. }
  28616. if (lastProp) {
  28617. // Unset styles on `lastProp` but not on `nextProp`.
  28618. for (styleName in lastProp) {
  28619. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  28620. if (!styleUpdates) {
  28621. styleUpdates = {};
  28622. }
  28623. styleUpdates[styleName] = '';
  28624. }
  28625. }
  28626. // Update styles that changed since `lastProp`.
  28627. for (styleName in nextProp) {
  28628. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  28629. if (!styleUpdates) {
  28630. styleUpdates = {};
  28631. }
  28632. styleUpdates[styleName] = nextProp[styleName];
  28633. }
  28634. }
  28635. } else {
  28636. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  28637. if (!styleUpdates) {
  28638. if (!updatePayload) {
  28639. updatePayload = [];
  28640. }
  28641. updatePayload.push(propKey, styleUpdates);
  28642. }
  28643. styleUpdates = nextProp;
  28644. }
  28645. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28646. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  28647. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  28648. if (nextHtml != null) {
  28649. if (lastHtml !== nextHtml) {
  28650. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  28651. }
  28652. } else {
  28653. // TODO: It might be too late to clear this if we have children
  28654. // inserted already.
  28655. }
  28656. } else if (propKey === CHILDREN) {
  28657. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  28658. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  28659. }
  28660. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  28661. // Noop
  28662. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28663. if (nextProp != null) {
  28664. // We eagerly listen to this even though we haven't committed yet.
  28665. if ( true && typeof nextProp !== 'function') {
  28666. warnForInvalidEventListener(propKey, nextProp);
  28667. }
  28668. ensureListeningTo(rootContainerElement, propKey);
  28669. }
  28670. if (!updatePayload && lastProp !== nextProp) {
  28671. // This is a special case. If any listener updates we need to ensure
  28672. // that the "current" props pointer gets updated so we need a commit
  28673. // to update this element.
  28674. updatePayload = [];
  28675. }
  28676. } else {
  28677. // For any other property we always add it to the queue and then we
  28678. // filter it out using the whitelist during the commit.
  28679. (updatePayload = updatePayload || []).push(propKey, nextProp);
  28680. }
  28681. }
  28682. if (styleUpdates) {
  28683. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  28684. }
  28685. return updatePayload;
  28686. }
  28687. // Apply the diff.
  28688. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  28689. // Update checked *before* name.
  28690. // In the middle of an update, it is possible to have multiple checked.
  28691. // When a checked radio tries to change name, browser makes another radio's checked false.
  28692. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  28693. updateChecked(domElement, nextRawProps);
  28694. }
  28695. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  28696. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  28697. // Apply the diff.
  28698. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  28699. // TODO: Ensure that an update gets scheduled if any of the special props
  28700. // changed.
  28701. switch (tag) {
  28702. case 'input':
  28703. // Update the wrapper around inputs *after* updating props. This has to
  28704. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  28705. // raise warnings and prevent the new value from being assigned.
  28706. updateWrapper(domElement, nextRawProps);
  28707. break;
  28708. case 'textarea':
  28709. updateWrapper$1(domElement, nextRawProps);
  28710. break;
  28711. case 'select':
  28712. // <select> value update needs to occur after <option> children
  28713. // reconciliation
  28714. postUpdateWrapper(domElement, nextRawProps);
  28715. break;
  28716. }
  28717. }
  28718. function getPossibleStandardName(propName) {
  28719. {
  28720. var lowerCasedName = propName.toLowerCase();
  28721. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  28722. return null;
  28723. }
  28724. return possibleStandardNames[lowerCasedName] || null;
  28725. }
  28726. return null;
  28727. }
  28728. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  28729. var isCustomComponentTag = void 0;
  28730. var extraAttributeNames = void 0;
  28731. {
  28732. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  28733. isCustomComponentTag = isCustomComponent(tag, rawProps);
  28734. validatePropertiesInDevelopment(tag, rawProps);
  28735. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  28736. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  28737. didWarnShadyDOM = true;
  28738. }
  28739. }
  28740. // TODO: Make sure that we check isMounted before firing any of these events.
  28741. switch (tag) {
  28742. case 'iframe':
  28743. case 'object':
  28744. trapBubbledEvent(TOP_LOAD, domElement);
  28745. break;
  28746. case 'video':
  28747. case 'audio':
  28748. // Create listener for each media event
  28749. for (var i = 0; i < mediaEventTypes.length; i++) {
  28750. trapBubbledEvent(mediaEventTypes[i], domElement);
  28751. }
  28752. break;
  28753. case 'source':
  28754. trapBubbledEvent(TOP_ERROR, domElement);
  28755. break;
  28756. case 'img':
  28757. case 'image':
  28758. case 'link':
  28759. trapBubbledEvent(TOP_ERROR, domElement);
  28760. trapBubbledEvent(TOP_LOAD, domElement);
  28761. break;
  28762. case 'form':
  28763. trapBubbledEvent(TOP_RESET, domElement);
  28764. trapBubbledEvent(TOP_SUBMIT, domElement);
  28765. break;
  28766. case 'details':
  28767. trapBubbledEvent(TOP_TOGGLE, domElement);
  28768. break;
  28769. case 'input':
  28770. initWrapperState(domElement, rawProps);
  28771. trapBubbledEvent(TOP_INVALID, domElement);
  28772. // For controlled components we always need to ensure we're listening
  28773. // to onChange. Even if there is no listener.
  28774. ensureListeningTo(rootContainerElement, 'onChange');
  28775. break;
  28776. case 'option':
  28777. validateProps(domElement, rawProps);
  28778. break;
  28779. case 'select':
  28780. initWrapperState$1(domElement, rawProps);
  28781. trapBubbledEvent(TOP_INVALID, domElement);
  28782. // For controlled components we always need to ensure we're listening
  28783. // to onChange. Even if there is no listener.
  28784. ensureListeningTo(rootContainerElement, 'onChange');
  28785. break;
  28786. case 'textarea':
  28787. initWrapperState$2(domElement, rawProps);
  28788. trapBubbledEvent(TOP_INVALID, domElement);
  28789. // For controlled components we always need to ensure we're listening
  28790. // to onChange. Even if there is no listener.
  28791. ensureListeningTo(rootContainerElement, 'onChange');
  28792. break;
  28793. }
  28794. assertValidProps(tag, rawProps);
  28795. {
  28796. extraAttributeNames = new Set();
  28797. var attributes = domElement.attributes;
  28798. for (var _i = 0; _i < attributes.length; _i++) {
  28799. var name = attributes[_i].name.toLowerCase();
  28800. switch (name) {
  28801. // Built-in SSR attribute is whitelisted
  28802. case 'data-reactroot':
  28803. break;
  28804. // Controlled attributes are not validated
  28805. // TODO: Only ignore them on controlled tags.
  28806. case 'value':
  28807. break;
  28808. case 'checked':
  28809. break;
  28810. case 'selected':
  28811. break;
  28812. default:
  28813. // Intentionally use the original name.
  28814. // See discussion in https://github.com/facebook/react/pull/10676.
  28815. extraAttributeNames.add(attributes[_i].name);
  28816. }
  28817. }
  28818. }
  28819. var updatePayload = null;
  28820. for (var propKey in rawProps) {
  28821. if (!rawProps.hasOwnProperty(propKey)) {
  28822. continue;
  28823. }
  28824. var nextProp = rawProps[propKey];
  28825. if (propKey === CHILDREN) {
  28826. // For text content children we compare against textContent. This
  28827. // might match additional HTML that is hidden when we read it using
  28828. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  28829. // satisfies our requirement. Our requirement is not to produce perfect
  28830. // HTML and attributes. Ideally we should preserve structure but it's
  28831. // ok not to if the visible content is still enough to indicate what
  28832. // even listeners these nodes might be wired up to.
  28833. // TODO: Warn if there is more than a single textNode as a child.
  28834. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  28835. if (typeof nextProp === 'string') {
  28836. if (domElement.textContent !== nextProp) {
  28837. if ( true && !suppressHydrationWarning) {
  28838. warnForTextDifference(domElement.textContent, nextProp);
  28839. }
  28840. updatePayload = [CHILDREN, nextProp];
  28841. }
  28842. } else if (typeof nextProp === 'number') {
  28843. if (domElement.textContent !== '' + nextProp) {
  28844. if ( true && !suppressHydrationWarning) {
  28845. warnForTextDifference(domElement.textContent, nextProp);
  28846. }
  28847. updatePayload = [CHILDREN, '' + nextProp];
  28848. }
  28849. }
  28850. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  28851. if (nextProp != null) {
  28852. if ( true && typeof nextProp !== 'function') {
  28853. warnForInvalidEventListener(propKey, nextProp);
  28854. }
  28855. ensureListeningTo(rootContainerElement, propKey);
  28856. }
  28857. } else if ( true &&
  28858. // Convince Flow we've calculated it (it's DEV-only in this method.)
  28859. typeof isCustomComponentTag === 'boolean') {
  28860. // Validate that the properties correspond to their expected values.
  28861. var serverValue = void 0;
  28862. var propertyInfo = getPropertyInfo(propKey);
  28863. if (suppressHydrationWarning) {
  28864. // Don't bother comparing. We're ignoring all these warnings.
  28865. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  28866. // Controlled attributes are not validated
  28867. // TODO: Only ignore them on controlled tags.
  28868. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  28869. // Noop
  28870. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  28871. var serverHTML = domElement.innerHTML;
  28872. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  28873. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  28874. if (expectedHTML !== serverHTML) {
  28875. warnForPropDifference(propKey, serverHTML, expectedHTML);
  28876. }
  28877. } else if (propKey === STYLE$1) {
  28878. // $FlowFixMe - Should be inferred as not undefined.
  28879. extraAttributeNames.delete(propKey);
  28880. if (canDiffStyleForHydrationWarning) {
  28881. var expectedStyle = createDangerousStringForStyles(nextProp);
  28882. serverValue = domElement.getAttribute('style');
  28883. if (expectedStyle !== serverValue) {
  28884. warnForPropDifference(propKey, serverValue, expectedStyle);
  28885. }
  28886. }
  28887. } else if (isCustomComponentTag) {
  28888. // $FlowFixMe - Should be inferred as not undefined.
  28889. extraAttributeNames.delete(propKey.toLowerCase());
  28890. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  28891. if (nextProp !== serverValue) {
  28892. warnForPropDifference(propKey, serverValue, nextProp);
  28893. }
  28894. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  28895. var isMismatchDueToBadCasing = false;
  28896. if (propertyInfo !== null) {
  28897. // $FlowFixMe - Should be inferred as not undefined.
  28898. extraAttributeNames.delete(propertyInfo.attributeName);
  28899. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  28900. } else {
  28901. var ownNamespace = parentNamespace;
  28902. if (ownNamespace === HTML_NAMESPACE) {
  28903. ownNamespace = getIntrinsicNamespace(tag);
  28904. }
  28905. if (ownNamespace === HTML_NAMESPACE) {
  28906. // $FlowFixMe - Should be inferred as not undefined.
  28907. extraAttributeNames.delete(propKey.toLowerCase());
  28908. } else {
  28909. var standardName = getPossibleStandardName(propKey);
  28910. if (standardName !== null && standardName !== propKey) {
  28911. // If an SVG prop is supplied with bad casing, it will
  28912. // be successfully parsed from HTML, but will produce a mismatch
  28913. // (and would be incorrectly rendered on the client).
  28914. // However, we already warn about bad casing elsewhere.
  28915. // So we'll skip the misleading extra mismatch warning in this case.
  28916. isMismatchDueToBadCasing = true;
  28917. // $FlowFixMe - Should be inferred as not undefined.
  28918. extraAttributeNames.delete(standardName);
  28919. }
  28920. // $FlowFixMe - Should be inferred as not undefined.
  28921. extraAttributeNames.delete(propKey);
  28922. }
  28923. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  28924. }
  28925. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  28926. warnForPropDifference(propKey, serverValue, nextProp);
  28927. }
  28928. }
  28929. }
  28930. }
  28931. {
  28932. // $FlowFixMe - Should be inferred as not undefined.
  28933. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  28934. // $FlowFixMe - Should be inferred as not undefined.
  28935. warnForExtraAttributes(extraAttributeNames);
  28936. }
  28937. }
  28938. switch (tag) {
  28939. case 'input':
  28940. // TODO: Make sure we check if this is still unmounted or do any clean
  28941. // up necessary since we never stop tracking anymore.
  28942. track(domElement);
  28943. postMountWrapper(domElement, rawProps, true);
  28944. break;
  28945. case 'textarea':
  28946. // TODO: Make sure we check if this is still unmounted or do any clean
  28947. // up necessary since we never stop tracking anymore.
  28948. track(domElement);
  28949. postMountWrapper$3(domElement, rawProps);
  28950. break;
  28951. case 'select':
  28952. case 'option':
  28953. // For input and textarea we current always set the value property at
  28954. // post mount to force it to diverge from attributes. However, for
  28955. // option and select we don't quite do the same thing and select
  28956. // is not resilient to the DOM state changing so we don't do that here.
  28957. // TODO: Consider not doing this for input and textarea.
  28958. break;
  28959. default:
  28960. if (typeof rawProps.onClick === 'function') {
  28961. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28962. trapClickOnNonInteractiveElement(domElement);
  28963. }
  28964. break;
  28965. }
  28966. return updatePayload;
  28967. }
  28968. function diffHydratedText(textNode, text) {
  28969. var isDifferent = textNode.nodeValue !== text;
  28970. return isDifferent;
  28971. }
  28972. function warnForUnmatchedText(textNode, text) {
  28973. {
  28974. warnForTextDifference(textNode.nodeValue, text);
  28975. }
  28976. }
  28977. function warnForDeletedHydratableElement(parentNode, child) {
  28978. {
  28979. if (didWarnInvalidHydration) {
  28980. return;
  28981. }
  28982. didWarnInvalidHydration = true;
  28983. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  28984. }
  28985. }
  28986. function warnForDeletedHydratableText(parentNode, child) {
  28987. {
  28988. if (didWarnInvalidHydration) {
  28989. return;
  28990. }
  28991. didWarnInvalidHydration = true;
  28992. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  28993. }
  28994. }
  28995. function warnForInsertedHydratedElement(parentNode, tag, props) {
  28996. {
  28997. if (didWarnInvalidHydration) {
  28998. return;
  28999. }
  29000. didWarnInvalidHydration = true;
  29001. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  29002. }
  29003. }
  29004. function warnForInsertedHydratedText(parentNode, text) {
  29005. {
  29006. if (text === '') {
  29007. // We expect to insert empty text nodes since they're not represented in
  29008. // the HTML.
  29009. // TODO: Remove this special case if we can just avoid inserting empty
  29010. // text nodes.
  29011. return;
  29012. }
  29013. if (didWarnInvalidHydration) {
  29014. return;
  29015. }
  29016. didWarnInvalidHydration = true;
  29017. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  29018. }
  29019. }
  29020. function restoreControlledState$1(domElement, tag, props) {
  29021. switch (tag) {
  29022. case 'input':
  29023. restoreControlledState(domElement, props);
  29024. return;
  29025. case 'textarea':
  29026. restoreControlledState$3(domElement, props);
  29027. return;
  29028. case 'select':
  29029. restoreControlledState$2(domElement, props);
  29030. return;
  29031. }
  29032. }
  29033. // TODO: direct imports like some-package/src/* are bad. Fix me.
  29034. var validateDOMNesting = function () {};
  29035. var updatedAncestorInfo = function () {};
  29036. {
  29037. // This validation code was written based on the HTML5 parsing spec:
  29038. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  29039. //
  29040. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  29041. // not clear what practical benefit doing so provides); instead, we warn only
  29042. // for cases where the parser will give a parse tree differing from what React
  29043. // intended. For example, <b><div></div></b> is invalid but we don't warn
  29044. // because it still parses correctly; we do warn for other cases like nested
  29045. // <p> tags where the beginning of the second element implicitly closes the
  29046. // first, causing a confusing mess.
  29047. // https://html.spec.whatwg.org/multipage/syntax.html#special
  29048. 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'];
  29049. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  29050. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  29051. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  29052. // TODO: Distinguish by namespace here -- for <title>, including it here
  29053. // errs on the side of fewer warnings
  29054. 'foreignObject', 'desc', 'title'];
  29055. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  29056. var buttonScopeTags = inScopeTags.concat(['button']);
  29057. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  29058. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  29059. var emptyAncestorInfo = {
  29060. current: null,
  29061. formTag: null,
  29062. aTagInScope: null,
  29063. buttonTagInScope: null,
  29064. nobrTagInScope: null,
  29065. pTagInButtonScope: null,
  29066. listItemTagAutoclosing: null,
  29067. dlItemTagAutoclosing: null
  29068. };
  29069. updatedAncestorInfo = function (oldInfo, tag) {
  29070. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  29071. var info = { tag: tag };
  29072. if (inScopeTags.indexOf(tag) !== -1) {
  29073. ancestorInfo.aTagInScope = null;
  29074. ancestorInfo.buttonTagInScope = null;
  29075. ancestorInfo.nobrTagInScope = null;
  29076. }
  29077. if (buttonScopeTags.indexOf(tag) !== -1) {
  29078. ancestorInfo.pTagInButtonScope = null;
  29079. }
  29080. // See rules for 'li', 'dd', 'dt' start tags in
  29081. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  29082. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  29083. ancestorInfo.listItemTagAutoclosing = null;
  29084. ancestorInfo.dlItemTagAutoclosing = null;
  29085. }
  29086. ancestorInfo.current = info;
  29087. if (tag === 'form') {
  29088. ancestorInfo.formTag = info;
  29089. }
  29090. if (tag === 'a') {
  29091. ancestorInfo.aTagInScope = info;
  29092. }
  29093. if (tag === 'button') {
  29094. ancestorInfo.buttonTagInScope = info;
  29095. }
  29096. if (tag === 'nobr') {
  29097. ancestorInfo.nobrTagInScope = info;
  29098. }
  29099. if (tag === 'p') {
  29100. ancestorInfo.pTagInButtonScope = info;
  29101. }
  29102. if (tag === 'li') {
  29103. ancestorInfo.listItemTagAutoclosing = info;
  29104. }
  29105. if (tag === 'dd' || tag === 'dt') {
  29106. ancestorInfo.dlItemTagAutoclosing = info;
  29107. }
  29108. return ancestorInfo;
  29109. };
  29110. /**
  29111. * Returns whether
  29112. */
  29113. var isTagValidWithParent = function (tag, parentTag) {
  29114. // First, let's check if we're in an unusual parsing mode...
  29115. switch (parentTag) {
  29116. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  29117. case 'select':
  29118. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  29119. case 'optgroup':
  29120. return tag === 'option' || tag === '#text';
  29121. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  29122. // but
  29123. case 'option':
  29124. return tag === '#text';
  29125. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  29126. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  29127. // No special behavior since these rules fall back to "in body" mode for
  29128. // all except special table nodes which cause bad parsing behavior anyway.
  29129. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  29130. case 'tr':
  29131. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  29132. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  29133. case 'tbody':
  29134. case 'thead':
  29135. case 'tfoot':
  29136. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  29137. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  29138. case 'colgroup':
  29139. return tag === 'col' || tag === 'template';
  29140. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  29141. case 'table':
  29142. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  29143. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  29144. case 'head':
  29145. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  29146. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  29147. case 'html':
  29148. return tag === 'head' || tag === 'body';
  29149. case '#document':
  29150. return tag === 'html';
  29151. }
  29152. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  29153. // where the parsing rules cause implicit opens or closes to be added.
  29154. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  29155. switch (tag) {
  29156. case 'h1':
  29157. case 'h2':
  29158. case 'h3':
  29159. case 'h4':
  29160. case 'h5':
  29161. case 'h6':
  29162. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  29163. case 'rp':
  29164. case 'rt':
  29165. return impliedEndTags.indexOf(parentTag) === -1;
  29166. case 'body':
  29167. case 'caption':
  29168. case 'col':
  29169. case 'colgroup':
  29170. case 'frame':
  29171. case 'head':
  29172. case 'html':
  29173. case 'tbody':
  29174. case 'td':
  29175. case 'tfoot':
  29176. case 'th':
  29177. case 'thead':
  29178. case 'tr':
  29179. // These tags are only valid with a few parents that have special child
  29180. // parsing rules -- if we're down here, then none of those matched and
  29181. // so we allow it only if we don't know what the parent is, as all other
  29182. // cases are invalid.
  29183. return parentTag == null;
  29184. }
  29185. return true;
  29186. };
  29187. /**
  29188. * Returns whether
  29189. */
  29190. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  29191. switch (tag) {
  29192. case 'address':
  29193. case 'article':
  29194. case 'aside':
  29195. case 'blockquote':
  29196. case 'center':
  29197. case 'details':
  29198. case 'dialog':
  29199. case 'dir':
  29200. case 'div':
  29201. case 'dl':
  29202. case 'fieldset':
  29203. case 'figcaption':
  29204. case 'figure':
  29205. case 'footer':
  29206. case 'header':
  29207. case 'hgroup':
  29208. case 'main':
  29209. case 'menu':
  29210. case 'nav':
  29211. case 'ol':
  29212. case 'p':
  29213. case 'section':
  29214. case 'summary':
  29215. case 'ul':
  29216. case 'pre':
  29217. case 'listing':
  29218. case 'table':
  29219. case 'hr':
  29220. case 'xmp':
  29221. case 'h1':
  29222. case 'h2':
  29223. case 'h3':
  29224. case 'h4':
  29225. case 'h5':
  29226. case 'h6':
  29227. return ancestorInfo.pTagInButtonScope;
  29228. case 'form':
  29229. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  29230. case 'li':
  29231. return ancestorInfo.listItemTagAutoclosing;
  29232. case 'dd':
  29233. case 'dt':
  29234. return ancestorInfo.dlItemTagAutoclosing;
  29235. case 'button':
  29236. return ancestorInfo.buttonTagInScope;
  29237. case 'a':
  29238. // Spec says something about storing a list of markers, but it sounds
  29239. // equivalent to this check.
  29240. return ancestorInfo.aTagInScope;
  29241. case 'nobr':
  29242. return ancestorInfo.nobrTagInScope;
  29243. }
  29244. return null;
  29245. };
  29246. var didWarn = {};
  29247. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  29248. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  29249. var parentInfo = ancestorInfo.current;
  29250. var parentTag = parentInfo && parentInfo.tag;
  29251. if (childText != null) {
  29252. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  29253. childTag = '#text';
  29254. }
  29255. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  29256. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  29257. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  29258. if (!invalidParentOrAncestor) {
  29259. return;
  29260. }
  29261. var ancestorTag = invalidParentOrAncestor.tag;
  29262. var addendum = getCurrentFiberStackInDev();
  29263. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  29264. if (didWarn[warnKey]) {
  29265. return;
  29266. }
  29267. didWarn[warnKey] = true;
  29268. var tagDisplayName = childTag;
  29269. var whitespaceInfo = '';
  29270. if (childTag === '#text') {
  29271. if (/\S/.test(childText)) {
  29272. tagDisplayName = 'Text nodes';
  29273. } else {
  29274. tagDisplayName = 'Whitespace text nodes';
  29275. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  29276. }
  29277. } else {
  29278. tagDisplayName = '<' + childTag + '>';
  29279. }
  29280. if (invalidParent) {
  29281. var info = '';
  29282. if (ancestorTag === 'table' && childTag === 'tr') {
  29283. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  29284. }
  29285. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  29286. } else {
  29287. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  29288. }
  29289. };
  29290. }
  29291. // Renderers that don't support persistence
  29292. // can re-export everything from this module.
  29293. function shim() {
  29294. invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');
  29295. }
  29296. // Persistence (when unsupported)
  29297. var supportsPersistence = false;
  29298. var cloneInstance = shim;
  29299. var createContainerChildSet = shim;
  29300. var appendChildToContainerChildSet = shim;
  29301. var finalizeContainerChildren = shim;
  29302. var replaceContainerChildren = shim;
  29303. var cloneHiddenInstance = shim;
  29304. var cloneUnhiddenInstance = shim;
  29305. var createHiddenTextInstance = shim;
  29306. var SUPPRESS_HYDRATION_WARNING = void 0;
  29307. {
  29308. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  29309. }
  29310. var STYLE = 'style';
  29311. var eventsEnabled = null;
  29312. var selectionInformation = null;
  29313. function shouldAutoFocusHostComponent(type, props) {
  29314. switch (type) {
  29315. case 'button':
  29316. case 'input':
  29317. case 'select':
  29318. case 'textarea':
  29319. return !!props.autoFocus;
  29320. }
  29321. return false;
  29322. }
  29323. function getRootHostContext(rootContainerInstance) {
  29324. var type = void 0;
  29325. var namespace = void 0;
  29326. var nodeType = rootContainerInstance.nodeType;
  29327. switch (nodeType) {
  29328. case DOCUMENT_NODE:
  29329. case DOCUMENT_FRAGMENT_NODE:
  29330. {
  29331. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  29332. var root = rootContainerInstance.documentElement;
  29333. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  29334. break;
  29335. }
  29336. default:
  29337. {
  29338. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  29339. var ownNamespace = container.namespaceURI || null;
  29340. type = container.tagName;
  29341. namespace = getChildNamespace(ownNamespace, type);
  29342. break;
  29343. }
  29344. }
  29345. {
  29346. var validatedTag = type.toLowerCase();
  29347. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  29348. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  29349. }
  29350. return namespace;
  29351. }
  29352. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  29353. {
  29354. var parentHostContextDev = parentHostContext;
  29355. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  29356. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  29357. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  29358. }
  29359. var parentNamespace = parentHostContext;
  29360. return getChildNamespace(parentNamespace, type);
  29361. }
  29362. function getPublicInstance(instance) {
  29363. return instance;
  29364. }
  29365. function prepareForCommit(containerInfo) {
  29366. eventsEnabled = isEnabled();
  29367. selectionInformation = getSelectionInformation();
  29368. setEnabled(false);
  29369. }
  29370. function resetAfterCommit(containerInfo) {
  29371. restoreSelection(selectionInformation);
  29372. selectionInformation = null;
  29373. setEnabled(eventsEnabled);
  29374. eventsEnabled = null;
  29375. }
  29376. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  29377. var parentNamespace = void 0;
  29378. {
  29379. // TODO: take namespace into account when validating.
  29380. var hostContextDev = hostContext;
  29381. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  29382. if (typeof props.children === 'string' || typeof props.children === 'number') {
  29383. var string = '' + props.children;
  29384. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  29385. validateDOMNesting(null, string, ownAncestorInfo);
  29386. }
  29387. parentNamespace = hostContextDev.namespace;
  29388. }
  29389. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  29390. precacheFiberNode(internalInstanceHandle, domElement);
  29391. updateFiberProps(domElement, props);
  29392. return domElement;
  29393. }
  29394. function appendInitialChild(parentInstance, child) {
  29395. parentInstance.appendChild(child);
  29396. }
  29397. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  29398. setInitialProperties(domElement, type, props, rootContainerInstance);
  29399. return shouldAutoFocusHostComponent(type, props);
  29400. }
  29401. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  29402. {
  29403. var hostContextDev = hostContext;
  29404. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  29405. var string = '' + newProps.children;
  29406. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  29407. validateDOMNesting(null, string, ownAncestorInfo);
  29408. }
  29409. }
  29410. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  29411. }
  29412. function shouldSetTextContent(type, props) {
  29413. 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;
  29414. }
  29415. function shouldDeprioritizeSubtree(type, props) {
  29416. return !!props.hidden;
  29417. }
  29418. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  29419. {
  29420. var hostContextDev = hostContext;
  29421. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  29422. }
  29423. var textNode = createTextNode(text, rootContainerInstance);
  29424. precacheFiberNode(internalInstanceHandle, textNode);
  29425. return textNode;
  29426. }
  29427. var isPrimaryRenderer = true;
  29428. // This initialization code may run even on server environments
  29429. // if a component just imports ReactDOM (e.g. for findDOMNode).
  29430. // Some environments might not have setTimeout or clearTimeout.
  29431. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  29432. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  29433. var noTimeout = -1;
  29434. // -------------------
  29435. // Mutation
  29436. // -------------------
  29437. var supportsMutation = true;
  29438. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  29439. // Despite the naming that might imply otherwise, this method only
  29440. // fires if there is an `Update` effect scheduled during mounting.
  29441. // This happens if `finalizeInitialChildren` returns `true` (which it
  29442. // does to implement the `autoFocus` attribute on the client). But
  29443. // there are also other cases when this might happen (such as patching
  29444. // up text content during hydration mismatch). So we'll check this again.
  29445. if (shouldAutoFocusHostComponent(type, newProps)) {
  29446. domElement.focus();
  29447. }
  29448. }
  29449. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  29450. // Update the props handle so that we know which props are the ones with
  29451. // with current event handlers.
  29452. updateFiberProps(domElement, newProps);
  29453. // Apply the diff to the DOM node.
  29454. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  29455. }
  29456. function resetTextContent(domElement) {
  29457. setTextContent(domElement, '');
  29458. }
  29459. function commitTextUpdate(textInstance, oldText, newText) {
  29460. textInstance.nodeValue = newText;
  29461. }
  29462. function appendChild(parentInstance, child) {
  29463. parentInstance.appendChild(child);
  29464. }
  29465. function appendChildToContainer(container, child) {
  29466. var parentNode = void 0;
  29467. if (container.nodeType === COMMENT_NODE) {
  29468. parentNode = container.parentNode;
  29469. parentNode.insertBefore(child, container);
  29470. } else {
  29471. parentNode = container;
  29472. parentNode.appendChild(child);
  29473. }
  29474. // This container might be used for a portal.
  29475. // If something inside a portal is clicked, that click should bubble
  29476. // through the React tree. However, on Mobile Safari the click would
  29477. // never bubble through the *DOM* tree unless an ancestor with onclick
  29478. // event exists. So we wouldn't see it and dispatch it.
  29479. // This is why we ensure that non React root containers have inline onclick
  29480. // defined.
  29481. // https://github.com/facebook/react/issues/11918
  29482. var reactRootContainer = container._reactRootContainer;
  29483. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  29484. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  29485. trapClickOnNonInteractiveElement(parentNode);
  29486. }
  29487. }
  29488. function insertBefore(parentInstance, child, beforeChild) {
  29489. parentInstance.insertBefore(child, beforeChild);
  29490. }
  29491. function insertInContainerBefore(container, child, beforeChild) {
  29492. if (container.nodeType === COMMENT_NODE) {
  29493. container.parentNode.insertBefore(child, beforeChild);
  29494. } else {
  29495. container.insertBefore(child, beforeChild);
  29496. }
  29497. }
  29498. function removeChild(parentInstance, child) {
  29499. parentInstance.removeChild(child);
  29500. }
  29501. function removeChildFromContainer(container, child) {
  29502. if (container.nodeType === COMMENT_NODE) {
  29503. container.parentNode.removeChild(child);
  29504. } else {
  29505. container.removeChild(child);
  29506. }
  29507. }
  29508. function hideInstance(instance) {
  29509. // TODO: Does this work for all element types? What about MathML? Should we
  29510. // pass host context to this method?
  29511. instance = instance;
  29512. instance.style.display = 'none';
  29513. }
  29514. function hideTextInstance(textInstance) {
  29515. textInstance.nodeValue = '';
  29516. }
  29517. function unhideInstance(instance, props) {
  29518. instance = instance;
  29519. var styleProp = props[STYLE];
  29520. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  29521. instance.style.display = dangerousStyleValue('display', display);
  29522. }
  29523. function unhideTextInstance(textInstance, text) {
  29524. textInstance.nodeValue = text;
  29525. }
  29526. // -------------------
  29527. // Hydration
  29528. // -------------------
  29529. var supportsHydration = true;
  29530. function canHydrateInstance(instance, type, props) {
  29531. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  29532. return null;
  29533. }
  29534. // This has now been refined to an element node.
  29535. return instance;
  29536. }
  29537. function canHydrateTextInstance(instance, text) {
  29538. if (text === '' || instance.nodeType !== TEXT_NODE) {
  29539. // Empty strings are not parsed by HTML so there won't be a correct match here.
  29540. return null;
  29541. }
  29542. // This has now been refined to a text node.
  29543. return instance;
  29544. }
  29545. function getNextHydratableSibling(instance) {
  29546. var node = instance.nextSibling;
  29547. // Skip non-hydratable nodes.
  29548. while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) {
  29549. node = node.nextSibling;
  29550. }
  29551. return node;
  29552. }
  29553. function getFirstHydratableChild(parentInstance) {
  29554. var next = parentInstance.firstChild;
  29555. // Skip non-hydratable nodes.
  29556. while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) {
  29557. next = next.nextSibling;
  29558. }
  29559. return next;
  29560. }
  29561. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  29562. precacheFiberNode(internalInstanceHandle, instance);
  29563. // TODO: Possibly defer this until the commit phase where all the events
  29564. // get attached.
  29565. updateFiberProps(instance, props);
  29566. var parentNamespace = void 0;
  29567. {
  29568. var hostContextDev = hostContext;
  29569. parentNamespace = hostContextDev.namespace;
  29570. }
  29571. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  29572. }
  29573. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  29574. precacheFiberNode(internalInstanceHandle, textInstance);
  29575. return diffHydratedText(textInstance, text);
  29576. }
  29577. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  29578. {
  29579. warnForUnmatchedText(textInstance, text);
  29580. }
  29581. }
  29582. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  29583. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29584. warnForUnmatchedText(textInstance, text);
  29585. }
  29586. }
  29587. function didNotHydrateContainerInstance(parentContainer, instance) {
  29588. {
  29589. if (instance.nodeType === ELEMENT_NODE) {
  29590. warnForDeletedHydratableElement(parentContainer, instance);
  29591. } else {
  29592. warnForDeletedHydratableText(parentContainer, instance);
  29593. }
  29594. }
  29595. }
  29596. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  29597. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29598. if (instance.nodeType === ELEMENT_NODE) {
  29599. warnForDeletedHydratableElement(parentInstance, instance);
  29600. } else {
  29601. warnForDeletedHydratableText(parentInstance, instance);
  29602. }
  29603. }
  29604. }
  29605. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  29606. {
  29607. warnForInsertedHydratedElement(parentContainer, type, props);
  29608. }
  29609. }
  29610. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  29611. {
  29612. warnForInsertedHydratedText(parentContainer, text);
  29613. }
  29614. }
  29615. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  29616. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29617. warnForInsertedHydratedElement(parentInstance, type, props);
  29618. }
  29619. }
  29620. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  29621. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  29622. warnForInsertedHydratedText(parentInstance, text);
  29623. }
  29624. }
  29625. // Prefix measurements so that it's possible to filter them.
  29626. // Longer prefixes are hard to read in DevTools.
  29627. var reactEmoji = '\u269B';
  29628. var warningEmoji = '\u26D4';
  29629. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  29630. // Keep track of current fiber so that we know the path to unwind on pause.
  29631. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  29632. var currentFiber = null;
  29633. // If we're in the middle of user code, which fiber and method is it?
  29634. // Reusing `currentFiber` would be confusing for this because user code fiber
  29635. // can change during commit phase too, but we don't need to unwind it (since
  29636. // lifecycles in the commit phase don't resemble a tree).
  29637. var currentPhase = null;
  29638. var currentPhaseFiber = null;
  29639. // Did lifecycle hook schedule an update? This is often a performance problem,
  29640. // so we will keep track of it, and include it in the report.
  29641. // Track commits caused by cascading updates.
  29642. var isCommitting = false;
  29643. var hasScheduledUpdateInCurrentCommit = false;
  29644. var hasScheduledUpdateInCurrentPhase = false;
  29645. var commitCountInCurrentWorkLoop = 0;
  29646. var effectCountInCurrentCommit = 0;
  29647. var isWaitingForCallback = false;
  29648. // During commits, we only show a measurement once per method name
  29649. // to avoid stretch the commit phase with measurement overhead.
  29650. var labelsInCurrentCommit = new Set();
  29651. var formatMarkName = function (markName) {
  29652. return reactEmoji + ' ' + markName;
  29653. };
  29654. var formatLabel = function (label, warning) {
  29655. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  29656. var suffix = warning ? ' Warning: ' + warning : '';
  29657. return '' + prefix + label + suffix;
  29658. };
  29659. var beginMark = function (markName) {
  29660. performance.mark(formatMarkName(markName));
  29661. };
  29662. var clearMark = function (markName) {
  29663. performance.clearMarks(formatMarkName(markName));
  29664. };
  29665. var endMark = function (label, markName, warning) {
  29666. var formattedMarkName = formatMarkName(markName);
  29667. var formattedLabel = formatLabel(label, warning);
  29668. try {
  29669. performance.measure(formattedLabel, formattedMarkName);
  29670. } catch (err) {}
  29671. // If previous mark was missing for some reason, this will throw.
  29672. // This could only happen if React crashed in an unexpected place earlier.
  29673. // Don't pile on with more errors.
  29674. // Clear marks immediately to avoid growing buffer.
  29675. performance.clearMarks(formattedMarkName);
  29676. performance.clearMeasures(formattedLabel);
  29677. };
  29678. var getFiberMarkName = function (label, debugID) {
  29679. return label + ' (#' + debugID + ')';
  29680. };
  29681. var getFiberLabel = function (componentName, isMounted, phase) {
  29682. if (phase === null) {
  29683. // These are composite component total time measurements.
  29684. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  29685. } else {
  29686. // Composite component methods.
  29687. return componentName + '.' + phase;
  29688. }
  29689. };
  29690. var beginFiberMark = function (fiber, phase) {
  29691. var componentName = getComponentName(fiber.type) || 'Unknown';
  29692. var debugID = fiber._debugID;
  29693. var isMounted = fiber.alternate !== null;
  29694. var label = getFiberLabel(componentName, isMounted, phase);
  29695. if (isCommitting && labelsInCurrentCommit.has(label)) {
  29696. // During the commit phase, we don't show duplicate labels because
  29697. // there is a fixed overhead for every measurement, and we don't
  29698. // want to stretch the commit phase beyond necessary.
  29699. return false;
  29700. }
  29701. labelsInCurrentCommit.add(label);
  29702. var markName = getFiberMarkName(label, debugID);
  29703. beginMark(markName);
  29704. return true;
  29705. };
  29706. var clearFiberMark = function (fiber, phase) {
  29707. var componentName = getComponentName(fiber.type) || 'Unknown';
  29708. var debugID = fiber._debugID;
  29709. var isMounted = fiber.alternate !== null;
  29710. var label = getFiberLabel(componentName, isMounted, phase);
  29711. var markName = getFiberMarkName(label, debugID);
  29712. clearMark(markName);
  29713. };
  29714. var endFiberMark = function (fiber, phase, warning) {
  29715. var componentName = getComponentName(fiber.type) || 'Unknown';
  29716. var debugID = fiber._debugID;
  29717. var isMounted = fiber.alternate !== null;
  29718. var label = getFiberLabel(componentName, isMounted, phase);
  29719. var markName = getFiberMarkName(label, debugID);
  29720. endMark(label, markName, warning);
  29721. };
  29722. var shouldIgnoreFiber = function (fiber) {
  29723. // Host components should be skipped in the timeline.
  29724. // We could check typeof fiber.type, but does this work with RN?
  29725. switch (fiber.tag) {
  29726. case HostRoot:
  29727. case HostComponent:
  29728. case HostText:
  29729. case HostPortal:
  29730. case Fragment:
  29731. case ContextProvider:
  29732. case ContextConsumer:
  29733. case Mode:
  29734. return true;
  29735. default:
  29736. return false;
  29737. }
  29738. };
  29739. var clearPendingPhaseMeasurement = function () {
  29740. if (currentPhase !== null && currentPhaseFiber !== null) {
  29741. clearFiberMark(currentPhaseFiber, currentPhase);
  29742. }
  29743. currentPhaseFiber = null;
  29744. currentPhase = null;
  29745. hasScheduledUpdateInCurrentPhase = false;
  29746. };
  29747. var pauseTimers = function () {
  29748. // Stops all currently active measurements so that they can be resumed
  29749. // if we continue in a later deferred loop from the same unit of work.
  29750. var fiber = currentFiber;
  29751. while (fiber) {
  29752. if (fiber._debugIsCurrentlyTiming) {
  29753. endFiberMark(fiber, null, null);
  29754. }
  29755. fiber = fiber.return;
  29756. }
  29757. };
  29758. var resumeTimersRecursively = function (fiber) {
  29759. if (fiber.return !== null) {
  29760. resumeTimersRecursively(fiber.return);
  29761. }
  29762. if (fiber._debugIsCurrentlyTiming) {
  29763. beginFiberMark(fiber, null);
  29764. }
  29765. };
  29766. var resumeTimers = function () {
  29767. // Resumes all measurements that were active during the last deferred loop.
  29768. if (currentFiber !== null) {
  29769. resumeTimersRecursively(currentFiber);
  29770. }
  29771. };
  29772. function recordEffect() {
  29773. if (enableUserTimingAPI) {
  29774. effectCountInCurrentCommit++;
  29775. }
  29776. }
  29777. function recordScheduleUpdate() {
  29778. if (enableUserTimingAPI) {
  29779. if (isCommitting) {
  29780. hasScheduledUpdateInCurrentCommit = true;
  29781. }
  29782. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  29783. hasScheduledUpdateInCurrentPhase = true;
  29784. }
  29785. }
  29786. }
  29787. function startRequestCallbackTimer() {
  29788. if (enableUserTimingAPI) {
  29789. if (supportsUserTiming && !isWaitingForCallback) {
  29790. isWaitingForCallback = true;
  29791. beginMark('(Waiting for async callback...)');
  29792. }
  29793. }
  29794. }
  29795. function stopRequestCallbackTimer(didExpire, expirationTime) {
  29796. if (enableUserTimingAPI) {
  29797. if (supportsUserTiming) {
  29798. isWaitingForCallback = false;
  29799. var warning = didExpire ? 'React was blocked by main thread' : null;
  29800. endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);
  29801. }
  29802. }
  29803. }
  29804. function startWorkTimer(fiber) {
  29805. if (enableUserTimingAPI) {
  29806. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29807. return;
  29808. }
  29809. // If we pause, this is the fiber to unwind from.
  29810. currentFiber = fiber;
  29811. if (!beginFiberMark(fiber, null)) {
  29812. return;
  29813. }
  29814. fiber._debugIsCurrentlyTiming = true;
  29815. }
  29816. }
  29817. function cancelWorkTimer(fiber) {
  29818. if (enableUserTimingAPI) {
  29819. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29820. return;
  29821. }
  29822. // Remember we shouldn't complete measurement for this fiber.
  29823. // Otherwise flamechart will be deep even for small updates.
  29824. fiber._debugIsCurrentlyTiming = false;
  29825. clearFiberMark(fiber, null);
  29826. }
  29827. }
  29828. function stopWorkTimer(fiber) {
  29829. if (enableUserTimingAPI) {
  29830. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29831. return;
  29832. }
  29833. // If we pause, its parent is the fiber to unwind from.
  29834. currentFiber = fiber.return;
  29835. if (!fiber._debugIsCurrentlyTiming) {
  29836. return;
  29837. }
  29838. fiber._debugIsCurrentlyTiming = false;
  29839. endFiberMark(fiber, null, null);
  29840. }
  29841. }
  29842. function stopFailedWorkTimer(fiber) {
  29843. if (enableUserTimingAPI) {
  29844. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  29845. return;
  29846. }
  29847. // If we pause, its parent is the fiber to unwind from.
  29848. currentFiber = fiber.return;
  29849. if (!fiber._debugIsCurrentlyTiming) {
  29850. return;
  29851. }
  29852. fiber._debugIsCurrentlyTiming = false;
  29853. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  29854. endFiberMark(fiber, null, warning);
  29855. }
  29856. }
  29857. function startPhaseTimer(fiber, phase) {
  29858. if (enableUserTimingAPI) {
  29859. if (!supportsUserTiming) {
  29860. return;
  29861. }
  29862. clearPendingPhaseMeasurement();
  29863. if (!beginFiberMark(fiber, phase)) {
  29864. return;
  29865. }
  29866. currentPhaseFiber = fiber;
  29867. currentPhase = phase;
  29868. }
  29869. }
  29870. function stopPhaseTimer() {
  29871. if (enableUserTimingAPI) {
  29872. if (!supportsUserTiming) {
  29873. return;
  29874. }
  29875. if (currentPhase !== null && currentPhaseFiber !== null) {
  29876. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  29877. endFiberMark(currentPhaseFiber, currentPhase, warning);
  29878. }
  29879. currentPhase = null;
  29880. currentPhaseFiber = null;
  29881. }
  29882. }
  29883. function startWorkLoopTimer(nextUnitOfWork) {
  29884. if (enableUserTimingAPI) {
  29885. currentFiber = nextUnitOfWork;
  29886. if (!supportsUserTiming) {
  29887. return;
  29888. }
  29889. commitCountInCurrentWorkLoop = 0;
  29890. // This is top level call.
  29891. // Any other measurements are performed within.
  29892. beginMark('(React Tree Reconciliation)');
  29893. // Resume any measurements that were in progress during the last loop.
  29894. resumeTimers();
  29895. }
  29896. }
  29897. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  29898. if (enableUserTimingAPI) {
  29899. if (!supportsUserTiming) {
  29900. return;
  29901. }
  29902. var warning = null;
  29903. if (interruptedBy !== null) {
  29904. if (interruptedBy.tag === HostRoot) {
  29905. warning = 'A top-level update interrupted the previous render';
  29906. } else {
  29907. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  29908. warning = 'An update to ' + componentName + ' interrupted the previous render';
  29909. }
  29910. } else if (commitCountInCurrentWorkLoop > 1) {
  29911. warning = 'There were cascading updates';
  29912. }
  29913. commitCountInCurrentWorkLoop = 0;
  29914. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  29915. // Pause any measurements until the next loop.
  29916. pauseTimers();
  29917. endMark(label, '(React Tree Reconciliation)', warning);
  29918. }
  29919. }
  29920. function startCommitTimer() {
  29921. if (enableUserTimingAPI) {
  29922. if (!supportsUserTiming) {
  29923. return;
  29924. }
  29925. isCommitting = true;
  29926. hasScheduledUpdateInCurrentCommit = false;
  29927. labelsInCurrentCommit.clear();
  29928. beginMark('(Committing Changes)');
  29929. }
  29930. }
  29931. function stopCommitTimer() {
  29932. if (enableUserTimingAPI) {
  29933. if (!supportsUserTiming) {
  29934. return;
  29935. }
  29936. var warning = null;
  29937. if (hasScheduledUpdateInCurrentCommit) {
  29938. warning = 'Lifecycle hook scheduled a cascading update';
  29939. } else if (commitCountInCurrentWorkLoop > 0) {
  29940. warning = 'Caused by a cascading update in earlier commit';
  29941. }
  29942. hasScheduledUpdateInCurrentCommit = false;
  29943. commitCountInCurrentWorkLoop++;
  29944. isCommitting = false;
  29945. labelsInCurrentCommit.clear();
  29946. endMark('(Committing Changes)', '(Committing Changes)', warning);
  29947. }
  29948. }
  29949. function startCommitSnapshotEffectsTimer() {
  29950. if (enableUserTimingAPI) {
  29951. if (!supportsUserTiming) {
  29952. return;
  29953. }
  29954. effectCountInCurrentCommit = 0;
  29955. beginMark('(Committing Snapshot Effects)');
  29956. }
  29957. }
  29958. function stopCommitSnapshotEffectsTimer() {
  29959. if (enableUserTimingAPI) {
  29960. if (!supportsUserTiming) {
  29961. return;
  29962. }
  29963. var count = effectCountInCurrentCommit;
  29964. effectCountInCurrentCommit = 0;
  29965. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  29966. }
  29967. }
  29968. function startCommitHostEffectsTimer() {
  29969. if (enableUserTimingAPI) {
  29970. if (!supportsUserTiming) {
  29971. return;
  29972. }
  29973. effectCountInCurrentCommit = 0;
  29974. beginMark('(Committing Host Effects)');
  29975. }
  29976. }
  29977. function stopCommitHostEffectsTimer() {
  29978. if (enableUserTimingAPI) {
  29979. if (!supportsUserTiming) {
  29980. return;
  29981. }
  29982. var count = effectCountInCurrentCommit;
  29983. effectCountInCurrentCommit = 0;
  29984. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  29985. }
  29986. }
  29987. function startCommitLifeCyclesTimer() {
  29988. if (enableUserTimingAPI) {
  29989. if (!supportsUserTiming) {
  29990. return;
  29991. }
  29992. effectCountInCurrentCommit = 0;
  29993. beginMark('(Calling Lifecycle Methods)');
  29994. }
  29995. }
  29996. function stopCommitLifeCyclesTimer() {
  29997. if (enableUserTimingAPI) {
  29998. if (!supportsUserTiming) {
  29999. return;
  30000. }
  30001. var count = effectCountInCurrentCommit;
  30002. effectCountInCurrentCommit = 0;
  30003. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  30004. }
  30005. }
  30006. var valueStack = [];
  30007. var fiberStack = void 0;
  30008. {
  30009. fiberStack = [];
  30010. }
  30011. var index = -1;
  30012. function createCursor(defaultValue) {
  30013. return {
  30014. current: defaultValue
  30015. };
  30016. }
  30017. function pop(cursor, fiber) {
  30018. if (index < 0) {
  30019. {
  30020. warningWithoutStack$1(false, 'Unexpected pop.');
  30021. }
  30022. return;
  30023. }
  30024. {
  30025. if (fiber !== fiberStack[index]) {
  30026. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  30027. }
  30028. }
  30029. cursor.current = valueStack[index];
  30030. valueStack[index] = null;
  30031. {
  30032. fiberStack[index] = null;
  30033. }
  30034. index--;
  30035. }
  30036. function push(cursor, value, fiber) {
  30037. index++;
  30038. valueStack[index] = cursor.current;
  30039. {
  30040. fiberStack[index] = fiber;
  30041. }
  30042. cursor.current = value;
  30043. }
  30044. function checkThatStackIsEmpty() {
  30045. {
  30046. if (index !== -1) {
  30047. warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');
  30048. }
  30049. }
  30050. }
  30051. function resetStackAfterFatalErrorInDev() {
  30052. {
  30053. index = -1;
  30054. valueStack.length = 0;
  30055. fiberStack.length = 0;
  30056. }
  30057. }
  30058. var warnedAboutMissingGetChildContext = void 0;
  30059. {
  30060. warnedAboutMissingGetChildContext = {};
  30061. }
  30062. var emptyContextObject = {};
  30063. {
  30064. Object.freeze(emptyContextObject);
  30065. }
  30066. // A cursor to the current merged context object on the stack.
  30067. var contextStackCursor = createCursor(emptyContextObject);
  30068. // A cursor to a boolean indicating whether the context has changed.
  30069. var didPerformWorkStackCursor = createCursor(false);
  30070. // Keep track of the previous context object that was on the stack.
  30071. // We use this to get access to the parent context after we have already
  30072. // pushed the next context provider, and now need to merge their contexts.
  30073. var previousContext = emptyContextObject;
  30074. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  30075. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  30076. // If the fiber is a context provider itself, when we read its context
  30077. // we may have already pushed its own child context on the stack. A context
  30078. // provider should not "see" its own child context. Therefore we read the
  30079. // previous (parent) context instead for a context provider.
  30080. return previousContext;
  30081. }
  30082. return contextStackCursor.current;
  30083. }
  30084. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  30085. var instance = workInProgress.stateNode;
  30086. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  30087. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  30088. }
  30089. function getMaskedContext(workInProgress, unmaskedContext) {
  30090. var type = workInProgress.type;
  30091. var contextTypes = type.contextTypes;
  30092. if (!contextTypes) {
  30093. return emptyContextObject;
  30094. }
  30095. // Avoid recreating masked context unless unmasked context has changed.
  30096. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  30097. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  30098. var instance = workInProgress.stateNode;
  30099. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  30100. return instance.__reactInternalMemoizedMaskedChildContext;
  30101. }
  30102. var context = {};
  30103. for (var key in contextTypes) {
  30104. context[key] = unmaskedContext[key];
  30105. }
  30106. {
  30107. var name = getComponentName(type) || 'Unknown';
  30108. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  30109. }
  30110. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  30111. // Context is created before the class component is instantiated so check for instance.
  30112. if (instance) {
  30113. cacheContext(workInProgress, unmaskedContext, context);
  30114. }
  30115. return context;
  30116. }
  30117. function hasContextChanged() {
  30118. return didPerformWorkStackCursor.current;
  30119. }
  30120. function isContextProvider(type) {
  30121. var childContextTypes = type.childContextTypes;
  30122. return childContextTypes !== null && childContextTypes !== undefined;
  30123. }
  30124. function popContext(fiber) {
  30125. pop(didPerformWorkStackCursor, fiber);
  30126. pop(contextStackCursor, fiber);
  30127. }
  30128. function popTopLevelContextObject(fiber) {
  30129. pop(didPerformWorkStackCursor, fiber);
  30130. pop(contextStackCursor, fiber);
  30131. }
  30132. function pushTopLevelContextObject(fiber, context, didChange) {
  30133. !(contextStackCursor.current === emptyContextObject) ? invariant(false, 'Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  30134. push(contextStackCursor, context, fiber);
  30135. push(didPerformWorkStackCursor, didChange, fiber);
  30136. }
  30137. function processChildContext(fiber, type, parentContext) {
  30138. var instance = fiber.stateNode;
  30139. var childContextTypes = type.childContextTypes;
  30140. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  30141. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  30142. if (typeof instance.getChildContext !== 'function') {
  30143. {
  30144. var componentName = getComponentName(type) || 'Unknown';
  30145. if (!warnedAboutMissingGetChildContext[componentName]) {
  30146. warnedAboutMissingGetChildContext[componentName] = true;
  30147. warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
  30148. }
  30149. }
  30150. return parentContext;
  30151. }
  30152. var childContext = void 0;
  30153. {
  30154. setCurrentPhase('getChildContext');
  30155. }
  30156. startPhaseTimer(fiber, 'getChildContext');
  30157. childContext = instance.getChildContext();
  30158. stopPhaseTimer();
  30159. {
  30160. setCurrentPhase(null);
  30161. }
  30162. for (var contextKey in childContext) {
  30163. !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;
  30164. }
  30165. {
  30166. var name = getComponentName(type) || 'Unknown';
  30167. checkPropTypes(childContextTypes, childContext, 'child context', name,
  30168. // In practice, there is one case in which we won't get a stack. It's when
  30169. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  30170. // context from the parent component instance. The stack will be missing
  30171. // because it's outside of the reconciliation, and so the pointer has not
  30172. // been set. This is rare and doesn't matter. We'll also remove that API.
  30173. getCurrentFiberStackInDev);
  30174. }
  30175. return _assign({}, parentContext, childContext);
  30176. }
  30177. function pushContextProvider(workInProgress) {
  30178. var instance = workInProgress.stateNode;
  30179. // We push the context as early as possible to ensure stack integrity.
  30180. // If the instance does not exist yet, we will push null at first,
  30181. // and replace it on the stack later when invalidating the context.
  30182. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  30183. // Remember the parent context so we can merge with it later.
  30184. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  30185. previousContext = contextStackCursor.current;
  30186. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  30187. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  30188. return true;
  30189. }
  30190. function invalidateContextProvider(workInProgress, type, didChange) {
  30191. var instance = workInProgress.stateNode;
  30192. !instance ? invariant(false, 'Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  30193. if (didChange) {
  30194. // Merge parent and own context.
  30195. // Skip this if we're not updating due to sCU.
  30196. // This avoids unnecessarily recomputing memoized values.
  30197. var mergedContext = processChildContext(workInProgress, type, previousContext);
  30198. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  30199. // Replace the old (or empty) context with the new one.
  30200. // It is important to unwind the context in the reverse order.
  30201. pop(didPerformWorkStackCursor, workInProgress);
  30202. pop(contextStackCursor, workInProgress);
  30203. // Now push the new context and mark that it has changed.
  30204. push(contextStackCursor, mergedContext, workInProgress);
  30205. push(didPerformWorkStackCursor, didChange, workInProgress);
  30206. } else {
  30207. pop(didPerformWorkStackCursor, workInProgress);
  30208. push(didPerformWorkStackCursor, didChange, workInProgress);
  30209. }
  30210. }
  30211. function findCurrentUnmaskedContext(fiber) {
  30212. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  30213. // makes sense elsewhere
  30214. !(isFiberMounted(fiber) && fiber.tag === ClassComponent) ? invariant(false, 'Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  30215. var node = fiber;
  30216. do {
  30217. switch (node.tag) {
  30218. case HostRoot:
  30219. return node.stateNode.context;
  30220. case ClassComponent:
  30221. {
  30222. var Component = node.type;
  30223. if (isContextProvider(Component)) {
  30224. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  30225. }
  30226. break;
  30227. }
  30228. }
  30229. node = node.return;
  30230. } while (node !== null);
  30231. invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');
  30232. }
  30233. var onCommitFiberRoot = null;
  30234. var onCommitFiberUnmount = null;
  30235. var hasLoggedError = false;
  30236. function catchErrors(fn) {
  30237. return function (arg) {
  30238. try {
  30239. return fn(arg);
  30240. } catch (err) {
  30241. if ( true && !hasLoggedError) {
  30242. hasLoggedError = true;
  30243. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  30244. }
  30245. }
  30246. };
  30247. }
  30248. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  30249. function injectInternals(internals) {
  30250. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  30251. // No DevTools
  30252. return false;
  30253. }
  30254. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  30255. if (hook.isDisabled) {
  30256. // This isn't a real property on the hook, but it can be set to opt out
  30257. // of DevTools integration and associated warnings and logs.
  30258. // https://github.com/facebook/react/issues/3877
  30259. return true;
  30260. }
  30261. if (!hook.supportsFiber) {
  30262. {
  30263. warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
  30264. }
  30265. // DevTools exists, even though it doesn't support Fiber.
  30266. return true;
  30267. }
  30268. try {
  30269. var rendererID = hook.inject(internals);
  30270. // We have successfully injected, so now it is safe to set up hooks.
  30271. onCommitFiberRoot = catchErrors(function (root) {
  30272. return hook.onCommitFiberRoot(rendererID, root);
  30273. });
  30274. onCommitFiberUnmount = catchErrors(function (fiber) {
  30275. return hook.onCommitFiberUnmount(rendererID, fiber);
  30276. });
  30277. } catch (err) {
  30278. // Catch all errors because it is unsafe to throw during initialization.
  30279. {
  30280. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  30281. }
  30282. }
  30283. // DevTools exists
  30284. return true;
  30285. }
  30286. function onCommitRoot(root) {
  30287. if (typeof onCommitFiberRoot === 'function') {
  30288. onCommitFiberRoot(root);
  30289. }
  30290. }
  30291. function onCommitUnmount(fiber) {
  30292. if (typeof onCommitFiberUnmount === 'function') {
  30293. onCommitFiberUnmount(fiber);
  30294. }
  30295. }
  30296. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  30297. // Math.pow(2, 30) - 1
  30298. // 0b111111111111111111111111111111
  30299. var maxSigned31BitInt = 1073741823;
  30300. var NoWork = 0;
  30301. var Never = 1;
  30302. var Sync = maxSigned31BitInt;
  30303. var UNIT_SIZE = 10;
  30304. var MAGIC_NUMBER_OFFSET = maxSigned31BitInt - 1;
  30305. // 1 unit of expiration time represents 10ms.
  30306. function msToExpirationTime(ms) {
  30307. // Always add an offset so that we don't clash with the magic number for NoWork.
  30308. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  30309. }
  30310. function expirationTimeToMs(expirationTime) {
  30311. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  30312. }
  30313. function ceiling(num, precision) {
  30314. return ((num / precision | 0) + 1) * precision;
  30315. }
  30316. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  30317. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  30318. }
  30319. var LOW_PRIORITY_EXPIRATION = 5000;
  30320. var LOW_PRIORITY_BATCH_SIZE = 250;
  30321. function computeAsyncExpiration(currentTime) {
  30322. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  30323. }
  30324. // We intentionally set a higher expiration time for interactive updates in
  30325. // dev than in production.
  30326. //
  30327. // If the main thread is being blocked so long that you hit the expiration,
  30328. // it's a problem that could be solved with better scheduling.
  30329. //
  30330. // People will be more likely to notice this and fix it with the long
  30331. // expiration time in development.
  30332. //
  30333. // In production we opt for better UX at the risk of masking scheduling
  30334. // problems, by expiring fast.
  30335. var HIGH_PRIORITY_EXPIRATION = 500;
  30336. var HIGH_PRIORITY_BATCH_SIZE = 100;
  30337. function computeInteractiveExpiration(currentTime) {
  30338. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  30339. }
  30340. var NoContext = 0;
  30341. var ConcurrentMode = 1;
  30342. var StrictMode = 2;
  30343. var ProfileMode = 4;
  30344. var hasBadMapPolyfill = void 0;
  30345. {
  30346. hasBadMapPolyfill = false;
  30347. try {
  30348. var nonExtensibleObject = Object.preventExtensions({});
  30349. var testMap = new Map([[nonExtensibleObject, null]]);
  30350. var testSet = new Set([nonExtensibleObject]);
  30351. // This is necessary for Rollup to not consider these unused.
  30352. // https://github.com/rollup/rollup/issues/1771
  30353. // TODO: we can remove these if Rollup fixes the bug.
  30354. testMap.set(0, 0);
  30355. testSet.add(0);
  30356. } catch (e) {
  30357. // TODO: Consider warning about bad polyfills
  30358. hasBadMapPolyfill = true;
  30359. }
  30360. }
  30361. // A Fiber is work on a Component that needs to be done or was done. There can
  30362. // be more than one per component.
  30363. var debugCounter = void 0;
  30364. {
  30365. debugCounter = 1;
  30366. }
  30367. function FiberNode(tag, pendingProps, key, mode) {
  30368. // Instance
  30369. this.tag = tag;
  30370. this.key = key;
  30371. this.elementType = null;
  30372. this.type = null;
  30373. this.stateNode = null;
  30374. // Fiber
  30375. this.return = null;
  30376. this.child = null;
  30377. this.sibling = null;
  30378. this.index = 0;
  30379. this.ref = null;
  30380. this.pendingProps = pendingProps;
  30381. this.memoizedProps = null;
  30382. this.updateQueue = null;
  30383. this.memoizedState = null;
  30384. this.firstContextDependency = null;
  30385. this.mode = mode;
  30386. // Effects
  30387. this.effectTag = NoEffect;
  30388. this.nextEffect = null;
  30389. this.firstEffect = null;
  30390. this.lastEffect = null;
  30391. this.expirationTime = NoWork;
  30392. this.childExpirationTime = NoWork;
  30393. this.alternate = null;
  30394. if (enableProfilerTimer) {
  30395. this.actualDuration = 0;
  30396. this.actualStartTime = -1;
  30397. this.selfBaseDuration = 0;
  30398. this.treeBaseDuration = 0;
  30399. }
  30400. {
  30401. this._debugID = debugCounter++;
  30402. this._debugSource = null;
  30403. this._debugOwner = null;
  30404. this._debugIsCurrentlyTiming = false;
  30405. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  30406. Object.preventExtensions(this);
  30407. }
  30408. }
  30409. }
  30410. // This is a constructor function, rather than a POJO constructor, still
  30411. // please ensure we do the following:
  30412. // 1) Nobody should add any instance methods on this. Instance methods can be
  30413. // more difficult to predict when they get optimized and they are almost
  30414. // never inlined properly in static compilers.
  30415. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  30416. // always know when it is a fiber.
  30417. // 3) We might want to experiment with using numeric keys since they are easier
  30418. // to optimize in a non-JIT environment.
  30419. // 4) We can easily go from a constructor to a createFiber object literal if that
  30420. // is faster.
  30421. // 5) It should be easy to port this to a C struct and keep a C implementation
  30422. // compatible.
  30423. var createFiber = function (tag, pendingProps, key, mode) {
  30424. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  30425. return new FiberNode(tag, pendingProps, key, mode);
  30426. };
  30427. function shouldConstruct(Component) {
  30428. var prototype = Component.prototype;
  30429. return !!(prototype && prototype.isReactComponent);
  30430. }
  30431. function isSimpleFunctionComponent(type) {
  30432. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  30433. }
  30434. function resolveLazyComponentTag(Component) {
  30435. if (typeof Component === 'function') {
  30436. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  30437. } else if (Component !== undefined && Component !== null) {
  30438. var $$typeof = Component.$$typeof;
  30439. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  30440. return ForwardRef;
  30441. }
  30442. if ($$typeof === REACT_MEMO_TYPE) {
  30443. return MemoComponent;
  30444. }
  30445. }
  30446. return IndeterminateComponent;
  30447. }
  30448. // This is used to create an alternate fiber to do work on.
  30449. function createWorkInProgress(current, pendingProps, expirationTime) {
  30450. var workInProgress = current.alternate;
  30451. if (workInProgress === null) {
  30452. // We use a double buffering pooling technique because we know that we'll
  30453. // only ever need at most two versions of a tree. We pool the "other" unused
  30454. // node that we're free to reuse. This is lazily created to avoid allocating
  30455. // extra objects for things that are never updated. It also allow us to
  30456. // reclaim the extra memory if needed.
  30457. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  30458. workInProgress.elementType = current.elementType;
  30459. workInProgress.type = current.type;
  30460. workInProgress.stateNode = current.stateNode;
  30461. {
  30462. // DEV-only fields
  30463. workInProgress._debugID = current._debugID;
  30464. workInProgress._debugSource = current._debugSource;
  30465. workInProgress._debugOwner = current._debugOwner;
  30466. }
  30467. workInProgress.alternate = current;
  30468. current.alternate = workInProgress;
  30469. } else {
  30470. workInProgress.pendingProps = pendingProps;
  30471. // We already have an alternate.
  30472. // Reset the effect tag.
  30473. workInProgress.effectTag = NoEffect;
  30474. // The effect list is no longer valid.
  30475. workInProgress.nextEffect = null;
  30476. workInProgress.firstEffect = null;
  30477. workInProgress.lastEffect = null;
  30478. if (enableProfilerTimer) {
  30479. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  30480. // This prevents time from endlessly accumulating in new commits.
  30481. // This has the downside of resetting values for different priority renders,
  30482. // But works for yielding (the common case) and should support resuming.
  30483. workInProgress.actualDuration = 0;
  30484. workInProgress.actualStartTime = -1;
  30485. }
  30486. }
  30487. workInProgress.childExpirationTime = current.childExpirationTime;
  30488. workInProgress.expirationTime = current.expirationTime;
  30489. workInProgress.child = current.child;
  30490. workInProgress.memoizedProps = current.memoizedProps;
  30491. workInProgress.memoizedState = current.memoizedState;
  30492. workInProgress.updateQueue = current.updateQueue;
  30493. workInProgress.firstContextDependency = current.firstContextDependency;
  30494. // These will be overridden during the parent's reconciliation
  30495. workInProgress.sibling = current.sibling;
  30496. workInProgress.index = current.index;
  30497. workInProgress.ref = current.ref;
  30498. if (enableProfilerTimer) {
  30499. workInProgress.selfBaseDuration = current.selfBaseDuration;
  30500. workInProgress.treeBaseDuration = current.treeBaseDuration;
  30501. }
  30502. return workInProgress;
  30503. }
  30504. function createHostRootFiber(isConcurrent) {
  30505. var mode = isConcurrent ? ConcurrentMode | StrictMode : NoContext;
  30506. if (enableProfilerTimer && isDevToolsPresent) {
  30507. // Always collect profile timings when DevTools are present.
  30508. // This enables DevTools to start capturing timing at any point–
  30509. // Without some nodes in the tree having empty base times.
  30510. mode |= ProfileMode;
  30511. }
  30512. return createFiber(HostRoot, null, null, mode);
  30513. }
  30514. function createFiberFromTypeAndProps(type, // React$ElementType
  30515. key, pendingProps, owner, mode, expirationTime) {
  30516. var fiber = void 0;
  30517. var fiberTag = IndeterminateComponent;
  30518. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  30519. var resolvedType = type;
  30520. if (typeof type === 'function') {
  30521. if (shouldConstruct(type)) {
  30522. fiberTag = ClassComponent;
  30523. }
  30524. } else if (typeof type === 'string') {
  30525. fiberTag = HostComponent;
  30526. } else {
  30527. getTag: switch (type) {
  30528. case REACT_FRAGMENT_TYPE:
  30529. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  30530. case REACT_CONCURRENT_MODE_TYPE:
  30531. return createFiberFromMode(pendingProps, mode | ConcurrentMode | StrictMode, expirationTime, key);
  30532. case REACT_STRICT_MODE_TYPE:
  30533. return createFiberFromMode(pendingProps, mode | StrictMode, expirationTime, key);
  30534. case REACT_PROFILER_TYPE:
  30535. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  30536. case REACT_SUSPENSE_TYPE:
  30537. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  30538. default:
  30539. {
  30540. if (typeof type === 'object' && type !== null) {
  30541. switch (type.$$typeof) {
  30542. case REACT_PROVIDER_TYPE:
  30543. fiberTag = ContextProvider;
  30544. break getTag;
  30545. case REACT_CONTEXT_TYPE:
  30546. // This is a consumer
  30547. fiberTag = ContextConsumer;
  30548. break getTag;
  30549. case REACT_FORWARD_REF_TYPE:
  30550. fiberTag = ForwardRef;
  30551. break getTag;
  30552. case REACT_MEMO_TYPE:
  30553. fiberTag = MemoComponent;
  30554. break getTag;
  30555. case REACT_LAZY_TYPE:
  30556. fiberTag = LazyComponent;
  30557. resolvedType = null;
  30558. break getTag;
  30559. }
  30560. }
  30561. var info = '';
  30562. {
  30563. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  30564. 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.';
  30565. }
  30566. var ownerName = owner ? getComponentName(owner.type) : null;
  30567. if (ownerName) {
  30568. info += '\n\nCheck the render method of `' + ownerName + '`.';
  30569. }
  30570. }
  30571. invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info);
  30572. }
  30573. }
  30574. }
  30575. fiber = createFiber(fiberTag, pendingProps, key, mode);
  30576. fiber.elementType = type;
  30577. fiber.type = resolvedType;
  30578. fiber.expirationTime = expirationTime;
  30579. return fiber;
  30580. }
  30581. function createFiberFromElement(element, mode, expirationTime) {
  30582. var owner = null;
  30583. {
  30584. owner = element._owner;
  30585. }
  30586. var type = element.type;
  30587. var key = element.key;
  30588. var pendingProps = element.props;
  30589. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  30590. {
  30591. fiber._debugSource = element._source;
  30592. fiber._debugOwner = element._owner;
  30593. }
  30594. return fiber;
  30595. }
  30596. function createFiberFromFragment(elements, mode, expirationTime, key) {
  30597. var fiber = createFiber(Fragment, elements, key, mode);
  30598. fiber.expirationTime = expirationTime;
  30599. return fiber;
  30600. }
  30601. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  30602. {
  30603. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  30604. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  30605. }
  30606. }
  30607. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  30608. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  30609. fiber.elementType = REACT_PROFILER_TYPE;
  30610. fiber.type = REACT_PROFILER_TYPE;
  30611. fiber.expirationTime = expirationTime;
  30612. return fiber;
  30613. }
  30614. function createFiberFromMode(pendingProps, mode, expirationTime, key) {
  30615. var fiber = createFiber(Mode, pendingProps, key, mode);
  30616. // TODO: The Mode fiber shouldn't have a type. It has a tag.
  30617. var type = (mode & ConcurrentMode) === NoContext ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;
  30618. fiber.elementType = type;
  30619. fiber.type = type;
  30620. fiber.expirationTime = expirationTime;
  30621. return fiber;
  30622. }
  30623. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  30624. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  30625. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  30626. var type = REACT_SUSPENSE_TYPE;
  30627. fiber.elementType = type;
  30628. fiber.type = type;
  30629. fiber.expirationTime = expirationTime;
  30630. return fiber;
  30631. }
  30632. function createFiberFromText(content, mode, expirationTime) {
  30633. var fiber = createFiber(HostText, content, null, mode);
  30634. fiber.expirationTime = expirationTime;
  30635. return fiber;
  30636. }
  30637. function createFiberFromHostInstanceForDeletion() {
  30638. var fiber = createFiber(HostComponent, null, null, NoContext);
  30639. // TODO: These should not need a type.
  30640. fiber.elementType = 'DELETED';
  30641. fiber.type = 'DELETED';
  30642. return fiber;
  30643. }
  30644. function createFiberFromPortal(portal, mode, expirationTime) {
  30645. var pendingProps = portal.children !== null ? portal.children : [];
  30646. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  30647. fiber.expirationTime = expirationTime;
  30648. fiber.stateNode = {
  30649. containerInfo: portal.containerInfo,
  30650. pendingChildren: null, // Used by persistent updates
  30651. implementation: portal.implementation
  30652. };
  30653. return fiber;
  30654. }
  30655. // Used for stashing WIP properties to replay failed work in DEV.
  30656. function assignFiberPropertiesInDEV(target, source) {
  30657. if (target === null) {
  30658. // This Fiber's initial properties will always be overwritten.
  30659. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  30660. target = createFiber(IndeterminateComponent, null, null, NoContext);
  30661. }
  30662. // This is intentionally written as a list of all properties.
  30663. // We tried to use Object.assign() instead but this is called in
  30664. // the hottest path, and Object.assign() was too slow:
  30665. // https://github.com/facebook/react/issues/12502
  30666. // This code is DEV-only so size is not a concern.
  30667. target.tag = source.tag;
  30668. target.key = source.key;
  30669. target.elementType = source.elementType;
  30670. target.type = source.type;
  30671. target.stateNode = source.stateNode;
  30672. target.return = source.return;
  30673. target.child = source.child;
  30674. target.sibling = source.sibling;
  30675. target.index = source.index;
  30676. target.ref = source.ref;
  30677. target.pendingProps = source.pendingProps;
  30678. target.memoizedProps = source.memoizedProps;
  30679. target.updateQueue = source.updateQueue;
  30680. target.memoizedState = source.memoizedState;
  30681. target.firstContextDependency = source.firstContextDependency;
  30682. target.mode = source.mode;
  30683. target.effectTag = source.effectTag;
  30684. target.nextEffect = source.nextEffect;
  30685. target.firstEffect = source.firstEffect;
  30686. target.lastEffect = source.lastEffect;
  30687. target.expirationTime = source.expirationTime;
  30688. target.childExpirationTime = source.childExpirationTime;
  30689. target.alternate = source.alternate;
  30690. if (enableProfilerTimer) {
  30691. target.actualDuration = source.actualDuration;
  30692. target.actualStartTime = source.actualStartTime;
  30693. target.selfBaseDuration = source.selfBaseDuration;
  30694. target.treeBaseDuration = source.treeBaseDuration;
  30695. }
  30696. target._debugID = source._debugID;
  30697. target._debugSource = source._debugSource;
  30698. target._debugOwner = source._debugOwner;
  30699. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  30700. return target;
  30701. }
  30702. // TODO: This should be lifted into the renderer.
  30703. // The following attributes are only used by interaction tracing builds.
  30704. // They enable interactions to be associated with their async work,
  30705. // And expose interaction metadata to the React DevTools Profiler plugin.
  30706. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  30707. // Exported FiberRoot type includes all properties,
  30708. // To avoid requiring potentially error-prone :any casts throughout the project.
  30709. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  30710. // The types are defined separately within this file to ensure they stay in sync.
  30711. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  30712. function createFiberRoot(containerInfo, isConcurrent, hydrate) {
  30713. // Cyclic construction. This cheats the type system right now because
  30714. // stateNode is any.
  30715. var uninitializedFiber = createHostRootFiber(isConcurrent);
  30716. var root = void 0;
  30717. if (enableSchedulerTracing) {
  30718. root = {
  30719. current: uninitializedFiber,
  30720. containerInfo: containerInfo,
  30721. pendingChildren: null,
  30722. earliestPendingTime: NoWork,
  30723. latestPendingTime: NoWork,
  30724. earliestSuspendedTime: NoWork,
  30725. latestSuspendedTime: NoWork,
  30726. latestPingedTime: NoWork,
  30727. didError: false,
  30728. pendingCommitExpirationTime: NoWork,
  30729. finishedWork: null,
  30730. timeoutHandle: noTimeout,
  30731. context: null,
  30732. pendingContext: null,
  30733. hydrate: hydrate,
  30734. nextExpirationTimeToWorkOn: NoWork,
  30735. expirationTime: NoWork,
  30736. firstBatch: null,
  30737. nextScheduledRoot: null,
  30738. interactionThreadID: tracing.unstable_getThreadID(),
  30739. memoizedInteractions: new Set(),
  30740. pendingInteractionMap: new Map()
  30741. };
  30742. } else {
  30743. root = {
  30744. current: uninitializedFiber,
  30745. containerInfo: containerInfo,
  30746. pendingChildren: null,
  30747. earliestPendingTime: NoWork,
  30748. latestPendingTime: NoWork,
  30749. earliestSuspendedTime: NoWork,
  30750. latestSuspendedTime: NoWork,
  30751. latestPingedTime: NoWork,
  30752. didError: false,
  30753. pendingCommitExpirationTime: NoWork,
  30754. finishedWork: null,
  30755. timeoutHandle: noTimeout,
  30756. context: null,
  30757. pendingContext: null,
  30758. hydrate: hydrate,
  30759. nextExpirationTimeToWorkOn: NoWork,
  30760. expirationTime: NoWork,
  30761. firstBatch: null,
  30762. nextScheduledRoot: null
  30763. };
  30764. }
  30765. uninitializedFiber.stateNode = root;
  30766. // The reason for the way the Flow types are structured in this file,
  30767. // Is to avoid needing :any casts everywhere interaction tracing fields are used.
  30768. // Unfortunately that requires an :any cast for non-interaction tracing capable builds.
  30769. // $FlowFixMe Remove this :any cast and replace it with something better.
  30770. return root;
  30771. }
  30772. /**
  30773. * Forked from fbjs/warning:
  30774. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  30775. *
  30776. * Only change is we use console.warn instead of console.error,
  30777. * and do nothing when 'console' is not supported.
  30778. * This really simplifies the code.
  30779. * ---
  30780. * Similar to invariant but only logs a warning if the condition is not met.
  30781. * This can be used to log issues in development environments in critical
  30782. * paths. Removing the logging code for production environments will keep the
  30783. * same logic and follow the same code paths.
  30784. */
  30785. var lowPriorityWarning = function () {};
  30786. {
  30787. var printWarning = function (format) {
  30788. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  30789. args[_key - 1] = arguments[_key];
  30790. }
  30791. var argIndex = 0;
  30792. var message = 'Warning: ' + format.replace(/%s/g, function () {
  30793. return args[argIndex++];
  30794. });
  30795. if (typeof console !== 'undefined') {
  30796. console.warn(message);
  30797. }
  30798. try {
  30799. // --- Welcome to debugging React ---
  30800. // This error was thrown as a convenience so that you can use this stack
  30801. // to find the callsite that caused this warning to fire.
  30802. throw new Error(message);
  30803. } catch (x) {}
  30804. };
  30805. lowPriorityWarning = function (condition, format) {
  30806. if (format === undefined) {
  30807. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  30808. }
  30809. if (!condition) {
  30810. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  30811. args[_key2 - 2] = arguments[_key2];
  30812. }
  30813. printWarning.apply(undefined, [format].concat(args));
  30814. }
  30815. };
  30816. }
  30817. var lowPriorityWarning$1 = lowPriorityWarning;
  30818. var ReactStrictModeWarnings = {
  30819. discardPendingWarnings: function () {},
  30820. flushPendingDeprecationWarnings: function () {},
  30821. flushPendingUnsafeLifecycleWarnings: function () {},
  30822. recordDeprecationWarnings: function (fiber, instance) {},
  30823. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  30824. recordLegacyContextWarning: function (fiber, instance) {},
  30825. flushLegacyContextWarning: function () {}
  30826. };
  30827. {
  30828. var LIFECYCLE_SUGGESTIONS = {
  30829. UNSAFE_componentWillMount: 'componentDidMount',
  30830. UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',
  30831. UNSAFE_componentWillUpdate: 'componentDidUpdate'
  30832. };
  30833. var pendingComponentWillMountWarnings = [];
  30834. var pendingComponentWillReceivePropsWarnings = [];
  30835. var pendingComponentWillUpdateWarnings = [];
  30836. var pendingUnsafeLifecycleWarnings = new Map();
  30837. var pendingLegacyContextWarning = new Map();
  30838. // Tracks components we have already warned about.
  30839. var didWarnAboutDeprecatedLifecycles = new Set();
  30840. var didWarnAboutUnsafeLifecycles = new Set();
  30841. var didWarnAboutLegacyContext = new Set();
  30842. var setToSortedString = function (set) {
  30843. var array = [];
  30844. set.forEach(function (value) {
  30845. array.push(value);
  30846. });
  30847. return array.sort().join(', ');
  30848. };
  30849. ReactStrictModeWarnings.discardPendingWarnings = function () {
  30850. pendingComponentWillMountWarnings = [];
  30851. pendingComponentWillReceivePropsWarnings = [];
  30852. pendingComponentWillUpdateWarnings = [];
  30853. pendingUnsafeLifecycleWarnings = new Map();
  30854. pendingLegacyContextWarning = new Map();
  30855. };
  30856. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  30857. pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {
  30858. var lifecyclesWarningMesages = [];
  30859. Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {
  30860. var lifecycleWarnings = lifecycleWarningsMap[lifecycle];
  30861. if (lifecycleWarnings.length > 0) {
  30862. var componentNames = new Set();
  30863. lifecycleWarnings.forEach(function (fiber) {
  30864. componentNames.add(getComponentName(fiber.type) || 'Component');
  30865. didWarnAboutUnsafeLifecycles.add(fiber.type);
  30866. });
  30867. var formatted = lifecycle.replace('UNSAFE_', '');
  30868. var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
  30869. var sortedComponentNames = setToSortedString(componentNames);
  30870. lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));
  30871. }
  30872. });
  30873. if (lifecyclesWarningMesages.length > 0) {
  30874. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  30875. warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMesages.join('\n\n'));
  30876. }
  30877. });
  30878. pendingUnsafeLifecycleWarnings = new Map();
  30879. };
  30880. var findStrictRoot = function (fiber) {
  30881. var maybeStrictRoot = null;
  30882. var node = fiber;
  30883. while (node !== null) {
  30884. if (node.mode & StrictMode) {
  30885. maybeStrictRoot = node;
  30886. }
  30887. node = node.return;
  30888. }
  30889. return maybeStrictRoot;
  30890. };
  30891. ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {
  30892. if (pendingComponentWillMountWarnings.length > 0) {
  30893. var uniqueNames = new Set();
  30894. pendingComponentWillMountWarnings.forEach(function (fiber) {
  30895. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  30896. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  30897. });
  30898. var sortedNames = setToSortedString(uniqueNames);
  30899. lowPriorityWarning$1(false, 'componentWillMount is deprecated and will be removed in the next major version. ' + 'Use componentDidMount instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillMount.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', sortedNames);
  30900. pendingComponentWillMountWarnings = [];
  30901. }
  30902. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  30903. var _uniqueNames = new Set();
  30904. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  30905. _uniqueNames.add(getComponentName(fiber.type) || 'Component');
  30906. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  30907. });
  30908. var _sortedNames = setToSortedString(_uniqueNames);
  30909. lowPriorityWarning$1(false, 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' + 'Use static getDerivedStateFromProps instead.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames);
  30910. pendingComponentWillReceivePropsWarnings = [];
  30911. }
  30912. if (pendingComponentWillUpdateWarnings.length > 0) {
  30913. var _uniqueNames2 = new Set();
  30914. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  30915. _uniqueNames2.add(getComponentName(fiber.type) || 'Component');
  30916. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  30917. });
  30918. var _sortedNames2 = setToSortedString(_uniqueNames2);
  30919. lowPriorityWarning$1(false, 'componentWillUpdate is deprecated and will be removed in the next major version. ' + 'Use componentDidUpdate instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillUpdate.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames2);
  30920. pendingComponentWillUpdateWarnings = [];
  30921. }
  30922. };
  30923. ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {
  30924. // Dedup strategy: Warn once per component.
  30925. if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {
  30926. return;
  30927. }
  30928. // Don't warn about react-lifecycles-compat polyfilled components.
  30929. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  30930. pendingComponentWillMountWarnings.push(fiber);
  30931. }
  30932. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  30933. pendingComponentWillReceivePropsWarnings.push(fiber);
  30934. }
  30935. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  30936. pendingComponentWillUpdateWarnings.push(fiber);
  30937. }
  30938. };
  30939. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  30940. var strictRoot = findStrictRoot(fiber);
  30941. if (strictRoot === null) {
  30942. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  30943. return;
  30944. }
  30945. // Dedup strategy: Warn once per component.
  30946. // This is difficult to track any other way since component names
  30947. // are often vague and are likely to collide between 3rd party libraries.
  30948. // An expand property is probably okay to use here since it's DEV-only,
  30949. // and will only be set in the event of serious warnings.
  30950. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  30951. return;
  30952. }
  30953. var warningsForRoot = void 0;
  30954. if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {
  30955. warningsForRoot = {
  30956. UNSAFE_componentWillMount: [],
  30957. UNSAFE_componentWillReceiveProps: [],
  30958. UNSAFE_componentWillUpdate: []
  30959. };
  30960. pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);
  30961. } else {
  30962. warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);
  30963. }
  30964. var unsafeLifecycles = [];
  30965. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {
  30966. unsafeLifecycles.push('UNSAFE_componentWillMount');
  30967. }
  30968. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  30969. unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');
  30970. }
  30971. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {
  30972. unsafeLifecycles.push('UNSAFE_componentWillUpdate');
  30973. }
  30974. if (unsafeLifecycles.length > 0) {
  30975. unsafeLifecycles.forEach(function (lifecycle) {
  30976. warningsForRoot[lifecycle].push(fiber);
  30977. });
  30978. }
  30979. };
  30980. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  30981. var strictRoot = findStrictRoot(fiber);
  30982. if (strictRoot === null) {
  30983. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  30984. return;
  30985. }
  30986. // Dedup strategy: Warn once per component.
  30987. if (didWarnAboutLegacyContext.has(fiber.type)) {
  30988. return;
  30989. }
  30990. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  30991. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  30992. if (warningsForRoot === undefined) {
  30993. warningsForRoot = [];
  30994. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  30995. }
  30996. warningsForRoot.push(fiber);
  30997. }
  30998. };
  30999. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  31000. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  31001. var uniqueNames = new Set();
  31002. fiberArray.forEach(function (fiber) {
  31003. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  31004. didWarnAboutLegacyContext.add(fiber.type);
  31005. });
  31006. var sortedNames = setToSortedString(uniqueNames);
  31007. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  31008. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, sortedNames);
  31009. });
  31010. };
  31011. }
  31012. // This lets us hook into Fiber to debug what it's doing.
  31013. // See https://github.com/facebook/react/pull/8033.
  31014. // This is not part of the public API, not even for React DevTools.
  31015. // You may only inject a debugTool if you work on React Fiber itself.
  31016. var ReactFiberInstrumentation = {
  31017. debugTool: null
  31018. };
  31019. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  31020. // TODO: Offscreen updates should never suspend. However, a promise that
  31021. // suspended inside an offscreen subtree should be able to ping at the priority
  31022. // of the outer render.
  31023. function markPendingPriorityLevel(root, expirationTime) {
  31024. // If there's a gap between completing a failed root and retrying it,
  31025. // additional updates may be scheduled. Clear `didError`, in case the update
  31026. // is sufficient to fix the error.
  31027. root.didError = false;
  31028. // Update the latest and earliest pending times
  31029. var earliestPendingTime = root.earliestPendingTime;
  31030. if (earliestPendingTime === NoWork) {
  31031. // No other pending updates.
  31032. root.earliestPendingTime = root.latestPendingTime = expirationTime;
  31033. } else {
  31034. if (earliestPendingTime < expirationTime) {
  31035. // This is the earliest pending update.
  31036. root.earliestPendingTime = expirationTime;
  31037. } else {
  31038. var latestPendingTime = root.latestPendingTime;
  31039. if (latestPendingTime > expirationTime) {
  31040. // This is the latest pending update
  31041. root.latestPendingTime = expirationTime;
  31042. }
  31043. }
  31044. }
  31045. findNextExpirationTimeToWorkOn(expirationTime, root);
  31046. }
  31047. function markCommittedPriorityLevels(root, earliestRemainingTime) {
  31048. root.didError = false;
  31049. if (earliestRemainingTime === NoWork) {
  31050. // Fast path. There's no remaining work. Clear everything.
  31051. root.earliestPendingTime = NoWork;
  31052. root.latestPendingTime = NoWork;
  31053. root.earliestSuspendedTime = NoWork;
  31054. root.latestSuspendedTime = NoWork;
  31055. root.latestPingedTime = NoWork;
  31056. findNextExpirationTimeToWorkOn(NoWork, root);
  31057. return;
  31058. }
  31059. // Let's see if the previous latest known pending level was just flushed.
  31060. var latestPendingTime = root.latestPendingTime;
  31061. if (latestPendingTime !== NoWork) {
  31062. if (latestPendingTime > earliestRemainingTime) {
  31063. // We've flushed all the known pending levels.
  31064. root.earliestPendingTime = root.latestPendingTime = NoWork;
  31065. } else {
  31066. var earliestPendingTime = root.earliestPendingTime;
  31067. if (earliestPendingTime > earliestRemainingTime) {
  31068. // We've flushed the earliest known pending level. Set this to the
  31069. // latest pending time.
  31070. root.earliestPendingTime = root.latestPendingTime;
  31071. }
  31072. }
  31073. }
  31074. // Now let's handle the earliest remaining level in the whole tree. We need to
  31075. // decide whether to treat it as a pending level or as suspended. Check
  31076. // it falls within the range of known suspended levels.
  31077. var earliestSuspendedTime = root.earliestSuspendedTime;
  31078. if (earliestSuspendedTime === NoWork) {
  31079. // There's no suspended work. Treat the earliest remaining level as a
  31080. // pending level.
  31081. markPendingPriorityLevel(root, earliestRemainingTime);
  31082. findNextExpirationTimeToWorkOn(NoWork, root);
  31083. return;
  31084. }
  31085. var latestSuspendedTime = root.latestSuspendedTime;
  31086. if (earliestRemainingTime < latestSuspendedTime) {
  31087. // The earliest remaining level is later than all the suspended work. That
  31088. // means we've flushed all the suspended work.
  31089. root.earliestSuspendedTime = NoWork;
  31090. root.latestSuspendedTime = NoWork;
  31091. root.latestPingedTime = NoWork;
  31092. // There's no suspended work. Treat the earliest remaining level as a
  31093. // pending level.
  31094. markPendingPriorityLevel(root, earliestRemainingTime);
  31095. findNextExpirationTimeToWorkOn(NoWork, root);
  31096. return;
  31097. }
  31098. if (earliestRemainingTime > earliestSuspendedTime) {
  31099. // The earliest remaining time is earlier than all the suspended work.
  31100. // Treat it as a pending update.
  31101. markPendingPriorityLevel(root, earliestRemainingTime);
  31102. findNextExpirationTimeToWorkOn(NoWork, root);
  31103. return;
  31104. }
  31105. // The earliest remaining time falls within the range of known suspended
  31106. // levels. We should treat this as suspended work.
  31107. findNextExpirationTimeToWorkOn(NoWork, root);
  31108. }
  31109. function hasLowerPriorityWork(root, erroredExpirationTime) {
  31110. var latestPendingTime = root.latestPendingTime;
  31111. var latestSuspendedTime = root.latestSuspendedTime;
  31112. var latestPingedTime = root.latestPingedTime;
  31113. return latestPendingTime !== NoWork && latestPendingTime < erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime < erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime < erroredExpirationTime;
  31114. }
  31115. function isPriorityLevelSuspended(root, expirationTime) {
  31116. var earliestSuspendedTime = root.earliestSuspendedTime;
  31117. var latestSuspendedTime = root.latestSuspendedTime;
  31118. return earliestSuspendedTime !== NoWork && expirationTime <= earliestSuspendedTime && expirationTime >= latestSuspendedTime;
  31119. }
  31120. function markSuspendedPriorityLevel(root, suspendedTime) {
  31121. root.didError = false;
  31122. clearPing(root, suspendedTime);
  31123. // First, check the known pending levels and update them if needed.
  31124. var earliestPendingTime = root.earliestPendingTime;
  31125. var latestPendingTime = root.latestPendingTime;
  31126. if (earliestPendingTime === suspendedTime) {
  31127. if (latestPendingTime === suspendedTime) {
  31128. // Both known pending levels were suspended. Clear them.
  31129. root.earliestPendingTime = root.latestPendingTime = NoWork;
  31130. } else {
  31131. // The earliest pending level was suspended. Clear by setting it to the
  31132. // latest pending level.
  31133. root.earliestPendingTime = latestPendingTime;
  31134. }
  31135. } else if (latestPendingTime === suspendedTime) {
  31136. // The latest pending level was suspended. Clear by setting it to the
  31137. // latest pending level.
  31138. root.latestPendingTime = earliestPendingTime;
  31139. }
  31140. // Finally, update the known suspended levels.
  31141. var earliestSuspendedTime = root.earliestSuspendedTime;
  31142. var latestSuspendedTime = root.latestSuspendedTime;
  31143. if (earliestSuspendedTime === NoWork) {
  31144. // No other suspended levels.
  31145. root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;
  31146. } else {
  31147. if (earliestSuspendedTime < suspendedTime) {
  31148. // This is the earliest suspended level.
  31149. root.earliestSuspendedTime = suspendedTime;
  31150. } else if (latestSuspendedTime > suspendedTime) {
  31151. // This is the latest suspended level
  31152. root.latestSuspendedTime = suspendedTime;
  31153. }
  31154. }
  31155. findNextExpirationTimeToWorkOn(suspendedTime, root);
  31156. }
  31157. function markPingedPriorityLevel(root, pingedTime) {
  31158. root.didError = false;
  31159. // TODO: When we add back resuming, we need to ensure the progressed work
  31160. // is thrown out and not reused during the restarted render. One way to
  31161. // invalidate the progressed work is to restart at expirationTime + 1.
  31162. var latestPingedTime = root.latestPingedTime;
  31163. if (latestPingedTime === NoWork || latestPingedTime > pingedTime) {
  31164. root.latestPingedTime = pingedTime;
  31165. }
  31166. findNextExpirationTimeToWorkOn(pingedTime, root);
  31167. }
  31168. function clearPing(root, completedTime) {
  31169. // TODO: Track whether the root was pinged during the render phase. If so,
  31170. // we need to make sure we don't lose track of it.
  31171. var latestPingedTime = root.latestPingedTime;
  31172. if (latestPingedTime !== NoWork && latestPingedTime >= completedTime) {
  31173. root.latestPingedTime = NoWork;
  31174. }
  31175. }
  31176. function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
  31177. var earliestExpirationTime = renderExpirationTime;
  31178. var earliestPendingTime = root.earliestPendingTime;
  31179. var earliestSuspendedTime = root.earliestSuspendedTime;
  31180. if (earliestPendingTime > earliestExpirationTime) {
  31181. earliestExpirationTime = earliestPendingTime;
  31182. }
  31183. if (earliestSuspendedTime > earliestExpirationTime) {
  31184. earliestExpirationTime = earliestSuspendedTime;
  31185. }
  31186. return earliestExpirationTime;
  31187. }
  31188. function didExpireAtExpirationTime(root, currentTime) {
  31189. var expirationTime = root.expirationTime;
  31190. if (expirationTime !== NoWork && currentTime <= expirationTime) {
  31191. // The root has expired. Flush all work up to the current time.
  31192. root.nextExpirationTimeToWorkOn = currentTime;
  31193. }
  31194. }
  31195. function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
  31196. var earliestSuspendedTime = root.earliestSuspendedTime;
  31197. var latestSuspendedTime = root.latestSuspendedTime;
  31198. var earliestPendingTime = root.earliestPendingTime;
  31199. var latestPingedTime = root.latestPingedTime;
  31200. // Work on the earliest pending time. Failing that, work on the latest
  31201. // pinged time.
  31202. var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;
  31203. // If there is no pending or pinged work, check if there's suspended work
  31204. // that's lower priority than what we just completed.
  31205. if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime < completedExpirationTime)) {
  31206. // The lowest priority suspended work is the work most likely to be
  31207. // committed next. Let's start rendering it again, so that if it times out,
  31208. // it's ready to commit.
  31209. nextExpirationTimeToWorkOn = latestSuspendedTime;
  31210. }
  31211. var expirationTime = nextExpirationTimeToWorkOn;
  31212. if (expirationTime !== NoWork && earliestSuspendedTime > expirationTime) {
  31213. // Expire using the earliest known expiration time.
  31214. expirationTime = earliestSuspendedTime;
  31215. }
  31216. root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;
  31217. root.expirationTime = expirationTime;
  31218. }
  31219. // UpdateQueue is a linked list of prioritized updates.
  31220. //
  31221. // Like fibers, update queues come in pairs: a current queue, which represents
  31222. // the visible state of the screen, and a work-in-progress queue, which is
  31223. // can be mutated and processed asynchronously before it is committed — a form
  31224. // of double buffering. If a work-in-progress render is discarded before
  31225. // finishing, we create a new work-in-progress by cloning the current queue.
  31226. //
  31227. // Both queues share a persistent, singly-linked list structure. To schedule an
  31228. // update, we append it to the end of both queues. Each queue maintains a
  31229. // pointer to first update in the persistent list that hasn't been processed.
  31230. // The work-in-progress pointer always has a position equal to or greater than
  31231. // the current queue, since we always work on that one. The current queue's
  31232. // pointer is only updated during the commit phase, when we swap in the
  31233. // work-in-progress.
  31234. //
  31235. // For example:
  31236. //
  31237. // Current pointer: A - B - C - D - E - F
  31238. // Work-in-progress pointer: D - E - F
  31239. // ^
  31240. // The work-in-progress queue has
  31241. // processed more updates than current.
  31242. //
  31243. // The reason we append to both queues is because otherwise we might drop
  31244. // updates without ever processing them. For example, if we only add updates to
  31245. // the work-in-progress queue, some updates could be lost whenever a work-in
  31246. // -progress render restarts by cloning from current. Similarly, if we only add
  31247. // updates to the current queue, the updates will be lost whenever an already
  31248. // in-progress queue commits and swaps with the current queue. However, by
  31249. // adding to both queues, we guarantee that the update will be part of the next
  31250. // work-in-progress. (And because the work-in-progress queue becomes the
  31251. // current queue once it commits, there's no danger of applying the same
  31252. // update twice.)
  31253. //
  31254. // Prioritization
  31255. // --------------
  31256. //
  31257. // Updates are not sorted by priority, but by insertion; new updates are always
  31258. // appended to the end of the list.
  31259. //
  31260. // The priority is still important, though. When processing the update queue
  31261. // during the render phase, only the updates with sufficient priority are
  31262. // included in the result. If we skip an update because it has insufficient
  31263. // priority, it remains in the queue to be processed later, during a lower
  31264. // priority render. Crucially, all updates subsequent to a skipped update also
  31265. // remain in the queue *regardless of their priority*. That means high priority
  31266. // updates are sometimes processed twice, at two separate priorities. We also
  31267. // keep track of a base state, that represents the state before the first
  31268. // update in the queue is applied.
  31269. //
  31270. // For example:
  31271. //
  31272. // Given a base state of '', and the following queue of updates
  31273. //
  31274. // A1 - B2 - C1 - D2
  31275. //
  31276. // where the number indicates the priority, and the update is applied to the
  31277. // previous state by appending a letter, React will process these updates as
  31278. // two separate renders, one per distinct priority level:
  31279. //
  31280. // First render, at priority 1:
  31281. // Base state: ''
  31282. // Updates: [A1, C1]
  31283. // Result state: 'AC'
  31284. //
  31285. // Second render, at priority 2:
  31286. // Base state: 'A' <- The base state does not include C1,
  31287. // because B2 was skipped.
  31288. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  31289. // Result state: 'ABCD'
  31290. //
  31291. // Because we process updates in insertion order, and rebase high priority
  31292. // updates when preceding updates are skipped, the final result is deterministic
  31293. // regardless of priority. Intermediate state may vary according to system
  31294. // resources, but the final state is always the same.
  31295. var UpdateState = 0;
  31296. var ReplaceState = 1;
  31297. var ForceUpdate = 2;
  31298. var CaptureUpdate = 3;
  31299. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  31300. // It should only be read right after calling `processUpdateQueue`, via
  31301. // `checkHasForceUpdateAfterProcessing`.
  31302. var hasForceUpdate = false;
  31303. var didWarnUpdateInsideUpdate = void 0;
  31304. var currentlyProcessingQueue = void 0;
  31305. var resetCurrentlyProcessingQueue = void 0;
  31306. {
  31307. didWarnUpdateInsideUpdate = false;
  31308. currentlyProcessingQueue = null;
  31309. resetCurrentlyProcessingQueue = function () {
  31310. currentlyProcessingQueue = null;
  31311. };
  31312. }
  31313. function createUpdateQueue(baseState) {
  31314. var queue = {
  31315. baseState: baseState,
  31316. firstUpdate: null,
  31317. lastUpdate: null,
  31318. firstCapturedUpdate: null,
  31319. lastCapturedUpdate: null,
  31320. firstEffect: null,
  31321. lastEffect: null,
  31322. firstCapturedEffect: null,
  31323. lastCapturedEffect: null
  31324. };
  31325. return queue;
  31326. }
  31327. function cloneUpdateQueue(currentQueue) {
  31328. var queue = {
  31329. baseState: currentQueue.baseState,
  31330. firstUpdate: currentQueue.firstUpdate,
  31331. lastUpdate: currentQueue.lastUpdate,
  31332. // TODO: With resuming, if we bail out and resuse the child tree, we should
  31333. // keep these effects.
  31334. firstCapturedUpdate: null,
  31335. lastCapturedUpdate: null,
  31336. firstEffect: null,
  31337. lastEffect: null,
  31338. firstCapturedEffect: null,
  31339. lastCapturedEffect: null
  31340. };
  31341. return queue;
  31342. }
  31343. function createUpdate(expirationTime) {
  31344. return {
  31345. expirationTime: expirationTime,
  31346. tag: UpdateState,
  31347. payload: null,
  31348. callback: null,
  31349. next: null,
  31350. nextEffect: null
  31351. };
  31352. }
  31353. function appendUpdateToQueue(queue, update) {
  31354. // Append the update to the end of the list.
  31355. if (queue.lastUpdate === null) {
  31356. // Queue is empty
  31357. queue.firstUpdate = queue.lastUpdate = update;
  31358. } else {
  31359. queue.lastUpdate.next = update;
  31360. queue.lastUpdate = update;
  31361. }
  31362. }
  31363. function enqueueUpdate(fiber, update) {
  31364. // Update queues are created lazily.
  31365. var alternate = fiber.alternate;
  31366. var queue1 = void 0;
  31367. var queue2 = void 0;
  31368. if (alternate === null) {
  31369. // There's only one fiber.
  31370. queue1 = fiber.updateQueue;
  31371. queue2 = null;
  31372. if (queue1 === null) {
  31373. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  31374. }
  31375. } else {
  31376. // There are two owners.
  31377. queue1 = fiber.updateQueue;
  31378. queue2 = alternate.updateQueue;
  31379. if (queue1 === null) {
  31380. if (queue2 === null) {
  31381. // Neither fiber has an update queue. Create new ones.
  31382. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  31383. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  31384. } else {
  31385. // Only one fiber has an update queue. Clone to create a new one.
  31386. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  31387. }
  31388. } else {
  31389. if (queue2 === null) {
  31390. // Only one fiber has an update queue. Clone to create a new one.
  31391. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  31392. } else {
  31393. // Both owners have an update queue.
  31394. }
  31395. }
  31396. }
  31397. if (queue2 === null || queue1 === queue2) {
  31398. // There's only a single queue.
  31399. appendUpdateToQueue(queue1, update);
  31400. } else {
  31401. // There are two queues. We need to append the update to both queues,
  31402. // while accounting for the persistent structure of the list — we don't
  31403. // want the same update to be added multiple times.
  31404. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  31405. // One of the queues is not empty. We must add the update to both queues.
  31406. appendUpdateToQueue(queue1, update);
  31407. appendUpdateToQueue(queue2, update);
  31408. } else {
  31409. // Both queues are non-empty. The last update is the same in both lists,
  31410. // because of structural sharing. So, only append to one of the lists.
  31411. appendUpdateToQueue(queue1, update);
  31412. // But we still need to update the `lastUpdate` pointer of queue2.
  31413. queue2.lastUpdate = update;
  31414. }
  31415. }
  31416. {
  31417. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  31418. warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
  31419. didWarnUpdateInsideUpdate = true;
  31420. }
  31421. }
  31422. }
  31423. function enqueueCapturedUpdate(workInProgress, update) {
  31424. // Captured updates go into a separate list, and only on the work-in-
  31425. // progress queue.
  31426. var workInProgressQueue = workInProgress.updateQueue;
  31427. if (workInProgressQueue === null) {
  31428. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  31429. } else {
  31430. // TODO: I put this here rather than createWorkInProgress so that we don't
  31431. // clone the queue unnecessarily. There's probably a better way to
  31432. // structure this.
  31433. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  31434. }
  31435. // Append the update to the end of the list.
  31436. if (workInProgressQueue.lastCapturedUpdate === null) {
  31437. // This is the first render phase update
  31438. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  31439. } else {
  31440. workInProgressQueue.lastCapturedUpdate.next = update;
  31441. workInProgressQueue.lastCapturedUpdate = update;
  31442. }
  31443. }
  31444. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  31445. var current = workInProgress.alternate;
  31446. if (current !== null) {
  31447. // If the work-in-progress queue is equal to the current queue,
  31448. // we need to clone it first.
  31449. if (queue === current.updateQueue) {
  31450. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  31451. }
  31452. }
  31453. return queue;
  31454. }
  31455. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  31456. switch (update.tag) {
  31457. case ReplaceState:
  31458. {
  31459. var _payload = update.payload;
  31460. if (typeof _payload === 'function') {
  31461. // Updater function
  31462. {
  31463. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  31464. _payload.call(instance, prevState, nextProps);
  31465. }
  31466. }
  31467. return _payload.call(instance, prevState, nextProps);
  31468. }
  31469. // State object
  31470. return _payload;
  31471. }
  31472. case CaptureUpdate:
  31473. {
  31474. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  31475. }
  31476. // Intentional fallthrough
  31477. case UpdateState:
  31478. {
  31479. var _payload2 = update.payload;
  31480. var partialState = void 0;
  31481. if (typeof _payload2 === 'function') {
  31482. // Updater function
  31483. {
  31484. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  31485. _payload2.call(instance, prevState, nextProps);
  31486. }
  31487. }
  31488. partialState = _payload2.call(instance, prevState, nextProps);
  31489. } else {
  31490. // Partial state object
  31491. partialState = _payload2;
  31492. }
  31493. if (partialState === null || partialState === undefined) {
  31494. // Null and undefined are treated as no-ops.
  31495. return prevState;
  31496. }
  31497. // Merge the partial state and the previous state.
  31498. return _assign({}, prevState, partialState);
  31499. }
  31500. case ForceUpdate:
  31501. {
  31502. hasForceUpdate = true;
  31503. return prevState;
  31504. }
  31505. }
  31506. return prevState;
  31507. }
  31508. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  31509. hasForceUpdate = false;
  31510. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  31511. {
  31512. currentlyProcessingQueue = queue;
  31513. }
  31514. // These values may change as we process the queue.
  31515. var newBaseState = queue.baseState;
  31516. var newFirstUpdate = null;
  31517. var newExpirationTime = NoWork;
  31518. // Iterate through the list of updates to compute the result.
  31519. var update = queue.firstUpdate;
  31520. var resultState = newBaseState;
  31521. while (update !== null) {
  31522. var updateExpirationTime = update.expirationTime;
  31523. if (updateExpirationTime < renderExpirationTime) {
  31524. // This update does not have sufficient priority. Skip it.
  31525. if (newFirstUpdate === null) {
  31526. // This is the first skipped update. It will be the first update in
  31527. // the new list.
  31528. newFirstUpdate = update;
  31529. // Since this is the first update that was skipped, the current result
  31530. // is the new base state.
  31531. newBaseState = resultState;
  31532. }
  31533. // Since this update will remain in the list, update the remaining
  31534. // expiration time.
  31535. if (newExpirationTime < updateExpirationTime) {
  31536. newExpirationTime = updateExpirationTime;
  31537. }
  31538. } else {
  31539. // This update does have sufficient priority. Process it and compute
  31540. // a new result.
  31541. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  31542. var _callback = update.callback;
  31543. if (_callback !== null) {
  31544. workInProgress.effectTag |= Callback;
  31545. // Set this to null, in case it was mutated during an aborted render.
  31546. update.nextEffect = null;
  31547. if (queue.lastEffect === null) {
  31548. queue.firstEffect = queue.lastEffect = update;
  31549. } else {
  31550. queue.lastEffect.nextEffect = update;
  31551. queue.lastEffect = update;
  31552. }
  31553. }
  31554. }
  31555. // Continue to the next update.
  31556. update = update.next;
  31557. }
  31558. // Separately, iterate though the list of captured updates.
  31559. var newFirstCapturedUpdate = null;
  31560. update = queue.firstCapturedUpdate;
  31561. while (update !== null) {
  31562. var _updateExpirationTime = update.expirationTime;
  31563. if (_updateExpirationTime < renderExpirationTime) {
  31564. // This update does not have sufficient priority. Skip it.
  31565. if (newFirstCapturedUpdate === null) {
  31566. // This is the first skipped captured update. It will be the first
  31567. // update in the new list.
  31568. newFirstCapturedUpdate = update;
  31569. // If this is the first update that was skipped, the current result is
  31570. // the new base state.
  31571. if (newFirstUpdate === null) {
  31572. newBaseState = resultState;
  31573. }
  31574. }
  31575. // Since this update will remain in the list, update the remaining
  31576. // expiration time.
  31577. if (newExpirationTime < _updateExpirationTime) {
  31578. newExpirationTime = _updateExpirationTime;
  31579. }
  31580. } else {
  31581. // This update does have sufficient priority. Process it and compute
  31582. // a new result.
  31583. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  31584. var _callback2 = update.callback;
  31585. if (_callback2 !== null) {
  31586. workInProgress.effectTag |= Callback;
  31587. // Set this to null, in case it was mutated during an aborted render.
  31588. update.nextEffect = null;
  31589. if (queue.lastCapturedEffect === null) {
  31590. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  31591. } else {
  31592. queue.lastCapturedEffect.nextEffect = update;
  31593. queue.lastCapturedEffect = update;
  31594. }
  31595. }
  31596. }
  31597. update = update.next;
  31598. }
  31599. if (newFirstUpdate === null) {
  31600. queue.lastUpdate = null;
  31601. }
  31602. if (newFirstCapturedUpdate === null) {
  31603. queue.lastCapturedUpdate = null;
  31604. } else {
  31605. workInProgress.effectTag |= Callback;
  31606. }
  31607. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  31608. // We processed every update, without skipping. That means the new base
  31609. // state is the same as the result state.
  31610. newBaseState = resultState;
  31611. }
  31612. queue.baseState = newBaseState;
  31613. queue.firstUpdate = newFirstUpdate;
  31614. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  31615. // Set the remaining expiration time to be whatever is remaining in the queue.
  31616. // This should be fine because the only two other things that contribute to
  31617. // expiration time are props and context. We're already in the middle of the
  31618. // begin phase by the time we start processing the queue, so we've already
  31619. // dealt with the props. Context in components that specify
  31620. // shouldComponentUpdate is tricky; but we'll have to account for
  31621. // that regardless.
  31622. workInProgress.expirationTime = newExpirationTime;
  31623. workInProgress.memoizedState = resultState;
  31624. {
  31625. currentlyProcessingQueue = null;
  31626. }
  31627. }
  31628. function callCallback(callback, context) {
  31629. !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;
  31630. callback.call(context);
  31631. }
  31632. function resetHasForceUpdateBeforeProcessing() {
  31633. hasForceUpdate = false;
  31634. }
  31635. function checkHasForceUpdateAfterProcessing() {
  31636. return hasForceUpdate;
  31637. }
  31638. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  31639. // If the finished render included captured updates, and there are still
  31640. // lower priority updates left over, we need to keep the captured updates
  31641. // in the queue so that they are rebased and not dropped once we process the
  31642. // queue again at the lower priority.
  31643. if (finishedQueue.firstCapturedUpdate !== null) {
  31644. // Join the captured update list to the end of the normal list.
  31645. if (finishedQueue.lastUpdate !== null) {
  31646. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  31647. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  31648. }
  31649. // Clear the list of captured updates.
  31650. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  31651. }
  31652. // Commit the effects
  31653. commitUpdateEffects(finishedQueue.firstEffect, instance);
  31654. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  31655. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  31656. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  31657. }
  31658. function commitUpdateEffects(effect, instance) {
  31659. while (effect !== null) {
  31660. var _callback3 = effect.callback;
  31661. if (_callback3 !== null) {
  31662. effect.callback = null;
  31663. callCallback(_callback3, instance);
  31664. }
  31665. effect = effect.nextEffect;
  31666. }
  31667. }
  31668. function createCapturedValue(value, source) {
  31669. // If the value is an error, call this function immediately after it is thrown
  31670. // so the stack is accurate.
  31671. return {
  31672. value: value,
  31673. source: source,
  31674. stack: getStackByFiberInDevAndProd(source)
  31675. };
  31676. }
  31677. var valueCursor = createCursor(null);
  31678. var rendererSigil = void 0;
  31679. {
  31680. // Use this to detect multiple renderers using the same context
  31681. rendererSigil = {};
  31682. }
  31683. var currentlyRenderingFiber = null;
  31684. var lastContextDependency = null;
  31685. var lastContextWithAllBitsObserved = null;
  31686. function resetContextDependences() {
  31687. // This is called right before React yields execution, to ensure `readContext`
  31688. // cannot be called outside the render phase.
  31689. currentlyRenderingFiber = null;
  31690. lastContextDependency = null;
  31691. lastContextWithAllBitsObserved = null;
  31692. }
  31693. function pushProvider(providerFiber, nextValue) {
  31694. var context = providerFiber.type._context;
  31695. if (isPrimaryRenderer) {
  31696. push(valueCursor, context._currentValue, providerFiber);
  31697. context._currentValue = nextValue;
  31698. {
  31699. !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  31700. context._currentRenderer = rendererSigil;
  31701. }
  31702. } else {
  31703. push(valueCursor, context._currentValue2, providerFiber);
  31704. context._currentValue2 = nextValue;
  31705. {
  31706. !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  31707. context._currentRenderer2 = rendererSigil;
  31708. }
  31709. }
  31710. }
  31711. function popProvider(providerFiber) {
  31712. var currentValue = valueCursor.current;
  31713. pop(valueCursor, providerFiber);
  31714. var context = providerFiber.type._context;
  31715. if (isPrimaryRenderer) {
  31716. context._currentValue = currentValue;
  31717. } else {
  31718. context._currentValue2 = currentValue;
  31719. }
  31720. }
  31721. function calculateChangedBits(context, newValue, oldValue) {
  31722. // Use Object.is to compare the new context value to the old value. Inlined
  31723. // Object.is polyfill.
  31724. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  31725. if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare
  31726. ) {
  31727. // No change
  31728. return 0;
  31729. } else {
  31730. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;
  31731. {
  31732. !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  31733. }
  31734. return changedBits | 0;
  31735. }
  31736. }
  31737. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  31738. var fiber = workInProgress.child;
  31739. if (fiber !== null) {
  31740. // Set the return pointer of the child to the work-in-progress fiber.
  31741. fiber.return = workInProgress;
  31742. }
  31743. while (fiber !== null) {
  31744. var nextFiber = void 0;
  31745. // Visit this fiber.
  31746. var dependency = fiber.firstContextDependency;
  31747. if (dependency !== null) {
  31748. do {
  31749. // Check if the context matches.
  31750. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  31751. // Match! Schedule an update on this fiber.
  31752. if (fiber.tag === ClassComponent) {
  31753. // Schedule a force update on the work-in-progress.
  31754. var update = createUpdate(renderExpirationTime);
  31755. update.tag = ForceUpdate;
  31756. // TODO: Because we don't have a work-in-progress, this will add the
  31757. // update to the current fiber, too, which means it will persist even if
  31758. // this render is thrown away. Since it's a race condition, not sure it's
  31759. // worth fixing.
  31760. enqueueUpdate(fiber, update);
  31761. }
  31762. if (fiber.expirationTime < renderExpirationTime) {
  31763. fiber.expirationTime = renderExpirationTime;
  31764. }
  31765. var alternate = fiber.alternate;
  31766. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  31767. alternate.expirationTime = renderExpirationTime;
  31768. }
  31769. // Update the child expiration time of all the ancestors, including
  31770. // the alternates.
  31771. var node = fiber.return;
  31772. while (node !== null) {
  31773. alternate = node.alternate;
  31774. if (node.childExpirationTime < renderExpirationTime) {
  31775. node.childExpirationTime = renderExpirationTime;
  31776. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  31777. alternate.childExpirationTime = renderExpirationTime;
  31778. }
  31779. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  31780. alternate.childExpirationTime = renderExpirationTime;
  31781. } else {
  31782. // Neither alternate was updated, which means the rest of the
  31783. // ancestor path already has sufficient priority.
  31784. break;
  31785. }
  31786. node = node.return;
  31787. }
  31788. }
  31789. nextFiber = fiber.child;
  31790. dependency = dependency.next;
  31791. } while (dependency !== null);
  31792. } else if (fiber.tag === ContextProvider) {
  31793. // Don't scan deeper if this is a matching provider
  31794. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  31795. } else {
  31796. // Traverse down.
  31797. nextFiber = fiber.child;
  31798. }
  31799. if (nextFiber !== null) {
  31800. // Set the return pointer of the child to the work-in-progress fiber.
  31801. nextFiber.return = fiber;
  31802. } else {
  31803. // No child. Traverse to next sibling.
  31804. nextFiber = fiber;
  31805. while (nextFiber !== null) {
  31806. if (nextFiber === workInProgress) {
  31807. // We're back to the root of this subtree. Exit.
  31808. nextFiber = null;
  31809. break;
  31810. }
  31811. var sibling = nextFiber.sibling;
  31812. if (sibling !== null) {
  31813. // Set the return pointer of the sibling to the work-in-progress fiber.
  31814. sibling.return = nextFiber.return;
  31815. nextFiber = sibling;
  31816. break;
  31817. }
  31818. // No more siblings. Traverse up.
  31819. nextFiber = nextFiber.return;
  31820. }
  31821. }
  31822. fiber = nextFiber;
  31823. }
  31824. }
  31825. function prepareToReadContext(workInProgress, renderExpirationTime) {
  31826. currentlyRenderingFiber = workInProgress;
  31827. lastContextDependency = null;
  31828. lastContextWithAllBitsObserved = null;
  31829. // Reset the work-in-progress list
  31830. workInProgress.firstContextDependency = null;
  31831. }
  31832. function readContext(context, observedBits) {
  31833. if (lastContextWithAllBitsObserved === context) {
  31834. // Nothing to do. We already observe everything in this context.
  31835. } else if (observedBits === false || observedBits === 0) {
  31836. // Do not observe any updates.
  31837. } else {
  31838. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  31839. if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {
  31840. // Observe all updates.
  31841. lastContextWithAllBitsObserved = context;
  31842. resolvedObservedBits = maxSigned31BitInt;
  31843. } else {
  31844. resolvedObservedBits = observedBits;
  31845. }
  31846. var contextItem = {
  31847. context: context,
  31848. observedBits: resolvedObservedBits,
  31849. next: null
  31850. };
  31851. if (lastContextDependency === null) {
  31852. !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
  31853. // This is the first dependency in the list
  31854. currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem;
  31855. } else {
  31856. // Append a new context item.
  31857. lastContextDependency = lastContextDependency.next = contextItem;
  31858. }
  31859. }
  31860. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  31861. }
  31862. var NoEffect$1 = /* */0;
  31863. var UnmountSnapshot = /* */2;
  31864. var UnmountMutation = /* */4;
  31865. var MountMutation = /* */8;
  31866. var UnmountLayout = /* */16;
  31867. var MountLayout = /* */32;
  31868. var MountPassive = /* */64;
  31869. var UnmountPassive = /* */128;
  31870. function areHookInputsEqual(arr1, arr2) {
  31871. // Don't bother comparing lengths in prod because these arrays should be
  31872. // passed inline.
  31873. {
  31874. !(arr1.length === arr2.length) ? warning$1(false, 'Detected a variable number of hook dependencies. The length of the ' + 'dependencies array should be constant between renders.\n\n' + 'Previous: %s\n' + 'Incoming: %s', arr1.join(', '), arr2.join(', ')) : void 0;
  31875. }
  31876. for (var i = 0; i < arr1.length; i++) {
  31877. // Inlined Object.is polyfill.
  31878. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  31879. var val1 = arr1[i];
  31880. var val2 = arr2[i];
  31881. if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare
  31882. ) {
  31883. continue;
  31884. }
  31885. return false;
  31886. }
  31887. return true;
  31888. }
  31889. // These are set right before calling the component.
  31890. var renderExpirationTime = NoWork;
  31891. // The work-in-progress fiber. I've named it differently to distinguish it from
  31892. // the work-in-progress hook.
  31893. var currentlyRenderingFiber$1 = null;
  31894. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  31895. // current hook list is the list that belongs to the current fiber. The
  31896. // work-in-progress hook list is a new list that will be added to the
  31897. // work-in-progress fiber.
  31898. var firstCurrentHook = null;
  31899. var currentHook = null;
  31900. var firstWorkInProgressHook = null;
  31901. var workInProgressHook = null;
  31902. var remainingExpirationTime = NoWork;
  31903. var componentUpdateQueue = null;
  31904. // Updates scheduled during render will trigger an immediate re-render at the
  31905. // end of the current pass. We can't store these updates on the normal queue,
  31906. // because if the work is aborted, they should be discarded. Because this is
  31907. // a relatively rare case, we also don't want to add an additional field to
  31908. // either the hook or queue object types. So we store them in a lazily create
  31909. // map of queue -> render-phase updates, which are discarded once the component
  31910. // completes without re-rendering.
  31911. // Whether the work-in-progress hook is a re-rendered hook
  31912. var isReRender = false;
  31913. // Whether an update was scheduled during the currently executing render pass.
  31914. var didScheduleRenderPhaseUpdate = false;
  31915. // Lazily created map of render-phase updates
  31916. var renderPhaseUpdates = null;
  31917. // Counter to prevent infinite loops.
  31918. var numberOfReRenders = 0;
  31919. var RE_RENDER_LIMIT = 25;
  31920. function resolveCurrentlyRenderingFiber() {
  31921. !(currentlyRenderingFiber$1 !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  31922. return currentlyRenderingFiber$1;
  31923. }
  31924. function prepareToUseHooks(current, workInProgress, nextRenderExpirationTime) {
  31925. if (!enableHooks) {
  31926. return;
  31927. }
  31928. renderExpirationTime = nextRenderExpirationTime;
  31929. currentlyRenderingFiber$1 = workInProgress;
  31930. firstCurrentHook = current !== null ? current.memoizedState : null;
  31931. // The following should have already been reset
  31932. // currentHook = null;
  31933. // workInProgressHook = null;
  31934. // remainingExpirationTime = NoWork;
  31935. // componentUpdateQueue = null;
  31936. // isReRender = false;
  31937. // didScheduleRenderPhaseUpdate = false;
  31938. // renderPhaseUpdates = null;
  31939. // numberOfReRenders = 0;
  31940. }
  31941. function finishHooks(Component, props, children, refOrContext) {
  31942. if (!enableHooks) {
  31943. return children;
  31944. }
  31945. // This must be called after every function component to prevent hooks from
  31946. // being used in classes.
  31947. while (didScheduleRenderPhaseUpdate) {
  31948. // Updates were scheduled during the render phase. They are stored in
  31949. // the `renderPhaseUpdates` map. Call the component again, reusing the
  31950. // work-in-progress hooks and applying the additional updates on top. Keep
  31951. // restarting until no more updates are scheduled.
  31952. didScheduleRenderPhaseUpdate = false;
  31953. numberOfReRenders += 1;
  31954. // Start over from the beginning of the list
  31955. currentHook = null;
  31956. workInProgressHook = null;
  31957. componentUpdateQueue = null;
  31958. children = Component(props, refOrContext);
  31959. }
  31960. renderPhaseUpdates = null;
  31961. numberOfReRenders = 0;
  31962. var renderedWork = currentlyRenderingFiber$1;
  31963. renderedWork.memoizedState = firstWorkInProgressHook;
  31964. renderedWork.expirationTime = remainingExpirationTime;
  31965. renderedWork.updateQueue = componentUpdateQueue;
  31966. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  31967. renderExpirationTime = NoWork;
  31968. currentlyRenderingFiber$1 = null;
  31969. firstCurrentHook = null;
  31970. currentHook = null;
  31971. firstWorkInProgressHook = null;
  31972. workInProgressHook = null;
  31973. remainingExpirationTime = NoWork;
  31974. componentUpdateQueue = null;
  31975. // Always set during createWorkInProgress
  31976. // isReRender = false;
  31977. // These were reset above
  31978. // didScheduleRenderPhaseUpdate = false;
  31979. // renderPhaseUpdates = null;
  31980. // numberOfReRenders = 0;
  31981. !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0;
  31982. return children;
  31983. }
  31984. function resetHooks() {
  31985. if (!enableHooks) {
  31986. return;
  31987. }
  31988. // This is called instead of `finishHooks` if the component throws. It's also
  31989. // called inside mountIndeterminateComponent if we determine the component
  31990. // is a module-style component.
  31991. renderExpirationTime = NoWork;
  31992. currentlyRenderingFiber$1 = null;
  31993. firstCurrentHook = null;
  31994. currentHook = null;
  31995. firstWorkInProgressHook = null;
  31996. workInProgressHook = null;
  31997. remainingExpirationTime = NoWork;
  31998. componentUpdateQueue = null;
  31999. // Always set during createWorkInProgress
  32000. // isReRender = false;
  32001. didScheduleRenderPhaseUpdate = false;
  32002. renderPhaseUpdates = null;
  32003. numberOfReRenders = 0;
  32004. }
  32005. function createHook() {
  32006. return {
  32007. memoizedState: null,
  32008. baseState: null,
  32009. queue: null,
  32010. baseUpdate: null,
  32011. next: null
  32012. };
  32013. }
  32014. function cloneHook(hook) {
  32015. return {
  32016. memoizedState: hook.memoizedState,
  32017. baseState: hook.memoizedState,
  32018. queue: hook.queue,
  32019. baseUpdate: hook.baseUpdate,
  32020. next: null
  32021. };
  32022. }
  32023. function createWorkInProgressHook() {
  32024. if (workInProgressHook === null) {
  32025. // This is the first hook in the list
  32026. if (firstWorkInProgressHook === null) {
  32027. isReRender = false;
  32028. currentHook = firstCurrentHook;
  32029. if (currentHook === null) {
  32030. // This is a newly mounted hook
  32031. workInProgressHook = createHook();
  32032. } else {
  32033. // Clone the current hook.
  32034. workInProgressHook = cloneHook(currentHook);
  32035. }
  32036. firstWorkInProgressHook = workInProgressHook;
  32037. } else {
  32038. // There's already a work-in-progress. Reuse it.
  32039. isReRender = true;
  32040. currentHook = firstCurrentHook;
  32041. workInProgressHook = firstWorkInProgressHook;
  32042. }
  32043. } else {
  32044. if (workInProgressHook.next === null) {
  32045. isReRender = false;
  32046. var hook = void 0;
  32047. if (currentHook === null) {
  32048. // This is a newly mounted hook
  32049. hook = createHook();
  32050. } else {
  32051. currentHook = currentHook.next;
  32052. if (currentHook === null) {
  32053. // This is a newly mounted hook
  32054. hook = createHook();
  32055. } else {
  32056. // Clone the current hook.
  32057. hook = cloneHook(currentHook);
  32058. }
  32059. }
  32060. // Append to the end of the list
  32061. workInProgressHook = workInProgressHook.next = hook;
  32062. } else {
  32063. // There's already a work-in-progress. Reuse it.
  32064. isReRender = true;
  32065. workInProgressHook = workInProgressHook.next;
  32066. currentHook = currentHook !== null ? currentHook.next : null;
  32067. }
  32068. }
  32069. return workInProgressHook;
  32070. }
  32071. function createFunctionComponentUpdateQueue() {
  32072. return {
  32073. lastEffect: null
  32074. };
  32075. }
  32076. function basicStateReducer(state, action) {
  32077. return typeof action === 'function' ? action(state) : action;
  32078. }
  32079. function useContext(context, observedBits) {
  32080. // Ensure we're in a function component (class components support only the
  32081. // .unstable_read() form)
  32082. resolveCurrentlyRenderingFiber();
  32083. return readContext(context, observedBits);
  32084. }
  32085. function useState(initialState) {
  32086. return useReducer(basicStateReducer,
  32087. // useReducer has a special case to support lazy useState initializers
  32088. initialState);
  32089. }
  32090. function useReducer(reducer, initialState, initialAction) {
  32091. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32092. workInProgressHook = createWorkInProgressHook();
  32093. var queue = workInProgressHook.queue;
  32094. if (queue !== null) {
  32095. // Already have a queue, so this is an update.
  32096. if (isReRender) {
  32097. // This is a re-render. Apply the new render phase updates to the previous
  32098. var _dispatch2 = queue.dispatch;
  32099. if (renderPhaseUpdates !== null) {
  32100. // Render phase updates are stored in a map of queue -> linked list
  32101. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  32102. if (firstRenderPhaseUpdate !== undefined) {
  32103. renderPhaseUpdates.delete(queue);
  32104. var newState = workInProgressHook.memoizedState;
  32105. var update = firstRenderPhaseUpdate;
  32106. do {
  32107. // Process this render phase update. We don't have to check the
  32108. // priority because it will always be the same as the current
  32109. // render's.
  32110. var _action = update.action;
  32111. newState = reducer(newState, _action);
  32112. update = update.next;
  32113. } while (update !== null);
  32114. workInProgressHook.memoizedState = newState;
  32115. // Don't persist the state accumlated from the render phase updates to
  32116. // the base state unless the queue is empty.
  32117. // TODO: Not sure if this is the desired semantics, but it's what we
  32118. // do for gDSFP. I can't remember why.
  32119. if (workInProgressHook.baseUpdate === queue.last) {
  32120. workInProgressHook.baseState = newState;
  32121. }
  32122. return [newState, _dispatch2];
  32123. }
  32124. }
  32125. return [workInProgressHook.memoizedState, _dispatch2];
  32126. }
  32127. // The last update in the entire queue
  32128. var _last = queue.last;
  32129. // The last update that is part of the base state.
  32130. var _baseUpdate = workInProgressHook.baseUpdate;
  32131. // Find the first unprocessed update.
  32132. var first = void 0;
  32133. if (_baseUpdate !== null) {
  32134. if (_last !== null) {
  32135. // For the first update, the queue is a circular linked list where
  32136. // `queue.last.next = queue.first`. Once the first update commits, and
  32137. // the `baseUpdate` is no longer empty, we can unravel the list.
  32138. _last.next = null;
  32139. }
  32140. first = _baseUpdate.next;
  32141. } else {
  32142. first = _last !== null ? _last.next : null;
  32143. }
  32144. if (first !== null) {
  32145. var _newState = workInProgressHook.baseState;
  32146. var newBaseState = null;
  32147. var newBaseUpdate = null;
  32148. var prevUpdate = _baseUpdate;
  32149. var _update = first;
  32150. var didSkip = false;
  32151. do {
  32152. var updateExpirationTime = _update.expirationTime;
  32153. if (updateExpirationTime < renderExpirationTime) {
  32154. // Priority is insufficient. Skip this update. If this is the first
  32155. // skipped update, the previous update/state is the new base
  32156. // update/state.
  32157. if (!didSkip) {
  32158. didSkip = true;
  32159. newBaseUpdate = prevUpdate;
  32160. newBaseState = _newState;
  32161. }
  32162. // Update the remaining priority in the queue.
  32163. if (updateExpirationTime > remainingExpirationTime) {
  32164. remainingExpirationTime = updateExpirationTime;
  32165. }
  32166. } else {
  32167. // Process this update.
  32168. var _action2 = _update.action;
  32169. _newState = reducer(_newState, _action2);
  32170. }
  32171. prevUpdate = _update;
  32172. _update = _update.next;
  32173. } while (_update !== null && _update !== first);
  32174. if (!didSkip) {
  32175. newBaseUpdate = prevUpdate;
  32176. newBaseState = _newState;
  32177. }
  32178. workInProgressHook.memoizedState = _newState;
  32179. workInProgressHook.baseUpdate = newBaseUpdate;
  32180. workInProgressHook.baseState = newBaseState;
  32181. }
  32182. var _dispatch = queue.dispatch;
  32183. return [workInProgressHook.memoizedState, _dispatch];
  32184. }
  32185. // There's no existing queue, so this is the initial render.
  32186. if (reducer === basicStateReducer) {
  32187. // Special case for `useState`.
  32188. if (typeof initialState === 'function') {
  32189. initialState = initialState();
  32190. }
  32191. } else if (initialAction !== undefined && initialAction !== null) {
  32192. initialState = reducer(initialState, initialAction);
  32193. }
  32194. workInProgressHook.memoizedState = workInProgressHook.baseState = initialState;
  32195. queue = workInProgressHook.queue = {
  32196. last: null,
  32197. dispatch: null
  32198. };
  32199. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  32200. return [workInProgressHook.memoizedState, dispatch];
  32201. }
  32202. function pushEffect(tag, create, destroy, inputs) {
  32203. var effect = {
  32204. tag: tag,
  32205. create: create,
  32206. destroy: destroy,
  32207. inputs: inputs,
  32208. // Circular
  32209. next: null
  32210. };
  32211. if (componentUpdateQueue === null) {
  32212. componentUpdateQueue = createFunctionComponentUpdateQueue();
  32213. componentUpdateQueue.lastEffect = effect.next = effect;
  32214. } else {
  32215. var _lastEffect = componentUpdateQueue.lastEffect;
  32216. if (_lastEffect === null) {
  32217. componentUpdateQueue.lastEffect = effect.next = effect;
  32218. } else {
  32219. var firstEffect = _lastEffect.next;
  32220. _lastEffect.next = effect;
  32221. effect.next = firstEffect;
  32222. componentUpdateQueue.lastEffect = effect;
  32223. }
  32224. }
  32225. return effect;
  32226. }
  32227. function useRef(initialValue) {
  32228. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32229. workInProgressHook = createWorkInProgressHook();
  32230. var ref = void 0;
  32231. if (workInProgressHook.memoizedState === null) {
  32232. ref = { current: initialValue };
  32233. {
  32234. Object.seal(ref);
  32235. }
  32236. workInProgressHook.memoizedState = ref;
  32237. } else {
  32238. ref = workInProgressHook.memoizedState;
  32239. }
  32240. return ref;
  32241. }
  32242. function useMutationEffect(create, inputs) {
  32243. useEffectImpl(Snapshot | Update, UnmountSnapshot | MountMutation, create, inputs);
  32244. }
  32245. function useLayoutEffect(create, inputs) {
  32246. useEffectImpl(Update, UnmountMutation | MountLayout, create, inputs);
  32247. }
  32248. function useEffect(create, inputs) {
  32249. useEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, inputs);
  32250. }
  32251. function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) {
  32252. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32253. workInProgressHook = createWorkInProgressHook();
  32254. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [create];
  32255. var destroy = null;
  32256. if (currentHook !== null) {
  32257. var prevEffect = currentHook.memoizedState;
  32258. destroy = prevEffect.destroy;
  32259. if (areHookInputsEqual(nextInputs, prevEffect.inputs)) {
  32260. pushEffect(NoEffect$1, create, destroy, nextInputs);
  32261. return;
  32262. }
  32263. }
  32264. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  32265. workInProgressHook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextInputs);
  32266. }
  32267. function useImperativeMethods(ref, create, inputs) {
  32268. // TODO: If inputs are provided, should we skip comparing the ref itself?
  32269. var nextInputs = inputs !== null && inputs !== undefined ? inputs.concat([ref]) : [ref, create];
  32270. // TODO: I've implemented this on top of useEffect because it's almost the
  32271. // same thing, and it would require an equal amount of code. It doesn't seem
  32272. // like a common enough use case to justify the additional size.
  32273. useEffectImpl(Update, UnmountMutation | MountLayout, function () {
  32274. if (typeof ref === 'function') {
  32275. var refCallback = ref;
  32276. var _inst = create();
  32277. refCallback(_inst);
  32278. return function () {
  32279. return refCallback(null);
  32280. };
  32281. } else if (ref !== null && ref !== undefined) {
  32282. var refObject = ref;
  32283. var _inst2 = create();
  32284. refObject.current = _inst2;
  32285. return function () {
  32286. refObject.current = null;
  32287. };
  32288. }
  32289. }, nextInputs);
  32290. }
  32291. function useCallback(callback, inputs) {
  32292. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32293. workInProgressHook = createWorkInProgressHook();
  32294. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [callback];
  32295. var prevState = workInProgressHook.memoizedState;
  32296. if (prevState !== null) {
  32297. var prevInputs = prevState[1];
  32298. if (areHookInputsEqual(nextInputs, prevInputs)) {
  32299. return prevState[0];
  32300. }
  32301. }
  32302. workInProgressHook.memoizedState = [callback, nextInputs];
  32303. return callback;
  32304. }
  32305. function useMemo(nextCreate, inputs) {
  32306. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  32307. workInProgressHook = createWorkInProgressHook();
  32308. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [nextCreate];
  32309. var prevState = workInProgressHook.memoizedState;
  32310. if (prevState !== null) {
  32311. var prevInputs = prevState[1];
  32312. if (areHookInputsEqual(nextInputs, prevInputs)) {
  32313. return prevState[0];
  32314. }
  32315. }
  32316. var nextValue = nextCreate();
  32317. workInProgressHook.memoizedState = [nextValue, nextInputs];
  32318. return nextValue;
  32319. }
  32320. function dispatchAction(fiber, queue, action) {
  32321. !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0;
  32322. var alternate = fiber.alternate;
  32323. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  32324. // This is a render phase update. Stash it in a lazily-created map of
  32325. // queue -> linked list of updates. After this render pass, we'll restart
  32326. // and apply the stashed updates on top of the work-in-progress hook.
  32327. didScheduleRenderPhaseUpdate = true;
  32328. var update = {
  32329. expirationTime: renderExpirationTime,
  32330. action: action,
  32331. next: null
  32332. };
  32333. if (renderPhaseUpdates === null) {
  32334. renderPhaseUpdates = new Map();
  32335. }
  32336. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  32337. if (firstRenderPhaseUpdate === undefined) {
  32338. renderPhaseUpdates.set(queue, update);
  32339. } else {
  32340. // Append the update to the end of the list.
  32341. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  32342. while (lastRenderPhaseUpdate.next !== null) {
  32343. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  32344. }
  32345. lastRenderPhaseUpdate.next = update;
  32346. }
  32347. } else {
  32348. var currentTime = requestCurrentTime();
  32349. var _expirationTime = computeExpirationForFiber(currentTime, fiber);
  32350. var _update2 = {
  32351. expirationTime: _expirationTime,
  32352. action: action,
  32353. next: null
  32354. };
  32355. flushPassiveEffects();
  32356. // Append the update to the end of the list.
  32357. var _last2 = queue.last;
  32358. if (_last2 === null) {
  32359. // This is the first update. Create a circular list.
  32360. _update2.next = _update2;
  32361. } else {
  32362. var first = _last2.next;
  32363. if (first !== null) {
  32364. // Still circular.
  32365. _update2.next = first;
  32366. }
  32367. _last2.next = _update2;
  32368. }
  32369. queue.last = _update2;
  32370. scheduleWork(fiber, _expirationTime);
  32371. }
  32372. }
  32373. var NO_CONTEXT = {};
  32374. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  32375. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  32376. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  32377. function requiredContext(c) {
  32378. !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  32379. return c;
  32380. }
  32381. function getRootHostContainer() {
  32382. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  32383. return rootInstance;
  32384. }
  32385. function pushHostContainer(fiber, nextRootInstance) {
  32386. // Push current root instance onto the stack;
  32387. // This allows us to reset root when portals are popped.
  32388. push(rootInstanceStackCursor, nextRootInstance, fiber);
  32389. // Track the context and the Fiber that provided it.
  32390. // This enables us to pop only Fibers that provide unique contexts.
  32391. push(contextFiberStackCursor, fiber, fiber);
  32392. // Finally, we need to push the host context to the stack.
  32393. // However, we can't just call getRootHostContext() and push it because
  32394. // we'd have a different number of entries on the stack depending on
  32395. // whether getRootHostContext() throws somewhere in renderer code or not.
  32396. // So we push an empty value first. This lets us safely unwind on errors.
  32397. push(contextStackCursor$1, NO_CONTEXT, fiber);
  32398. var nextRootContext = getRootHostContext(nextRootInstance);
  32399. // Now that we know this function doesn't throw, replace it.
  32400. pop(contextStackCursor$1, fiber);
  32401. push(contextStackCursor$1, nextRootContext, fiber);
  32402. }
  32403. function popHostContainer(fiber) {
  32404. pop(contextStackCursor$1, fiber);
  32405. pop(contextFiberStackCursor, fiber);
  32406. pop(rootInstanceStackCursor, fiber);
  32407. }
  32408. function getHostContext() {
  32409. var context = requiredContext(contextStackCursor$1.current);
  32410. return context;
  32411. }
  32412. function pushHostContext(fiber) {
  32413. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  32414. var context = requiredContext(contextStackCursor$1.current);
  32415. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  32416. // Don't push this Fiber's context unless it's unique.
  32417. if (context === nextContext) {
  32418. return;
  32419. }
  32420. // Track the context and the Fiber that provided it.
  32421. // This enables us to pop only Fibers that provide unique contexts.
  32422. push(contextFiberStackCursor, fiber, fiber);
  32423. push(contextStackCursor$1, nextContext, fiber);
  32424. }
  32425. function popHostContext(fiber) {
  32426. // Do not pop unless this Fiber provided the current context.
  32427. // pushHostContext() only pushes Fibers that provide unique contexts.
  32428. if (contextFiberStackCursor.current !== fiber) {
  32429. return;
  32430. }
  32431. pop(contextStackCursor$1, fiber);
  32432. pop(contextFiberStackCursor, fiber);
  32433. }
  32434. var commitTime = 0;
  32435. var profilerStartTime = -1;
  32436. function getCommitTime() {
  32437. return commitTime;
  32438. }
  32439. function recordCommitTime() {
  32440. if (!enableProfilerTimer) {
  32441. return;
  32442. }
  32443. commitTime = scheduler.unstable_now();
  32444. }
  32445. function startProfilerTimer(fiber) {
  32446. if (!enableProfilerTimer) {
  32447. return;
  32448. }
  32449. profilerStartTime = scheduler.unstable_now();
  32450. if (fiber.actualStartTime < 0) {
  32451. fiber.actualStartTime = scheduler.unstable_now();
  32452. }
  32453. }
  32454. function stopProfilerTimerIfRunning(fiber) {
  32455. if (!enableProfilerTimer) {
  32456. return;
  32457. }
  32458. profilerStartTime = -1;
  32459. }
  32460. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  32461. if (!enableProfilerTimer) {
  32462. return;
  32463. }
  32464. if (profilerStartTime >= 0) {
  32465. var elapsedTime = scheduler.unstable_now() - profilerStartTime;
  32466. fiber.actualDuration += elapsedTime;
  32467. if (overrideBaseTime) {
  32468. fiber.selfBaseDuration = elapsedTime;
  32469. }
  32470. profilerStartTime = -1;
  32471. }
  32472. }
  32473. function resolveDefaultProps(Component, baseProps) {
  32474. if (Component && Component.defaultProps) {
  32475. // Resolve default props. Taken from ReactElement
  32476. var props = _assign({}, baseProps);
  32477. var defaultProps = Component.defaultProps;
  32478. for (var propName in defaultProps) {
  32479. if (props[propName] === undefined) {
  32480. props[propName] = defaultProps[propName];
  32481. }
  32482. }
  32483. return props;
  32484. }
  32485. return baseProps;
  32486. }
  32487. function readLazyComponentType(lazyComponent) {
  32488. var status = lazyComponent._status;
  32489. var result = lazyComponent._result;
  32490. switch (status) {
  32491. case Resolved:
  32492. {
  32493. var Component = result;
  32494. return Component;
  32495. }
  32496. case Rejected:
  32497. {
  32498. var error = result;
  32499. throw error;
  32500. }
  32501. case Pending:
  32502. {
  32503. var thenable = result;
  32504. throw thenable;
  32505. }
  32506. default:
  32507. {
  32508. lazyComponent._status = Pending;
  32509. var ctor = lazyComponent._ctor;
  32510. var _thenable = ctor();
  32511. _thenable.then(function (moduleObject) {
  32512. if (lazyComponent._status === Pending) {
  32513. var defaultExport = moduleObject.default;
  32514. {
  32515. if (defaultExport === undefined) {
  32516. warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
  32517. }
  32518. }
  32519. lazyComponent._status = Resolved;
  32520. lazyComponent._result = defaultExport;
  32521. }
  32522. }, function (error) {
  32523. if (lazyComponent._status === Pending) {
  32524. lazyComponent._status = Rejected;
  32525. lazyComponent._result = error;
  32526. }
  32527. });
  32528. lazyComponent._result = _thenable;
  32529. throw _thenable;
  32530. }
  32531. }
  32532. }
  32533. var ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner;
  32534. function readContext$1(contextType) {
  32535. var dispatcher = ReactCurrentOwner$4.currentDispatcher;
  32536. return dispatcher.readContext(contextType);
  32537. }
  32538. var fakeInternalInstance = {};
  32539. var isArray$1 = Array.isArray;
  32540. // React.Component uses a shared frozen object by default.
  32541. // We'll use it to determine whether we need to initialize legacy refs.
  32542. var emptyRefsObject = new React.Component().refs;
  32543. var didWarnAboutStateAssignmentForComponent = void 0;
  32544. var didWarnAboutUninitializedState = void 0;
  32545. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  32546. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  32547. var didWarnAboutUndefinedDerivedState = void 0;
  32548. var warnOnUndefinedDerivedState = void 0;
  32549. var warnOnInvalidCallback$1 = void 0;
  32550. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  32551. var didWarnAboutContextTypeAndContextTypes = void 0;
  32552. var didWarnAboutInvalidateContextType = void 0;
  32553. {
  32554. didWarnAboutStateAssignmentForComponent = new Set();
  32555. didWarnAboutUninitializedState = new Set();
  32556. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  32557. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  32558. didWarnAboutDirectlyAssigningPropsToState = new Set();
  32559. didWarnAboutUndefinedDerivedState = new Set();
  32560. didWarnAboutContextTypeAndContextTypes = new Set();
  32561. didWarnAboutInvalidateContextType = new Set();
  32562. var didWarnOnInvalidCallback = new Set();
  32563. warnOnInvalidCallback$1 = function (callback, callerName) {
  32564. if (callback === null || typeof callback === 'function') {
  32565. return;
  32566. }
  32567. var key = callerName + '_' + callback;
  32568. if (!didWarnOnInvalidCallback.has(key)) {
  32569. didWarnOnInvalidCallback.add(key);
  32570. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  32571. }
  32572. };
  32573. warnOnUndefinedDerivedState = function (type, partialState) {
  32574. if (partialState === undefined) {
  32575. var componentName = getComponentName(type) || 'Component';
  32576. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  32577. didWarnAboutUndefinedDerivedState.add(componentName);
  32578. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  32579. }
  32580. }
  32581. };
  32582. // This is so gross but it's at least non-critical and can be removed if
  32583. // it causes problems. This is meant to give a nicer error message for
  32584. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  32585. // ...)) which otherwise throws a "_processChildContext is not a function"
  32586. // exception.
  32587. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  32588. enumerable: false,
  32589. value: function () {
  32590. invariant(false, '_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).');
  32591. }
  32592. });
  32593. Object.freeze(fakeInternalInstance);
  32594. }
  32595. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  32596. var prevState = workInProgress.memoizedState;
  32597. {
  32598. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32599. // Invoke the function an extra time to help detect side-effects.
  32600. getDerivedStateFromProps(nextProps, prevState);
  32601. }
  32602. }
  32603. var partialState = getDerivedStateFromProps(nextProps, prevState);
  32604. {
  32605. warnOnUndefinedDerivedState(ctor, partialState);
  32606. }
  32607. // Merge the partial state and the previous state.
  32608. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  32609. workInProgress.memoizedState = memoizedState;
  32610. // Once the update queue is empty, persist the derived state onto the
  32611. // base state.
  32612. var updateQueue = workInProgress.updateQueue;
  32613. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  32614. updateQueue.baseState = memoizedState;
  32615. }
  32616. }
  32617. var classComponentUpdater = {
  32618. isMounted: isMounted,
  32619. enqueueSetState: function (inst, payload, callback) {
  32620. var fiber = get(inst);
  32621. var currentTime = requestCurrentTime();
  32622. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  32623. var update = createUpdate(expirationTime);
  32624. update.payload = payload;
  32625. if (callback !== undefined && callback !== null) {
  32626. {
  32627. warnOnInvalidCallback$1(callback, 'setState');
  32628. }
  32629. update.callback = callback;
  32630. }
  32631. flushPassiveEffects();
  32632. enqueueUpdate(fiber, update);
  32633. scheduleWork(fiber, expirationTime);
  32634. },
  32635. enqueueReplaceState: function (inst, payload, callback) {
  32636. var fiber = get(inst);
  32637. var currentTime = requestCurrentTime();
  32638. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  32639. var update = createUpdate(expirationTime);
  32640. update.tag = ReplaceState;
  32641. update.payload = payload;
  32642. if (callback !== undefined && callback !== null) {
  32643. {
  32644. warnOnInvalidCallback$1(callback, 'replaceState');
  32645. }
  32646. update.callback = callback;
  32647. }
  32648. flushPassiveEffects();
  32649. enqueueUpdate(fiber, update);
  32650. scheduleWork(fiber, expirationTime);
  32651. },
  32652. enqueueForceUpdate: function (inst, callback) {
  32653. var fiber = get(inst);
  32654. var currentTime = requestCurrentTime();
  32655. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  32656. var update = createUpdate(expirationTime);
  32657. update.tag = ForceUpdate;
  32658. if (callback !== undefined && callback !== null) {
  32659. {
  32660. warnOnInvalidCallback$1(callback, 'forceUpdate');
  32661. }
  32662. update.callback = callback;
  32663. }
  32664. flushPassiveEffects();
  32665. enqueueUpdate(fiber, update);
  32666. scheduleWork(fiber, expirationTime);
  32667. }
  32668. };
  32669. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  32670. var instance = workInProgress.stateNode;
  32671. if (typeof instance.shouldComponentUpdate === 'function') {
  32672. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  32673. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  32674. stopPhaseTimer();
  32675. {
  32676. !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
  32677. }
  32678. return shouldUpdate;
  32679. }
  32680. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  32681. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  32682. }
  32683. return true;
  32684. }
  32685. function checkClassInstance(workInProgress, ctor, newProps) {
  32686. var instance = workInProgress.stateNode;
  32687. {
  32688. var name = getComponentName(ctor) || 'Component';
  32689. var renderPresent = instance.render;
  32690. if (!renderPresent) {
  32691. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  32692. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  32693. } else {
  32694. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  32695. }
  32696. }
  32697. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  32698. !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;
  32699. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  32700. !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;
  32701. var noInstancePropTypes = !instance.propTypes;
  32702. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  32703. var noInstanceContextType = !instance.contextType;
  32704. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  32705. var noInstanceContextTypes = !instance.contextTypes;
  32706. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  32707. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  32708. didWarnAboutContextTypeAndContextTypes.add(ctor);
  32709. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  32710. }
  32711. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  32712. !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;
  32713. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  32714. warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
  32715. }
  32716. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  32717. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  32718. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  32719. !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;
  32720. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  32721. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  32722. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  32723. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  32724. var hasMutatedProps = instance.props !== newProps;
  32725. !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
  32726. var noInstanceDefaultProps = !instance.defaultProps;
  32727. !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;
  32728. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  32729. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  32730. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  32731. }
  32732. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  32733. !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  32734. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  32735. !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  32736. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  32737. !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
  32738. var _state = instance.state;
  32739. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  32740. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  32741. }
  32742. if (typeof instance.getChildContext === 'function') {
  32743. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  32744. }
  32745. }
  32746. }
  32747. function adoptClassInstance(workInProgress, instance) {
  32748. instance.updater = classComponentUpdater;
  32749. workInProgress.stateNode = instance;
  32750. // The instance needs access to the fiber so that it can schedule updates
  32751. set(instance, workInProgress);
  32752. {
  32753. instance._reactInternalInstance = fakeInternalInstance;
  32754. }
  32755. }
  32756. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  32757. var isLegacyContextConsumer = false;
  32758. var unmaskedContext = emptyContextObject;
  32759. var context = null;
  32760. var contextType = ctor.contextType;
  32761. if (typeof contextType === 'object' && contextType !== null) {
  32762. {
  32763. if (contextType.$$typeof !== REACT_CONTEXT_TYPE && !didWarnAboutInvalidateContextType.has(ctor)) {
  32764. didWarnAboutInvalidateContextType.add(ctor);
  32765. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', getComponentName(ctor) || 'Component');
  32766. }
  32767. }
  32768. context = readContext$1(contextType);
  32769. } else {
  32770. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  32771. var contextTypes = ctor.contextTypes;
  32772. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  32773. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  32774. }
  32775. // Instantiate twice to help detect side-effects.
  32776. {
  32777. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32778. new ctor(props, context); // eslint-disable-line no-new
  32779. }
  32780. }
  32781. var instance = new ctor(props, context);
  32782. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  32783. adoptClassInstance(workInProgress, instance);
  32784. {
  32785. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  32786. var componentName = getComponentName(ctor) || 'Component';
  32787. if (!didWarnAboutUninitializedState.has(componentName)) {
  32788. didWarnAboutUninitializedState.add(componentName);
  32789. warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
  32790. }
  32791. }
  32792. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  32793. // Warn about these lifecycles if they are present.
  32794. // Don't warn about react-lifecycles-compat polyfilled methods though.
  32795. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  32796. var foundWillMountName = null;
  32797. var foundWillReceivePropsName = null;
  32798. var foundWillUpdateName = null;
  32799. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  32800. foundWillMountName = 'componentWillMount';
  32801. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  32802. foundWillMountName = 'UNSAFE_componentWillMount';
  32803. }
  32804. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  32805. foundWillReceivePropsName = 'componentWillReceiveProps';
  32806. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  32807. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  32808. }
  32809. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  32810. foundWillUpdateName = 'componentWillUpdate';
  32811. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  32812. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  32813. }
  32814. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  32815. var _componentName = getComponentName(ctor) || 'Component';
  32816. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  32817. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  32818. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  32819. warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '');
  32820. }
  32821. }
  32822. }
  32823. }
  32824. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  32825. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  32826. if (isLegacyContextConsumer) {
  32827. cacheContext(workInProgress, unmaskedContext, context);
  32828. }
  32829. return instance;
  32830. }
  32831. function callComponentWillMount(workInProgress, instance) {
  32832. startPhaseTimer(workInProgress, 'componentWillMount');
  32833. var oldState = instance.state;
  32834. if (typeof instance.componentWillMount === 'function') {
  32835. instance.componentWillMount();
  32836. }
  32837. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  32838. instance.UNSAFE_componentWillMount();
  32839. }
  32840. stopPhaseTimer();
  32841. if (oldState !== instance.state) {
  32842. {
  32843. warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  32844. }
  32845. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  32846. }
  32847. }
  32848. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  32849. var oldState = instance.state;
  32850. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  32851. if (typeof instance.componentWillReceiveProps === 'function') {
  32852. instance.componentWillReceiveProps(newProps, nextContext);
  32853. }
  32854. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  32855. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  32856. }
  32857. stopPhaseTimer();
  32858. if (instance.state !== oldState) {
  32859. {
  32860. var componentName = getComponentName(workInProgress.type) || 'Component';
  32861. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  32862. didWarnAboutStateAssignmentForComponent.add(componentName);
  32863. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  32864. }
  32865. }
  32866. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  32867. }
  32868. }
  32869. // Invokes the mount life-cycles on a previously never rendered instance.
  32870. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  32871. {
  32872. checkClassInstance(workInProgress, ctor, newProps);
  32873. }
  32874. var instance = workInProgress.stateNode;
  32875. instance.props = newProps;
  32876. instance.state = workInProgress.memoizedState;
  32877. instance.refs = emptyRefsObject;
  32878. var contextType = ctor.contextType;
  32879. if (typeof contextType === 'object' && contextType !== null) {
  32880. instance.context = readContext$1(contextType);
  32881. } else {
  32882. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  32883. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  32884. }
  32885. {
  32886. if (instance.state === newProps) {
  32887. var componentName = getComponentName(ctor) || 'Component';
  32888. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  32889. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  32890. warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
  32891. }
  32892. }
  32893. if (workInProgress.mode & StrictMode) {
  32894. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  32895. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  32896. }
  32897. if (warnAboutDeprecatedLifecycles) {
  32898. ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
  32899. }
  32900. }
  32901. var updateQueue = workInProgress.updateQueue;
  32902. if (updateQueue !== null) {
  32903. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  32904. instance.state = workInProgress.memoizedState;
  32905. }
  32906. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  32907. if (typeof getDerivedStateFromProps === 'function') {
  32908. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  32909. instance.state = workInProgress.memoizedState;
  32910. }
  32911. // In order to support react-lifecycles-compat polyfilled components,
  32912. // Unsafe lifecycles should not be invoked for components using the new APIs.
  32913. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  32914. callComponentWillMount(workInProgress, instance);
  32915. // If we had additional state updates during this life-cycle, let's
  32916. // process them now.
  32917. updateQueue = workInProgress.updateQueue;
  32918. if (updateQueue !== null) {
  32919. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  32920. instance.state = workInProgress.memoizedState;
  32921. }
  32922. }
  32923. if (typeof instance.componentDidMount === 'function') {
  32924. workInProgress.effectTag |= Update;
  32925. }
  32926. }
  32927. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  32928. var instance = workInProgress.stateNode;
  32929. var oldProps = workInProgress.memoizedProps;
  32930. instance.props = oldProps;
  32931. var oldContext = instance.context;
  32932. var contextType = ctor.contextType;
  32933. var nextContext = void 0;
  32934. if (typeof contextType === 'object' && contextType !== null) {
  32935. nextContext = readContext$1(contextType);
  32936. } else {
  32937. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  32938. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  32939. }
  32940. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  32941. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  32942. // Note: During these life-cycles, instance.props/instance.state are what
  32943. // ever the previously attempted to render - not the "current". However,
  32944. // during componentDidUpdate we pass the "current" props.
  32945. // In order to support react-lifecycles-compat polyfilled components,
  32946. // Unsafe lifecycles should not be invoked for components using the new APIs.
  32947. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  32948. if (oldProps !== newProps || oldContext !== nextContext) {
  32949. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  32950. }
  32951. }
  32952. resetHasForceUpdateBeforeProcessing();
  32953. var oldState = workInProgress.memoizedState;
  32954. var newState = instance.state = oldState;
  32955. var updateQueue = workInProgress.updateQueue;
  32956. if (updateQueue !== null) {
  32957. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  32958. newState = workInProgress.memoizedState;
  32959. }
  32960. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  32961. // If an update was already in progress, we should schedule an Update
  32962. // effect even though we're bailing out, so that cWU/cDU are called.
  32963. if (typeof instance.componentDidMount === 'function') {
  32964. workInProgress.effectTag |= Update;
  32965. }
  32966. return false;
  32967. }
  32968. if (typeof getDerivedStateFromProps === 'function') {
  32969. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  32970. newState = workInProgress.memoizedState;
  32971. }
  32972. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  32973. if (shouldUpdate) {
  32974. // In order to support react-lifecycles-compat polyfilled components,
  32975. // Unsafe lifecycles should not be invoked for components using the new APIs.
  32976. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  32977. startPhaseTimer(workInProgress, 'componentWillMount');
  32978. if (typeof instance.componentWillMount === 'function') {
  32979. instance.componentWillMount();
  32980. }
  32981. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  32982. instance.UNSAFE_componentWillMount();
  32983. }
  32984. stopPhaseTimer();
  32985. }
  32986. if (typeof instance.componentDidMount === 'function') {
  32987. workInProgress.effectTag |= Update;
  32988. }
  32989. } else {
  32990. // If an update was already in progress, we should schedule an Update
  32991. // effect even though we're bailing out, so that cWU/cDU are called.
  32992. if (typeof instance.componentDidMount === 'function') {
  32993. workInProgress.effectTag |= Update;
  32994. }
  32995. // If shouldComponentUpdate returned false, we should still update the
  32996. // memoized state to indicate that this work can be reused.
  32997. workInProgress.memoizedProps = newProps;
  32998. workInProgress.memoizedState = newState;
  32999. }
  33000. // Update the existing instance's state, props, and context pointers even
  33001. // if shouldComponentUpdate returns false.
  33002. instance.props = newProps;
  33003. instance.state = newState;
  33004. instance.context = nextContext;
  33005. return shouldUpdate;
  33006. }
  33007. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  33008. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  33009. var instance = workInProgress.stateNode;
  33010. var oldProps = workInProgress.memoizedProps;
  33011. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  33012. var oldContext = instance.context;
  33013. var contextType = ctor.contextType;
  33014. var nextContext = void 0;
  33015. if (typeof contextType === 'object' && contextType !== null) {
  33016. nextContext = readContext$1(contextType);
  33017. } else {
  33018. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  33019. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  33020. }
  33021. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  33022. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  33023. // Note: During these life-cycles, instance.props/instance.state are what
  33024. // ever the previously attempted to render - not the "current". However,
  33025. // during componentDidUpdate we pass the "current" props.
  33026. // In order to support react-lifecycles-compat polyfilled components,
  33027. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33028. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  33029. if (oldProps !== newProps || oldContext !== nextContext) {
  33030. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  33031. }
  33032. }
  33033. resetHasForceUpdateBeforeProcessing();
  33034. var oldState = workInProgress.memoizedState;
  33035. var newState = instance.state = oldState;
  33036. var updateQueue = workInProgress.updateQueue;
  33037. if (updateQueue !== null) {
  33038. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  33039. newState = workInProgress.memoizedState;
  33040. }
  33041. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  33042. // If an update was already in progress, we should schedule an Update
  33043. // effect even though we're bailing out, so that cWU/cDU are called.
  33044. if (typeof instance.componentDidUpdate === 'function') {
  33045. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33046. workInProgress.effectTag |= Update;
  33047. }
  33048. }
  33049. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33050. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33051. workInProgress.effectTag |= Snapshot;
  33052. }
  33053. }
  33054. return false;
  33055. }
  33056. if (typeof getDerivedStateFromProps === 'function') {
  33057. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  33058. newState = workInProgress.memoizedState;
  33059. }
  33060. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  33061. if (shouldUpdate) {
  33062. // In order to support react-lifecycles-compat polyfilled components,
  33063. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33064. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  33065. startPhaseTimer(workInProgress, 'componentWillUpdate');
  33066. if (typeof instance.componentWillUpdate === 'function') {
  33067. instance.componentWillUpdate(newProps, newState, nextContext);
  33068. }
  33069. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  33070. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  33071. }
  33072. stopPhaseTimer();
  33073. }
  33074. if (typeof instance.componentDidUpdate === 'function') {
  33075. workInProgress.effectTag |= Update;
  33076. }
  33077. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33078. workInProgress.effectTag |= Snapshot;
  33079. }
  33080. } else {
  33081. // If an update was already in progress, we should schedule an Update
  33082. // effect even though we're bailing out, so that cWU/cDU are called.
  33083. if (typeof instance.componentDidUpdate === 'function') {
  33084. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33085. workInProgress.effectTag |= Update;
  33086. }
  33087. }
  33088. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33089. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33090. workInProgress.effectTag |= Snapshot;
  33091. }
  33092. }
  33093. // If shouldComponentUpdate returned false, we should still update the
  33094. // memoized props/state to indicate that this work can be reused.
  33095. workInProgress.memoizedProps = newProps;
  33096. workInProgress.memoizedState = newState;
  33097. }
  33098. // Update the existing instance's state, props, and context pointers even
  33099. // if shouldComponentUpdate returns false.
  33100. instance.props = newProps;
  33101. instance.state = newState;
  33102. instance.context = nextContext;
  33103. return shouldUpdate;
  33104. }
  33105. var didWarnAboutMaps = void 0;
  33106. var didWarnAboutGenerators = void 0;
  33107. var didWarnAboutStringRefInStrictMode = void 0;
  33108. var ownerHasKeyUseWarning = void 0;
  33109. var ownerHasFunctionTypeWarning = void 0;
  33110. var warnForMissingKey = function (child) {};
  33111. {
  33112. didWarnAboutMaps = false;
  33113. didWarnAboutGenerators = false;
  33114. didWarnAboutStringRefInStrictMode = {};
  33115. /**
  33116. * Warn if there's no key explicitly set on dynamic arrays of children or
  33117. * object keys are not valid. This allows us to keep track of children between
  33118. * updates.
  33119. */
  33120. ownerHasKeyUseWarning = {};
  33121. ownerHasFunctionTypeWarning = {};
  33122. warnForMissingKey = function (child) {
  33123. if (child === null || typeof child !== 'object') {
  33124. return;
  33125. }
  33126. if (!child._store || child._store.validated || child.key != null) {
  33127. return;
  33128. }
  33129. !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  33130. child._store.validated = true;
  33131. var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  33132. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  33133. return;
  33134. }
  33135. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  33136. warning$1(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  33137. };
  33138. }
  33139. var isArray = Array.isArray;
  33140. function coerceRef(returnFiber, current$$1, element) {
  33141. var mixedRef = element.ref;
  33142. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  33143. {
  33144. if (returnFiber.mode & StrictMode) {
  33145. var componentName = getComponentName(returnFiber.type) || 'Component';
  33146. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  33147. warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  33148. didWarnAboutStringRefInStrictMode[componentName] = true;
  33149. }
  33150. }
  33151. }
  33152. if (element._owner) {
  33153. var owner = element._owner;
  33154. var inst = void 0;
  33155. if (owner) {
  33156. var ownerFiber = owner;
  33157. !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs.') : void 0;
  33158. inst = ownerFiber.stateNode;
  33159. }
  33160. !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
  33161. var stringRef = '' + mixedRef;
  33162. // Check if previous string ref matches new string ref
  33163. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  33164. return current$$1.ref;
  33165. }
  33166. var ref = function (value) {
  33167. var refs = inst.refs;
  33168. if (refs === emptyRefsObject) {
  33169. // This is a lazy pooled frozen object, so we need to initialize.
  33170. refs = inst.refs = {};
  33171. }
  33172. if (value === null) {
  33173. delete refs[stringRef];
  33174. } else {
  33175. refs[stringRef] = value;
  33176. }
  33177. };
  33178. ref._stringRef = stringRef;
  33179. return ref;
  33180. } else {
  33181. !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;
  33182. !element._owner ? invariant(false, 'Element ref was specified as a string (%s) 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.', mixedRef) : void 0;
  33183. }
  33184. }
  33185. return mixedRef;
  33186. }
  33187. function throwOnInvalidObjectType(returnFiber, newChild) {
  33188. if (returnFiber.type !== 'textarea') {
  33189. var addendum = '';
  33190. {
  33191. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  33192. }
  33193. invariant(false, 'Objects are not valid as a React child (found: %s).%s', Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild, addendum);
  33194. }
  33195. }
  33196. function warnOnFunctionType() {
  33197. 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();
  33198. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  33199. return;
  33200. }
  33201. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  33202. warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  33203. }
  33204. // This wrapper function exists because I expect to clone the code in each path
  33205. // to be able to optimize each path individually by branching early. This needs
  33206. // a compiler or we can do it manually. Helpers that don't need this branching
  33207. // live outside of this function.
  33208. function ChildReconciler(shouldTrackSideEffects) {
  33209. function deleteChild(returnFiber, childToDelete) {
  33210. if (!shouldTrackSideEffects) {
  33211. // Noop.
  33212. return;
  33213. }
  33214. // Deletions are added in reversed order so we add it to the front.
  33215. // At this point, the return fiber's effect list is empty except for
  33216. // deletions, so we can just append the deletion to the list. The remaining
  33217. // effects aren't added until the complete phase. Once we implement
  33218. // resuming, this may not be true.
  33219. var last = returnFiber.lastEffect;
  33220. if (last !== null) {
  33221. last.nextEffect = childToDelete;
  33222. returnFiber.lastEffect = childToDelete;
  33223. } else {
  33224. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  33225. }
  33226. childToDelete.nextEffect = null;
  33227. childToDelete.effectTag = Deletion;
  33228. }
  33229. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  33230. if (!shouldTrackSideEffects) {
  33231. // Noop.
  33232. return null;
  33233. }
  33234. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  33235. // assuming that after the first child we've already added everything.
  33236. var childToDelete = currentFirstChild;
  33237. while (childToDelete !== null) {
  33238. deleteChild(returnFiber, childToDelete);
  33239. childToDelete = childToDelete.sibling;
  33240. }
  33241. return null;
  33242. }
  33243. function mapRemainingChildren(returnFiber, currentFirstChild) {
  33244. // Add the remaining children to a temporary map so that we can find them by
  33245. // keys quickly. Implicit (null) keys get added to this set with their index
  33246. var existingChildren = new Map();
  33247. var existingChild = currentFirstChild;
  33248. while (existingChild !== null) {
  33249. if (existingChild.key !== null) {
  33250. existingChildren.set(existingChild.key, existingChild);
  33251. } else {
  33252. existingChildren.set(existingChild.index, existingChild);
  33253. }
  33254. existingChild = existingChild.sibling;
  33255. }
  33256. return existingChildren;
  33257. }
  33258. function useFiber(fiber, pendingProps, expirationTime) {
  33259. // We currently set sibling to null and index to 0 here because it is easy
  33260. // to forget to do before returning it. E.g. for the single child case.
  33261. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  33262. clone.index = 0;
  33263. clone.sibling = null;
  33264. return clone;
  33265. }
  33266. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  33267. newFiber.index = newIndex;
  33268. if (!shouldTrackSideEffects) {
  33269. // Noop.
  33270. return lastPlacedIndex;
  33271. }
  33272. var current$$1 = newFiber.alternate;
  33273. if (current$$1 !== null) {
  33274. var oldIndex = current$$1.index;
  33275. if (oldIndex < lastPlacedIndex) {
  33276. // This is a move.
  33277. newFiber.effectTag = Placement;
  33278. return lastPlacedIndex;
  33279. } else {
  33280. // This item can stay in place.
  33281. return oldIndex;
  33282. }
  33283. } else {
  33284. // This is an insertion.
  33285. newFiber.effectTag = Placement;
  33286. return lastPlacedIndex;
  33287. }
  33288. }
  33289. function placeSingleChild(newFiber) {
  33290. // This is simpler for the single child case. We only need to do a
  33291. // placement for inserting new children.
  33292. if (shouldTrackSideEffects && newFiber.alternate === null) {
  33293. newFiber.effectTag = Placement;
  33294. }
  33295. return newFiber;
  33296. }
  33297. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  33298. if (current$$1 === null || current$$1.tag !== HostText) {
  33299. // Insert
  33300. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  33301. created.return = returnFiber;
  33302. return created;
  33303. } else {
  33304. // Update
  33305. var existing = useFiber(current$$1, textContent, expirationTime);
  33306. existing.return = returnFiber;
  33307. return existing;
  33308. }
  33309. }
  33310. function updateElement(returnFiber, current$$1, element, expirationTime) {
  33311. if (current$$1 !== null && current$$1.elementType === element.type) {
  33312. // Move based on index
  33313. var existing = useFiber(current$$1, element.props, expirationTime);
  33314. existing.ref = coerceRef(returnFiber, current$$1, element);
  33315. existing.return = returnFiber;
  33316. {
  33317. existing._debugSource = element._source;
  33318. existing._debugOwner = element._owner;
  33319. }
  33320. return existing;
  33321. } else {
  33322. // Insert
  33323. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  33324. created.ref = coerceRef(returnFiber, current$$1, element);
  33325. created.return = returnFiber;
  33326. return created;
  33327. }
  33328. }
  33329. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  33330. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  33331. // Insert
  33332. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  33333. created.return = returnFiber;
  33334. return created;
  33335. } else {
  33336. // Update
  33337. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  33338. existing.return = returnFiber;
  33339. return existing;
  33340. }
  33341. }
  33342. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  33343. if (current$$1 === null || current$$1.tag !== Fragment) {
  33344. // Insert
  33345. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  33346. created.return = returnFiber;
  33347. return created;
  33348. } else {
  33349. // Update
  33350. var existing = useFiber(current$$1, fragment, expirationTime);
  33351. existing.return = returnFiber;
  33352. return existing;
  33353. }
  33354. }
  33355. function createChild(returnFiber, newChild, expirationTime) {
  33356. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33357. // Text nodes don't have keys. If the previous node is implicitly keyed
  33358. // we can continue to replace it without aborting even if it is not a text
  33359. // node.
  33360. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  33361. created.return = returnFiber;
  33362. return created;
  33363. }
  33364. if (typeof newChild === 'object' && newChild !== null) {
  33365. switch (newChild.$$typeof) {
  33366. case REACT_ELEMENT_TYPE:
  33367. {
  33368. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  33369. _created.ref = coerceRef(returnFiber, null, newChild);
  33370. _created.return = returnFiber;
  33371. return _created;
  33372. }
  33373. case REACT_PORTAL_TYPE:
  33374. {
  33375. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  33376. _created2.return = returnFiber;
  33377. return _created2;
  33378. }
  33379. }
  33380. if (isArray(newChild) || getIteratorFn(newChild)) {
  33381. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  33382. _created3.return = returnFiber;
  33383. return _created3;
  33384. }
  33385. throwOnInvalidObjectType(returnFiber, newChild);
  33386. }
  33387. {
  33388. if (typeof newChild === 'function') {
  33389. warnOnFunctionType();
  33390. }
  33391. }
  33392. return null;
  33393. }
  33394. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  33395. // Update the fiber if the keys match, otherwise return null.
  33396. var key = oldFiber !== null ? oldFiber.key : null;
  33397. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33398. // Text nodes don't have keys. If the previous node is implicitly keyed
  33399. // we can continue to replace it without aborting even if it is not a text
  33400. // node.
  33401. if (key !== null) {
  33402. return null;
  33403. }
  33404. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  33405. }
  33406. if (typeof newChild === 'object' && newChild !== null) {
  33407. switch (newChild.$$typeof) {
  33408. case REACT_ELEMENT_TYPE:
  33409. {
  33410. if (newChild.key === key) {
  33411. if (newChild.type === REACT_FRAGMENT_TYPE) {
  33412. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  33413. }
  33414. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  33415. } else {
  33416. return null;
  33417. }
  33418. }
  33419. case REACT_PORTAL_TYPE:
  33420. {
  33421. if (newChild.key === key) {
  33422. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  33423. } else {
  33424. return null;
  33425. }
  33426. }
  33427. }
  33428. if (isArray(newChild) || getIteratorFn(newChild)) {
  33429. if (key !== null) {
  33430. return null;
  33431. }
  33432. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  33433. }
  33434. throwOnInvalidObjectType(returnFiber, newChild);
  33435. }
  33436. {
  33437. if (typeof newChild === 'function') {
  33438. warnOnFunctionType();
  33439. }
  33440. }
  33441. return null;
  33442. }
  33443. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  33444. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33445. // Text nodes don't have keys, so we neither have to check the old nor
  33446. // new node for the key. If both are text nodes, they match.
  33447. var matchedFiber = existingChildren.get(newIdx) || null;
  33448. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  33449. }
  33450. if (typeof newChild === 'object' && newChild !== null) {
  33451. switch (newChild.$$typeof) {
  33452. case REACT_ELEMENT_TYPE:
  33453. {
  33454. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  33455. if (newChild.type === REACT_FRAGMENT_TYPE) {
  33456. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  33457. }
  33458. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  33459. }
  33460. case REACT_PORTAL_TYPE:
  33461. {
  33462. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  33463. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  33464. }
  33465. }
  33466. if (isArray(newChild) || getIteratorFn(newChild)) {
  33467. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  33468. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  33469. }
  33470. throwOnInvalidObjectType(returnFiber, newChild);
  33471. }
  33472. {
  33473. if (typeof newChild === 'function') {
  33474. warnOnFunctionType();
  33475. }
  33476. }
  33477. return null;
  33478. }
  33479. /**
  33480. * Warns if there is a duplicate or missing key
  33481. */
  33482. function warnOnInvalidKey(child, knownKeys) {
  33483. {
  33484. if (typeof child !== 'object' || child === null) {
  33485. return knownKeys;
  33486. }
  33487. switch (child.$$typeof) {
  33488. case REACT_ELEMENT_TYPE:
  33489. case REACT_PORTAL_TYPE:
  33490. warnForMissingKey(child);
  33491. var key = child.key;
  33492. if (typeof key !== 'string') {
  33493. break;
  33494. }
  33495. if (knownKeys === null) {
  33496. knownKeys = new Set();
  33497. knownKeys.add(key);
  33498. break;
  33499. }
  33500. if (!knownKeys.has(key)) {
  33501. knownKeys.add(key);
  33502. break;
  33503. }
  33504. warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
  33505. break;
  33506. default:
  33507. break;
  33508. }
  33509. }
  33510. return knownKeys;
  33511. }
  33512. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  33513. // This algorithm can't optimize by searching from boths ends since we
  33514. // don't have backpointers on fibers. I'm trying to see how far we can get
  33515. // with that model. If it ends up not being worth the tradeoffs, we can
  33516. // add it later.
  33517. // Even with a two ended optimization, we'd want to optimize for the case
  33518. // where there are few changes and brute force the comparison instead of
  33519. // going for the Map. It'd like to explore hitting that path first in
  33520. // forward-only mode and only go for the Map once we notice that we need
  33521. // lots of look ahead. This doesn't handle reversal as well as two ended
  33522. // search but that's unusual. Besides, for the two ended optimization to
  33523. // work on Iterables, we'd need to copy the whole set.
  33524. // In this first iteration, we'll just live with hitting the bad case
  33525. // (adding everything to a Map) in for every insert/move.
  33526. // If you change this code, also update reconcileChildrenIterator() which
  33527. // uses the same algorithm.
  33528. {
  33529. // First, validate keys.
  33530. var knownKeys = null;
  33531. for (var i = 0; i < newChildren.length; i++) {
  33532. var child = newChildren[i];
  33533. knownKeys = warnOnInvalidKey(child, knownKeys);
  33534. }
  33535. }
  33536. var resultingFirstChild = null;
  33537. var previousNewFiber = null;
  33538. var oldFiber = currentFirstChild;
  33539. var lastPlacedIndex = 0;
  33540. var newIdx = 0;
  33541. var nextOldFiber = null;
  33542. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  33543. if (oldFiber.index > newIdx) {
  33544. nextOldFiber = oldFiber;
  33545. oldFiber = null;
  33546. } else {
  33547. nextOldFiber = oldFiber.sibling;
  33548. }
  33549. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  33550. if (newFiber === null) {
  33551. // TODO: This breaks on empty slots like null children. That's
  33552. // unfortunate because it triggers the slow path all the time. We need
  33553. // a better way to communicate whether this was a miss or null,
  33554. // boolean, undefined, etc.
  33555. if (oldFiber === null) {
  33556. oldFiber = nextOldFiber;
  33557. }
  33558. break;
  33559. }
  33560. if (shouldTrackSideEffects) {
  33561. if (oldFiber && newFiber.alternate === null) {
  33562. // We matched the slot, but we didn't reuse the existing fiber, so we
  33563. // need to delete the existing child.
  33564. deleteChild(returnFiber, oldFiber);
  33565. }
  33566. }
  33567. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  33568. if (previousNewFiber === null) {
  33569. // TODO: Move out of the loop. This only happens for the first run.
  33570. resultingFirstChild = newFiber;
  33571. } else {
  33572. // TODO: Defer siblings if we're not at the right index for this slot.
  33573. // I.e. if we had null values before, then we want to defer this
  33574. // for each null value. However, we also don't want to call updateSlot
  33575. // with the previous one.
  33576. previousNewFiber.sibling = newFiber;
  33577. }
  33578. previousNewFiber = newFiber;
  33579. oldFiber = nextOldFiber;
  33580. }
  33581. if (newIdx === newChildren.length) {
  33582. // We've reached the end of the new children. We can delete the rest.
  33583. deleteRemainingChildren(returnFiber, oldFiber);
  33584. return resultingFirstChild;
  33585. }
  33586. if (oldFiber === null) {
  33587. // If we don't have any more existing children we can choose a fast path
  33588. // since the rest will all be insertions.
  33589. for (; newIdx < newChildren.length; newIdx++) {
  33590. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  33591. if (!_newFiber) {
  33592. continue;
  33593. }
  33594. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  33595. if (previousNewFiber === null) {
  33596. // TODO: Move out of the loop. This only happens for the first run.
  33597. resultingFirstChild = _newFiber;
  33598. } else {
  33599. previousNewFiber.sibling = _newFiber;
  33600. }
  33601. previousNewFiber = _newFiber;
  33602. }
  33603. return resultingFirstChild;
  33604. }
  33605. // Add all children to a key map for quick lookups.
  33606. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  33607. // Keep scanning and use the map to restore deleted items as moves.
  33608. for (; newIdx < newChildren.length; newIdx++) {
  33609. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  33610. if (_newFiber2) {
  33611. if (shouldTrackSideEffects) {
  33612. if (_newFiber2.alternate !== null) {
  33613. // The new fiber is a work in progress, but if there exists a
  33614. // current, that means that we reused the fiber. We need to delete
  33615. // it from the child list so that we don't add it to the deletion
  33616. // list.
  33617. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  33618. }
  33619. }
  33620. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  33621. if (previousNewFiber === null) {
  33622. resultingFirstChild = _newFiber2;
  33623. } else {
  33624. previousNewFiber.sibling = _newFiber2;
  33625. }
  33626. previousNewFiber = _newFiber2;
  33627. }
  33628. }
  33629. if (shouldTrackSideEffects) {
  33630. // Any existing children that weren't consumed above were deleted. We need
  33631. // to add them to the deletion list.
  33632. existingChildren.forEach(function (child) {
  33633. return deleteChild(returnFiber, child);
  33634. });
  33635. }
  33636. return resultingFirstChild;
  33637. }
  33638. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  33639. // This is the same implementation as reconcileChildrenArray(),
  33640. // but using the iterator instead.
  33641. var iteratorFn = getIteratorFn(newChildrenIterable);
  33642. !(typeof iteratorFn === 'function') ? invariant(false, 'An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  33643. {
  33644. // We don't support rendering Generators because it's a mutation.
  33645. // See https://github.com/facebook/react/issues/12995
  33646. if (typeof Symbol === 'function' &&
  33647. // $FlowFixMe Flow doesn't know about toStringTag
  33648. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  33649. !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
  33650. didWarnAboutGenerators = true;
  33651. }
  33652. // Warn about using Maps as children
  33653. if (newChildrenIterable.entries === iteratorFn) {
  33654. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  33655. didWarnAboutMaps = true;
  33656. }
  33657. // First, validate keys.
  33658. // We'll get a different iterator later for the main pass.
  33659. var _newChildren = iteratorFn.call(newChildrenIterable);
  33660. if (_newChildren) {
  33661. var knownKeys = null;
  33662. var _step = _newChildren.next();
  33663. for (; !_step.done; _step = _newChildren.next()) {
  33664. var child = _step.value;
  33665. knownKeys = warnOnInvalidKey(child, knownKeys);
  33666. }
  33667. }
  33668. }
  33669. var newChildren = iteratorFn.call(newChildrenIterable);
  33670. !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;
  33671. var resultingFirstChild = null;
  33672. var previousNewFiber = null;
  33673. var oldFiber = currentFirstChild;
  33674. var lastPlacedIndex = 0;
  33675. var newIdx = 0;
  33676. var nextOldFiber = null;
  33677. var step = newChildren.next();
  33678. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  33679. if (oldFiber.index > newIdx) {
  33680. nextOldFiber = oldFiber;
  33681. oldFiber = null;
  33682. } else {
  33683. nextOldFiber = oldFiber.sibling;
  33684. }
  33685. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  33686. if (newFiber === null) {
  33687. // TODO: This breaks on empty slots like null children. That's
  33688. // unfortunate because it triggers the slow path all the time. We need
  33689. // a better way to communicate whether this was a miss or null,
  33690. // boolean, undefined, etc.
  33691. if (!oldFiber) {
  33692. oldFiber = nextOldFiber;
  33693. }
  33694. break;
  33695. }
  33696. if (shouldTrackSideEffects) {
  33697. if (oldFiber && newFiber.alternate === null) {
  33698. // We matched the slot, but we didn't reuse the existing fiber, so we
  33699. // need to delete the existing child.
  33700. deleteChild(returnFiber, oldFiber);
  33701. }
  33702. }
  33703. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  33704. if (previousNewFiber === null) {
  33705. // TODO: Move out of the loop. This only happens for the first run.
  33706. resultingFirstChild = newFiber;
  33707. } else {
  33708. // TODO: Defer siblings if we're not at the right index for this slot.
  33709. // I.e. if we had null values before, then we want to defer this
  33710. // for each null value. However, we also don't want to call updateSlot
  33711. // with the previous one.
  33712. previousNewFiber.sibling = newFiber;
  33713. }
  33714. previousNewFiber = newFiber;
  33715. oldFiber = nextOldFiber;
  33716. }
  33717. if (step.done) {
  33718. // We've reached the end of the new children. We can delete the rest.
  33719. deleteRemainingChildren(returnFiber, oldFiber);
  33720. return resultingFirstChild;
  33721. }
  33722. if (oldFiber === null) {
  33723. // If we don't have any more existing children we can choose a fast path
  33724. // since the rest will all be insertions.
  33725. for (; !step.done; newIdx++, step = newChildren.next()) {
  33726. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  33727. if (_newFiber3 === null) {
  33728. continue;
  33729. }
  33730. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  33731. if (previousNewFiber === null) {
  33732. // TODO: Move out of the loop. This only happens for the first run.
  33733. resultingFirstChild = _newFiber3;
  33734. } else {
  33735. previousNewFiber.sibling = _newFiber3;
  33736. }
  33737. previousNewFiber = _newFiber3;
  33738. }
  33739. return resultingFirstChild;
  33740. }
  33741. // Add all children to a key map for quick lookups.
  33742. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  33743. // Keep scanning and use the map to restore deleted items as moves.
  33744. for (; !step.done; newIdx++, step = newChildren.next()) {
  33745. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  33746. if (_newFiber4 !== null) {
  33747. if (shouldTrackSideEffects) {
  33748. if (_newFiber4.alternate !== null) {
  33749. // The new fiber is a work in progress, but if there exists a
  33750. // current, that means that we reused the fiber. We need to delete
  33751. // it from the child list so that we don't add it to the deletion
  33752. // list.
  33753. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  33754. }
  33755. }
  33756. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  33757. if (previousNewFiber === null) {
  33758. resultingFirstChild = _newFiber4;
  33759. } else {
  33760. previousNewFiber.sibling = _newFiber4;
  33761. }
  33762. previousNewFiber = _newFiber4;
  33763. }
  33764. }
  33765. if (shouldTrackSideEffects) {
  33766. // Any existing children that weren't consumed above were deleted. We need
  33767. // to add them to the deletion list.
  33768. existingChildren.forEach(function (child) {
  33769. return deleteChild(returnFiber, child);
  33770. });
  33771. }
  33772. return resultingFirstChild;
  33773. }
  33774. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  33775. // There's no need to check for keys on text nodes since we don't have a
  33776. // way to define them.
  33777. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  33778. // We already have an existing node so let's just update it and delete
  33779. // the rest.
  33780. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  33781. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  33782. existing.return = returnFiber;
  33783. return existing;
  33784. }
  33785. // The existing first child is not a text node so we need to create one
  33786. // and delete the existing ones.
  33787. deleteRemainingChildren(returnFiber, currentFirstChild);
  33788. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  33789. created.return = returnFiber;
  33790. return created;
  33791. }
  33792. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  33793. var key = element.key;
  33794. var child = currentFirstChild;
  33795. while (child !== null) {
  33796. // TODO: If key === null and child.key === null, then this only applies to
  33797. // the first item in the list.
  33798. if (child.key === key) {
  33799. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type) {
  33800. deleteRemainingChildren(returnFiber, child.sibling);
  33801. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  33802. existing.ref = coerceRef(returnFiber, child, element);
  33803. existing.return = returnFiber;
  33804. {
  33805. existing._debugSource = element._source;
  33806. existing._debugOwner = element._owner;
  33807. }
  33808. return existing;
  33809. } else {
  33810. deleteRemainingChildren(returnFiber, child);
  33811. break;
  33812. }
  33813. } else {
  33814. deleteChild(returnFiber, child);
  33815. }
  33816. child = child.sibling;
  33817. }
  33818. if (element.type === REACT_FRAGMENT_TYPE) {
  33819. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  33820. created.return = returnFiber;
  33821. return created;
  33822. } else {
  33823. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  33824. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  33825. _created4.return = returnFiber;
  33826. return _created4;
  33827. }
  33828. }
  33829. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  33830. var key = portal.key;
  33831. var child = currentFirstChild;
  33832. while (child !== null) {
  33833. // TODO: If key === null and child.key === null, then this only applies to
  33834. // the first item in the list.
  33835. if (child.key === key) {
  33836. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  33837. deleteRemainingChildren(returnFiber, child.sibling);
  33838. var existing = useFiber(child, portal.children || [], expirationTime);
  33839. existing.return = returnFiber;
  33840. return existing;
  33841. } else {
  33842. deleteRemainingChildren(returnFiber, child);
  33843. break;
  33844. }
  33845. } else {
  33846. deleteChild(returnFiber, child);
  33847. }
  33848. child = child.sibling;
  33849. }
  33850. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  33851. created.return = returnFiber;
  33852. return created;
  33853. }
  33854. // This API will tag the children with the side-effect of the reconciliation
  33855. // itself. They will be added to the side-effect list as we pass through the
  33856. // children and the parent.
  33857. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  33858. // This function is not recursive.
  33859. // If the top level item is an array, we treat it as a set of children,
  33860. // not as a fragment. Nested arrays on the other hand will be treated as
  33861. // fragment nodes. Recursion happens at the normal flow.
  33862. // Handle top level unkeyed fragments as if they were arrays.
  33863. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  33864. // We treat the ambiguous cases above the same.
  33865. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  33866. if (isUnkeyedTopLevelFragment) {
  33867. newChild = newChild.props.children;
  33868. }
  33869. // Handle object types
  33870. var isObject = typeof newChild === 'object' && newChild !== null;
  33871. if (isObject) {
  33872. switch (newChild.$$typeof) {
  33873. case REACT_ELEMENT_TYPE:
  33874. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  33875. case REACT_PORTAL_TYPE:
  33876. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  33877. }
  33878. }
  33879. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33880. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  33881. }
  33882. if (isArray(newChild)) {
  33883. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  33884. }
  33885. if (getIteratorFn(newChild)) {
  33886. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  33887. }
  33888. if (isObject) {
  33889. throwOnInvalidObjectType(returnFiber, newChild);
  33890. }
  33891. {
  33892. if (typeof newChild === 'function') {
  33893. warnOnFunctionType();
  33894. }
  33895. }
  33896. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  33897. // If the new child is undefined, and the return fiber is a composite
  33898. // component, throw an error. If Fiber return types are disabled,
  33899. // we already threw above.
  33900. switch (returnFiber.tag) {
  33901. case ClassComponent:
  33902. {
  33903. {
  33904. var instance = returnFiber.stateNode;
  33905. if (instance.render._isMockFunction) {
  33906. // We allow auto-mocks to proceed as if they're returning null.
  33907. break;
  33908. }
  33909. }
  33910. }
  33911. // Intentionally fall through to the next case, which handles both
  33912. // functions and classes
  33913. // eslint-disable-next-lined no-fallthrough
  33914. case FunctionComponent:
  33915. {
  33916. var Component = returnFiber.type;
  33917. invariant(false, '%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', Component.displayName || Component.name || 'Component');
  33918. }
  33919. }
  33920. }
  33921. // Remaining cases are all treated as empty.
  33922. return deleteRemainingChildren(returnFiber, currentFirstChild);
  33923. }
  33924. return reconcileChildFibers;
  33925. }
  33926. var reconcileChildFibers = ChildReconciler(true);
  33927. var mountChildFibers = ChildReconciler(false);
  33928. function cloneChildFibers(current$$1, workInProgress) {
  33929. !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;
  33930. if (workInProgress.child === null) {
  33931. return;
  33932. }
  33933. var currentChild = workInProgress.child;
  33934. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  33935. workInProgress.child = newChild;
  33936. newChild.return = workInProgress;
  33937. while (currentChild.sibling !== null) {
  33938. currentChild = currentChild.sibling;
  33939. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  33940. newChild.return = workInProgress;
  33941. }
  33942. newChild.sibling = null;
  33943. }
  33944. // The deepest Fiber on the stack involved in a hydration context.
  33945. // This may have been an insertion or a hydration.
  33946. var hydrationParentFiber = null;
  33947. var nextHydratableInstance = null;
  33948. var isHydrating = false;
  33949. function enterHydrationState(fiber) {
  33950. if (!supportsHydration) {
  33951. return false;
  33952. }
  33953. var parentInstance = fiber.stateNode.containerInfo;
  33954. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  33955. hydrationParentFiber = fiber;
  33956. isHydrating = true;
  33957. return true;
  33958. }
  33959. function deleteHydratableInstance(returnFiber, instance) {
  33960. {
  33961. switch (returnFiber.tag) {
  33962. case HostRoot:
  33963. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  33964. break;
  33965. case HostComponent:
  33966. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  33967. break;
  33968. }
  33969. }
  33970. var childToDelete = createFiberFromHostInstanceForDeletion();
  33971. childToDelete.stateNode = instance;
  33972. childToDelete.return = returnFiber;
  33973. childToDelete.effectTag = Deletion;
  33974. // This might seem like it belongs on progressedFirstDeletion. However,
  33975. // these children are not part of the reconciliation list of children.
  33976. // Even if we abort and rereconcile the children, that will try to hydrate
  33977. // again and the nodes are still in the host tree so these will be
  33978. // recreated.
  33979. if (returnFiber.lastEffect !== null) {
  33980. returnFiber.lastEffect.nextEffect = childToDelete;
  33981. returnFiber.lastEffect = childToDelete;
  33982. } else {
  33983. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  33984. }
  33985. }
  33986. function insertNonHydratedInstance(returnFiber, fiber) {
  33987. fiber.effectTag |= Placement;
  33988. {
  33989. switch (returnFiber.tag) {
  33990. case HostRoot:
  33991. {
  33992. var parentContainer = returnFiber.stateNode.containerInfo;
  33993. switch (fiber.tag) {
  33994. case HostComponent:
  33995. var type = fiber.type;
  33996. var props = fiber.pendingProps;
  33997. didNotFindHydratableContainerInstance(parentContainer, type, props);
  33998. break;
  33999. case HostText:
  34000. var text = fiber.pendingProps;
  34001. didNotFindHydratableContainerTextInstance(parentContainer, text);
  34002. break;
  34003. }
  34004. break;
  34005. }
  34006. case HostComponent:
  34007. {
  34008. var parentType = returnFiber.type;
  34009. var parentProps = returnFiber.memoizedProps;
  34010. var parentInstance = returnFiber.stateNode;
  34011. switch (fiber.tag) {
  34012. case HostComponent:
  34013. var _type = fiber.type;
  34014. var _props = fiber.pendingProps;
  34015. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  34016. break;
  34017. case HostText:
  34018. var _text = fiber.pendingProps;
  34019. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  34020. break;
  34021. }
  34022. break;
  34023. }
  34024. default:
  34025. return;
  34026. }
  34027. }
  34028. }
  34029. function tryHydrate(fiber, nextInstance) {
  34030. switch (fiber.tag) {
  34031. case HostComponent:
  34032. {
  34033. var type = fiber.type;
  34034. var props = fiber.pendingProps;
  34035. var instance = canHydrateInstance(nextInstance, type, props);
  34036. if (instance !== null) {
  34037. fiber.stateNode = instance;
  34038. return true;
  34039. }
  34040. return false;
  34041. }
  34042. case HostText:
  34043. {
  34044. var text = fiber.pendingProps;
  34045. var textInstance = canHydrateTextInstance(nextInstance, text);
  34046. if (textInstance !== null) {
  34047. fiber.stateNode = textInstance;
  34048. return true;
  34049. }
  34050. return false;
  34051. }
  34052. default:
  34053. return false;
  34054. }
  34055. }
  34056. function tryToClaimNextHydratableInstance(fiber) {
  34057. if (!isHydrating) {
  34058. return;
  34059. }
  34060. var nextInstance = nextHydratableInstance;
  34061. if (!nextInstance) {
  34062. // Nothing to hydrate. Make it an insertion.
  34063. insertNonHydratedInstance(hydrationParentFiber, fiber);
  34064. isHydrating = false;
  34065. hydrationParentFiber = fiber;
  34066. return;
  34067. }
  34068. var firstAttemptedInstance = nextInstance;
  34069. if (!tryHydrate(fiber, nextInstance)) {
  34070. // If we can't hydrate this instance let's try the next one.
  34071. // We use this as a heuristic. It's based on intuition and not data so it
  34072. // might be flawed or unnecessary.
  34073. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  34074. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  34075. // Nothing to hydrate. Make it an insertion.
  34076. insertNonHydratedInstance(hydrationParentFiber, fiber);
  34077. isHydrating = false;
  34078. hydrationParentFiber = fiber;
  34079. return;
  34080. }
  34081. // We matched the next one, we'll now assume that the first one was
  34082. // superfluous and we'll delete it. Since we can't eagerly delete it
  34083. // we'll have to schedule a deletion. To do that, this node needs a dummy
  34084. // fiber associated with it.
  34085. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  34086. }
  34087. hydrationParentFiber = fiber;
  34088. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  34089. }
  34090. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  34091. if (!supportsHydration) {
  34092. invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  34093. }
  34094. var instance = fiber.stateNode;
  34095. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  34096. // TODO: Type this specific to this type of component.
  34097. fiber.updateQueue = updatePayload;
  34098. // If the update payload indicates that there is a change or if there
  34099. // is a new ref we mark this as an update.
  34100. if (updatePayload !== null) {
  34101. return true;
  34102. }
  34103. return false;
  34104. }
  34105. function prepareToHydrateHostTextInstance(fiber) {
  34106. if (!supportsHydration) {
  34107. invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  34108. }
  34109. var textInstance = fiber.stateNode;
  34110. var textContent = fiber.memoizedProps;
  34111. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  34112. {
  34113. if (shouldUpdate) {
  34114. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  34115. // hydration parent is the parent host component of this host text.
  34116. var returnFiber = hydrationParentFiber;
  34117. if (returnFiber !== null) {
  34118. switch (returnFiber.tag) {
  34119. case HostRoot:
  34120. {
  34121. var parentContainer = returnFiber.stateNode.containerInfo;
  34122. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  34123. break;
  34124. }
  34125. case HostComponent:
  34126. {
  34127. var parentType = returnFiber.type;
  34128. var parentProps = returnFiber.memoizedProps;
  34129. var parentInstance = returnFiber.stateNode;
  34130. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  34131. break;
  34132. }
  34133. }
  34134. }
  34135. }
  34136. }
  34137. return shouldUpdate;
  34138. }
  34139. function popToNextHostParent(fiber) {
  34140. var parent = fiber.return;
  34141. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) {
  34142. parent = parent.return;
  34143. }
  34144. hydrationParentFiber = parent;
  34145. }
  34146. function popHydrationState(fiber) {
  34147. if (!supportsHydration) {
  34148. return false;
  34149. }
  34150. if (fiber !== hydrationParentFiber) {
  34151. // We're deeper than the current hydration context, inside an inserted
  34152. // tree.
  34153. return false;
  34154. }
  34155. if (!isHydrating) {
  34156. // If we're not currently hydrating but we're in a hydration context, then
  34157. // we were an insertion and now need to pop up reenter hydration of our
  34158. // siblings.
  34159. popToNextHostParent(fiber);
  34160. isHydrating = true;
  34161. return false;
  34162. }
  34163. var type = fiber.type;
  34164. // If we have any remaining hydratable nodes, we need to delete them now.
  34165. // We only do this deeper than head and body since they tend to have random
  34166. // other nodes in them. We also ignore components with pure text content in
  34167. // side of them.
  34168. // TODO: Better heuristic.
  34169. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  34170. var nextInstance = nextHydratableInstance;
  34171. while (nextInstance) {
  34172. deleteHydratableInstance(fiber, nextInstance);
  34173. nextInstance = getNextHydratableSibling(nextInstance);
  34174. }
  34175. }
  34176. popToNextHostParent(fiber);
  34177. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  34178. return true;
  34179. }
  34180. function resetHydrationState() {
  34181. if (!supportsHydration) {
  34182. return;
  34183. }
  34184. hydrationParentFiber = null;
  34185. nextHydratableInstance = null;
  34186. isHydrating = false;
  34187. }
  34188. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  34189. var didWarnAboutBadClass = void 0;
  34190. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  34191. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  34192. var didWarnAboutFunctionRefs = void 0;
  34193. {
  34194. didWarnAboutBadClass = {};
  34195. didWarnAboutContextTypeOnFunctionComponent = {};
  34196. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  34197. didWarnAboutFunctionRefs = {};
  34198. }
  34199. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  34200. if (current$$1 === null) {
  34201. // If this is a fresh new component that hasn't been rendered yet, we
  34202. // won't update its child set by applying minimal side-effects. Instead,
  34203. // we will add them all to the child before it gets rendered. That means
  34204. // we can optimize this reconciliation pass by not tracking side-effects.
  34205. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34206. } else {
  34207. // If the current child is the same as the work in progress, it means that
  34208. // we haven't yet started any work on these children. Therefore, we use
  34209. // the clone algorithm to create a copy of all the current children.
  34210. // If we had any progressed work already, that is invalid at this point so
  34211. // let's throw it out.
  34212. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  34213. }
  34214. }
  34215. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  34216. // This function is fork of reconcileChildren. It's used in cases where we
  34217. // want to reconcile without matching against the existing set. This has the
  34218. // effect of all current children being unmounted; even if the type and key
  34219. // are the same, the old child is unmounted and a new child is created.
  34220. //
  34221. // To do this, we're going to go through the reconcile algorithm twice. In
  34222. // the first pass, we schedule a deletion for all the current children by
  34223. // passing null.
  34224. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  34225. // In the second pass, we mount the new children. The trick here is that we
  34226. // pass null in place of where we usually pass the current child set. This has
  34227. // the effect of remounting all children regardless of whether their their
  34228. // identity matches.
  34229. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34230. }
  34231. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  34232. var render = Component.render;
  34233. var ref = workInProgress.ref;
  34234. // The rest is a fork of updateFunctionComponent
  34235. var nextChildren = void 0;
  34236. prepareToReadContext(workInProgress, renderExpirationTime);
  34237. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  34238. {
  34239. ReactCurrentOwner$3.current = workInProgress;
  34240. setCurrentPhase('render');
  34241. nextChildren = render(nextProps, ref);
  34242. setCurrentPhase(null);
  34243. }
  34244. nextChildren = finishHooks(render, nextProps, nextChildren, ref);
  34245. // React DevTools reads this flag.
  34246. workInProgress.effectTag |= PerformedWork;
  34247. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34248. return workInProgress.child;
  34249. }
  34250. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  34251. if (current$$1 === null) {
  34252. var type = Component.type;
  34253. if (isSimpleFunctionComponent(type) && Component.compare === null) {
  34254. // If this is a plain function component without default props,
  34255. // and with only the default shallow comparison, we upgrade it
  34256. // to a SimpleMemoComponent to allow fast path updates.
  34257. workInProgress.tag = SimpleMemoComponent;
  34258. workInProgress.type = type;
  34259. return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime);
  34260. }
  34261. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  34262. child.ref = workInProgress.ref;
  34263. child.return = workInProgress;
  34264. workInProgress.child = child;
  34265. return child;
  34266. }
  34267. var currentChild = current$$1.child; // This is always exactly one child
  34268. if (updateExpirationTime < renderExpirationTime) {
  34269. // This will be the props with resolved defaultProps,
  34270. // unlike current.memoizedProps which will be the unresolved ones.
  34271. var prevProps = currentChild.memoizedProps;
  34272. // Default to shallow comparison
  34273. var compare = Component.compare;
  34274. compare = compare !== null ? compare : shallowEqual;
  34275. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  34276. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34277. }
  34278. }
  34279. // React DevTools reads this flag.
  34280. workInProgress.effectTag |= PerformedWork;
  34281. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  34282. newChild.ref = workInProgress.ref;
  34283. newChild.return = workInProgress;
  34284. workInProgress.child = newChild;
  34285. return newChild;
  34286. }
  34287. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  34288. if (current$$1 !== null && updateExpirationTime < renderExpirationTime) {
  34289. var prevProps = current$$1.memoizedProps;
  34290. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  34291. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34292. }
  34293. }
  34294. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  34295. }
  34296. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  34297. var nextChildren = workInProgress.pendingProps;
  34298. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34299. return workInProgress.child;
  34300. }
  34301. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  34302. var nextChildren = workInProgress.pendingProps.children;
  34303. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34304. return workInProgress.child;
  34305. }
  34306. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  34307. if (enableProfilerTimer) {
  34308. workInProgress.effectTag |= Update;
  34309. }
  34310. var nextProps = workInProgress.pendingProps;
  34311. var nextChildren = nextProps.children;
  34312. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34313. return workInProgress.child;
  34314. }
  34315. function markRef(current$$1, workInProgress) {
  34316. var ref = workInProgress.ref;
  34317. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  34318. // Schedule a Ref effect
  34319. workInProgress.effectTag |= Ref;
  34320. }
  34321. }
  34322. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  34323. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  34324. var context = getMaskedContext(workInProgress, unmaskedContext);
  34325. var nextChildren = void 0;
  34326. prepareToReadContext(workInProgress, renderExpirationTime);
  34327. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  34328. {
  34329. ReactCurrentOwner$3.current = workInProgress;
  34330. setCurrentPhase('render');
  34331. nextChildren = Component(nextProps, context);
  34332. setCurrentPhase(null);
  34333. }
  34334. nextChildren = finishHooks(Component, nextProps, nextChildren, context);
  34335. // React DevTools reads this flag.
  34336. workInProgress.effectTag |= PerformedWork;
  34337. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34338. return workInProgress.child;
  34339. }
  34340. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  34341. // Push context providers early to prevent context stack mismatches.
  34342. // During mounting we don't know the child context yet as the instance doesn't exist.
  34343. // We will invalidate the child context in finishClassComponent() right after rendering.
  34344. var hasContext = void 0;
  34345. if (isContextProvider(Component)) {
  34346. hasContext = true;
  34347. pushContextProvider(workInProgress);
  34348. } else {
  34349. hasContext = false;
  34350. }
  34351. prepareToReadContext(workInProgress, renderExpirationTime);
  34352. var instance = workInProgress.stateNode;
  34353. var shouldUpdate = void 0;
  34354. if (instance === null) {
  34355. if (current$$1 !== null) {
  34356. // An class component without an instance only mounts if it suspended
  34357. // inside a non- concurrent tree, in an inconsistent state. We want to
  34358. // tree it like a new mount, even though an empty version of it already
  34359. // committed. Disconnect the alternate pointers.
  34360. current$$1.alternate = null;
  34361. workInProgress.alternate = null;
  34362. // Since this is conceptually a new fiber, schedule a Placement effect
  34363. workInProgress.effectTag |= Placement;
  34364. }
  34365. // In the initial pass we might need to construct the instance.
  34366. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34367. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34368. shouldUpdate = true;
  34369. } else if (current$$1 === null) {
  34370. // In a resume, we'll already have an instance we can reuse.
  34371. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34372. } else {
  34373. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  34374. }
  34375. return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  34376. }
  34377. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  34378. // Refs should update even if shouldComponentUpdate returns false
  34379. markRef(current$$1, workInProgress);
  34380. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  34381. if (!shouldUpdate && !didCaptureError) {
  34382. // Context providers should defer to sCU for rendering
  34383. if (hasContext) {
  34384. invalidateContextProvider(workInProgress, Component, false);
  34385. }
  34386. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34387. }
  34388. var instance = workInProgress.stateNode;
  34389. // Rerender
  34390. ReactCurrentOwner$3.current = workInProgress;
  34391. var nextChildren = void 0;
  34392. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  34393. // If we captured an error, but getDerivedStateFrom catch is not defined,
  34394. // unmount all the children. componentDidCatch will schedule an update to
  34395. // re-render a fallback. This is temporary until we migrate everyone to
  34396. // the new API.
  34397. // TODO: Warn in a future release.
  34398. nextChildren = null;
  34399. if (enableProfilerTimer) {
  34400. stopProfilerTimerIfRunning(workInProgress);
  34401. }
  34402. } else {
  34403. {
  34404. setCurrentPhase('render');
  34405. nextChildren = instance.render();
  34406. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  34407. instance.render();
  34408. }
  34409. setCurrentPhase(null);
  34410. }
  34411. }
  34412. // React DevTools reads this flag.
  34413. workInProgress.effectTag |= PerformedWork;
  34414. if (current$$1 !== null && didCaptureError) {
  34415. // If we're recovering from an error, reconcile without reusing any of
  34416. // the existing children. Conceptually, the normal children and the children
  34417. // that are shown on error are two different sets, so we shouldn't reuse
  34418. // normal children even if their identities match.
  34419. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34420. } else {
  34421. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34422. }
  34423. // Memoize state using the values we just used to render.
  34424. // TODO: Restructure so we never read values from the instance.
  34425. workInProgress.memoizedState = instance.state;
  34426. // The context might have changed so we need to recalculate it.
  34427. if (hasContext) {
  34428. invalidateContextProvider(workInProgress, Component, true);
  34429. }
  34430. return workInProgress.child;
  34431. }
  34432. function pushHostRootContext(workInProgress) {
  34433. var root = workInProgress.stateNode;
  34434. if (root.pendingContext) {
  34435. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  34436. } else if (root.context) {
  34437. // Should always be set
  34438. pushTopLevelContextObject(workInProgress, root.context, false);
  34439. }
  34440. pushHostContainer(workInProgress, root.containerInfo);
  34441. }
  34442. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  34443. pushHostRootContext(workInProgress);
  34444. var updateQueue = workInProgress.updateQueue;
  34445. !(updateQueue !== null) ? invariant(false, '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.') : void 0;
  34446. var nextProps = workInProgress.pendingProps;
  34447. var prevState = workInProgress.memoizedState;
  34448. var prevChildren = prevState !== null ? prevState.element : null;
  34449. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  34450. var nextState = workInProgress.memoizedState;
  34451. // Caution: React DevTools currently depends on this property
  34452. // being called "element".
  34453. var nextChildren = nextState.element;
  34454. if (nextChildren === prevChildren) {
  34455. // If the state is the same as before, that's a bailout because we had
  34456. // no work that expires at this time.
  34457. resetHydrationState();
  34458. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34459. }
  34460. var root = workInProgress.stateNode;
  34461. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  34462. // If we don't have any current children this might be the first pass.
  34463. // We always try to hydrate. If this isn't a hydration pass there won't
  34464. // be any children to hydrate which is effectively the same thing as
  34465. // not hydrating.
  34466. // This is a bit of a hack. We track the host root as a placement to
  34467. // know that we're currently in a mounting state. That way isMounted
  34468. // works as expected. We must reset this before committing.
  34469. // TODO: Delete this when we delete isMounted and findDOMNode.
  34470. workInProgress.effectTag |= Placement;
  34471. // Ensure that children mount into this root without tracking
  34472. // side-effects. This ensures that we don't store Placement effects on
  34473. // nodes that will be hydrated.
  34474. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34475. } else {
  34476. // Otherwise reset hydration state in case we aborted and resumed another
  34477. // root.
  34478. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34479. resetHydrationState();
  34480. }
  34481. return workInProgress.child;
  34482. }
  34483. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  34484. pushHostContext(workInProgress);
  34485. if (current$$1 === null) {
  34486. tryToClaimNextHydratableInstance(workInProgress);
  34487. }
  34488. var type = workInProgress.type;
  34489. var nextProps = workInProgress.pendingProps;
  34490. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  34491. var nextChildren = nextProps.children;
  34492. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  34493. if (isDirectTextChild) {
  34494. // We special case a direct text child of a host node. This is a common
  34495. // case. We won't handle it as a reified child. We will instead handle
  34496. // this in the host environment that also have access to this prop. That
  34497. // avoids allocating another HostText fiber and traversing it.
  34498. nextChildren = null;
  34499. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  34500. // If we're switching from a direct text child to a normal child, or to
  34501. // empty, we need to schedule the text content to be reset.
  34502. workInProgress.effectTag |= ContentReset;
  34503. }
  34504. markRef(current$$1, workInProgress);
  34505. // Check the host config to see if the children are offscreen/hidden.
  34506. if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) {
  34507. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  34508. workInProgress.expirationTime = Never;
  34509. return null;
  34510. }
  34511. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34512. return workInProgress.child;
  34513. }
  34514. function updateHostText(current$$1, workInProgress) {
  34515. if (current$$1 === null) {
  34516. tryToClaimNextHydratableInstance(workInProgress);
  34517. }
  34518. // Nothing to do here. This is terminal. We'll do the completion step
  34519. // immediately after.
  34520. return null;
  34521. }
  34522. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  34523. if (_current !== null) {
  34524. // An lazy component only mounts if it suspended inside a non-
  34525. // concurrent tree, in an inconsistent state. We want to treat it like
  34526. // a new mount, even though an empty version of it already committed.
  34527. // Disconnect the alternate pointers.
  34528. _current.alternate = null;
  34529. workInProgress.alternate = null;
  34530. // Since this is conceptually a new fiber, schedule a Placement effect
  34531. workInProgress.effectTag |= Placement;
  34532. }
  34533. var props = workInProgress.pendingProps;
  34534. // We can't start a User Timing measurement with correct label yet.
  34535. // Cancel and resume right after we know the tag.
  34536. cancelWorkTimer(workInProgress);
  34537. var Component = readLazyComponentType(elementType);
  34538. // Store the unwrapped component in the type.
  34539. workInProgress.type = Component;
  34540. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  34541. startWorkTimer(workInProgress);
  34542. var resolvedProps = resolveDefaultProps(Component, props);
  34543. var child = void 0;
  34544. switch (resolvedTag) {
  34545. case FunctionComponent:
  34546. {
  34547. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  34548. break;
  34549. }
  34550. case ClassComponent:
  34551. {
  34552. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  34553. break;
  34554. }
  34555. case ForwardRef:
  34556. {
  34557. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  34558. break;
  34559. }
  34560. case MemoComponent:
  34561. {
  34562. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  34563. updateExpirationTime, renderExpirationTime);
  34564. break;
  34565. }
  34566. default:
  34567. {
  34568. // This message intentionally doesn't mention ForwardRef or MemoComponent
  34569. // because the fact that it's a separate type of work is an
  34570. // implementation detail.
  34571. invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component);
  34572. }
  34573. }
  34574. return child;
  34575. }
  34576. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  34577. if (_current !== null) {
  34578. // An incomplete component only mounts if it suspended inside a non-
  34579. // concurrent tree, in an inconsistent state. We want to treat it like
  34580. // a new mount, even though an empty version of it already committed.
  34581. // Disconnect the alternate pointers.
  34582. _current.alternate = null;
  34583. workInProgress.alternate = null;
  34584. // Since this is conceptually a new fiber, schedule a Placement effect
  34585. workInProgress.effectTag |= Placement;
  34586. }
  34587. // Promote the fiber to a class and try rendering again.
  34588. workInProgress.tag = ClassComponent;
  34589. // The rest of this function is a fork of `updateClassComponent`
  34590. // Push context providers early to prevent context stack mismatches.
  34591. // During mounting we don't know the child context yet as the instance doesn't exist.
  34592. // We will invalidate the child context in finishClassComponent() right after rendering.
  34593. var hasContext = void 0;
  34594. if (isContextProvider(Component)) {
  34595. hasContext = true;
  34596. pushContextProvider(workInProgress);
  34597. } else {
  34598. hasContext = false;
  34599. }
  34600. prepareToReadContext(workInProgress, renderExpirationTime);
  34601. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34602. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  34603. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  34604. }
  34605. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  34606. if (_current !== null) {
  34607. // An indeterminate component only mounts if it suspended inside a non-
  34608. // concurrent tree, in an inconsistent state. We want to treat it like
  34609. // a new mount, even though an empty version of it already committed.
  34610. // Disconnect the alternate pointers.
  34611. _current.alternate = null;
  34612. workInProgress.alternate = null;
  34613. // Since this is conceptually a new fiber, schedule a Placement effect
  34614. workInProgress.effectTag |= Placement;
  34615. }
  34616. var props = workInProgress.pendingProps;
  34617. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  34618. var context = getMaskedContext(workInProgress, unmaskedContext);
  34619. prepareToReadContext(workInProgress, renderExpirationTime);
  34620. prepareToUseHooks(null, workInProgress, renderExpirationTime);
  34621. var value = void 0;
  34622. {
  34623. if (Component.prototype && typeof Component.prototype.render === 'function') {
  34624. var componentName = getComponentName(Component) || 'Unknown';
  34625. if (!didWarnAboutBadClass[componentName]) {
  34626. warningWithoutStack$1(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
  34627. didWarnAboutBadClass[componentName] = true;
  34628. }
  34629. }
  34630. if (workInProgress.mode & StrictMode) {
  34631. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  34632. }
  34633. ReactCurrentOwner$3.current = workInProgress;
  34634. value = Component(props, context);
  34635. }
  34636. // React DevTools reads this flag.
  34637. workInProgress.effectTag |= PerformedWork;
  34638. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  34639. // Proceed under the assumption that this is a class instance
  34640. workInProgress.tag = ClassComponent;
  34641. // Throw out any hooks that were used.
  34642. resetHooks();
  34643. // Push context providers early to prevent context stack mismatches.
  34644. // During mounting we don't know the child context yet as the instance doesn't exist.
  34645. // We will invalidate the child context in finishClassComponent() right after rendering.
  34646. var hasContext = false;
  34647. if (isContextProvider(Component)) {
  34648. hasContext = true;
  34649. pushContextProvider(workInProgress);
  34650. } else {
  34651. hasContext = false;
  34652. }
  34653. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  34654. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  34655. if (typeof getDerivedStateFromProps === 'function') {
  34656. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  34657. }
  34658. adoptClassInstance(workInProgress, value);
  34659. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  34660. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  34661. } else {
  34662. // Proceed under the assumption that this is a function component
  34663. workInProgress.tag = FunctionComponent;
  34664. value = finishHooks(Component, props, value, context);
  34665. {
  34666. if (Component) {
  34667. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  34668. }
  34669. if (workInProgress.ref !== null) {
  34670. var info = '';
  34671. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  34672. if (ownerName) {
  34673. info += '\n\nCheck the render method of `' + ownerName + '`.';
  34674. }
  34675. var warningKey = ownerName || workInProgress._debugID || '';
  34676. var debugSource = workInProgress._debugSource;
  34677. if (debugSource) {
  34678. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  34679. }
  34680. if (!didWarnAboutFunctionRefs[warningKey]) {
  34681. didWarnAboutFunctionRefs[warningKey] = true;
  34682. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info);
  34683. }
  34684. }
  34685. if (typeof Component.getDerivedStateFromProps === 'function') {
  34686. var _componentName = getComponentName(Component) || 'Unknown';
  34687. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName]) {
  34688. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName);
  34689. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName] = true;
  34690. }
  34691. }
  34692. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  34693. var _componentName2 = getComponentName(Component) || 'Unknown';
  34694. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName2]) {
  34695. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName2);
  34696. didWarnAboutContextTypeOnFunctionComponent[_componentName2] = true;
  34697. }
  34698. }
  34699. }
  34700. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  34701. return workInProgress.child;
  34702. }
  34703. }
  34704. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  34705. var mode = workInProgress.mode;
  34706. var nextProps = workInProgress.pendingProps;
  34707. // We should attempt to render the primary children unless this boundary
  34708. // already suspended during this render (`alreadyCaptured` is true).
  34709. var nextState = workInProgress.memoizedState;
  34710. var nextDidTimeout = void 0;
  34711. if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  34712. // This is the first attempt.
  34713. nextState = null;
  34714. nextDidTimeout = false;
  34715. } else {
  34716. // Something in this boundary's subtree already suspended. Switch to
  34717. // rendering the fallback children.
  34718. nextState = {
  34719. timedOutAt: nextState !== null ? nextState.timedOutAt : NoWork
  34720. };
  34721. nextDidTimeout = true;
  34722. workInProgress.effectTag &= ~DidCapture;
  34723. }
  34724. // This next part is a bit confusing. If the children timeout, we switch to
  34725. // showing the fallback children in place of the "primary" children.
  34726. // However, we don't want to delete the primary children because then their
  34727. // state will be lost (both the React state and the host state, e.g.
  34728. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  34729. // Both the fallback children AND the primary children are rendered at the
  34730. // same time. Once the primary children are un-suspended, we can delete
  34731. // the fallback children — don't need to preserve their state.
  34732. //
  34733. // The two sets of children are siblings in the host environment, but
  34734. // semantically, for purposes of reconciliation, they are two separate sets.
  34735. // So we store them using two fragment fibers.
  34736. //
  34737. // However, we want to avoid allocating extra fibers for every placeholder.
  34738. // They're only necessary when the children time out, because that's the
  34739. // only time when both sets are mounted.
  34740. //
  34741. // So, the extra fragment fibers are only used if the children time out.
  34742. // Otherwise, we render the primary children directly. This requires some
  34743. // custom reconciliation logic to preserve the state of the primary
  34744. // children. It's essentially a very basic form of re-parenting.
  34745. // `child` points to the child fiber. In the normal case, this is the first
  34746. // fiber of the primary children set. In the timed-out case, it's a
  34747. // a fragment fiber containing the primary children.
  34748. var child = void 0;
  34749. // `next` points to the next fiber React should render. In the normal case,
  34750. // it's the same as `child`: the first fiber of the primary children set.
  34751. // In the timed-out case, it's a fragment fiber containing the *fallback*
  34752. // children -- we skip over the primary children entirely.
  34753. var next = void 0;
  34754. if (current$$1 === null) {
  34755. // This is the initial mount. This branch is pretty simple because there's
  34756. // no previous state that needs to be preserved.
  34757. if (nextDidTimeout) {
  34758. // Mount separate fragments for primary and fallback children.
  34759. var nextFallbackChildren = nextProps.fallback;
  34760. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  34761. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  34762. // Outside of concurrent mode, we commit the effects from the
  34763. var progressedState = workInProgress.memoizedState;
  34764. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  34765. primaryChildFragment.child = progressedPrimaryChild;
  34766. }
  34767. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  34768. primaryChildFragment.sibling = fallbackChildFragment;
  34769. child = primaryChildFragment;
  34770. // Skip the primary children, and continue working on the
  34771. // fallback children.
  34772. next = fallbackChildFragment;
  34773. child.return = next.return = workInProgress;
  34774. } else {
  34775. // Mount the primary children without an intermediate fragment fiber.
  34776. var nextPrimaryChildren = nextProps.children;
  34777. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  34778. }
  34779. } else {
  34780. // This is an update. This branch is more complicated because we need to
  34781. // ensure the state of the primary children is preserved.
  34782. var prevState = current$$1.memoizedState;
  34783. var prevDidTimeout = prevState !== null;
  34784. if (prevDidTimeout) {
  34785. // The current tree already timed out. That means each child set is
  34786. var currentPrimaryChildFragment = current$$1.child;
  34787. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  34788. if (nextDidTimeout) {
  34789. // Still timed out. Reuse the current primary children by cloning
  34790. // its fragment. We're going to skip over these entirely.
  34791. var _nextFallbackChildren = nextProps.fallback;
  34792. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  34793. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  34794. // Outside of concurrent mode, we commit the effects from the
  34795. var _progressedState = workInProgress.memoizedState;
  34796. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  34797. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  34798. _primaryChildFragment.child = _progressedPrimaryChild;
  34799. }
  34800. }
  34801. // Because primaryChildFragment is a new fiber that we're inserting as the
  34802. // parent of a new tree, we need to set its treeBaseDuration.
  34803. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  34804. // treeBaseDuration is the sum of all the child tree base durations.
  34805. var treeBaseDuration = 0;
  34806. var hiddenChild = _primaryChildFragment.child;
  34807. while (hiddenChild !== null) {
  34808. treeBaseDuration += hiddenChild.treeBaseDuration;
  34809. hiddenChild = hiddenChild.sibling;
  34810. }
  34811. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  34812. }
  34813. // Clone the fallback child fragment, too. These we'll continue
  34814. // working on.
  34815. var _fallbackChildFragment = _primaryChildFragment.sibling = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  34816. child = _primaryChildFragment;
  34817. _primaryChildFragment.childExpirationTime = NoWork;
  34818. // Skip the primary children, and continue working on the
  34819. // fallback children.
  34820. next = _fallbackChildFragment;
  34821. child.return = next.return = workInProgress;
  34822. } else {
  34823. // No longer suspended. Switch back to showing the primary children,
  34824. // and remove the intermediate fragment fiber.
  34825. var _nextPrimaryChildren = nextProps.children;
  34826. var currentPrimaryChild = currentPrimaryChildFragment.child;
  34827. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  34828. // If this render doesn't suspend, we need to delete the fallback
  34829. // children. Wait until the complete phase, after we've confirmed the
  34830. // fallback is no longer needed.
  34831. // TODO: Would it be better to store the fallback fragment on
  34832. // the stateNode?
  34833. // Continue rendering the children, like we normally do.
  34834. child = next = primaryChild;
  34835. }
  34836. } else {
  34837. // The current tree has not already timed out. That means the primary
  34838. // children are not wrapped in a fragment fiber.
  34839. var _currentPrimaryChild = current$$1.child;
  34840. if (nextDidTimeout) {
  34841. // Timed out. Wrap the children in a fragment fiber to keep them
  34842. // separate from the fallback children.
  34843. var _nextFallbackChildren2 = nextProps.fallback;
  34844. var _primaryChildFragment2 = createFiberFromFragment(
  34845. // It shouldn't matter what the pending props are because we aren't
  34846. // going to render this fragment.
  34847. null, mode, NoWork, null);
  34848. _primaryChildFragment2.child = _currentPrimaryChild;
  34849. // Even though we're creating a new fiber, there are no new children,
  34850. // because we're reusing an already mounted tree. So we don't need to
  34851. // schedule a placement.
  34852. // primaryChildFragment.effectTag |= Placement;
  34853. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  34854. // Outside of concurrent mode, we commit the effects from the
  34855. var _progressedState2 = workInProgress.memoizedState;
  34856. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  34857. _primaryChildFragment2.child = _progressedPrimaryChild2;
  34858. }
  34859. // Because primaryChildFragment is a new fiber that we're inserting as the
  34860. // parent of a new tree, we need to set its treeBaseDuration.
  34861. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  34862. // treeBaseDuration is the sum of all the child tree base durations.
  34863. var _treeBaseDuration = 0;
  34864. var _hiddenChild = _primaryChildFragment2.child;
  34865. while (_hiddenChild !== null) {
  34866. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  34867. _hiddenChild = _hiddenChild.sibling;
  34868. }
  34869. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  34870. }
  34871. // Create a fragment from the fallback children, too.
  34872. var _fallbackChildFragment2 = _primaryChildFragment2.sibling = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  34873. _fallbackChildFragment2.effectTag |= Placement;
  34874. child = _primaryChildFragment2;
  34875. _primaryChildFragment2.childExpirationTime = NoWork;
  34876. // Skip the primary children, and continue working on the
  34877. // fallback children.
  34878. next = _fallbackChildFragment2;
  34879. child.return = next.return = workInProgress;
  34880. } else {
  34881. // Still haven't timed out. Continue rendering the children, like we
  34882. // normally do.
  34883. var _nextPrimaryChildren2 = nextProps.children;
  34884. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  34885. }
  34886. }
  34887. }
  34888. workInProgress.memoizedState = nextState;
  34889. workInProgress.child = child;
  34890. return next;
  34891. }
  34892. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  34893. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  34894. var nextChildren = workInProgress.pendingProps;
  34895. if (current$$1 === null) {
  34896. // Portals are special because we don't append the children during mount
  34897. // but at commit. Therefore we need to track insertions which the normal
  34898. // flow doesn't do during mount. This doesn't happen at the root because
  34899. // the root always starts with a "current" with a null child.
  34900. // TODO: Consider unifying this with how the root works.
  34901. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  34902. } else {
  34903. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  34904. }
  34905. return workInProgress.child;
  34906. }
  34907. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  34908. var providerType = workInProgress.type;
  34909. var context = providerType._context;
  34910. var newProps = workInProgress.pendingProps;
  34911. var oldProps = workInProgress.memoizedProps;
  34912. var newValue = newProps.value;
  34913. {
  34914. var providerPropTypes = workInProgress.type.propTypes;
  34915. if (providerPropTypes) {
  34916. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  34917. }
  34918. }
  34919. pushProvider(workInProgress, newValue);
  34920. if (oldProps !== null) {
  34921. var oldValue = oldProps.value;
  34922. var changedBits = calculateChangedBits(context, newValue, oldValue);
  34923. if (changedBits === 0) {
  34924. // No change. Bailout early if children are the same.
  34925. if (oldProps.children === newProps.children && !hasContextChanged()) {
  34926. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  34927. }
  34928. } else {
  34929. // The context value changed. Search for matching consumers and schedule
  34930. // them to update.
  34931. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  34932. }
  34933. }
  34934. var newChildren = newProps.children;
  34935. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  34936. return workInProgress.child;
  34937. }
  34938. var hasWarnedAboutUsingContextAsConsumer = false;
  34939. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  34940. var context = workInProgress.type;
  34941. // The logic below for Context differs depending on PROD or DEV mode. In
  34942. // DEV mode, we create a separate object for Context.Consumer that acts
  34943. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  34944. // so we use the old behaviour (Context.Consumer references Context) to
  34945. // reduce size and overhead. The separate object references context via
  34946. // a property called "_context", which also gives us the ability to check
  34947. // in DEV mode if this property exists or not and warn if it does not.
  34948. {
  34949. if (context._context === undefined) {
  34950. // This may be because it's a Context (rather than a Consumer).
  34951. // Or it may be because it's older React where they're the same thing.
  34952. // We only want to warn if we're sure it's a new React.
  34953. if (context !== context.Consumer) {
  34954. if (!hasWarnedAboutUsingContextAsConsumer) {
  34955. hasWarnedAboutUsingContextAsConsumer = true;
  34956. warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  34957. }
  34958. }
  34959. } else {
  34960. context = context._context;
  34961. }
  34962. }
  34963. var newProps = workInProgress.pendingProps;
  34964. var render = newProps.children;
  34965. {
  34966. !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;
  34967. }
  34968. prepareToReadContext(workInProgress, renderExpirationTime);
  34969. var newValue = readContext(context, newProps.unstable_observedBits);
  34970. var newChildren = void 0;
  34971. {
  34972. ReactCurrentOwner$3.current = workInProgress;
  34973. setCurrentPhase('render');
  34974. newChildren = render(newValue);
  34975. setCurrentPhase(null);
  34976. }
  34977. // React DevTools reads this flag.
  34978. workInProgress.effectTag |= PerformedWork;
  34979. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  34980. return workInProgress.child;
  34981. }
  34982. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  34983. cancelWorkTimer(workInProgress);
  34984. if (current$$1 !== null) {
  34985. // Reuse previous context list
  34986. workInProgress.firstContextDependency = current$$1.firstContextDependency;
  34987. }
  34988. if (enableProfilerTimer) {
  34989. // Don't update "base" render times for bailouts.
  34990. stopProfilerTimerIfRunning(workInProgress);
  34991. }
  34992. // Check if the children have any pending work.
  34993. var childExpirationTime = workInProgress.childExpirationTime;
  34994. if (childExpirationTime < renderExpirationTime) {
  34995. // The children don't have any work either. We can skip them.
  34996. // TODO: Once we add back resuming, we should check if the children are
  34997. // a work-in-progress set. If so, we need to transfer their effects.
  34998. return null;
  34999. } else {
  35000. // This fiber doesn't have work, but its subtree does. Clone the child
  35001. // fibers and continue.
  35002. cloneChildFibers(current$$1, workInProgress);
  35003. return workInProgress.child;
  35004. }
  35005. }
  35006. function beginWork(current$$1, workInProgress, renderExpirationTime) {
  35007. var updateExpirationTime = workInProgress.expirationTime;
  35008. if (current$$1 !== null) {
  35009. var oldProps = current$$1.memoizedProps;
  35010. var newProps = workInProgress.pendingProps;
  35011. if (oldProps === newProps && !hasContextChanged() && updateExpirationTime < renderExpirationTime) {
  35012. // This fiber does not have any pending work. Bailout without entering
  35013. // the begin phase. There's still some bookkeeping we that needs to be done
  35014. // in this optimized path, mostly pushing stuff onto the stack.
  35015. switch (workInProgress.tag) {
  35016. case HostRoot:
  35017. pushHostRootContext(workInProgress);
  35018. resetHydrationState();
  35019. break;
  35020. case HostComponent:
  35021. pushHostContext(workInProgress);
  35022. break;
  35023. case ClassComponent:
  35024. {
  35025. var Component = workInProgress.type;
  35026. if (isContextProvider(Component)) {
  35027. pushContextProvider(workInProgress);
  35028. }
  35029. break;
  35030. }
  35031. case HostPortal:
  35032. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  35033. break;
  35034. case ContextProvider:
  35035. {
  35036. var newValue = workInProgress.memoizedProps.value;
  35037. pushProvider(workInProgress, newValue);
  35038. break;
  35039. }
  35040. case Profiler:
  35041. if (enableProfilerTimer) {
  35042. workInProgress.effectTag |= Update;
  35043. }
  35044. break;
  35045. case SuspenseComponent:
  35046. {
  35047. var state = workInProgress.memoizedState;
  35048. var didTimeout = state !== null;
  35049. if (didTimeout) {
  35050. // If this boundary is currently timed out, we need to decide
  35051. // whether to retry the primary children, or to skip over it and
  35052. // go straight to the fallback. Check the priority of the primary
  35053. var primaryChildFragment = workInProgress.child;
  35054. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  35055. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  35056. // The primary children have pending work. Use the normal path
  35057. // to attempt to render the primary children again.
  35058. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  35059. } else {
  35060. // The primary children do not have pending work with sufficient
  35061. // priority. Bailout.
  35062. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  35063. if (child !== null) {
  35064. // The fallback children have pending work. Skip over the
  35065. // primary children and work on the fallback.
  35066. return child.sibling;
  35067. } else {
  35068. return null;
  35069. }
  35070. }
  35071. }
  35072. break;
  35073. }
  35074. }
  35075. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  35076. }
  35077. }
  35078. // Before entering the begin phase, clear the expiration time.
  35079. workInProgress.expirationTime = NoWork;
  35080. switch (workInProgress.tag) {
  35081. case IndeterminateComponent:
  35082. {
  35083. var elementType = workInProgress.elementType;
  35084. return mountIndeterminateComponent(current$$1, workInProgress, elementType, renderExpirationTime);
  35085. }
  35086. case LazyComponent:
  35087. {
  35088. var _elementType = workInProgress.elementType;
  35089. return mountLazyComponent(current$$1, workInProgress, _elementType, updateExpirationTime, renderExpirationTime);
  35090. }
  35091. case FunctionComponent:
  35092. {
  35093. var _Component = workInProgress.type;
  35094. var unresolvedProps = workInProgress.pendingProps;
  35095. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  35096. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  35097. }
  35098. case ClassComponent:
  35099. {
  35100. var _Component2 = workInProgress.type;
  35101. var _unresolvedProps = workInProgress.pendingProps;
  35102. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  35103. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  35104. }
  35105. case HostRoot:
  35106. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  35107. case HostComponent:
  35108. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  35109. case HostText:
  35110. return updateHostText(current$$1, workInProgress);
  35111. case SuspenseComponent:
  35112. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  35113. case HostPortal:
  35114. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  35115. case ForwardRef:
  35116. {
  35117. var type = workInProgress.type;
  35118. var _unresolvedProps2 = workInProgress.pendingProps;
  35119. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  35120. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  35121. }
  35122. case Fragment:
  35123. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  35124. case Mode:
  35125. return updateMode(current$$1, workInProgress, renderExpirationTime);
  35126. case Profiler:
  35127. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  35128. case ContextProvider:
  35129. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  35130. case ContextConsumer:
  35131. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  35132. case MemoComponent:
  35133. {
  35134. var _type = workInProgress.type;
  35135. var _unresolvedProps3 = workInProgress.pendingProps;
  35136. var _resolvedProps3 = resolveDefaultProps(_type.type, _unresolvedProps3);
  35137. return updateMemoComponent(current$$1, workInProgress, _type, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  35138. }
  35139. case SimpleMemoComponent:
  35140. {
  35141. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  35142. }
  35143. case IncompleteClassComponent:
  35144. {
  35145. var _Component3 = workInProgress.type;
  35146. var _unresolvedProps4 = workInProgress.pendingProps;
  35147. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  35148. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  35149. }
  35150. default:
  35151. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  35152. }
  35153. }
  35154. function markUpdate(workInProgress) {
  35155. // Tag the fiber with an update effect. This turns a Placement into
  35156. // a PlacementAndUpdate.
  35157. workInProgress.effectTag |= Update;
  35158. }
  35159. function markRef$1(workInProgress) {
  35160. workInProgress.effectTag |= Ref;
  35161. }
  35162. var appendAllChildren = void 0;
  35163. var updateHostContainer = void 0;
  35164. var updateHostComponent$1 = void 0;
  35165. var updateHostText$1 = void 0;
  35166. if (supportsMutation) {
  35167. // Mutation mode
  35168. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  35169. // We only have the top Fiber that was created but we need recurse down its
  35170. // children to find all the terminal nodes.
  35171. var node = workInProgress.child;
  35172. while (node !== null) {
  35173. if (node.tag === HostComponent || node.tag === HostText) {
  35174. appendInitialChild(parent, node.stateNode);
  35175. } else if (node.tag === HostPortal) {
  35176. // If we have a portal child, then we don't want to traverse
  35177. // down its children. Instead, we'll get insertions from each child in
  35178. // the portal directly.
  35179. } else if (node.child !== null) {
  35180. node.child.return = node;
  35181. node = node.child;
  35182. continue;
  35183. }
  35184. if (node === workInProgress) {
  35185. return;
  35186. }
  35187. while (node.sibling === null) {
  35188. if (node.return === null || node.return === workInProgress) {
  35189. return;
  35190. }
  35191. node = node.return;
  35192. }
  35193. node.sibling.return = node.return;
  35194. node = node.sibling;
  35195. }
  35196. };
  35197. updateHostContainer = function (workInProgress) {
  35198. // Noop
  35199. };
  35200. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  35201. // If we have an alternate, that means this is an update and we need to
  35202. // schedule a side-effect to do the updates.
  35203. var oldProps = current.memoizedProps;
  35204. if (oldProps === newProps) {
  35205. // In mutation mode, this is sufficient for a bailout because
  35206. // we won't touch this node even if children changed.
  35207. return;
  35208. }
  35209. // If we get updated because one of our children updated, we don't
  35210. // have newProps so we'll have to reuse them.
  35211. // TODO: Split the update API as separate for the props vs. children.
  35212. // Even better would be if children weren't special cased at all tho.
  35213. var instance = workInProgress.stateNode;
  35214. var currentHostContext = getHostContext();
  35215. // TODO: Experiencing an error where oldProps is null. Suggests a host
  35216. // component is hitting the resume path. Figure out why. Possibly
  35217. // related to `hidden`.
  35218. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  35219. // TODO: Type this specific to this type of component.
  35220. workInProgress.updateQueue = updatePayload;
  35221. // If the update payload indicates that there is a change or if there
  35222. // is a new ref we mark this as an update. All the work is done in commitWork.
  35223. if (updatePayload) {
  35224. markUpdate(workInProgress);
  35225. }
  35226. };
  35227. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  35228. // If the text differs, mark it as an update. All the work in done in commitWork.
  35229. if (oldText !== newText) {
  35230. markUpdate(workInProgress);
  35231. }
  35232. };
  35233. } else if (supportsPersistence) {
  35234. // Persistent host tree mode
  35235. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  35236. // We only have the top Fiber that was created but we need recurse down its
  35237. // children to find all the terminal nodes.
  35238. var node = workInProgress.child;
  35239. while (node !== null) {
  35240. // eslint-disable-next-line no-labels
  35241. branches: if (node.tag === HostComponent) {
  35242. var instance = node.stateNode;
  35243. if (needsVisibilityToggle) {
  35244. var props = node.memoizedProps;
  35245. var type = node.type;
  35246. if (isHidden) {
  35247. // This child is inside a timed out tree. Hide it.
  35248. instance = cloneHiddenInstance(instance, type, props, node);
  35249. } else {
  35250. // This child was previously inside a timed out tree. If it was not
  35251. // updated during this render, it may need to be unhidden. Clone
  35252. // again to be sure.
  35253. instance = cloneUnhiddenInstance(instance, type, props, node);
  35254. }
  35255. node.stateNode = instance;
  35256. }
  35257. appendInitialChild(parent, instance);
  35258. } else if (node.tag === HostText) {
  35259. var _instance = node.stateNode;
  35260. if (needsVisibilityToggle) {
  35261. var text = node.memoizedProps;
  35262. var rootContainerInstance = getRootHostContainer();
  35263. var currentHostContext = getHostContext();
  35264. if (isHidden) {
  35265. _instance = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35266. } else {
  35267. _instance = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35268. }
  35269. node.stateNode = _instance;
  35270. }
  35271. appendInitialChild(parent, _instance);
  35272. } else if (node.tag === HostPortal) {
  35273. // If we have a portal child, then we don't want to traverse
  35274. // down its children. Instead, we'll get insertions from each child in
  35275. // the portal directly.
  35276. } else if (node.tag === SuspenseComponent) {
  35277. var current = node.alternate;
  35278. if (current !== null) {
  35279. var oldState = current.memoizedState;
  35280. var newState = node.memoizedState;
  35281. var oldIsHidden = oldState !== null;
  35282. var newIsHidden = newState !== null;
  35283. if (oldIsHidden !== newIsHidden) {
  35284. // The placeholder either just timed out or switched back to the normal
  35285. // children after having previously timed out. Toggle the visibility of
  35286. // the direct host children.
  35287. var primaryChildParent = newIsHidden ? node.child : node;
  35288. if (primaryChildParent !== null) {
  35289. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  35290. }
  35291. // eslint-disable-next-line no-labels
  35292. break branches;
  35293. }
  35294. }
  35295. if (node.child !== null) {
  35296. // Continue traversing like normal
  35297. node.child.return = node;
  35298. node = node.child;
  35299. continue;
  35300. }
  35301. } else if (node.child !== null) {
  35302. node.child.return = node;
  35303. node = node.child;
  35304. continue;
  35305. }
  35306. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  35307. node = node;
  35308. if (node === workInProgress) {
  35309. return;
  35310. }
  35311. while (node.sibling === null) {
  35312. if (node.return === null || node.return === workInProgress) {
  35313. return;
  35314. }
  35315. node = node.return;
  35316. }
  35317. node.sibling.return = node.return;
  35318. node = node.sibling;
  35319. }
  35320. };
  35321. // An unfortunate fork of appendAllChildren because we have two different parent types.
  35322. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  35323. // We only have the top Fiber that was created but we need recurse down its
  35324. // children to find all the terminal nodes.
  35325. var node = workInProgress.child;
  35326. while (node !== null) {
  35327. // eslint-disable-next-line no-labels
  35328. branches: if (node.tag === HostComponent) {
  35329. var instance = node.stateNode;
  35330. if (needsVisibilityToggle) {
  35331. var props = node.memoizedProps;
  35332. var type = node.type;
  35333. if (isHidden) {
  35334. // This child is inside a timed out tree. Hide it.
  35335. instance = cloneHiddenInstance(instance, type, props, node);
  35336. } else {
  35337. // This child was previously inside a timed out tree. If it was not
  35338. // updated during this render, it may need to be unhidden. Clone
  35339. // again to be sure.
  35340. instance = cloneUnhiddenInstance(instance, type, props, node);
  35341. }
  35342. node.stateNode = instance;
  35343. }
  35344. appendChildToContainerChildSet(containerChildSet, instance);
  35345. } else if (node.tag === HostText) {
  35346. var _instance2 = node.stateNode;
  35347. if (needsVisibilityToggle) {
  35348. var text = node.memoizedProps;
  35349. var rootContainerInstance = getRootHostContainer();
  35350. var currentHostContext = getHostContext();
  35351. if (isHidden) {
  35352. _instance2 = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35353. } else {
  35354. _instance2 = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  35355. }
  35356. node.stateNode = _instance2;
  35357. }
  35358. appendChildToContainerChildSet(containerChildSet, _instance2);
  35359. } else if (node.tag === HostPortal) {
  35360. // If we have a portal child, then we don't want to traverse
  35361. // down its children. Instead, we'll get insertions from each child in
  35362. // the portal directly.
  35363. } else if (node.tag === SuspenseComponent) {
  35364. var current = node.alternate;
  35365. if (current !== null) {
  35366. var oldState = current.memoizedState;
  35367. var newState = node.memoizedState;
  35368. var oldIsHidden = oldState !== null;
  35369. var newIsHidden = newState !== null;
  35370. if (oldIsHidden !== newIsHidden) {
  35371. // The placeholder either just timed out or switched back to the normal
  35372. // children after having previously timed out. Toggle the visibility of
  35373. // the direct host children.
  35374. var primaryChildParent = newIsHidden ? node.child : node;
  35375. if (primaryChildParent !== null) {
  35376. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  35377. }
  35378. // eslint-disable-next-line no-labels
  35379. break branches;
  35380. }
  35381. }
  35382. if (node.child !== null) {
  35383. // Continue traversing like normal
  35384. node.child.return = node;
  35385. node = node.child;
  35386. continue;
  35387. }
  35388. } else if (node.child !== null) {
  35389. node.child.return = node;
  35390. node = node.child;
  35391. continue;
  35392. }
  35393. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  35394. node = node;
  35395. if (node === workInProgress) {
  35396. return;
  35397. }
  35398. while (node.sibling === null) {
  35399. if (node.return === null || node.return === workInProgress) {
  35400. return;
  35401. }
  35402. node = node.return;
  35403. }
  35404. node.sibling.return = node.return;
  35405. node = node.sibling;
  35406. }
  35407. };
  35408. updateHostContainer = function (workInProgress) {
  35409. var portalOrRoot = workInProgress.stateNode;
  35410. var childrenUnchanged = workInProgress.firstEffect === null;
  35411. if (childrenUnchanged) {
  35412. // No changes, just reuse the existing instance.
  35413. } else {
  35414. var container = portalOrRoot.containerInfo;
  35415. var newChildSet = createContainerChildSet(container);
  35416. // If children might have changed, we have to add them all to the set.
  35417. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  35418. portalOrRoot.pendingChildren = newChildSet;
  35419. // Schedule an update on the container to swap out the container.
  35420. markUpdate(workInProgress);
  35421. finalizeContainerChildren(container, newChildSet);
  35422. }
  35423. };
  35424. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  35425. var currentInstance = current.stateNode;
  35426. var oldProps = current.memoizedProps;
  35427. // If there are no effects associated with this node, then none of our children had any updates.
  35428. // This guarantees that we can reuse all of them.
  35429. var childrenUnchanged = workInProgress.firstEffect === null;
  35430. if (childrenUnchanged && oldProps === newProps) {
  35431. // No changes, just reuse the existing instance.
  35432. // Note that this might release a previous clone.
  35433. workInProgress.stateNode = currentInstance;
  35434. return;
  35435. }
  35436. var recyclableInstance = workInProgress.stateNode;
  35437. var currentHostContext = getHostContext();
  35438. var updatePayload = null;
  35439. if (oldProps !== newProps) {
  35440. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  35441. }
  35442. if (childrenUnchanged && updatePayload === null) {
  35443. // No changes, just reuse the existing instance.
  35444. // Note that this might release a previous clone.
  35445. workInProgress.stateNode = currentInstance;
  35446. return;
  35447. }
  35448. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  35449. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  35450. markUpdate(workInProgress);
  35451. }
  35452. workInProgress.stateNode = newInstance;
  35453. if (childrenUnchanged) {
  35454. // If there are no other effects in this tree, we need to flag this node as having one.
  35455. // Even though we're not going to use it for anything.
  35456. // Otherwise parents won't know that there are new children to propagate upwards.
  35457. markUpdate(workInProgress);
  35458. } else {
  35459. // If children might have changed, we have to add them all to the set.
  35460. appendAllChildren(newInstance, workInProgress, false, false);
  35461. }
  35462. };
  35463. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  35464. if (oldText !== newText) {
  35465. // If the text content differs, we'll create a new text instance for it.
  35466. var rootContainerInstance = getRootHostContainer();
  35467. var currentHostContext = getHostContext();
  35468. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  35469. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  35470. // This lets the parents know that at least one of their children has changed.
  35471. markUpdate(workInProgress);
  35472. }
  35473. };
  35474. } else {
  35475. // No host operations
  35476. updateHostContainer = function (workInProgress) {
  35477. // Noop
  35478. };
  35479. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  35480. // Noop
  35481. };
  35482. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  35483. // Noop
  35484. };
  35485. }
  35486. function completeWork(current, workInProgress, renderExpirationTime) {
  35487. var newProps = workInProgress.pendingProps;
  35488. switch (workInProgress.tag) {
  35489. case IndeterminateComponent:
  35490. break;
  35491. case LazyComponent:
  35492. break;
  35493. case SimpleMemoComponent:
  35494. case FunctionComponent:
  35495. break;
  35496. case ClassComponent:
  35497. {
  35498. var Component = workInProgress.type;
  35499. if (isContextProvider(Component)) {
  35500. popContext(workInProgress);
  35501. }
  35502. break;
  35503. }
  35504. case HostRoot:
  35505. {
  35506. popHostContainer(workInProgress);
  35507. popTopLevelContextObject(workInProgress);
  35508. var fiberRoot = workInProgress.stateNode;
  35509. if (fiberRoot.pendingContext) {
  35510. fiberRoot.context = fiberRoot.pendingContext;
  35511. fiberRoot.pendingContext = null;
  35512. }
  35513. if (current === null || current.child === null) {
  35514. // If we hydrated, pop so that we can delete any remaining children
  35515. // that weren't hydrated.
  35516. popHydrationState(workInProgress);
  35517. // This resets the hacky state to fix isMounted before committing.
  35518. // TODO: Delete this when we delete isMounted and findDOMNode.
  35519. workInProgress.effectTag &= ~Placement;
  35520. }
  35521. updateHostContainer(workInProgress);
  35522. break;
  35523. }
  35524. case HostComponent:
  35525. {
  35526. popHostContext(workInProgress);
  35527. var rootContainerInstance = getRootHostContainer();
  35528. var type = workInProgress.type;
  35529. if (current !== null && workInProgress.stateNode != null) {
  35530. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  35531. if (current.ref !== workInProgress.ref) {
  35532. markRef$1(workInProgress);
  35533. }
  35534. } else {
  35535. if (!newProps) {
  35536. !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  35537. // This can happen when we abort work.
  35538. break;
  35539. }
  35540. var currentHostContext = getHostContext();
  35541. // TODO: Move createInstance to beginWork and keep it on a context
  35542. // "stack" as the parent. Then append children as we go in beginWork
  35543. // or completeWork depending on we want to add then top->down or
  35544. // bottom->up. Top->down is faster in IE11.
  35545. var wasHydrated = popHydrationState(workInProgress);
  35546. if (wasHydrated) {
  35547. // TODO: Move this and createInstance step into the beginPhase
  35548. // to consolidate.
  35549. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  35550. // If changes to the hydrated node needs to be applied at the
  35551. // commit-phase we mark this as such.
  35552. markUpdate(workInProgress);
  35553. }
  35554. } else {
  35555. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  35556. appendAllChildren(instance, workInProgress, false, false);
  35557. // Certain renderers require commit-time effects for initial mount.
  35558. // (eg DOM renderer supports auto-focus for certain elements).
  35559. // Make sure such renderers get scheduled for later work.
  35560. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {
  35561. markUpdate(workInProgress);
  35562. }
  35563. workInProgress.stateNode = instance;
  35564. }
  35565. if (workInProgress.ref !== null) {
  35566. // If there is a ref on a host node we need to schedule a callback
  35567. markRef$1(workInProgress);
  35568. }
  35569. }
  35570. break;
  35571. }
  35572. case HostText:
  35573. {
  35574. var newText = newProps;
  35575. if (current && workInProgress.stateNode != null) {
  35576. var oldText = current.memoizedProps;
  35577. // If we have an alternate, that means this is an update and we need
  35578. // to schedule a side-effect to do the updates.
  35579. updateHostText$1(current, workInProgress, oldText, newText);
  35580. } else {
  35581. if (typeof newText !== 'string') {
  35582. !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  35583. // This can happen when we abort work.
  35584. }
  35585. var _rootContainerInstance = getRootHostContainer();
  35586. var _currentHostContext = getHostContext();
  35587. var _wasHydrated = popHydrationState(workInProgress);
  35588. if (_wasHydrated) {
  35589. if (prepareToHydrateHostTextInstance(workInProgress)) {
  35590. markUpdate(workInProgress);
  35591. }
  35592. } else {
  35593. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  35594. }
  35595. }
  35596. break;
  35597. }
  35598. case ForwardRef:
  35599. break;
  35600. case SuspenseComponent:
  35601. {
  35602. var nextState = workInProgress.memoizedState;
  35603. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  35604. // Something suspended. Re-render with the fallback children.
  35605. workInProgress.expirationTime = renderExpirationTime;
  35606. // Do not reset the effect list.
  35607. return workInProgress;
  35608. }
  35609. var nextDidTimeout = nextState !== null;
  35610. var prevDidTimeout = current !== null && current.memoizedState !== null;
  35611. if (current !== null && !nextDidTimeout && prevDidTimeout) {
  35612. // We just switched from the fallback to the normal children. Delete
  35613. // the fallback.
  35614. // TODO: Would it be better to store the fallback fragment on
  35615. var currentFallbackChild = current.child.sibling;
  35616. if (currentFallbackChild !== null) {
  35617. // Deletions go at the beginning of the return fiber's effect list
  35618. var first = workInProgress.firstEffect;
  35619. if (first !== null) {
  35620. workInProgress.firstEffect = currentFallbackChild;
  35621. currentFallbackChild.nextEffect = first;
  35622. } else {
  35623. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  35624. currentFallbackChild.nextEffect = null;
  35625. }
  35626. currentFallbackChild.effectTag = Deletion;
  35627. }
  35628. }
  35629. // The children either timed out after previously being visible, or
  35630. // were restored after previously being hidden. Schedule an effect
  35631. // to update their visiblity.
  35632. if (
  35633. //
  35634. nextDidTimeout !== prevDidTimeout ||
  35635. // Outside concurrent mode, the primary children commit in an
  35636. // inconsistent state, even if they are hidden. So if they are hidden,
  35637. // we need to schedule an effect to re-hide them, just in case.
  35638. (workInProgress.effectTag & ConcurrentMode) === NoContext && nextDidTimeout) {
  35639. workInProgress.effectTag |= Update;
  35640. }
  35641. break;
  35642. }
  35643. case Fragment:
  35644. break;
  35645. case Mode:
  35646. break;
  35647. case Profiler:
  35648. break;
  35649. case HostPortal:
  35650. popHostContainer(workInProgress);
  35651. updateHostContainer(workInProgress);
  35652. break;
  35653. case ContextProvider:
  35654. // Pop provider fiber
  35655. popProvider(workInProgress);
  35656. break;
  35657. case ContextConsumer:
  35658. break;
  35659. case MemoComponent:
  35660. break;
  35661. case IncompleteClassComponent:
  35662. {
  35663. // Same as class component case. I put it down here so that the tags are
  35664. // sequential to ensure this switch is compiled to a jump table.
  35665. var _Component = workInProgress.type;
  35666. if (isContextProvider(_Component)) {
  35667. popContext(workInProgress);
  35668. }
  35669. break;
  35670. }
  35671. default:
  35672. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  35673. }
  35674. return null;
  35675. }
  35676. function shouldCaptureSuspense(current, workInProgress) {
  35677. // In order to capture, the Suspense component must have a fallback prop.
  35678. if (workInProgress.memoizedProps.fallback === undefined) {
  35679. return false;
  35680. }
  35681. // If it was the primary children that just suspended, capture and render the
  35682. // fallback. Otherwise, don't capture and bubble to the next boundary.
  35683. var nextState = workInProgress.memoizedState;
  35684. return nextState === null;
  35685. }
  35686. // This module is forked in different environments.
  35687. // By default, return `true` to log errors to the console.
  35688. // Forks can return `false` if this isn't desirable.
  35689. function showErrorDialog(capturedError) {
  35690. return true;
  35691. }
  35692. function logCapturedError(capturedError) {
  35693. var logError = showErrorDialog(capturedError);
  35694. // Allow injected showErrorDialog() to prevent default console.error logging.
  35695. // This enables renderers like ReactNative to better manage redbox behavior.
  35696. if (logError === false) {
  35697. return;
  35698. }
  35699. var error = capturedError.error;
  35700. {
  35701. var componentName = capturedError.componentName,
  35702. componentStack = capturedError.componentStack,
  35703. errorBoundaryName = capturedError.errorBoundaryName,
  35704. errorBoundaryFound = capturedError.errorBoundaryFound,
  35705. willRetry = capturedError.willRetry;
  35706. // Browsers support silencing uncaught errors by calling
  35707. // `preventDefault()` in window `error` handler.
  35708. // We record this information as an expando on the error.
  35709. if (error != null && error._suppressLogging) {
  35710. if (errorBoundaryFound && willRetry) {
  35711. // The error is recoverable and was silenced.
  35712. // Ignore it and don't print the stack addendum.
  35713. // This is handy for testing error boundaries without noise.
  35714. return;
  35715. }
  35716. // The error is fatal. Since the silencing might have
  35717. // been accidental, we'll surface it anyway.
  35718. // However, the browser would have silenced the original error
  35719. // so we'll print it first, and then print the stack addendum.
  35720. console.error(error);
  35721. // For a more detailed description of this block, see:
  35722. // https://github.com/facebook/react/pull/13384
  35723. }
  35724. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  35725. var errorBoundaryMessage = void 0;
  35726. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  35727. if (errorBoundaryFound && errorBoundaryName) {
  35728. if (willRetry) {
  35729. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  35730. } else {
  35731. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  35732. }
  35733. } else {
  35734. 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.';
  35735. }
  35736. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  35737. // In development, we provide our own message with just the component stack.
  35738. // We don't include the original error message and JS stack because the browser
  35739. // has already printed it. Even if the application swallows the error, it is still
  35740. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  35741. console.error(combinedMessage);
  35742. }
  35743. }
  35744. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  35745. {
  35746. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  35747. }
  35748. function logError(boundary, errorInfo) {
  35749. var source = errorInfo.source;
  35750. var stack = errorInfo.stack;
  35751. if (stack === null && source !== null) {
  35752. stack = getStackByFiberInDevAndProd(source);
  35753. }
  35754. var capturedError = {
  35755. componentName: source !== null ? getComponentName(source.type) : null,
  35756. componentStack: stack !== null ? stack : '',
  35757. error: errorInfo.value,
  35758. errorBoundary: null,
  35759. errorBoundaryName: null,
  35760. errorBoundaryFound: false,
  35761. willRetry: false
  35762. };
  35763. if (boundary !== null && boundary.tag === ClassComponent) {
  35764. capturedError.errorBoundary = boundary.stateNode;
  35765. capturedError.errorBoundaryName = getComponentName(boundary.type);
  35766. capturedError.errorBoundaryFound = true;
  35767. capturedError.willRetry = true;
  35768. }
  35769. try {
  35770. logCapturedError(capturedError);
  35771. } catch (e) {
  35772. // This method must not throw, or React internal state will get messed up.
  35773. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  35774. // we want to report this error outside of the normal stack as a last resort.
  35775. // https://github.com/facebook/react/issues/13188
  35776. setTimeout(function () {
  35777. throw e;
  35778. });
  35779. }
  35780. }
  35781. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  35782. startPhaseTimer(current$$1, 'componentWillUnmount');
  35783. instance.props = current$$1.memoizedProps;
  35784. instance.state = current$$1.memoizedState;
  35785. instance.componentWillUnmount();
  35786. stopPhaseTimer();
  35787. };
  35788. // Capture errors so they don't interrupt unmounting.
  35789. function safelyCallComponentWillUnmount(current$$1, instance) {
  35790. {
  35791. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  35792. if (hasCaughtError()) {
  35793. var unmountError = clearCaughtError();
  35794. captureCommitPhaseError(current$$1, unmountError);
  35795. }
  35796. }
  35797. }
  35798. function safelyDetachRef(current$$1) {
  35799. var ref = current$$1.ref;
  35800. if (ref !== null) {
  35801. if (typeof ref === 'function') {
  35802. {
  35803. invokeGuardedCallback(null, ref, null, null);
  35804. if (hasCaughtError()) {
  35805. var refError = clearCaughtError();
  35806. captureCommitPhaseError(current$$1, refError);
  35807. }
  35808. }
  35809. } else {
  35810. ref.current = null;
  35811. }
  35812. }
  35813. }
  35814. function safelyCallDestroy(current$$1, destroy) {
  35815. {
  35816. invokeGuardedCallback(null, destroy, null);
  35817. if (hasCaughtError()) {
  35818. var error = clearCaughtError();
  35819. captureCommitPhaseError(current$$1, error);
  35820. }
  35821. }
  35822. }
  35823. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  35824. switch (finishedWork.tag) {
  35825. case FunctionComponent:
  35826. case ForwardRef:
  35827. case SimpleMemoComponent:
  35828. {
  35829. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  35830. return;
  35831. }
  35832. case ClassComponent:
  35833. {
  35834. if (finishedWork.effectTag & Snapshot) {
  35835. if (current$$1 !== null) {
  35836. var prevProps = current$$1.memoizedProps;
  35837. var prevState = current$$1.memoizedState;
  35838. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  35839. var instance = finishedWork.stateNode;
  35840. // We could update instance props and state here,
  35841. // but instead we rely on them being set during last render.
  35842. // TODO: revisit this when we implement resuming.
  35843. {
  35844. if (finishedWork.type === finishedWork.elementType) {
  35845. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35846. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35847. }
  35848. }
  35849. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  35850. {
  35851. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  35852. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  35853. didWarnSet.add(finishedWork.type);
  35854. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  35855. }
  35856. }
  35857. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  35858. stopPhaseTimer();
  35859. }
  35860. }
  35861. return;
  35862. }
  35863. case HostRoot:
  35864. case HostComponent:
  35865. case HostText:
  35866. case HostPortal:
  35867. case IncompleteClassComponent:
  35868. // Nothing to do for these component types
  35869. return;
  35870. default:
  35871. {
  35872. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  35873. }
  35874. }
  35875. }
  35876. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  35877. if (!enableHooks) {
  35878. return;
  35879. }
  35880. var updateQueue = finishedWork.updateQueue;
  35881. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  35882. if (lastEffect !== null) {
  35883. var firstEffect = lastEffect.next;
  35884. var effect = firstEffect;
  35885. do {
  35886. if ((effect.tag & unmountTag) !== NoEffect$1) {
  35887. // Unmount
  35888. var destroy = effect.destroy;
  35889. effect.destroy = null;
  35890. if (destroy !== null) {
  35891. destroy();
  35892. }
  35893. }
  35894. if ((effect.tag & mountTag) !== NoEffect$1) {
  35895. // Mount
  35896. var create = effect.create;
  35897. var _destroy = create();
  35898. if (typeof _destroy !== 'function') {
  35899. {
  35900. if (_destroy !== null && _destroy !== undefined) {
  35901. warningWithoutStack$1(false, 'useEffect function must return a cleanup function or ' + 'nothing.%s%s', typeof _destroy.then === 'function' ? ' Promises and useEffect(async () => ...) are not ' + 'supported, but you can call an async function inside an ' + 'effect.' : '', getStackByFiberInDevAndProd(finishedWork));
  35902. }
  35903. }
  35904. _destroy = null;
  35905. }
  35906. effect.destroy = _destroy;
  35907. }
  35908. effect = effect.next;
  35909. } while (effect !== firstEffect);
  35910. }
  35911. }
  35912. function commitPassiveHookEffects(finishedWork) {
  35913. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  35914. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  35915. }
  35916. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  35917. switch (finishedWork.tag) {
  35918. case FunctionComponent:
  35919. case ForwardRef:
  35920. case SimpleMemoComponent:
  35921. {
  35922. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  35923. break;
  35924. }
  35925. case ClassComponent:
  35926. {
  35927. var instance = finishedWork.stateNode;
  35928. if (finishedWork.effectTag & Update) {
  35929. if (current$$1 === null) {
  35930. startPhaseTimer(finishedWork, 'componentDidMount');
  35931. // We could update instance props and state here,
  35932. // but instead we rely on them being set during last render.
  35933. // TODO: revisit this when we implement resuming.
  35934. {
  35935. if (finishedWork.type === finishedWork.elementType) {
  35936. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35937. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35938. }
  35939. }
  35940. instance.componentDidMount();
  35941. stopPhaseTimer();
  35942. } else {
  35943. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  35944. var prevState = current$$1.memoizedState;
  35945. startPhaseTimer(finishedWork, 'componentDidUpdate');
  35946. // We could update instance props and state here,
  35947. // but instead we rely on them being set during last render.
  35948. // TODO: revisit this when we implement resuming.
  35949. {
  35950. if (finishedWork.type === finishedWork.elementType) {
  35951. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35952. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35953. }
  35954. }
  35955. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  35956. stopPhaseTimer();
  35957. }
  35958. }
  35959. var updateQueue = finishedWork.updateQueue;
  35960. if (updateQueue !== null) {
  35961. {
  35962. if (finishedWork.type === finishedWork.elementType) {
  35963. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35964. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  35965. }
  35966. }
  35967. // We could update instance props and state here,
  35968. // but instead we rely on them being set during last render.
  35969. // TODO: revisit this when we implement resuming.
  35970. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  35971. }
  35972. return;
  35973. }
  35974. case HostRoot:
  35975. {
  35976. var _updateQueue = finishedWork.updateQueue;
  35977. if (_updateQueue !== null) {
  35978. var _instance = null;
  35979. if (finishedWork.child !== null) {
  35980. switch (finishedWork.child.tag) {
  35981. case HostComponent:
  35982. _instance = getPublicInstance(finishedWork.child.stateNode);
  35983. break;
  35984. case ClassComponent:
  35985. _instance = finishedWork.child.stateNode;
  35986. break;
  35987. }
  35988. }
  35989. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  35990. }
  35991. return;
  35992. }
  35993. case HostComponent:
  35994. {
  35995. var _instance2 = finishedWork.stateNode;
  35996. // Renderers may schedule work to be done after host components are mounted
  35997. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  35998. // These effects should only be committed when components are first mounted,
  35999. // aka when there is no current/alternate.
  36000. if (current$$1 === null && finishedWork.effectTag & Update) {
  36001. var type = finishedWork.type;
  36002. var props = finishedWork.memoizedProps;
  36003. commitMount(_instance2, type, props, finishedWork);
  36004. }
  36005. return;
  36006. }
  36007. case HostText:
  36008. {
  36009. // We have no life-cycles associated with text.
  36010. return;
  36011. }
  36012. case HostPortal:
  36013. {
  36014. // We have no life-cycles associated with portals.
  36015. return;
  36016. }
  36017. case Profiler:
  36018. {
  36019. if (enableProfilerTimer) {
  36020. var onRender = finishedWork.memoizedProps.onRender;
  36021. if (enableSchedulerTracing) {
  36022. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  36023. } else {
  36024. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  36025. }
  36026. }
  36027. return;
  36028. }
  36029. case SuspenseComponent:
  36030. break;
  36031. case IncompleteClassComponent:
  36032. break;
  36033. default:
  36034. {
  36035. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  36036. }
  36037. }
  36038. }
  36039. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  36040. if (supportsMutation) {
  36041. // We only have the top Fiber that was inserted but we need recurse down its
  36042. var node = finishedWork;
  36043. while (true) {
  36044. if (node.tag === HostComponent) {
  36045. var instance = node.stateNode;
  36046. if (isHidden) {
  36047. hideInstance(instance);
  36048. } else {
  36049. unhideInstance(node.stateNode, node.memoizedProps);
  36050. }
  36051. } else if (node.tag === HostText) {
  36052. var _instance3 = node.stateNode;
  36053. if (isHidden) {
  36054. hideTextInstance(_instance3);
  36055. } else {
  36056. unhideTextInstance(_instance3, node.memoizedProps);
  36057. }
  36058. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  36059. // Found a nested Suspense component that timed out. Skip over the
  36060. var fallbackChildFragment = node.child.sibling;
  36061. fallbackChildFragment.return = node;
  36062. node = fallbackChildFragment;
  36063. continue;
  36064. } else if (node.child !== null) {
  36065. node.child.return = node;
  36066. node = node.child;
  36067. continue;
  36068. }
  36069. if (node === finishedWork) {
  36070. return;
  36071. }
  36072. while (node.sibling === null) {
  36073. if (node.return === null || node.return === finishedWork) {
  36074. return;
  36075. }
  36076. node = node.return;
  36077. }
  36078. node.sibling.return = node.return;
  36079. node = node.sibling;
  36080. }
  36081. }
  36082. }
  36083. function commitAttachRef(finishedWork) {
  36084. var ref = finishedWork.ref;
  36085. if (ref !== null) {
  36086. var instance = finishedWork.stateNode;
  36087. var instanceToUse = void 0;
  36088. switch (finishedWork.tag) {
  36089. case HostComponent:
  36090. instanceToUse = getPublicInstance(instance);
  36091. break;
  36092. default:
  36093. instanceToUse = instance;
  36094. }
  36095. if (typeof ref === 'function') {
  36096. ref(instanceToUse);
  36097. } else {
  36098. {
  36099. if (!ref.hasOwnProperty('current')) {
  36100. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  36101. }
  36102. }
  36103. ref.current = instanceToUse;
  36104. }
  36105. }
  36106. }
  36107. function commitDetachRef(current$$1) {
  36108. var currentRef = current$$1.ref;
  36109. if (currentRef !== null) {
  36110. if (typeof currentRef === 'function') {
  36111. currentRef(null);
  36112. } else {
  36113. currentRef.current = null;
  36114. }
  36115. }
  36116. }
  36117. // User-originating errors (lifecycles and refs) should not interrupt
  36118. // deletion, so don't let them throw. Host-originating errors should
  36119. // interrupt deletion, so it's okay
  36120. function commitUnmount(current$$1) {
  36121. onCommitUnmount(current$$1);
  36122. switch (current$$1.tag) {
  36123. case FunctionComponent:
  36124. case ForwardRef:
  36125. case MemoComponent:
  36126. case SimpleMemoComponent:
  36127. {
  36128. var updateQueue = current$$1.updateQueue;
  36129. if (updateQueue !== null) {
  36130. var lastEffect = updateQueue.lastEffect;
  36131. if (lastEffect !== null) {
  36132. var firstEffect = lastEffect.next;
  36133. var effect = firstEffect;
  36134. do {
  36135. var destroy = effect.destroy;
  36136. if (destroy !== null) {
  36137. safelyCallDestroy(current$$1, destroy);
  36138. }
  36139. effect = effect.next;
  36140. } while (effect !== firstEffect);
  36141. }
  36142. }
  36143. break;
  36144. }
  36145. case ClassComponent:
  36146. {
  36147. safelyDetachRef(current$$1);
  36148. var instance = current$$1.stateNode;
  36149. if (typeof instance.componentWillUnmount === 'function') {
  36150. safelyCallComponentWillUnmount(current$$1, instance);
  36151. }
  36152. return;
  36153. }
  36154. case HostComponent:
  36155. {
  36156. safelyDetachRef(current$$1);
  36157. return;
  36158. }
  36159. case HostPortal:
  36160. {
  36161. // TODO: this is recursive.
  36162. // We are also not using this parent because
  36163. // the portal will get pushed immediately.
  36164. if (supportsMutation) {
  36165. unmountHostComponents(current$$1);
  36166. } else if (supportsPersistence) {
  36167. emptyPortalContainer(current$$1);
  36168. }
  36169. return;
  36170. }
  36171. }
  36172. }
  36173. function commitNestedUnmounts(root) {
  36174. // While we're inside a removed host node we don't want to call
  36175. // removeChild on the inner nodes because they're removed by the top
  36176. // call anyway. We also want to call componentWillUnmount on all
  36177. // composites before this host node is removed from the tree. Therefore
  36178. var node = root;
  36179. while (true) {
  36180. commitUnmount(node);
  36181. // Visit children because they may contain more composite or host nodes.
  36182. // Skip portals because commitUnmount() currently visits them recursively.
  36183. if (node.child !== null && (
  36184. // If we use mutation we drill down into portals using commitUnmount above.
  36185. // If we don't use mutation we drill down into portals here instead.
  36186. !supportsMutation || node.tag !== HostPortal)) {
  36187. node.child.return = node;
  36188. node = node.child;
  36189. continue;
  36190. }
  36191. if (node === root) {
  36192. return;
  36193. }
  36194. while (node.sibling === null) {
  36195. if (node.return === null || node.return === root) {
  36196. return;
  36197. }
  36198. node = node.return;
  36199. }
  36200. node.sibling.return = node.return;
  36201. node = node.sibling;
  36202. }
  36203. }
  36204. function detachFiber(current$$1) {
  36205. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  36206. // should clear the child pointer of the parent alternate to let this
  36207. // get GC:ed but we don't know which for sure which parent is the current
  36208. // one so we'll settle for GC:ing the subtree of this child. This child
  36209. // itself will be GC:ed when the parent updates the next time.
  36210. current$$1.return = null;
  36211. current$$1.child = null;
  36212. if (current$$1.alternate) {
  36213. current$$1.alternate.child = null;
  36214. current$$1.alternate.return = null;
  36215. }
  36216. }
  36217. function emptyPortalContainer(current$$1) {
  36218. if (!supportsPersistence) {
  36219. return;
  36220. }
  36221. var portal = current$$1.stateNode;
  36222. var containerInfo = portal.containerInfo;
  36223. var emptyChildSet = createContainerChildSet(containerInfo);
  36224. replaceContainerChildren(containerInfo, emptyChildSet);
  36225. }
  36226. function commitContainer(finishedWork) {
  36227. if (!supportsPersistence) {
  36228. return;
  36229. }
  36230. switch (finishedWork.tag) {
  36231. case ClassComponent:
  36232. {
  36233. return;
  36234. }
  36235. case HostComponent:
  36236. {
  36237. return;
  36238. }
  36239. case HostText:
  36240. {
  36241. return;
  36242. }
  36243. case HostRoot:
  36244. case HostPortal:
  36245. {
  36246. var portalOrRoot = finishedWork.stateNode;
  36247. var containerInfo = portalOrRoot.containerInfo,
  36248. _pendingChildren = portalOrRoot.pendingChildren;
  36249. replaceContainerChildren(containerInfo, _pendingChildren);
  36250. return;
  36251. }
  36252. default:
  36253. {
  36254. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  36255. }
  36256. }
  36257. }
  36258. function getHostParentFiber(fiber) {
  36259. var parent = fiber.return;
  36260. while (parent !== null) {
  36261. if (isHostParent(parent)) {
  36262. return parent;
  36263. }
  36264. parent = parent.return;
  36265. }
  36266. invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');
  36267. }
  36268. function isHostParent(fiber) {
  36269. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  36270. }
  36271. function getHostSibling(fiber) {
  36272. // We're going to search forward into the tree until we find a sibling host
  36273. // node. Unfortunately, if multiple insertions are done in a row we have to
  36274. // search past them. This leads to exponential search for the next sibling.
  36275. var node = fiber;
  36276. siblings: while (true) {
  36277. // If we didn't find anything, let's try the next sibling.
  36278. while (node.sibling === null) {
  36279. if (node.return === null || isHostParent(node.return)) {
  36280. // If we pop out of the root or hit the parent the fiber we are the
  36281. // last sibling.
  36282. return null;
  36283. }
  36284. node = node.return;
  36285. }
  36286. node.sibling.return = node.return;
  36287. node = node.sibling;
  36288. while (node.tag !== HostComponent && node.tag !== HostText) {
  36289. // If it is not host node and, we might have a host node inside it.
  36290. // Try to search down until we find one.
  36291. if (node.effectTag & Placement) {
  36292. // If we don't have a child, try the siblings instead.
  36293. continue siblings;
  36294. }
  36295. // If we don't have a child, try the siblings instead.
  36296. // We also skip portals because they are not part of this host tree.
  36297. if (node.child === null || node.tag === HostPortal) {
  36298. continue siblings;
  36299. } else {
  36300. node.child.return = node;
  36301. node = node.child;
  36302. }
  36303. }
  36304. // Check if this host node is stable or about to be placed.
  36305. if (!(node.effectTag & Placement)) {
  36306. // Found it!
  36307. return node.stateNode;
  36308. }
  36309. }
  36310. }
  36311. function commitPlacement(finishedWork) {
  36312. if (!supportsMutation) {
  36313. return;
  36314. }
  36315. // Recursively insert all host nodes into the parent.
  36316. var parentFiber = getHostParentFiber(finishedWork);
  36317. // Note: these two variables *must* always be updated together.
  36318. var parent = void 0;
  36319. var isContainer = void 0;
  36320. switch (parentFiber.tag) {
  36321. case HostComponent:
  36322. parent = parentFiber.stateNode;
  36323. isContainer = false;
  36324. break;
  36325. case HostRoot:
  36326. parent = parentFiber.stateNode.containerInfo;
  36327. isContainer = true;
  36328. break;
  36329. case HostPortal:
  36330. parent = parentFiber.stateNode.containerInfo;
  36331. isContainer = true;
  36332. break;
  36333. default:
  36334. invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');
  36335. }
  36336. if (parentFiber.effectTag & ContentReset) {
  36337. // Reset the text content of the parent before doing any insertions
  36338. resetTextContent(parent);
  36339. // Clear ContentReset from the effect tag
  36340. parentFiber.effectTag &= ~ContentReset;
  36341. }
  36342. var before = getHostSibling(finishedWork);
  36343. // We only have the top Fiber that was inserted but we need recurse down its
  36344. // children to find all the terminal nodes.
  36345. var node = finishedWork;
  36346. while (true) {
  36347. if (node.tag === HostComponent || node.tag === HostText) {
  36348. if (before) {
  36349. if (isContainer) {
  36350. insertInContainerBefore(parent, node.stateNode, before);
  36351. } else {
  36352. insertBefore(parent, node.stateNode, before);
  36353. }
  36354. } else {
  36355. if (isContainer) {
  36356. appendChildToContainer(parent, node.stateNode);
  36357. } else {
  36358. appendChild(parent, node.stateNode);
  36359. }
  36360. }
  36361. } else if (node.tag === HostPortal) {
  36362. // If the insertion itself is a portal, then we don't want to traverse
  36363. // down its children. Instead, we'll get insertions from each child in
  36364. // the portal directly.
  36365. } else if (node.child !== null) {
  36366. node.child.return = node;
  36367. node = node.child;
  36368. continue;
  36369. }
  36370. if (node === finishedWork) {
  36371. return;
  36372. }
  36373. while (node.sibling === null) {
  36374. if (node.return === null || node.return === finishedWork) {
  36375. return;
  36376. }
  36377. node = node.return;
  36378. }
  36379. node.sibling.return = node.return;
  36380. node = node.sibling;
  36381. }
  36382. }
  36383. function unmountHostComponents(current$$1) {
  36384. // We only have the top Fiber that was deleted but we need recurse down its
  36385. var node = current$$1;
  36386. // Each iteration, currentParent is populated with node's host parent if not
  36387. // currentParentIsValid.
  36388. var currentParentIsValid = false;
  36389. // Note: these two variables *must* always be updated together.
  36390. var currentParent = void 0;
  36391. var currentParentIsContainer = void 0;
  36392. while (true) {
  36393. if (!currentParentIsValid) {
  36394. var parent = node.return;
  36395. findParent: while (true) {
  36396. !(parent !== null) ? invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  36397. switch (parent.tag) {
  36398. case HostComponent:
  36399. currentParent = parent.stateNode;
  36400. currentParentIsContainer = false;
  36401. break findParent;
  36402. case HostRoot:
  36403. currentParent = parent.stateNode.containerInfo;
  36404. currentParentIsContainer = true;
  36405. break findParent;
  36406. case HostPortal:
  36407. currentParent = parent.stateNode.containerInfo;
  36408. currentParentIsContainer = true;
  36409. break findParent;
  36410. }
  36411. parent = parent.return;
  36412. }
  36413. currentParentIsValid = true;
  36414. }
  36415. if (node.tag === HostComponent || node.tag === HostText) {
  36416. commitNestedUnmounts(node);
  36417. // After all the children have unmounted, it is now safe to remove the
  36418. // node from the tree.
  36419. if (currentParentIsContainer) {
  36420. removeChildFromContainer(currentParent, node.stateNode);
  36421. } else {
  36422. removeChild(currentParent, node.stateNode);
  36423. }
  36424. // Don't visit children because we already visited them.
  36425. } else if (node.tag === HostPortal) {
  36426. // When we go into a portal, it becomes the parent to remove from.
  36427. // We will reassign it back when we pop the portal on the way up.
  36428. currentParent = node.stateNode.containerInfo;
  36429. currentParentIsContainer = true;
  36430. // Visit children because portals might contain host components.
  36431. if (node.child !== null) {
  36432. node.child.return = node;
  36433. node = node.child;
  36434. continue;
  36435. }
  36436. } else {
  36437. commitUnmount(node);
  36438. // Visit children because we may find more host components below.
  36439. if (node.child !== null) {
  36440. node.child.return = node;
  36441. node = node.child;
  36442. continue;
  36443. }
  36444. }
  36445. if (node === current$$1) {
  36446. return;
  36447. }
  36448. while (node.sibling === null) {
  36449. if (node.return === null || node.return === current$$1) {
  36450. return;
  36451. }
  36452. node = node.return;
  36453. if (node.tag === HostPortal) {
  36454. // When we go out of the portal, we need to restore the parent.
  36455. // Since we don't keep a stack of them, we will search for it.
  36456. currentParentIsValid = false;
  36457. }
  36458. }
  36459. node.sibling.return = node.return;
  36460. node = node.sibling;
  36461. }
  36462. }
  36463. function commitDeletion(current$$1) {
  36464. if (supportsMutation) {
  36465. // Recursively delete all host nodes from the parent.
  36466. // Detach refs and call componentWillUnmount() on the whole subtree.
  36467. unmountHostComponents(current$$1);
  36468. } else {
  36469. // Detach refs and call componentWillUnmount() on the whole subtree.
  36470. commitNestedUnmounts(current$$1);
  36471. }
  36472. detachFiber(current$$1);
  36473. }
  36474. function commitWork(current$$1, finishedWork) {
  36475. if (!supportsMutation) {
  36476. switch (finishedWork.tag) {
  36477. case FunctionComponent:
  36478. case ForwardRef:
  36479. case MemoComponent:
  36480. case SimpleMemoComponent:
  36481. {
  36482. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  36483. return;
  36484. }
  36485. }
  36486. commitContainer(finishedWork);
  36487. return;
  36488. }
  36489. switch (finishedWork.tag) {
  36490. case FunctionComponent:
  36491. case ForwardRef:
  36492. case MemoComponent:
  36493. case SimpleMemoComponent:
  36494. {
  36495. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  36496. return;
  36497. }
  36498. case ClassComponent:
  36499. {
  36500. return;
  36501. }
  36502. case HostComponent:
  36503. {
  36504. var instance = finishedWork.stateNode;
  36505. if (instance != null) {
  36506. // Commit the work prepared earlier.
  36507. var newProps = finishedWork.memoizedProps;
  36508. // For hydration we reuse the update path but we treat the oldProps
  36509. // as the newProps. The updatePayload will contain the real change in
  36510. // this case.
  36511. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  36512. var type = finishedWork.type;
  36513. // TODO: Type the updateQueue to be specific to host components.
  36514. var updatePayload = finishedWork.updateQueue;
  36515. finishedWork.updateQueue = null;
  36516. if (updatePayload !== null) {
  36517. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  36518. }
  36519. }
  36520. return;
  36521. }
  36522. case HostText:
  36523. {
  36524. !(finishedWork.stateNode !== null) ? invariant(false, 'This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  36525. var textInstance = finishedWork.stateNode;
  36526. var newText = finishedWork.memoizedProps;
  36527. // For hydration we reuse the update path but we treat the oldProps
  36528. // as the newProps. The updatePayload will contain the real change in
  36529. // this case.
  36530. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  36531. commitTextUpdate(textInstance, oldText, newText);
  36532. return;
  36533. }
  36534. case HostRoot:
  36535. {
  36536. return;
  36537. }
  36538. case Profiler:
  36539. {
  36540. return;
  36541. }
  36542. case SuspenseComponent:
  36543. {
  36544. var newState = finishedWork.memoizedState;
  36545. var newDidTimeout = void 0;
  36546. var primaryChildParent = finishedWork;
  36547. if (newState === null) {
  36548. newDidTimeout = false;
  36549. } else {
  36550. newDidTimeout = true;
  36551. primaryChildParent = finishedWork.child;
  36552. if (newState.timedOutAt === NoWork) {
  36553. // If the children had not already timed out, record the time.
  36554. // This is used to compute the elapsed time during subsequent
  36555. // attempts to render the children.
  36556. newState.timedOutAt = requestCurrentTime();
  36557. }
  36558. }
  36559. if (primaryChildParent !== null) {
  36560. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  36561. }
  36562. return;
  36563. }
  36564. case IncompleteClassComponent:
  36565. {
  36566. return;
  36567. }
  36568. default:
  36569. {
  36570. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  36571. }
  36572. }
  36573. }
  36574. function commitResetTextContent(current$$1) {
  36575. if (!supportsMutation) {
  36576. return;
  36577. }
  36578. resetTextContent(current$$1.stateNode);
  36579. }
  36580. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  36581. var update = createUpdate(expirationTime);
  36582. // Unmount the root by rendering null.
  36583. update.tag = CaptureUpdate;
  36584. // Caution: React DevTools currently depends on this property
  36585. // being called "element".
  36586. update.payload = { element: null };
  36587. var error = errorInfo.value;
  36588. update.callback = function () {
  36589. onUncaughtError(error);
  36590. logError(fiber, errorInfo);
  36591. };
  36592. return update;
  36593. }
  36594. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  36595. var update = createUpdate(expirationTime);
  36596. update.tag = CaptureUpdate;
  36597. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  36598. if (typeof getDerivedStateFromError === 'function') {
  36599. var error = errorInfo.value;
  36600. update.payload = function () {
  36601. return getDerivedStateFromError(error);
  36602. };
  36603. }
  36604. var inst = fiber.stateNode;
  36605. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  36606. update.callback = function callback() {
  36607. if (typeof getDerivedStateFromError !== 'function') {
  36608. // To preserve the preexisting retry behavior of error boundaries,
  36609. // we keep track of which ones already failed during this batch.
  36610. // This gets reset before we yield back to the browser.
  36611. // TODO: Warn in strict mode if getDerivedStateFromError is
  36612. // not defined.
  36613. markLegacyErrorBoundaryAsFailed(this);
  36614. }
  36615. var error = errorInfo.value;
  36616. var stack = errorInfo.stack;
  36617. logError(fiber, errorInfo);
  36618. this.componentDidCatch(error, {
  36619. componentStack: stack !== null ? stack : ''
  36620. });
  36621. {
  36622. if (typeof getDerivedStateFromError !== 'function') {
  36623. // If componentDidCatch is the only error boundary method defined,
  36624. // then it needs to call setState to recover from errors.
  36625. // If no state update is scheduled then the boundary will swallow the error.
  36626. !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;
  36627. }
  36628. }
  36629. };
  36630. }
  36631. return update;
  36632. }
  36633. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  36634. // The source fiber did not complete.
  36635. sourceFiber.effectTag |= Incomplete;
  36636. // Its effect list is no longer valid.
  36637. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  36638. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  36639. // This is a thenable.
  36640. var thenable = value;
  36641. // Find the earliest timeout threshold of all the placeholders in the
  36642. // ancestor path. We could avoid this traversal by storing the thresholds on
  36643. // the stack, but we choose not to because we only hit this path if we're
  36644. // IO-bound (i.e. if something suspends). Whereas the stack is used even in
  36645. // the non-IO- bound case.
  36646. var _workInProgress = returnFiber;
  36647. var earliestTimeoutMs = -1;
  36648. var startTimeMs = -1;
  36649. do {
  36650. if (_workInProgress.tag === SuspenseComponent) {
  36651. var current$$1 = _workInProgress.alternate;
  36652. if (current$$1 !== null) {
  36653. var currentState = current$$1.memoizedState;
  36654. if (currentState !== null) {
  36655. // Reached a boundary that already timed out. Do not search
  36656. // any further.
  36657. var timedOutAt = currentState.timedOutAt;
  36658. startTimeMs = expirationTimeToMs(timedOutAt);
  36659. // Do not search any further.
  36660. break;
  36661. }
  36662. }
  36663. var timeoutPropMs = _workInProgress.pendingProps.maxDuration;
  36664. if (typeof timeoutPropMs === 'number') {
  36665. if (timeoutPropMs <= 0) {
  36666. earliestTimeoutMs = 0;
  36667. } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {
  36668. earliestTimeoutMs = timeoutPropMs;
  36669. }
  36670. }
  36671. }
  36672. _workInProgress = _workInProgress.return;
  36673. } while (_workInProgress !== null);
  36674. // Schedule the nearest Suspense to re-render the timed out view.
  36675. _workInProgress = returnFiber;
  36676. do {
  36677. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress.alternate, _workInProgress)) {
  36678. // Found the nearest boundary.
  36679. // If the boundary is not in concurrent mode, we should not suspend, and
  36680. // likewise, when the promise resolves, we should ping synchronously.
  36681. var pingTime = (_workInProgress.mode & ConcurrentMode) === NoEffect ? Sync : renderExpirationTime;
  36682. // Attach a listener to the promise to "ping" the root and retry.
  36683. var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, sourceFiber, pingTime);
  36684. if (enableSchedulerTracing) {
  36685. onResolveOrReject = tracing.unstable_wrap(onResolveOrReject);
  36686. }
  36687. thenable.then(onResolveOrReject, onResolveOrReject);
  36688. // If the boundary is outside of concurrent mode, we should *not*
  36689. // suspend the commit. Pretend as if the suspended component rendered
  36690. // null and keep rendering. In the commit phase, we'll schedule a
  36691. // subsequent synchronous update to re-render the Suspense.
  36692. //
  36693. // Note: It doesn't matter whether the component that suspended was
  36694. // inside a concurrent mode tree. If the Suspense is outside of it, we
  36695. // should *not* suspend the commit.
  36696. if ((_workInProgress.mode & ConcurrentMode) === NoEffect) {
  36697. _workInProgress.effectTag |= DidCapture;
  36698. // We're going to commit this fiber even though it didn't complete.
  36699. // But we shouldn't call any lifecycle methods or callbacks. Remove
  36700. // all lifecycle effect tags.
  36701. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  36702. if (sourceFiber.tag === ClassComponent) {
  36703. var _current = sourceFiber.alternate;
  36704. if (_current === null) {
  36705. // This is a new mount. Change the tag so it's not mistaken for a
  36706. // completed class component. For example, we should not call
  36707. // componentWillUnmount if it is deleted.
  36708. sourceFiber.tag = IncompleteClassComponent;
  36709. }
  36710. }
  36711. // The source fiber did not complete. Mark it with the current
  36712. // render priority to indicate that it still has pending work.
  36713. sourceFiber.expirationTime = renderExpirationTime;
  36714. // Exit without suspending.
  36715. return;
  36716. }
  36717. // Confirmed that the boundary is in a concurrent mode tree. Continue
  36718. // with the normal suspend path.
  36719. var absoluteTimeoutMs = void 0;
  36720. if (earliestTimeoutMs === -1) {
  36721. // If no explicit threshold is given, default to an abitrarily large
  36722. // value. The actual size doesn't matter because the threshold for the
  36723. // whole tree will be clamped to the expiration time.
  36724. absoluteTimeoutMs = maxSigned31BitInt;
  36725. } else {
  36726. if (startTimeMs === -1) {
  36727. // This suspend happened outside of any already timed-out
  36728. // placeholders. We don't know exactly when the update was
  36729. // scheduled, but we can infer an approximate start time from the
  36730. // expiration time. First, find the earliest uncommitted expiration
  36731. // time in the tree, including work that is suspended. Then subtract
  36732. // the offset used to compute an async update's expiration time.
  36733. // This will cause high priority (interactive) work to expire
  36734. // earlier than necessary, but we can account for this by adjusting
  36735. // for the Just Noticeable Difference.
  36736. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);
  36737. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  36738. startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  36739. }
  36740. absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;
  36741. }
  36742. // Mark the earliest timeout in the suspended fiber's ancestor path.
  36743. // After completing the root, we'll take the largest of all the
  36744. // suspended fiber's timeouts and use it to compute a timeout for the
  36745. // whole tree.
  36746. renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);
  36747. _workInProgress.effectTag |= ShouldCapture;
  36748. _workInProgress.expirationTime = renderExpirationTime;
  36749. return;
  36750. }
  36751. // This boundary already captured during this render. Continue to the next
  36752. // boundary.
  36753. _workInProgress = _workInProgress.return;
  36754. } while (_workInProgress !== null);
  36755. // No boundary was found. Fallthrough to error mode.
  36756. // TODO: Use invariant so the message is stripped in prod?
  36757. 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));
  36758. }
  36759. // We didn't find a boundary that could handle this type of exception. Start
  36760. // over and traverse parent path again, this time treating the exception
  36761. // as an error.
  36762. renderDidError();
  36763. value = createCapturedValue(value, sourceFiber);
  36764. var workInProgress = returnFiber;
  36765. do {
  36766. switch (workInProgress.tag) {
  36767. case HostRoot:
  36768. {
  36769. var _errorInfo = value;
  36770. workInProgress.effectTag |= ShouldCapture;
  36771. workInProgress.expirationTime = renderExpirationTime;
  36772. var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  36773. enqueueCapturedUpdate(workInProgress, update);
  36774. return;
  36775. }
  36776. case ClassComponent:
  36777. // Capture and retry
  36778. var errorInfo = value;
  36779. var ctor = workInProgress.type;
  36780. var instance = workInProgress.stateNode;
  36781. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  36782. workInProgress.effectTag |= ShouldCapture;
  36783. workInProgress.expirationTime = renderExpirationTime;
  36784. // Schedule the error boundary to re-render using updated state
  36785. var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  36786. enqueueCapturedUpdate(workInProgress, _update);
  36787. return;
  36788. }
  36789. break;
  36790. default:
  36791. break;
  36792. }
  36793. workInProgress = workInProgress.return;
  36794. } while (workInProgress !== null);
  36795. }
  36796. function unwindWork(workInProgress, renderExpirationTime) {
  36797. switch (workInProgress.tag) {
  36798. case ClassComponent:
  36799. {
  36800. var Component = workInProgress.type;
  36801. if (isContextProvider(Component)) {
  36802. popContext(workInProgress);
  36803. }
  36804. var effectTag = workInProgress.effectTag;
  36805. if (effectTag & ShouldCapture) {
  36806. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  36807. return workInProgress;
  36808. }
  36809. return null;
  36810. }
  36811. case HostRoot:
  36812. {
  36813. popHostContainer(workInProgress);
  36814. popTopLevelContextObject(workInProgress);
  36815. var _effectTag = workInProgress.effectTag;
  36816. !((_effectTag & DidCapture) === NoEffect) ? invariant(false, 'The root failed to unmount after an error. This is likely a bug in React. Please file an issue.') : void 0;
  36817. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  36818. return workInProgress;
  36819. }
  36820. case HostComponent:
  36821. {
  36822. popHostContext(workInProgress);
  36823. return null;
  36824. }
  36825. case SuspenseComponent:
  36826. {
  36827. var _effectTag2 = workInProgress.effectTag;
  36828. if (_effectTag2 & ShouldCapture) {
  36829. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  36830. // Captured a suspense effect. Re-render the boundary.
  36831. return workInProgress;
  36832. }
  36833. return null;
  36834. }
  36835. case HostPortal:
  36836. popHostContainer(workInProgress);
  36837. return null;
  36838. case ContextProvider:
  36839. popProvider(workInProgress);
  36840. return null;
  36841. default:
  36842. return null;
  36843. }
  36844. }
  36845. function unwindInterruptedWork(interruptedWork) {
  36846. switch (interruptedWork.tag) {
  36847. case ClassComponent:
  36848. {
  36849. var childContextTypes = interruptedWork.type.childContextTypes;
  36850. if (childContextTypes !== null && childContextTypes !== undefined) {
  36851. popContext(interruptedWork);
  36852. }
  36853. break;
  36854. }
  36855. case HostRoot:
  36856. {
  36857. popHostContainer(interruptedWork);
  36858. popTopLevelContextObject(interruptedWork);
  36859. break;
  36860. }
  36861. case HostComponent:
  36862. {
  36863. popHostContext(interruptedWork);
  36864. break;
  36865. }
  36866. case HostPortal:
  36867. popHostContainer(interruptedWork);
  36868. break;
  36869. case ContextProvider:
  36870. popProvider(interruptedWork);
  36871. break;
  36872. default:
  36873. break;
  36874. }
  36875. }
  36876. var Dispatcher = {
  36877. readContext: readContext,
  36878. useCallback: useCallback,
  36879. useContext: useContext,
  36880. useEffect: useEffect,
  36881. useImperativeMethods: useImperativeMethods,
  36882. useLayoutEffect: useLayoutEffect,
  36883. useMemo: useMemo,
  36884. useMutationEffect: useMutationEffect,
  36885. useReducer: useReducer,
  36886. useRef: useRef,
  36887. useState: useState
  36888. };
  36889. var DispatcherWithoutHooks = {
  36890. readContext: readContext
  36891. };
  36892. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  36893. var didWarnAboutStateTransition = void 0;
  36894. var didWarnSetStateChildContext = void 0;
  36895. var warnAboutUpdateOnUnmounted = void 0;
  36896. var warnAboutInvalidUpdates = void 0;
  36897. if (enableSchedulerTracing) {
  36898. // Provide explicit error message when production+profiling bundle of e.g. react-dom
  36899. // is used with production (non-profiling) bundle of scheduler/tracing
  36900. !(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null) ? invariant(false, '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') : void 0;
  36901. }
  36902. {
  36903. didWarnAboutStateTransition = false;
  36904. didWarnSetStateChildContext = false;
  36905. var didWarnStateUpdateForUnmountedComponent = {};
  36906. warnAboutUpdateOnUnmounted = function (fiber, isClass) {
  36907. // We show the whole stack but dedupe on the top component's name because
  36908. // the problematic code almost always lies inside that component.
  36909. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  36910. if (didWarnStateUpdateForUnmountedComponent[componentName]) {
  36911. return;
  36912. }
  36913. warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', isClass ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  36914. didWarnStateUpdateForUnmountedComponent[componentName] = true;
  36915. };
  36916. warnAboutInvalidUpdates = function (instance) {
  36917. switch (phase) {
  36918. case 'getChildContext':
  36919. if (didWarnSetStateChildContext) {
  36920. return;
  36921. }
  36922. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  36923. didWarnSetStateChildContext = true;
  36924. break;
  36925. case 'render':
  36926. if (didWarnAboutStateTransition) {
  36927. return;
  36928. }
  36929. warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as within ' + '`render`). Render methods should be a pure function of props and state.');
  36930. didWarnAboutStateTransition = true;
  36931. break;
  36932. }
  36933. };
  36934. }
  36935. // Used to ensure computeUniqueAsyncExpiration is monotonically decreasing.
  36936. var lastUniqueAsyncExpiration = Sync - 1;
  36937. // Represents the expiration time that incoming updates should use. (If this
  36938. // is NoWork, use the default strategy: async updates in async mode, sync
  36939. // updates in sync mode.)
  36940. var expirationContext = NoWork;
  36941. var isWorking = false;
  36942. // The next work in progress fiber that we're currently working on.
  36943. var nextUnitOfWork = null;
  36944. var nextRoot = null;
  36945. // The time at which we're currently rendering work.
  36946. var nextRenderExpirationTime = NoWork;
  36947. var nextLatestAbsoluteTimeoutMs = -1;
  36948. var nextRenderDidError = false;
  36949. // The next fiber with an effect that we're currently committing.
  36950. var nextEffect = null;
  36951. var isCommitting$1 = false;
  36952. var rootWithPendingPassiveEffects = null;
  36953. var passiveEffectCallbackHandle = null;
  36954. var passiveEffectCallback = null;
  36955. var legacyErrorBoundariesThatAlreadyFailed = null;
  36956. // Used for performance tracking.
  36957. var interruptedBy = null;
  36958. var stashedWorkInProgressProperties = void 0;
  36959. var replayUnitOfWork = void 0;
  36960. var mayReplayFailedUnitOfWork = void 0;
  36961. var isReplayingFailedUnitOfWork = void 0;
  36962. var originalReplayError = void 0;
  36963. var rethrowOriginalError = void 0;
  36964. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  36965. stashedWorkInProgressProperties = null;
  36966. mayReplayFailedUnitOfWork = true;
  36967. isReplayingFailedUnitOfWork = false;
  36968. originalReplayError = null;
  36969. replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {
  36970. if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
  36971. // Don't replay promises. Treat everything else like an error.
  36972. // TODO: Need to figure out a different strategy if/when we add
  36973. // support for catching other types.
  36974. return;
  36975. }
  36976. // Restore the original state of the work-in-progress
  36977. if (stashedWorkInProgressProperties === null) {
  36978. // This should never happen. Don't throw because this code is DEV-only.
  36979. warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');
  36980. return;
  36981. }
  36982. assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);
  36983. switch (failedUnitOfWork.tag) {
  36984. case HostRoot:
  36985. popHostContainer(failedUnitOfWork);
  36986. popTopLevelContextObject(failedUnitOfWork);
  36987. break;
  36988. case HostComponent:
  36989. popHostContext(failedUnitOfWork);
  36990. break;
  36991. case ClassComponent:
  36992. {
  36993. var Component = failedUnitOfWork.type;
  36994. if (isContextProvider(Component)) {
  36995. popContext(failedUnitOfWork);
  36996. }
  36997. break;
  36998. }
  36999. case HostPortal:
  37000. popHostContainer(failedUnitOfWork);
  37001. break;
  37002. case ContextProvider:
  37003. popProvider(failedUnitOfWork);
  37004. break;
  37005. }
  37006. // Replay the begin phase.
  37007. isReplayingFailedUnitOfWork = true;
  37008. originalReplayError = thrownValue;
  37009. invokeGuardedCallback(null, workLoop, null, isYieldy);
  37010. isReplayingFailedUnitOfWork = false;
  37011. originalReplayError = null;
  37012. if (hasCaughtError()) {
  37013. var replayError = clearCaughtError();
  37014. if (replayError != null && thrownValue != null) {
  37015. try {
  37016. // Reading the expando property is intentionally
  37017. // inside `try` because it might be a getter or Proxy.
  37018. if (replayError._suppressLogging) {
  37019. // Also suppress logging for the original error.
  37020. thrownValue._suppressLogging = true;
  37021. }
  37022. } catch (inner) {
  37023. // Ignore.
  37024. }
  37025. }
  37026. } else {
  37027. // If the begin phase did not fail the second time, set this pointer
  37028. // back to the original value.
  37029. nextUnitOfWork = failedUnitOfWork;
  37030. }
  37031. };
  37032. rethrowOriginalError = function () {
  37033. throw originalReplayError;
  37034. };
  37035. }
  37036. function resetStack() {
  37037. if (nextUnitOfWork !== null) {
  37038. var interruptedWork = nextUnitOfWork.return;
  37039. while (interruptedWork !== null) {
  37040. unwindInterruptedWork(interruptedWork);
  37041. interruptedWork = interruptedWork.return;
  37042. }
  37043. }
  37044. {
  37045. ReactStrictModeWarnings.discardPendingWarnings();
  37046. checkThatStackIsEmpty();
  37047. }
  37048. nextRoot = null;
  37049. nextRenderExpirationTime = NoWork;
  37050. nextLatestAbsoluteTimeoutMs = -1;
  37051. nextRenderDidError = false;
  37052. nextUnitOfWork = null;
  37053. }
  37054. function commitAllHostEffects() {
  37055. while (nextEffect !== null) {
  37056. {
  37057. setCurrentFiber(nextEffect);
  37058. }
  37059. recordEffect();
  37060. var effectTag = nextEffect.effectTag;
  37061. if (effectTag & ContentReset) {
  37062. commitResetTextContent(nextEffect);
  37063. }
  37064. if (effectTag & Ref) {
  37065. var current$$1 = nextEffect.alternate;
  37066. if (current$$1 !== null) {
  37067. commitDetachRef(current$$1);
  37068. }
  37069. }
  37070. // The following switch statement is only concerned about placement,
  37071. // updates, and deletions. To avoid needing to add a case for every
  37072. // possible bitmap value, we remove the secondary effects from the
  37073. // effect tag and switch on that value.
  37074. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  37075. switch (primaryEffectTag) {
  37076. case Placement:
  37077. {
  37078. commitPlacement(nextEffect);
  37079. // Clear the "placement" from effect tag so that we know that this is inserted, before
  37080. // any life-cycles like componentDidMount gets called.
  37081. // TODO: findDOMNode doesn't rely on this any more but isMounted
  37082. // does and isMounted is deprecated anyway so we should be able
  37083. // to kill this.
  37084. nextEffect.effectTag &= ~Placement;
  37085. break;
  37086. }
  37087. case PlacementAndUpdate:
  37088. {
  37089. // Placement
  37090. commitPlacement(nextEffect);
  37091. // Clear the "placement" from effect tag so that we know that this is inserted, before
  37092. // any life-cycles like componentDidMount gets called.
  37093. nextEffect.effectTag &= ~Placement;
  37094. // Update
  37095. var _current = nextEffect.alternate;
  37096. commitWork(_current, nextEffect);
  37097. break;
  37098. }
  37099. case Update:
  37100. {
  37101. var _current2 = nextEffect.alternate;
  37102. commitWork(_current2, nextEffect);
  37103. break;
  37104. }
  37105. case Deletion:
  37106. {
  37107. commitDeletion(nextEffect);
  37108. break;
  37109. }
  37110. }
  37111. nextEffect = nextEffect.nextEffect;
  37112. }
  37113. {
  37114. resetCurrentFiber();
  37115. }
  37116. }
  37117. function commitBeforeMutationLifecycles() {
  37118. while (nextEffect !== null) {
  37119. {
  37120. setCurrentFiber(nextEffect);
  37121. }
  37122. var effectTag = nextEffect.effectTag;
  37123. if (effectTag & Snapshot) {
  37124. recordEffect();
  37125. var current$$1 = nextEffect.alternate;
  37126. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  37127. }
  37128. nextEffect = nextEffect.nextEffect;
  37129. }
  37130. {
  37131. resetCurrentFiber();
  37132. }
  37133. }
  37134. function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
  37135. {
  37136. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  37137. ReactStrictModeWarnings.flushLegacyContextWarning();
  37138. if (warnAboutDeprecatedLifecycles) {
  37139. ReactStrictModeWarnings.flushPendingDeprecationWarnings();
  37140. }
  37141. }
  37142. while (nextEffect !== null) {
  37143. var effectTag = nextEffect.effectTag;
  37144. if (effectTag & (Update | Callback)) {
  37145. recordEffect();
  37146. var current$$1 = nextEffect.alternate;
  37147. commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);
  37148. }
  37149. if (effectTag & Ref) {
  37150. recordEffect();
  37151. commitAttachRef(nextEffect);
  37152. }
  37153. if (enableHooks && effectTag & Passive) {
  37154. rootWithPendingPassiveEffects = finishedRoot;
  37155. }
  37156. nextEffect = nextEffect.nextEffect;
  37157. }
  37158. }
  37159. function commitPassiveEffects(root, firstEffect) {
  37160. rootWithPendingPassiveEffects = null;
  37161. passiveEffectCallbackHandle = null;
  37162. passiveEffectCallback = null;
  37163. // Set this to true to prevent re-entrancy
  37164. var previousIsRendering = isRendering;
  37165. isRendering = true;
  37166. var effect = firstEffect;
  37167. do {
  37168. if (effect.effectTag & Passive) {
  37169. var didError = false;
  37170. var error = void 0;
  37171. {
  37172. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  37173. if (hasCaughtError()) {
  37174. didError = true;
  37175. error = clearCaughtError();
  37176. }
  37177. }
  37178. if (didError) {
  37179. captureCommitPhaseError(effect, error);
  37180. }
  37181. }
  37182. effect = effect.nextEffect;
  37183. } while (effect !== null);
  37184. isRendering = previousIsRendering;
  37185. // Check if work was scheduled by one of the effects
  37186. var rootExpirationTime = root.expirationTime;
  37187. if (rootExpirationTime !== NoWork) {
  37188. requestWork(root, rootExpirationTime);
  37189. }
  37190. }
  37191. function isAlreadyFailedLegacyErrorBoundary(instance) {
  37192. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  37193. }
  37194. function markLegacyErrorBoundaryAsFailed(instance) {
  37195. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  37196. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  37197. } else {
  37198. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  37199. }
  37200. }
  37201. function flushPassiveEffects() {
  37202. if (passiveEffectCallback !== null) {
  37203. scheduler.unstable_cancelCallback(passiveEffectCallbackHandle);
  37204. // We call the scheduled callback instead of commitPassiveEffects directly
  37205. // to ensure tracing works correctly.
  37206. passiveEffectCallback();
  37207. }
  37208. }
  37209. function commitRoot(root, finishedWork) {
  37210. isWorking = true;
  37211. isCommitting$1 = true;
  37212. startCommitTimer();
  37213. !(root.current !== finishedWork) ? invariant(false, 'Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37214. var committedExpirationTime = root.pendingCommitExpirationTime;
  37215. !(committedExpirationTime !== NoWork) ? invariant(false, 'Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37216. root.pendingCommitExpirationTime = NoWork;
  37217. // Update the pending priority levels to account for the work that we are
  37218. // about to commit. This needs to happen before calling the lifecycles, since
  37219. // they may schedule additional updates.
  37220. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  37221. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  37222. var earliestRemainingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  37223. markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);
  37224. var prevInteractions = null;
  37225. if (enableSchedulerTracing) {
  37226. // Restore any pending interactions at this point,
  37227. // So that cascading work triggered during the render phase will be accounted for.
  37228. prevInteractions = tracing.__interactionsRef.current;
  37229. tracing.__interactionsRef.current = root.memoizedInteractions;
  37230. }
  37231. // Reset this to null before calling lifecycles
  37232. ReactCurrentOwner$2.current = null;
  37233. var firstEffect = void 0;
  37234. if (finishedWork.effectTag > PerformedWork) {
  37235. // A fiber's effect list consists only of its children, not itself. So if
  37236. // the root has an effect, we need to add it to the end of the list. The
  37237. // resulting list is the set that would belong to the root's parent, if
  37238. // it had one; that is, all the effects in the tree including the root.
  37239. if (finishedWork.lastEffect !== null) {
  37240. finishedWork.lastEffect.nextEffect = finishedWork;
  37241. firstEffect = finishedWork.firstEffect;
  37242. } else {
  37243. firstEffect = finishedWork;
  37244. }
  37245. } else {
  37246. // There is no effect on the root.
  37247. firstEffect = finishedWork.firstEffect;
  37248. }
  37249. prepareForCommit(root.containerInfo);
  37250. // Invoke instances of getSnapshotBeforeUpdate before mutation.
  37251. nextEffect = firstEffect;
  37252. startCommitSnapshotEffectsTimer();
  37253. while (nextEffect !== null) {
  37254. var didError = false;
  37255. var error = void 0;
  37256. {
  37257. invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);
  37258. if (hasCaughtError()) {
  37259. didError = true;
  37260. error = clearCaughtError();
  37261. }
  37262. }
  37263. if (didError) {
  37264. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37265. captureCommitPhaseError(nextEffect, error);
  37266. // Clean-up
  37267. if (nextEffect !== null) {
  37268. nextEffect = nextEffect.nextEffect;
  37269. }
  37270. }
  37271. }
  37272. stopCommitSnapshotEffectsTimer();
  37273. if (enableProfilerTimer) {
  37274. // Mark the current commit time to be shared by all Profilers in this batch.
  37275. // This enables them to be grouped later.
  37276. recordCommitTime();
  37277. }
  37278. // Commit all the side-effects within a tree. We'll do this in two passes.
  37279. // The first pass performs all the host insertions, updates, deletions and
  37280. // ref unmounts.
  37281. nextEffect = firstEffect;
  37282. startCommitHostEffectsTimer();
  37283. while (nextEffect !== null) {
  37284. var _didError = false;
  37285. var _error = void 0;
  37286. {
  37287. invokeGuardedCallback(null, commitAllHostEffects, null);
  37288. if (hasCaughtError()) {
  37289. _didError = true;
  37290. _error = clearCaughtError();
  37291. }
  37292. }
  37293. if (_didError) {
  37294. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37295. captureCommitPhaseError(nextEffect, _error);
  37296. // Clean-up
  37297. if (nextEffect !== null) {
  37298. nextEffect = nextEffect.nextEffect;
  37299. }
  37300. }
  37301. }
  37302. stopCommitHostEffectsTimer();
  37303. resetAfterCommit(root.containerInfo);
  37304. // The work-in-progress tree is now the current tree. This must come after
  37305. // the first pass of the commit phase, so that the previous tree is still
  37306. // current during componentWillUnmount, but before the second pass, so that
  37307. // the finished work is current during componentDidMount/Update.
  37308. root.current = finishedWork;
  37309. // In the second pass we'll perform all life-cycles and ref callbacks.
  37310. // Life-cycles happen as a separate pass so that all placements, updates,
  37311. // and deletions in the entire tree have already been invoked.
  37312. // This pass also triggers any renderer-specific initial effects.
  37313. nextEffect = firstEffect;
  37314. startCommitLifeCyclesTimer();
  37315. while (nextEffect !== null) {
  37316. var _didError2 = false;
  37317. var _error2 = void 0;
  37318. {
  37319. invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);
  37320. if (hasCaughtError()) {
  37321. _didError2 = true;
  37322. _error2 = clearCaughtError();
  37323. }
  37324. }
  37325. if (_didError2) {
  37326. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37327. captureCommitPhaseError(nextEffect, _error2);
  37328. if (nextEffect !== null) {
  37329. nextEffect = nextEffect.nextEffect;
  37330. }
  37331. }
  37332. }
  37333. if (enableHooks && firstEffect !== null && rootWithPendingPassiveEffects !== null) {
  37334. // This commit included a passive effect. These do not need to fire until
  37335. // after the next paint. Schedule an callback to fire them in an async
  37336. // event. To ensure serial execution, the callback will be flushed early if
  37337. // we enter rootWithPendingPassiveEffects commit phase before then.
  37338. var callback = commitPassiveEffects.bind(null, root, firstEffect);
  37339. if (enableSchedulerTracing) {
  37340. // TODO: Avoid this extra callback by mutating the tracing ref directly,
  37341. // like we do at the beginning of commitRoot. I've opted not to do that
  37342. // here because that code is still in flux.
  37343. callback = tracing.unstable_wrap(callback);
  37344. }
  37345. passiveEffectCallbackHandle = scheduler.unstable_scheduleCallback(callback);
  37346. passiveEffectCallback = callback;
  37347. }
  37348. isCommitting$1 = false;
  37349. isWorking = false;
  37350. stopCommitLifeCyclesTimer();
  37351. stopCommitTimer();
  37352. onCommitRoot(finishedWork.stateNode);
  37353. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37354. ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);
  37355. }
  37356. var updateExpirationTimeAfterCommit = finishedWork.expirationTime;
  37357. var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;
  37358. var earliestRemainingTimeAfterCommit = childExpirationTimeAfterCommit > updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;
  37359. if (earliestRemainingTimeAfterCommit === NoWork) {
  37360. // If there's no remaining work, we can clear the set of already failed
  37361. // error boundaries.
  37362. legacyErrorBoundariesThatAlreadyFailed = null;
  37363. }
  37364. onCommit(root, earliestRemainingTimeAfterCommit);
  37365. if (enableSchedulerTracing) {
  37366. tracing.__interactionsRef.current = prevInteractions;
  37367. var subscriber = void 0;
  37368. try {
  37369. subscriber = tracing.__subscriberRef.current;
  37370. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  37371. var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);
  37372. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  37373. }
  37374. } catch (error) {
  37375. // It's not safe for commitRoot() to throw.
  37376. // Store the error for now and we'll re-throw in finishRendering().
  37377. if (!hasUnhandledError) {
  37378. hasUnhandledError = true;
  37379. unhandledError = error;
  37380. }
  37381. } finally {
  37382. // Clear completed interactions from the pending Map.
  37383. // Unless the render was suspended or cascading work was scheduled,
  37384. // In which case– leave pending interactions until the subsequent render.
  37385. var pendingInteractionMap = root.pendingInteractionMap;
  37386. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  37387. // Only decrement the pending interaction count if we're done.
  37388. // If there's still work at the current priority,
  37389. // That indicates that we are waiting for suspense data.
  37390. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  37391. pendingInteractionMap.delete(scheduledExpirationTime);
  37392. scheduledInteractions.forEach(function (interaction) {
  37393. interaction.__count--;
  37394. if (subscriber !== null && interaction.__count === 0) {
  37395. try {
  37396. subscriber.onInteractionScheduledWorkCompleted(interaction);
  37397. } catch (error) {
  37398. // It's not safe for commitRoot() to throw.
  37399. // Store the error for now and we'll re-throw in finishRendering().
  37400. if (!hasUnhandledError) {
  37401. hasUnhandledError = true;
  37402. unhandledError = error;
  37403. }
  37404. }
  37405. }
  37406. });
  37407. }
  37408. });
  37409. }
  37410. }
  37411. }
  37412. function resetChildExpirationTime(workInProgress, renderTime) {
  37413. if (renderTime !== Never && workInProgress.childExpirationTime === Never) {
  37414. // The children of this component are hidden. Don't bubble their
  37415. // expiration times.
  37416. return;
  37417. }
  37418. var newChildExpirationTime = NoWork;
  37419. // Bubble up the earliest expiration time.
  37420. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  37421. // We're in profiling mode.
  37422. // Let's use this same traversal to update the render durations.
  37423. var actualDuration = workInProgress.actualDuration;
  37424. var treeBaseDuration = workInProgress.selfBaseDuration;
  37425. // When a fiber is cloned, its actualDuration is reset to 0.
  37426. // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).
  37427. // When work is done, it should bubble to the parent's actualDuration.
  37428. // If the fiber has not been cloned though, (meaning no work was done),
  37429. // Then this value will reflect the amount of time spent working on a previous render.
  37430. // In that case it should not bubble.
  37431. // We determine whether it was cloned by comparing the child pointer.
  37432. var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;
  37433. var child = workInProgress.child;
  37434. while (child !== null) {
  37435. var childUpdateExpirationTime = child.expirationTime;
  37436. var childChildExpirationTime = child.childExpirationTime;
  37437. if (childUpdateExpirationTime > newChildExpirationTime) {
  37438. newChildExpirationTime = childUpdateExpirationTime;
  37439. }
  37440. if (childChildExpirationTime > newChildExpirationTime) {
  37441. newChildExpirationTime = childChildExpirationTime;
  37442. }
  37443. if (shouldBubbleActualDurations) {
  37444. actualDuration += child.actualDuration;
  37445. }
  37446. treeBaseDuration += child.treeBaseDuration;
  37447. child = child.sibling;
  37448. }
  37449. workInProgress.actualDuration = actualDuration;
  37450. workInProgress.treeBaseDuration = treeBaseDuration;
  37451. } else {
  37452. var _child = workInProgress.child;
  37453. while (_child !== null) {
  37454. var _childUpdateExpirationTime = _child.expirationTime;
  37455. var _childChildExpirationTime = _child.childExpirationTime;
  37456. if (_childUpdateExpirationTime > newChildExpirationTime) {
  37457. newChildExpirationTime = _childUpdateExpirationTime;
  37458. }
  37459. if (_childChildExpirationTime > newChildExpirationTime) {
  37460. newChildExpirationTime = _childChildExpirationTime;
  37461. }
  37462. _child = _child.sibling;
  37463. }
  37464. }
  37465. workInProgress.childExpirationTime = newChildExpirationTime;
  37466. }
  37467. function completeUnitOfWork(workInProgress) {
  37468. // Attempt to complete the current unit of work, then move to the
  37469. // next sibling. If there are no more siblings, return to the
  37470. // parent fiber.
  37471. while (true) {
  37472. // The current, flushed, state of this fiber is the alternate.
  37473. // Ideally nothing should rely on this, but relying on it here
  37474. // means that we don't need an additional field on the work in
  37475. // progress.
  37476. var current$$1 = workInProgress.alternate;
  37477. {
  37478. setCurrentFiber(workInProgress);
  37479. }
  37480. var returnFiber = workInProgress.return;
  37481. var siblingFiber = workInProgress.sibling;
  37482. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  37483. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37484. // Don't replay if it fails during completion phase.
  37485. mayReplayFailedUnitOfWork = false;
  37486. }
  37487. // This fiber completed.
  37488. // Remember we're completing this unit so we can find a boundary if it fails.
  37489. nextUnitOfWork = workInProgress;
  37490. if (enableProfilerTimer) {
  37491. if (workInProgress.mode & ProfileMode) {
  37492. startProfilerTimer(workInProgress);
  37493. }
  37494. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  37495. if (workInProgress.mode & ProfileMode) {
  37496. // Update render duration assuming we didn't error.
  37497. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  37498. }
  37499. } else {
  37500. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  37501. }
  37502. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37503. // We're out of completion phase so replaying is fine now.
  37504. mayReplayFailedUnitOfWork = true;
  37505. }
  37506. stopWorkTimer(workInProgress);
  37507. resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
  37508. {
  37509. resetCurrentFiber();
  37510. }
  37511. if (nextUnitOfWork !== null) {
  37512. // Completing this fiber spawned new work. Work on that next.
  37513. return nextUnitOfWork;
  37514. }
  37515. if (returnFiber !== null &&
  37516. // Do not append effects to parents if a sibling failed to complete
  37517. (returnFiber.effectTag & Incomplete) === NoEffect) {
  37518. // Append all the effects of the subtree and this fiber onto the effect
  37519. // list of the parent. The completion order of the children affects the
  37520. // side-effect order.
  37521. if (returnFiber.firstEffect === null) {
  37522. returnFiber.firstEffect = workInProgress.firstEffect;
  37523. }
  37524. if (workInProgress.lastEffect !== null) {
  37525. if (returnFiber.lastEffect !== null) {
  37526. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  37527. }
  37528. returnFiber.lastEffect = workInProgress.lastEffect;
  37529. }
  37530. // If this fiber had side-effects, we append it AFTER the children's
  37531. // side-effects. We can perform certain side-effects earlier if
  37532. // needed, by doing multiple passes over the effect list. We don't want
  37533. // to schedule our own side-effect on our own list because if end up
  37534. // reusing children we'll schedule this effect onto itself since we're
  37535. // at the end.
  37536. var effectTag = workInProgress.effectTag;
  37537. // Skip both NoWork and PerformedWork tags when creating the effect list.
  37538. // PerformedWork effect is read by React DevTools but shouldn't be committed.
  37539. if (effectTag > PerformedWork) {
  37540. if (returnFiber.lastEffect !== null) {
  37541. returnFiber.lastEffect.nextEffect = workInProgress;
  37542. } else {
  37543. returnFiber.firstEffect = workInProgress;
  37544. }
  37545. returnFiber.lastEffect = workInProgress;
  37546. }
  37547. }
  37548. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37549. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  37550. }
  37551. if (siblingFiber !== null) {
  37552. // If there is more work to do in this returnFiber, do that next.
  37553. return siblingFiber;
  37554. } else if (returnFiber !== null) {
  37555. // If there's no more work in this returnFiber. Complete the returnFiber.
  37556. workInProgress = returnFiber;
  37557. continue;
  37558. } else {
  37559. // We've reached the root.
  37560. return null;
  37561. }
  37562. } else {
  37563. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  37564. // Record the render duration for the fiber that errored.
  37565. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  37566. // Include the time spent working on failed children before continuing.
  37567. var actualDuration = workInProgress.actualDuration;
  37568. var child = workInProgress.child;
  37569. while (child !== null) {
  37570. actualDuration += child.actualDuration;
  37571. child = child.sibling;
  37572. }
  37573. workInProgress.actualDuration = actualDuration;
  37574. }
  37575. // This fiber did not complete because something threw. Pop values off
  37576. // the stack without entering the complete phase. If this is a boundary,
  37577. // capture values if possible.
  37578. var next = unwindWork(workInProgress, nextRenderExpirationTime);
  37579. // Because this fiber did not complete, don't reset its expiration time.
  37580. if (workInProgress.effectTag & DidCapture) {
  37581. // Restarting an error boundary
  37582. stopFailedWorkTimer(workInProgress);
  37583. } else {
  37584. stopWorkTimer(workInProgress);
  37585. }
  37586. {
  37587. resetCurrentFiber();
  37588. }
  37589. if (next !== null) {
  37590. stopWorkTimer(workInProgress);
  37591. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37592. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  37593. }
  37594. // If completing this work spawned new work, do that next. We'll come
  37595. // back here again.
  37596. // Since we're restarting, remove anything that is not a host effect
  37597. // from the effect tag.
  37598. next.effectTag &= HostEffectMask;
  37599. return next;
  37600. }
  37601. if (returnFiber !== null) {
  37602. // Mark the parent fiber as incomplete and clear its effect list.
  37603. returnFiber.firstEffect = returnFiber.lastEffect = null;
  37604. returnFiber.effectTag |= Incomplete;
  37605. }
  37606. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37607. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  37608. }
  37609. if (siblingFiber !== null) {
  37610. // If there is more work to do in this returnFiber, do that next.
  37611. return siblingFiber;
  37612. } else if (returnFiber !== null) {
  37613. // If there's no more work in this returnFiber. Complete the returnFiber.
  37614. workInProgress = returnFiber;
  37615. continue;
  37616. } else {
  37617. return null;
  37618. }
  37619. }
  37620. }
  37621. // Without this explicit null return Flow complains of invalid return type
  37622. // TODO Remove the above while(true) loop
  37623. // eslint-disable-next-line no-unreachable
  37624. return null;
  37625. }
  37626. function performUnitOfWork(workInProgress) {
  37627. // The current, flushed, state of this fiber is the alternate.
  37628. // Ideally nothing should rely on this, but relying on it here
  37629. // means that we don't need an additional field on the work in
  37630. // progress.
  37631. var current$$1 = workInProgress.alternate;
  37632. // See if beginning this work spawns more work.
  37633. startWorkTimer(workInProgress);
  37634. {
  37635. setCurrentFiber(workInProgress);
  37636. }
  37637. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37638. stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);
  37639. }
  37640. var next = void 0;
  37641. if (enableProfilerTimer) {
  37642. if (workInProgress.mode & ProfileMode) {
  37643. startProfilerTimer(workInProgress);
  37644. }
  37645. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  37646. workInProgress.memoizedProps = workInProgress.pendingProps;
  37647. if (workInProgress.mode & ProfileMode) {
  37648. // Record the render duration assuming we didn't bailout (or error).
  37649. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  37650. }
  37651. } else {
  37652. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  37653. workInProgress.memoizedProps = workInProgress.pendingProps;
  37654. }
  37655. {
  37656. resetCurrentFiber();
  37657. if (isReplayingFailedUnitOfWork) {
  37658. // Currently replaying a failed unit of work. This should be unreachable,
  37659. // because the render phase is meant to be idempotent, and it should
  37660. // have thrown again. Since it didn't, rethrow the original error, so
  37661. // React's internal stack is not misaligned.
  37662. rethrowOriginalError();
  37663. }
  37664. }
  37665. if ( true && ReactFiberInstrumentation_1.debugTool) {
  37666. ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);
  37667. }
  37668. if (next === null) {
  37669. // If this doesn't spawn new work, complete the current work.
  37670. next = completeUnitOfWork(workInProgress);
  37671. }
  37672. ReactCurrentOwner$2.current = null;
  37673. return next;
  37674. }
  37675. function workLoop(isYieldy) {
  37676. if (!isYieldy) {
  37677. // Flush work without yielding
  37678. while (nextUnitOfWork !== null) {
  37679. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  37680. }
  37681. } else {
  37682. // Flush asynchronous work until there's a higher priority event
  37683. while (nextUnitOfWork !== null && !shouldYieldToRenderer()) {
  37684. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  37685. }
  37686. }
  37687. }
  37688. function renderRoot(root, isYieldy) {
  37689. !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37690. flushPassiveEffects();
  37691. isWorking = true;
  37692. if (enableHooks) {
  37693. ReactCurrentOwner$2.currentDispatcher = Dispatcher;
  37694. } else {
  37695. ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;
  37696. }
  37697. var expirationTime = root.nextExpirationTimeToWorkOn;
  37698. // Check if we're starting from a fresh stack, or if we're resuming from
  37699. // previously yielded work.
  37700. if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {
  37701. // Reset the stack and start working from the root.
  37702. resetStack();
  37703. nextRoot = root;
  37704. nextRenderExpirationTime = expirationTime;
  37705. nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);
  37706. root.pendingCommitExpirationTime = NoWork;
  37707. if (enableSchedulerTracing) {
  37708. // Determine which interactions this batch of work currently includes,
  37709. // So that we can accurately attribute time spent working on it,
  37710. var interactions = new Set();
  37711. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  37712. if (scheduledExpirationTime >= expirationTime) {
  37713. scheduledInteractions.forEach(function (interaction) {
  37714. return interactions.add(interaction);
  37715. });
  37716. }
  37717. });
  37718. // Store the current set of interactions on the FiberRoot for a few reasons:
  37719. // We can re-use it in hot functions like renderRoot() without having to recalculate it.
  37720. // We will also use it in commitWork() to pass to any Profiler onRender() hooks.
  37721. // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.
  37722. root.memoizedInteractions = interactions;
  37723. if (interactions.size > 0) {
  37724. var subscriber = tracing.__subscriberRef.current;
  37725. if (subscriber !== null) {
  37726. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  37727. try {
  37728. subscriber.onWorkStarted(interactions, threadID);
  37729. } catch (error) {
  37730. // Work thrown by an interaction tracing subscriber should be rethrown,
  37731. // But only once it's safe (to avoid leaveing the scheduler in an invalid state).
  37732. // Store the error for now and we'll re-throw in finishRendering().
  37733. if (!hasUnhandledError) {
  37734. hasUnhandledError = true;
  37735. unhandledError = error;
  37736. }
  37737. }
  37738. }
  37739. }
  37740. }
  37741. }
  37742. var prevInteractions = null;
  37743. if (enableSchedulerTracing) {
  37744. // We're about to start new traced work.
  37745. // Restore pending interactions so cascading work triggered during the render phase will be accounted for.
  37746. prevInteractions = tracing.__interactionsRef.current;
  37747. tracing.__interactionsRef.current = root.memoizedInteractions;
  37748. }
  37749. var didFatal = false;
  37750. startWorkLoopTimer(nextUnitOfWork);
  37751. do {
  37752. try {
  37753. workLoop(isYieldy);
  37754. } catch (thrownValue) {
  37755. resetContextDependences();
  37756. resetHooks();
  37757. // Reset in case completion throws.
  37758. // This is only used in DEV and when replaying is on.
  37759. var mayReplay = void 0;
  37760. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37761. mayReplay = mayReplayFailedUnitOfWork;
  37762. mayReplayFailedUnitOfWork = true;
  37763. }
  37764. if (nextUnitOfWork === null) {
  37765. // This is a fatal error.
  37766. didFatal = true;
  37767. onUncaughtError(thrownValue);
  37768. } else {
  37769. if (enableProfilerTimer && nextUnitOfWork.mode & ProfileMode) {
  37770. // Record the time spent rendering before an error was thrown.
  37771. // This avoids inaccurate Profiler durations in the case of a suspended render.
  37772. stopProfilerTimerIfRunningAndRecordDelta(nextUnitOfWork, true);
  37773. }
  37774. {
  37775. // Reset global debug state
  37776. // We assume this is defined in DEV
  37777. resetCurrentlyProcessingQueue();
  37778. }
  37779. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  37780. if (mayReplay) {
  37781. var failedUnitOfWork = nextUnitOfWork;
  37782. replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);
  37783. }
  37784. }
  37785. // TODO: we already know this isn't true in some cases.
  37786. // At least this shows a nicer error message until we figure out the cause.
  37787. // https://github.com/facebook/react/issues/12449#issuecomment-386727431
  37788. !(nextUnitOfWork !== null) ? invariant(false, 'Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.') : void 0;
  37789. var sourceFiber = nextUnitOfWork;
  37790. var returnFiber = sourceFiber.return;
  37791. if (returnFiber === null) {
  37792. // This is the root. The root could capture its own errors. However,
  37793. // we don't know if it errors before or after we pushed the host
  37794. // context. This information is needed to avoid a stack mismatch.
  37795. // Because we're not sure, treat this as a fatal error. We could track
  37796. // which phase it fails in, but doesn't seem worth it. At least
  37797. // for now.
  37798. didFatal = true;
  37799. onUncaughtError(thrownValue);
  37800. } else {
  37801. throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);
  37802. nextUnitOfWork = completeUnitOfWork(sourceFiber);
  37803. continue;
  37804. }
  37805. }
  37806. }
  37807. break;
  37808. } while (true);
  37809. if (enableSchedulerTracing) {
  37810. // Traced work is done for now; restore the previous interactions.
  37811. tracing.__interactionsRef.current = prevInteractions;
  37812. }
  37813. // We're done performing work. Time to clean up.
  37814. isWorking = false;
  37815. ReactCurrentOwner$2.currentDispatcher = null;
  37816. resetContextDependences();
  37817. resetHooks();
  37818. // Yield back to main thread.
  37819. if (didFatal) {
  37820. var _didCompleteRoot = false;
  37821. stopWorkLoopTimer(interruptedBy, _didCompleteRoot);
  37822. interruptedBy = null;
  37823. // There was a fatal error.
  37824. {
  37825. resetStackAfterFatalErrorInDev();
  37826. }
  37827. // `nextRoot` points to the in-progress root. A non-null value indicates
  37828. // that we're in the middle of an async render. Set it to null to indicate
  37829. // there's no more work to be done in the current batch.
  37830. nextRoot = null;
  37831. onFatal(root);
  37832. return;
  37833. }
  37834. if (nextUnitOfWork !== null) {
  37835. // There's still remaining async work in this tree, but we ran out of time
  37836. // in the current frame. Yield back to the renderer. Unless we're
  37837. // interrupted by a higher priority update, we'll continue later from where
  37838. // we left off.
  37839. var _didCompleteRoot2 = false;
  37840. stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);
  37841. interruptedBy = null;
  37842. onYield(root);
  37843. return;
  37844. }
  37845. // We completed the whole tree.
  37846. var didCompleteRoot = true;
  37847. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  37848. var rootWorkInProgress = root.current.alternate;
  37849. !(rootWorkInProgress !== null) ? invariant(false, 'Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37850. // `nextRoot` points to the in-progress root. A non-null value indicates
  37851. // that we're in the middle of an async render. Set it to null to indicate
  37852. // there's no more work to be done in the current batch.
  37853. nextRoot = null;
  37854. interruptedBy = null;
  37855. if (nextRenderDidError) {
  37856. // There was an error
  37857. if (hasLowerPriorityWork(root, expirationTime)) {
  37858. // There's lower priority work. If so, it may have the effect of fixing
  37859. // the exception that was just thrown. Exit without committing. This is
  37860. // similar to a suspend, but without a timeout because we're not waiting
  37861. // for a promise to resolve. React will restart at the lower
  37862. // priority level.
  37863. markSuspendedPriorityLevel(root, expirationTime);
  37864. var suspendedExpirationTime = expirationTime;
  37865. var rootExpirationTime = root.expirationTime;
  37866. onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout
  37867. );
  37868. return;
  37869. } else if (
  37870. // There's no lower priority work, but we're rendering asynchronously.
  37871. // Synchronsouly attempt to render the same level one more time. This is
  37872. // similar to a suspend, but without a timeout because we're not waiting
  37873. // for a promise to resolve.
  37874. !root.didError && isYieldy) {
  37875. root.didError = true;
  37876. var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;
  37877. var _rootExpirationTime = root.expirationTime = Sync;
  37878. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout
  37879. );
  37880. return;
  37881. }
  37882. }
  37883. if (isYieldy && nextLatestAbsoluteTimeoutMs !== -1) {
  37884. // The tree was suspended.
  37885. var _suspendedExpirationTime2 = expirationTime;
  37886. markSuspendedPriorityLevel(root, _suspendedExpirationTime2);
  37887. // Find the earliest uncommitted expiration time in the tree, including
  37888. // work that is suspended. The timeout threshold cannot be longer than
  37889. // the overall expiration.
  37890. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);
  37891. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  37892. if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {
  37893. nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;
  37894. }
  37895. // Subtract the current time from the absolute timeout to get the number
  37896. // of milliseconds until the timeout. In other words, convert an absolute
  37897. // timestamp to a relative time. This is the value that is passed
  37898. // to `setTimeout`.
  37899. var currentTimeMs = expirationTimeToMs(requestCurrentTime());
  37900. var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
  37901. msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
  37902. // TODO: Account for the Just Noticeable Difference
  37903. var _rootExpirationTime2 = root.expirationTime;
  37904. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);
  37905. return;
  37906. }
  37907. // Ready to commit.
  37908. onComplete(root, rootWorkInProgress, expirationTime);
  37909. }
  37910. function captureCommitPhaseError(sourceFiber, value) {
  37911. var expirationTime = Sync;
  37912. var fiber = sourceFiber.return;
  37913. while (fiber !== null) {
  37914. switch (fiber.tag) {
  37915. case ClassComponent:
  37916. var ctor = fiber.type;
  37917. var instance = fiber.stateNode;
  37918. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  37919. var errorInfo = createCapturedValue(value, sourceFiber);
  37920. var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);
  37921. enqueueUpdate(fiber, update);
  37922. scheduleWork(fiber, expirationTime);
  37923. return;
  37924. }
  37925. break;
  37926. case HostRoot:
  37927. {
  37928. var _errorInfo = createCapturedValue(value, sourceFiber);
  37929. var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);
  37930. enqueueUpdate(fiber, _update);
  37931. scheduleWork(fiber, expirationTime);
  37932. return;
  37933. }
  37934. }
  37935. fiber = fiber.return;
  37936. }
  37937. if (sourceFiber.tag === HostRoot) {
  37938. // Error was thrown at the root. There is no parent, so the root
  37939. // itself should capture it.
  37940. var rootFiber = sourceFiber;
  37941. var _errorInfo2 = createCapturedValue(value, rootFiber);
  37942. var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);
  37943. enqueueUpdate(rootFiber, _update2);
  37944. scheduleWork(rootFiber, expirationTime);
  37945. }
  37946. }
  37947. function computeThreadID(expirationTime, interactionThreadID) {
  37948. // Interaction threads are unique per root and expiration time.
  37949. return expirationTime * 1000 + interactionThreadID;
  37950. }
  37951. // Creates a unique async expiration time.
  37952. function computeUniqueAsyncExpiration() {
  37953. var currentTime = requestCurrentTime();
  37954. var result = computeAsyncExpiration(currentTime);
  37955. if (result >= lastUniqueAsyncExpiration) {
  37956. // Since we assume the current time monotonically increases, we only hit
  37957. // this branch when computeUniqueAsyncExpiration is fired multiple times
  37958. // within a 200ms window (or whatever the async bucket size is).
  37959. result = lastUniqueAsyncExpiration - 1;
  37960. }
  37961. lastUniqueAsyncExpiration = result;
  37962. return lastUniqueAsyncExpiration;
  37963. }
  37964. function computeExpirationForFiber(currentTime, fiber) {
  37965. var expirationTime = void 0;
  37966. if (expirationContext !== NoWork) {
  37967. // An explicit expiration context was set;
  37968. expirationTime = expirationContext;
  37969. } else if (isWorking) {
  37970. if (isCommitting$1) {
  37971. // Updates that occur during the commit phase should have sync priority
  37972. // by default.
  37973. expirationTime = Sync;
  37974. } else {
  37975. // Updates during the render phase should expire at the same time as
  37976. // the work that is being rendered.
  37977. expirationTime = nextRenderExpirationTime;
  37978. }
  37979. } else {
  37980. // No explicit expiration context was set, and we're not currently
  37981. // performing work. Calculate a new expiration time.
  37982. if (fiber.mode & ConcurrentMode) {
  37983. if (isBatchingInteractiveUpdates) {
  37984. // This is an interactive update
  37985. expirationTime = computeInteractiveExpiration(currentTime);
  37986. } else {
  37987. // This is an async update
  37988. expirationTime = computeAsyncExpiration(currentTime);
  37989. }
  37990. // If we're in the middle of rendering a tree, do not update at the same
  37991. // expiration time that is already rendering.
  37992. if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {
  37993. expirationTime -= 1;
  37994. }
  37995. } else {
  37996. // This is a sync update
  37997. expirationTime = Sync;
  37998. }
  37999. }
  38000. if (isBatchingInteractiveUpdates) {
  38001. // This is an interactive update. Keep track of the lowest pending
  38002. // interactive expiration time. This allows us to synchronously flush
  38003. // all interactive updates when needed.
  38004. if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime) {
  38005. lowestPriorityPendingInteractiveExpirationTime = expirationTime;
  38006. }
  38007. }
  38008. return expirationTime;
  38009. }
  38010. function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
  38011. // Schedule the timeout.
  38012. if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {
  38013. nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;
  38014. }
  38015. }
  38016. function renderDidError() {
  38017. nextRenderDidError = true;
  38018. }
  38019. function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {
  38020. var retryTime = void 0;
  38021. if (isPriorityLevelSuspended(root, suspendedTime)) {
  38022. // Ping at the original level
  38023. retryTime = suspendedTime;
  38024. markPingedPriorityLevel(root, retryTime);
  38025. } else {
  38026. // Suspense already timed out. Compute a new expiration time
  38027. var currentTime = requestCurrentTime();
  38028. retryTime = computeExpirationForFiber(currentTime, boundaryFiber);
  38029. markPendingPriorityLevel(root, retryTime);
  38030. }
  38031. // TODO: If the suspense fiber has already rendered the primary children
  38032. // without suspending (that is, all of the promises have already resolved),
  38033. // we should not trigger another update here. One case this happens is when
  38034. // we are in sync mode and a single promise is thrown both on initial render
  38035. // and on update; we attach two .then(retrySuspendedRoot) callbacks and each
  38036. // one performs Sync work, rerendering the Suspense.
  38037. if ((boundaryFiber.mode & ConcurrentMode) !== NoContext) {
  38038. if (root === nextRoot && nextRenderExpirationTime === suspendedTime) {
  38039. // Received a ping at the same priority level at which we're currently
  38040. // rendering. Restart from the root.
  38041. nextRoot = null;
  38042. }
  38043. }
  38044. scheduleWorkToRoot(boundaryFiber, retryTime);
  38045. if ((boundaryFiber.mode & ConcurrentMode) === NoContext) {
  38046. // Outside of concurrent mode, we must schedule an update on the source
  38047. // fiber, too, since it already committed in an inconsistent state and
  38048. // therefore does not have any pending work.
  38049. scheduleWorkToRoot(sourceFiber, retryTime);
  38050. var sourceTag = sourceFiber.tag;
  38051. if (sourceTag === ClassComponent && sourceFiber.stateNode !== null) {
  38052. // When we try rendering again, we should not reuse the current fiber,
  38053. // since it's known to be in an inconsistent state. Use a force updte to
  38054. // prevent a bail out.
  38055. var update = createUpdate(retryTime);
  38056. update.tag = ForceUpdate;
  38057. enqueueUpdate(sourceFiber, update);
  38058. }
  38059. }
  38060. var rootExpirationTime = root.expirationTime;
  38061. if (rootExpirationTime !== NoWork) {
  38062. requestWork(root, rootExpirationTime);
  38063. }
  38064. }
  38065. function scheduleWorkToRoot(fiber, expirationTime) {
  38066. recordScheduleUpdate();
  38067. {
  38068. if (fiber.tag === ClassComponent) {
  38069. var instance = fiber.stateNode;
  38070. warnAboutInvalidUpdates(instance);
  38071. }
  38072. }
  38073. // Update the source fiber's expiration time
  38074. if (fiber.expirationTime < expirationTime) {
  38075. fiber.expirationTime = expirationTime;
  38076. }
  38077. var alternate = fiber.alternate;
  38078. if (alternate !== null && alternate.expirationTime < expirationTime) {
  38079. alternate.expirationTime = expirationTime;
  38080. }
  38081. // Walk the parent path to the root and update the child expiration time.
  38082. var node = fiber.return;
  38083. var root = null;
  38084. if (node === null && fiber.tag === HostRoot) {
  38085. root = fiber.stateNode;
  38086. } else {
  38087. while (node !== null) {
  38088. alternate = node.alternate;
  38089. if (node.childExpirationTime < expirationTime) {
  38090. node.childExpirationTime = expirationTime;
  38091. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  38092. alternate.childExpirationTime = expirationTime;
  38093. }
  38094. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  38095. alternate.childExpirationTime = expirationTime;
  38096. }
  38097. if (node.return === null && node.tag === HostRoot) {
  38098. root = node.stateNode;
  38099. break;
  38100. }
  38101. node = node.return;
  38102. }
  38103. }
  38104. if (enableSchedulerTracing) {
  38105. if (root !== null) {
  38106. var interactions = tracing.__interactionsRef.current;
  38107. if (interactions.size > 0) {
  38108. var pendingInteractionMap = root.pendingInteractionMap;
  38109. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  38110. if (pendingInteractions != null) {
  38111. interactions.forEach(function (interaction) {
  38112. if (!pendingInteractions.has(interaction)) {
  38113. // Update the pending async work count for previously unscheduled interaction.
  38114. interaction.__count++;
  38115. }
  38116. pendingInteractions.add(interaction);
  38117. });
  38118. } else {
  38119. pendingInteractionMap.set(expirationTime, new Set(interactions));
  38120. // Update the pending async work count for the current interactions.
  38121. interactions.forEach(function (interaction) {
  38122. interaction.__count++;
  38123. });
  38124. }
  38125. var subscriber = tracing.__subscriberRef.current;
  38126. if (subscriber !== null) {
  38127. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  38128. subscriber.onWorkScheduled(interactions, threadID);
  38129. }
  38130. }
  38131. }
  38132. }
  38133. return root;
  38134. }
  38135. function scheduleWork(fiber, expirationTime) {
  38136. var root = scheduleWorkToRoot(fiber, expirationTime);
  38137. if (root === null) {
  38138. {
  38139. switch (fiber.tag) {
  38140. case ClassComponent:
  38141. warnAboutUpdateOnUnmounted(fiber, true);
  38142. break;
  38143. case FunctionComponent:
  38144. case ForwardRef:
  38145. case MemoComponent:
  38146. case SimpleMemoComponent:
  38147. warnAboutUpdateOnUnmounted(fiber, false);
  38148. break;
  38149. }
  38150. }
  38151. return;
  38152. }
  38153. if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime > nextRenderExpirationTime) {
  38154. // This is an interruption. (Used for performance tracking.)
  38155. interruptedBy = fiber;
  38156. resetStack();
  38157. }
  38158. markPendingPriorityLevel(root, expirationTime);
  38159. if (
  38160. // If we're in the render phase, we don't need to schedule this root
  38161. // for an update, because we'll do it before we exit...
  38162. !isWorking || isCommitting$1 ||
  38163. // ...unless this is a different root than the one we're rendering.
  38164. nextRoot !== root) {
  38165. var rootExpirationTime = root.expirationTime;
  38166. requestWork(root, rootExpirationTime);
  38167. }
  38168. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  38169. // Reset this back to zero so subsequent updates don't throw.
  38170. nestedUpdateCount = 0;
  38171. invariant(false, '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.');
  38172. }
  38173. }
  38174. function syncUpdates(fn, a, b, c, d) {
  38175. var previousExpirationContext = expirationContext;
  38176. expirationContext = Sync;
  38177. try {
  38178. return fn(a, b, c, d);
  38179. } finally {
  38180. expirationContext = previousExpirationContext;
  38181. }
  38182. }
  38183. // TODO: Everything below this is written as if it has been lifted to the
  38184. // renderers. I'll do this in a follow-up.
  38185. // Linked-list of roots
  38186. var firstScheduledRoot = null;
  38187. var lastScheduledRoot = null;
  38188. var callbackExpirationTime = NoWork;
  38189. var callbackID = void 0;
  38190. var isRendering = false;
  38191. var nextFlushedRoot = null;
  38192. var nextFlushedExpirationTime = NoWork;
  38193. var lowestPriorityPendingInteractiveExpirationTime = NoWork;
  38194. var hasUnhandledError = false;
  38195. var unhandledError = null;
  38196. var isBatchingUpdates = false;
  38197. var isUnbatchingUpdates = false;
  38198. var isBatchingInteractiveUpdates = false;
  38199. var completedBatches = null;
  38200. var originalStartTimeMs = scheduler.unstable_now();
  38201. var currentRendererTime = msToExpirationTime(originalStartTimeMs);
  38202. var currentSchedulerTime = currentRendererTime;
  38203. // Use these to prevent an infinite loop of nested updates
  38204. var NESTED_UPDATE_LIMIT = 50;
  38205. var nestedUpdateCount = 0;
  38206. var lastCommittedRootDuringThisBatch = null;
  38207. function recomputeCurrentRendererTime() {
  38208. var currentTimeMs = scheduler.unstable_now() - originalStartTimeMs;
  38209. currentRendererTime = msToExpirationTime(currentTimeMs);
  38210. }
  38211. function scheduleCallbackWithExpirationTime(root, expirationTime) {
  38212. if (callbackExpirationTime !== NoWork) {
  38213. // A callback is already scheduled. Check its expiration time (timeout).
  38214. if (expirationTime < callbackExpirationTime) {
  38215. // Existing callback has sufficient timeout. Exit.
  38216. return;
  38217. } else {
  38218. if (callbackID !== null) {
  38219. // Existing callback has insufficient timeout. Cancel and schedule a
  38220. // new one.
  38221. scheduler.unstable_cancelCallback(callbackID);
  38222. }
  38223. }
  38224. // The request callback timer is already running. Don't start a new one.
  38225. } else {
  38226. startRequestCallbackTimer();
  38227. }
  38228. callbackExpirationTime = expirationTime;
  38229. var currentMs = scheduler.unstable_now() - originalStartTimeMs;
  38230. var expirationTimeMs = expirationTimeToMs(expirationTime);
  38231. var timeout = expirationTimeMs - currentMs;
  38232. callbackID = scheduler.unstable_scheduleCallback(performAsyncWork, { timeout: timeout });
  38233. }
  38234. // For every call to renderRoot, one of onFatal, onComplete, onSuspend, and
  38235. // onYield is called upon exiting. We use these in lieu of returning a tuple.
  38236. // I've also chosen not to inline them into renderRoot because these will
  38237. // eventually be lifted into the renderer.
  38238. function onFatal(root) {
  38239. root.finishedWork = null;
  38240. }
  38241. function onComplete(root, finishedWork, expirationTime) {
  38242. root.pendingCommitExpirationTime = expirationTime;
  38243. root.finishedWork = finishedWork;
  38244. }
  38245. function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {
  38246. root.expirationTime = rootExpirationTime;
  38247. if (msUntilTimeout === 0 && !shouldYieldToRenderer()) {
  38248. // Don't wait an additional tick. Commit the tree immediately.
  38249. root.pendingCommitExpirationTime = suspendedExpirationTime;
  38250. root.finishedWork = finishedWork;
  38251. } else if (msUntilTimeout > 0) {
  38252. // Wait `msUntilTimeout` milliseconds before committing.
  38253. root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);
  38254. }
  38255. }
  38256. function onYield(root) {
  38257. root.finishedWork = null;
  38258. }
  38259. function onTimeout(root, finishedWork, suspendedExpirationTime) {
  38260. // The root timed out. Commit it.
  38261. root.pendingCommitExpirationTime = suspendedExpirationTime;
  38262. root.finishedWork = finishedWork;
  38263. // Read the current time before entering the commit phase. We can be
  38264. // certain this won't cause tearing related to batching of event updates
  38265. // because we're at the top of a timer event.
  38266. recomputeCurrentRendererTime();
  38267. currentSchedulerTime = currentRendererTime;
  38268. flushRoot(root, suspendedExpirationTime);
  38269. }
  38270. function onCommit(root, expirationTime) {
  38271. root.expirationTime = expirationTime;
  38272. root.finishedWork = null;
  38273. }
  38274. function requestCurrentTime() {
  38275. // requestCurrentTime is called by the scheduler to compute an expiration
  38276. // time.
  38277. //
  38278. // Expiration times are computed by adding to the current time (the start
  38279. // time). However, if two updates are scheduled within the same event, we
  38280. // should treat their start times as simultaneous, even if the actual clock
  38281. // time has advanced between the first and second call.
  38282. // In other words, because expiration times determine how updates are batched,
  38283. // we want all updates of like priority that occur within the same event to
  38284. // receive the same expiration time. Otherwise we get tearing.
  38285. //
  38286. // We keep track of two separate times: the current "renderer" time and the
  38287. // current "scheduler" time. The renderer time can be updated whenever; it
  38288. // only exists to minimize the calls performance.now.
  38289. //
  38290. // But the scheduler time can only be updated if there's no pending work, or
  38291. // if we know for certain that we're not in the middle of an event.
  38292. if (isRendering) {
  38293. // We're already rendering. Return the most recently read time.
  38294. return currentSchedulerTime;
  38295. }
  38296. // Check if there's pending work.
  38297. findHighestPriorityRoot();
  38298. if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {
  38299. // If there's no pending work, or if the pending work is offscreen, we can
  38300. // read the current time without risk of tearing.
  38301. recomputeCurrentRendererTime();
  38302. currentSchedulerTime = currentRendererTime;
  38303. return currentSchedulerTime;
  38304. }
  38305. // There's already pending work. We might be in the middle of a browser
  38306. // event. If we were to read the current time, it could cause multiple updates
  38307. // within the same event to receive different expiration times, leading to
  38308. // tearing. Return the last read time. During the next idle callback, the
  38309. // time will be updated.
  38310. return currentSchedulerTime;
  38311. }
  38312. // requestWork is called by the scheduler whenever a root receives an update.
  38313. // It's up to the renderer to call renderRoot at some point in the future.
  38314. function requestWork(root, expirationTime) {
  38315. addRootToSchedule(root, expirationTime);
  38316. if (isRendering) {
  38317. // Prevent reentrancy. Remaining work will be scheduled at the end of
  38318. // the currently rendering batch.
  38319. return;
  38320. }
  38321. if (isBatchingUpdates) {
  38322. // Flush work at the end of the batch.
  38323. if (isUnbatchingUpdates) {
  38324. // ...unless we're inside unbatchedUpdates, in which case we should
  38325. // flush it now.
  38326. nextFlushedRoot = root;
  38327. nextFlushedExpirationTime = Sync;
  38328. performWorkOnRoot(root, Sync, false);
  38329. }
  38330. return;
  38331. }
  38332. // TODO: Get rid of Sync and use current time?
  38333. if (expirationTime === Sync) {
  38334. performSyncWork();
  38335. } else {
  38336. scheduleCallbackWithExpirationTime(root, expirationTime);
  38337. }
  38338. }
  38339. function addRootToSchedule(root, expirationTime) {
  38340. // Add the root to the schedule.
  38341. // Check if this root is already part of the schedule.
  38342. if (root.nextScheduledRoot === null) {
  38343. // This root is not already scheduled. Add it.
  38344. root.expirationTime = expirationTime;
  38345. if (lastScheduledRoot === null) {
  38346. firstScheduledRoot = lastScheduledRoot = root;
  38347. root.nextScheduledRoot = root;
  38348. } else {
  38349. lastScheduledRoot.nextScheduledRoot = root;
  38350. lastScheduledRoot = root;
  38351. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  38352. }
  38353. } else {
  38354. // This root is already scheduled, but its priority may have increased.
  38355. var remainingExpirationTime = root.expirationTime;
  38356. if (expirationTime > remainingExpirationTime) {
  38357. // Update the priority.
  38358. root.expirationTime = expirationTime;
  38359. }
  38360. }
  38361. }
  38362. function findHighestPriorityRoot() {
  38363. var highestPriorityWork = NoWork;
  38364. var highestPriorityRoot = null;
  38365. if (lastScheduledRoot !== null) {
  38366. var previousScheduledRoot = lastScheduledRoot;
  38367. var root = firstScheduledRoot;
  38368. while (root !== null) {
  38369. var remainingExpirationTime = root.expirationTime;
  38370. if (remainingExpirationTime === NoWork) {
  38371. // This root no longer has work. Remove it from the scheduler.
  38372. // TODO: This check is redudant, but Flow is confused by the branch
  38373. // below where we set lastScheduledRoot to null, even though we break
  38374. // from the loop right after.
  38375. !(previousScheduledRoot !== null && lastScheduledRoot !== null) ? invariant(false, 'Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  38376. if (root === root.nextScheduledRoot) {
  38377. // This is the only root in the list.
  38378. root.nextScheduledRoot = null;
  38379. firstScheduledRoot = lastScheduledRoot = null;
  38380. break;
  38381. } else if (root === firstScheduledRoot) {
  38382. // This is the first root in the list.
  38383. var next = root.nextScheduledRoot;
  38384. firstScheduledRoot = next;
  38385. lastScheduledRoot.nextScheduledRoot = next;
  38386. root.nextScheduledRoot = null;
  38387. } else if (root === lastScheduledRoot) {
  38388. // This is the last root in the list.
  38389. lastScheduledRoot = previousScheduledRoot;
  38390. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  38391. root.nextScheduledRoot = null;
  38392. break;
  38393. } else {
  38394. previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;
  38395. root.nextScheduledRoot = null;
  38396. }
  38397. root = previousScheduledRoot.nextScheduledRoot;
  38398. } else {
  38399. if (remainingExpirationTime > highestPriorityWork) {
  38400. // Update the priority, if it's higher
  38401. highestPriorityWork = remainingExpirationTime;
  38402. highestPriorityRoot = root;
  38403. }
  38404. if (root === lastScheduledRoot) {
  38405. break;
  38406. }
  38407. if (highestPriorityWork === Sync) {
  38408. // Sync is highest priority by definition so
  38409. // we can stop searching.
  38410. break;
  38411. }
  38412. previousScheduledRoot = root;
  38413. root = root.nextScheduledRoot;
  38414. }
  38415. }
  38416. }
  38417. nextFlushedRoot = highestPriorityRoot;
  38418. nextFlushedExpirationTime = highestPriorityWork;
  38419. }
  38420. // TODO: This wrapper exists because many of the older tests (the ones that use
  38421. // flushDeferredPri) rely on the number of times `shouldYield` is called. We
  38422. // should get rid of it.
  38423. var didYield = false;
  38424. function shouldYieldToRenderer() {
  38425. if (didYield) {
  38426. return true;
  38427. }
  38428. if (scheduler.unstable_shouldYield()) {
  38429. didYield = true;
  38430. return true;
  38431. }
  38432. return false;
  38433. }
  38434. function performAsyncWork() {
  38435. try {
  38436. if (!shouldYieldToRenderer()) {
  38437. // The callback timed out. That means at least one update has expired.
  38438. // Iterate through the root schedule. If they contain expired work, set
  38439. // the next render expiration time to the current time. This has the effect
  38440. // of flushing all expired work in a single batch, instead of flushing each
  38441. // level one at a time.
  38442. if (firstScheduledRoot !== null) {
  38443. recomputeCurrentRendererTime();
  38444. var root = firstScheduledRoot;
  38445. do {
  38446. didExpireAtExpirationTime(root, currentRendererTime);
  38447. // The root schedule is circular, so this is never null.
  38448. root = root.nextScheduledRoot;
  38449. } while (root !== firstScheduledRoot);
  38450. }
  38451. }
  38452. performWork(NoWork, true);
  38453. } finally {
  38454. didYield = false;
  38455. }
  38456. }
  38457. function performSyncWork() {
  38458. performWork(Sync, false);
  38459. }
  38460. function performWork(minExpirationTime, isYieldy) {
  38461. // Keep working on roots until there's no more work, or until there's a higher
  38462. // priority event.
  38463. findHighestPriorityRoot();
  38464. if (isYieldy) {
  38465. recomputeCurrentRendererTime();
  38466. currentSchedulerTime = currentRendererTime;
  38467. if (enableUserTimingAPI) {
  38468. var didExpire = nextFlushedExpirationTime > currentRendererTime;
  38469. var timeout = expirationTimeToMs(nextFlushedExpirationTime);
  38470. stopRequestCallbackTimer(didExpire, timeout);
  38471. }
  38472. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime && !(didYield && currentRendererTime > nextFlushedExpirationTime)) {
  38473. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime > nextFlushedExpirationTime);
  38474. findHighestPriorityRoot();
  38475. recomputeCurrentRendererTime();
  38476. currentSchedulerTime = currentRendererTime;
  38477. }
  38478. } else {
  38479. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {
  38480. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);
  38481. findHighestPriorityRoot();
  38482. }
  38483. }
  38484. // We're done flushing work. Either we ran out of time in this callback,
  38485. // or there's no more work left with sufficient priority.
  38486. // If we're inside a callback, set this to false since we just completed it.
  38487. if (isYieldy) {
  38488. callbackExpirationTime = NoWork;
  38489. callbackID = null;
  38490. }
  38491. // If there's work left over, schedule a new callback.
  38492. if (nextFlushedExpirationTime !== NoWork) {
  38493. scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);
  38494. }
  38495. // Clean-up.
  38496. finishRendering();
  38497. }
  38498. function flushRoot(root, expirationTime) {
  38499. !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
  38500. // Perform work on root as if the given expiration time is the current time.
  38501. // This has the effect of synchronously flushing all work up to and
  38502. // including the given time.
  38503. nextFlushedRoot = root;
  38504. nextFlushedExpirationTime = expirationTime;
  38505. performWorkOnRoot(root, expirationTime, false);
  38506. // Flush any sync work that was scheduled by lifecycles
  38507. performSyncWork();
  38508. }
  38509. function finishRendering() {
  38510. nestedUpdateCount = 0;
  38511. lastCommittedRootDuringThisBatch = null;
  38512. if (completedBatches !== null) {
  38513. var batches = completedBatches;
  38514. completedBatches = null;
  38515. for (var i = 0; i < batches.length; i++) {
  38516. var batch = batches[i];
  38517. try {
  38518. batch._onComplete();
  38519. } catch (error) {
  38520. if (!hasUnhandledError) {
  38521. hasUnhandledError = true;
  38522. unhandledError = error;
  38523. }
  38524. }
  38525. }
  38526. }
  38527. if (hasUnhandledError) {
  38528. var error = unhandledError;
  38529. unhandledError = null;
  38530. hasUnhandledError = false;
  38531. throw error;
  38532. }
  38533. }
  38534. function performWorkOnRoot(root, expirationTime, isYieldy) {
  38535. !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  38536. isRendering = true;
  38537. // Check if this is async work or sync/expired work.
  38538. if (!isYieldy) {
  38539. // Flush work without yielding.
  38540. // TODO: Non-yieldy work does not necessarily imply expired work. A renderer
  38541. // may want to perform some work without yielding, but also without
  38542. // requiring the root to complete (by triggering placeholders).
  38543. var finishedWork = root.finishedWork;
  38544. if (finishedWork !== null) {
  38545. // This root is already complete. We can commit it.
  38546. completeRoot(root, finishedWork, expirationTime);
  38547. } else {
  38548. root.finishedWork = null;
  38549. // If this root previously suspended, clear its existing timeout, since
  38550. // we're about to try rendering again.
  38551. var timeoutHandle = root.timeoutHandle;
  38552. if (timeoutHandle !== noTimeout) {
  38553. root.timeoutHandle = noTimeout;
  38554. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  38555. cancelTimeout(timeoutHandle);
  38556. }
  38557. renderRoot(root, isYieldy);
  38558. finishedWork = root.finishedWork;
  38559. if (finishedWork !== null) {
  38560. // We've completed the root. Commit it.
  38561. completeRoot(root, finishedWork, expirationTime);
  38562. }
  38563. }
  38564. } else {
  38565. // Flush async work.
  38566. var _finishedWork = root.finishedWork;
  38567. if (_finishedWork !== null) {
  38568. // This root is already complete. We can commit it.
  38569. completeRoot(root, _finishedWork, expirationTime);
  38570. } else {
  38571. root.finishedWork = null;
  38572. // If this root previously suspended, clear its existing timeout, since
  38573. // we're about to try rendering again.
  38574. var _timeoutHandle = root.timeoutHandle;
  38575. if (_timeoutHandle !== noTimeout) {
  38576. root.timeoutHandle = noTimeout;
  38577. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  38578. cancelTimeout(_timeoutHandle);
  38579. }
  38580. renderRoot(root, isYieldy);
  38581. _finishedWork = root.finishedWork;
  38582. if (_finishedWork !== null) {
  38583. // We've completed the root. Check the if we should yield one more time
  38584. // before committing.
  38585. if (!shouldYieldToRenderer()) {
  38586. // Still time left. Commit the root.
  38587. completeRoot(root, _finishedWork, expirationTime);
  38588. } else {
  38589. // There's no time left. Mark this root as complete. We'll come
  38590. // back and commit it later.
  38591. root.finishedWork = _finishedWork;
  38592. }
  38593. }
  38594. }
  38595. }
  38596. isRendering = false;
  38597. }
  38598. function completeRoot(root, finishedWork, expirationTime) {
  38599. // Check if there's a batch that matches this expiration time.
  38600. var firstBatch = root.firstBatch;
  38601. if (firstBatch !== null && firstBatch._expirationTime >= expirationTime) {
  38602. if (completedBatches === null) {
  38603. completedBatches = [firstBatch];
  38604. } else {
  38605. completedBatches.push(firstBatch);
  38606. }
  38607. if (firstBatch._defer) {
  38608. // This root is blocked from committing by a batch. Unschedule it until
  38609. // we receive another update.
  38610. root.finishedWork = finishedWork;
  38611. root.expirationTime = NoWork;
  38612. return;
  38613. }
  38614. }
  38615. // Commit the root.
  38616. root.finishedWork = null;
  38617. // Check if this is a nested update (a sync update scheduled during the
  38618. // commit phase).
  38619. if (root === lastCommittedRootDuringThisBatch) {
  38620. // If the next root is the same as the previous root, this is a nested
  38621. // update. To prevent an infinite loop, increment the nested update count.
  38622. nestedUpdateCount++;
  38623. } else {
  38624. // Reset whenever we switch roots.
  38625. lastCommittedRootDuringThisBatch = root;
  38626. nestedUpdateCount = 0;
  38627. }
  38628. commitRoot(root, finishedWork);
  38629. }
  38630. function onUncaughtError(error) {
  38631. !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  38632. // Unschedule this root so we don't work on it again until there's
  38633. // another update.
  38634. nextFlushedRoot.expirationTime = NoWork;
  38635. if (!hasUnhandledError) {
  38636. hasUnhandledError = true;
  38637. unhandledError = error;
  38638. }
  38639. }
  38640. // TODO: Batching should be implemented at the renderer level, not inside
  38641. // the reconciler.
  38642. function batchedUpdates$1(fn, a) {
  38643. var previousIsBatchingUpdates = isBatchingUpdates;
  38644. isBatchingUpdates = true;
  38645. try {
  38646. return fn(a);
  38647. } finally {
  38648. isBatchingUpdates = previousIsBatchingUpdates;
  38649. if (!isBatchingUpdates && !isRendering) {
  38650. performSyncWork();
  38651. }
  38652. }
  38653. }
  38654. // TODO: Batching should be implemented at the renderer level, not inside
  38655. // the reconciler.
  38656. function unbatchedUpdates(fn, a) {
  38657. if (isBatchingUpdates && !isUnbatchingUpdates) {
  38658. isUnbatchingUpdates = true;
  38659. try {
  38660. return fn(a);
  38661. } finally {
  38662. isUnbatchingUpdates = false;
  38663. }
  38664. }
  38665. return fn(a);
  38666. }
  38667. // TODO: Batching should be implemented at the renderer level, not within
  38668. // the reconciler.
  38669. function flushSync(fn, a) {
  38670. !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;
  38671. var previousIsBatchingUpdates = isBatchingUpdates;
  38672. isBatchingUpdates = true;
  38673. try {
  38674. return syncUpdates(fn, a);
  38675. } finally {
  38676. isBatchingUpdates = previousIsBatchingUpdates;
  38677. performSyncWork();
  38678. }
  38679. }
  38680. function interactiveUpdates$1(fn, a, b) {
  38681. if (isBatchingInteractiveUpdates) {
  38682. return fn(a, b);
  38683. }
  38684. // If there are any pending interactive updates, synchronously flush them.
  38685. // This needs to happen before we read any handlers, because the effect of
  38686. // the previous event may influence which handlers are called during
  38687. // this event.
  38688. if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  38689. // Synchronously flush pending interactive updates.
  38690. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  38691. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  38692. }
  38693. var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates;
  38694. var previousIsBatchingUpdates = isBatchingUpdates;
  38695. isBatchingInteractiveUpdates = true;
  38696. isBatchingUpdates = true;
  38697. try {
  38698. return fn(a, b);
  38699. } finally {
  38700. isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates;
  38701. isBatchingUpdates = previousIsBatchingUpdates;
  38702. if (!isBatchingUpdates && !isRendering) {
  38703. performSyncWork();
  38704. }
  38705. }
  38706. }
  38707. function flushInteractiveUpdates$1() {
  38708. if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  38709. // Synchronously flush pending interactive updates.
  38710. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  38711. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  38712. }
  38713. }
  38714. function flushControlled(fn) {
  38715. var previousIsBatchingUpdates = isBatchingUpdates;
  38716. isBatchingUpdates = true;
  38717. try {
  38718. syncUpdates(fn);
  38719. } finally {
  38720. isBatchingUpdates = previousIsBatchingUpdates;
  38721. if (!isBatchingUpdates && !isRendering) {
  38722. performSyncWork();
  38723. }
  38724. }
  38725. }
  38726. // 0 is PROD, 1 is DEV.
  38727. // Might add PROFILE later.
  38728. var didWarnAboutNestedUpdates = void 0;
  38729. var didWarnAboutFindNodeInStrictMode = void 0;
  38730. {
  38731. didWarnAboutNestedUpdates = false;
  38732. didWarnAboutFindNodeInStrictMode = {};
  38733. }
  38734. function getContextForSubtree(parentComponent) {
  38735. if (!parentComponent) {
  38736. return emptyContextObject;
  38737. }
  38738. var fiber = get(parentComponent);
  38739. var parentContext = findCurrentUnmaskedContext(fiber);
  38740. if (fiber.tag === ClassComponent) {
  38741. var Component = fiber.type;
  38742. if (isContextProvider(Component)) {
  38743. return processChildContext(fiber, Component, parentContext);
  38744. }
  38745. }
  38746. return parentContext;
  38747. }
  38748. function scheduleRootUpdate(current$$1, element, expirationTime, callback) {
  38749. {
  38750. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  38751. didWarnAboutNestedUpdates = true;
  38752. warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
  38753. }
  38754. }
  38755. var update = createUpdate(expirationTime);
  38756. // Caution: React DevTools currently depends on this property
  38757. // being called "element".
  38758. update.payload = { element: element };
  38759. callback = callback === undefined ? null : callback;
  38760. if (callback !== null) {
  38761. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  38762. update.callback = callback;
  38763. }
  38764. flushPassiveEffects();
  38765. enqueueUpdate(current$$1, update);
  38766. scheduleWork(current$$1, expirationTime);
  38767. return expirationTime;
  38768. }
  38769. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
  38770. // TODO: If this is a nested container, this won't be the root.
  38771. var current$$1 = container.current;
  38772. {
  38773. if (ReactFiberInstrumentation_1.debugTool) {
  38774. if (current$$1.alternate === null) {
  38775. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  38776. } else if (element === null) {
  38777. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  38778. } else {
  38779. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  38780. }
  38781. }
  38782. }
  38783. var context = getContextForSubtree(parentComponent);
  38784. if (container.context === null) {
  38785. container.context = context;
  38786. } else {
  38787. container.pendingContext = context;
  38788. }
  38789. return scheduleRootUpdate(current$$1, element, expirationTime, callback);
  38790. }
  38791. function findHostInstance(component) {
  38792. var fiber = get(component);
  38793. if (fiber === undefined) {
  38794. if (typeof component.render === 'function') {
  38795. invariant(false, 'Unable to find node on an unmounted component.');
  38796. } else {
  38797. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  38798. }
  38799. }
  38800. var hostFiber = findCurrentHostFiber(fiber);
  38801. if (hostFiber === null) {
  38802. return null;
  38803. }
  38804. return hostFiber.stateNode;
  38805. }
  38806. function findHostInstanceWithWarning(component, methodName) {
  38807. {
  38808. var fiber = get(component);
  38809. if (fiber === undefined) {
  38810. if (typeof component.render === 'function') {
  38811. invariant(false, 'Unable to find node on an unmounted component.');
  38812. } else {
  38813. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  38814. }
  38815. }
  38816. var hostFiber = findCurrentHostFiber(fiber);
  38817. if (hostFiber === null) {
  38818. return null;
  38819. }
  38820. if (hostFiber.mode & StrictMode) {
  38821. var componentName = getComponentName(fiber.type) || 'Component';
  38822. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  38823. didWarnAboutFindNodeInStrictMode[componentName] = true;
  38824. if (fiber.mode & StrictMode) {
  38825. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  38826. } else {
  38827. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  38828. }
  38829. }
  38830. }
  38831. return hostFiber.stateNode;
  38832. }
  38833. return findHostInstance(component);
  38834. }
  38835. function createContainer(containerInfo, isConcurrent, hydrate) {
  38836. return createFiberRoot(containerInfo, isConcurrent, hydrate);
  38837. }
  38838. function updateContainer(element, container, parentComponent, callback) {
  38839. var current$$1 = container.current;
  38840. var currentTime = requestCurrentTime();
  38841. var expirationTime = computeExpirationForFiber(currentTime, current$$1);
  38842. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
  38843. }
  38844. function getPublicRootInstance(container) {
  38845. var containerFiber = container.current;
  38846. if (!containerFiber.child) {
  38847. return null;
  38848. }
  38849. switch (containerFiber.child.tag) {
  38850. case HostComponent:
  38851. return getPublicInstance(containerFiber.child.stateNode);
  38852. default:
  38853. return containerFiber.child.stateNode;
  38854. }
  38855. }
  38856. function findHostInstanceWithNoPortals(fiber) {
  38857. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  38858. if (hostFiber === null) {
  38859. return null;
  38860. }
  38861. return hostFiber.stateNode;
  38862. }
  38863. function injectIntoDevTools(devToolsConfig) {
  38864. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  38865. return injectInternals(_assign({}, devToolsConfig, {
  38866. findHostInstanceByFiber: function (fiber) {
  38867. var hostFiber = findCurrentHostFiber(fiber);
  38868. if (hostFiber === null) {
  38869. return null;
  38870. }
  38871. return hostFiber.stateNode;
  38872. },
  38873. findFiberByHostInstance: function (instance) {
  38874. if (!findFiberByHostInstance) {
  38875. // Might not be implemented by the renderer.
  38876. return null;
  38877. }
  38878. return findFiberByHostInstance(instance);
  38879. }
  38880. }));
  38881. }
  38882. // This file intentionally does *not* have the Flow annotation.
  38883. // Don't add it. See `./inline-typed.js` for an explanation.
  38884. function createPortal$1(children, containerInfo,
  38885. // TODO: figure out the API for cross-renderer implementation.
  38886. implementation) {
  38887. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  38888. return {
  38889. // This tag allow us to uniquely identify this as a React Portal
  38890. $$typeof: REACT_PORTAL_TYPE,
  38891. key: key == null ? null : '' + key,
  38892. children: children,
  38893. containerInfo: containerInfo,
  38894. implementation: implementation
  38895. };
  38896. }
  38897. // TODO: this is special because it gets imported during build.
  38898. var ReactVersion = '16.6.3';
  38899. // TODO: This type is shared between the reconciler and ReactDOM, but will
  38900. // eventually be lifted out to the renderer.
  38901. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  38902. var topLevelUpdateWarnings = void 0;
  38903. var warnOnInvalidCallback = void 0;
  38904. var didWarnAboutUnstableCreatePortal = false;
  38905. {
  38906. if (typeof Map !== 'function' ||
  38907. // $FlowIssue Flow incorrectly thinks Map has no prototype
  38908. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  38909. // $FlowIssue Flow incorrectly thinks Set has no prototype
  38910. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  38911. warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  38912. }
  38913. topLevelUpdateWarnings = function (container) {
  38914. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  38915. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  38916. if (hostInstance) {
  38917. !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
  38918. }
  38919. }
  38920. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  38921. var rootEl = getReactRootElementInContainer(container);
  38922. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  38923. !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
  38924. !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
  38925. };
  38926. warnOnInvalidCallback = function (callback, callerName) {
  38927. !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
  38928. };
  38929. }
  38930. setRestoreImplementation(restoreControlledState$1);
  38931. function ReactBatch(root) {
  38932. var expirationTime = computeUniqueAsyncExpiration();
  38933. this._expirationTime = expirationTime;
  38934. this._root = root;
  38935. this._next = null;
  38936. this._callbacks = null;
  38937. this._didComplete = false;
  38938. this._hasChildren = false;
  38939. this._children = null;
  38940. this._defer = true;
  38941. }
  38942. ReactBatch.prototype.render = function (children) {
  38943. !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;
  38944. this._hasChildren = true;
  38945. this._children = children;
  38946. var internalRoot = this._root._internalRoot;
  38947. var expirationTime = this._expirationTime;
  38948. var work = new ReactWork();
  38949. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);
  38950. return work;
  38951. };
  38952. ReactBatch.prototype.then = function (onComplete) {
  38953. if (this._didComplete) {
  38954. onComplete();
  38955. return;
  38956. }
  38957. var callbacks = this._callbacks;
  38958. if (callbacks === null) {
  38959. callbacks = this._callbacks = [];
  38960. }
  38961. callbacks.push(onComplete);
  38962. };
  38963. ReactBatch.prototype.commit = function () {
  38964. var internalRoot = this._root._internalRoot;
  38965. var firstBatch = internalRoot.firstBatch;
  38966. !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  38967. if (!this._hasChildren) {
  38968. // This batch is empty. Return.
  38969. this._next = null;
  38970. this._defer = false;
  38971. return;
  38972. }
  38973. var expirationTime = this._expirationTime;
  38974. // Ensure this is the first batch in the list.
  38975. if (firstBatch !== this) {
  38976. // This batch is not the earliest batch. We need to move it to the front.
  38977. // Update its expiration time to be the expiration time of the earliest
  38978. // batch, so that we can flush it without flushing the other batches.
  38979. if (this._hasChildren) {
  38980. expirationTime = this._expirationTime = firstBatch._expirationTime;
  38981. // Rendering this batch again ensures its children will be the final state
  38982. // when we flush (updates are processed in insertion order: last
  38983. // update wins).
  38984. // TODO: This forces a restart. Should we print a warning?
  38985. this.render(this._children);
  38986. }
  38987. // Remove the batch from the list.
  38988. var previous = null;
  38989. var batch = firstBatch;
  38990. while (batch !== this) {
  38991. previous = batch;
  38992. batch = batch._next;
  38993. }
  38994. !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  38995. previous._next = batch._next;
  38996. // Add it to the front.
  38997. this._next = firstBatch;
  38998. firstBatch = internalRoot.firstBatch = this;
  38999. }
  39000. // Synchronously flush all the work up to this batch's expiration time.
  39001. this._defer = false;
  39002. flushRoot(internalRoot, expirationTime);
  39003. // Pop the batch from the list.
  39004. var next = this._next;
  39005. this._next = null;
  39006. firstBatch = internalRoot.firstBatch = next;
  39007. // Append the next earliest batch's children to the update queue.
  39008. if (firstBatch !== null && firstBatch._hasChildren) {
  39009. firstBatch.render(firstBatch._children);
  39010. }
  39011. };
  39012. ReactBatch.prototype._onComplete = function () {
  39013. if (this._didComplete) {
  39014. return;
  39015. }
  39016. this._didComplete = true;
  39017. var callbacks = this._callbacks;
  39018. if (callbacks === null) {
  39019. return;
  39020. }
  39021. // TODO: Error handling.
  39022. for (var i = 0; i < callbacks.length; i++) {
  39023. var _callback = callbacks[i];
  39024. _callback();
  39025. }
  39026. };
  39027. function ReactWork() {
  39028. this._callbacks = null;
  39029. this._didCommit = false;
  39030. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  39031. // list of Work objects.
  39032. this._onCommit = this._onCommit.bind(this);
  39033. }
  39034. ReactWork.prototype.then = function (onCommit) {
  39035. if (this._didCommit) {
  39036. onCommit();
  39037. return;
  39038. }
  39039. var callbacks = this._callbacks;
  39040. if (callbacks === null) {
  39041. callbacks = this._callbacks = [];
  39042. }
  39043. callbacks.push(onCommit);
  39044. };
  39045. ReactWork.prototype._onCommit = function () {
  39046. if (this._didCommit) {
  39047. return;
  39048. }
  39049. this._didCommit = true;
  39050. var callbacks = this._callbacks;
  39051. if (callbacks === null) {
  39052. return;
  39053. }
  39054. // TODO: Error handling.
  39055. for (var i = 0; i < callbacks.length; i++) {
  39056. var _callback2 = callbacks[i];
  39057. !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;
  39058. _callback2();
  39059. }
  39060. };
  39061. function ReactRoot(container, isConcurrent, hydrate) {
  39062. var root = createContainer(container, isConcurrent, hydrate);
  39063. this._internalRoot = root;
  39064. }
  39065. ReactRoot.prototype.render = function (children, callback) {
  39066. var root = this._internalRoot;
  39067. var work = new ReactWork();
  39068. callback = callback === undefined ? null : callback;
  39069. {
  39070. warnOnInvalidCallback(callback, 'render');
  39071. }
  39072. if (callback !== null) {
  39073. work.then(callback);
  39074. }
  39075. updateContainer(children, root, null, work._onCommit);
  39076. return work;
  39077. };
  39078. ReactRoot.prototype.unmount = function (callback) {
  39079. var root = this._internalRoot;
  39080. var work = new ReactWork();
  39081. callback = callback === undefined ? null : callback;
  39082. {
  39083. warnOnInvalidCallback(callback, 'render');
  39084. }
  39085. if (callback !== null) {
  39086. work.then(callback);
  39087. }
  39088. updateContainer(null, root, null, work._onCommit);
  39089. return work;
  39090. };
  39091. ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {
  39092. var root = this._internalRoot;
  39093. var work = new ReactWork();
  39094. callback = callback === undefined ? null : callback;
  39095. {
  39096. warnOnInvalidCallback(callback, 'render');
  39097. }
  39098. if (callback !== null) {
  39099. work.then(callback);
  39100. }
  39101. updateContainer(children, root, parentComponent, work._onCommit);
  39102. return work;
  39103. };
  39104. ReactRoot.prototype.createBatch = function () {
  39105. var batch = new ReactBatch(this);
  39106. var expirationTime = batch._expirationTime;
  39107. var internalRoot = this._internalRoot;
  39108. var firstBatch = internalRoot.firstBatch;
  39109. if (firstBatch === null) {
  39110. internalRoot.firstBatch = batch;
  39111. batch._next = null;
  39112. } else {
  39113. // Insert sorted by expiration time then insertion order
  39114. var insertAfter = null;
  39115. var insertBefore = firstBatch;
  39116. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  39117. insertAfter = insertBefore;
  39118. insertBefore = insertBefore._next;
  39119. }
  39120. batch._next = insertBefore;
  39121. if (insertAfter !== null) {
  39122. insertAfter._next = batch;
  39123. }
  39124. }
  39125. return batch;
  39126. };
  39127. /**
  39128. * True if the supplied DOM node is a valid node element.
  39129. *
  39130. * @param {?DOMElement} node The candidate DOM node.
  39131. * @return {boolean} True if the DOM is a valid DOM node.
  39132. * @internal
  39133. */
  39134. function isValidContainer(node) {
  39135. 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 '));
  39136. }
  39137. function getReactRootElementInContainer(container) {
  39138. if (!container) {
  39139. return null;
  39140. }
  39141. if (container.nodeType === DOCUMENT_NODE) {
  39142. return container.documentElement;
  39143. } else {
  39144. return container.firstChild;
  39145. }
  39146. }
  39147. function shouldHydrateDueToLegacyHeuristic(container) {
  39148. var rootElement = getReactRootElementInContainer(container);
  39149. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  39150. }
  39151. setBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);
  39152. var warnedAboutHydrateAPI = false;
  39153. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  39154. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  39155. // First clear any existing content.
  39156. if (!shouldHydrate) {
  39157. var warned = false;
  39158. var rootSibling = void 0;
  39159. while (rootSibling = container.lastChild) {
  39160. {
  39161. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  39162. warned = true;
  39163. warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
  39164. }
  39165. }
  39166. container.removeChild(rootSibling);
  39167. }
  39168. }
  39169. {
  39170. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  39171. warnedAboutHydrateAPI = true;
  39172. lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
  39173. }
  39174. }
  39175. // Legacy roots are not async by default.
  39176. var isConcurrent = false;
  39177. return new ReactRoot(container, isConcurrent, shouldHydrate);
  39178. }
  39179. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  39180. // TODO: Ensure all entry points contain this check
  39181. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  39182. {
  39183. topLevelUpdateWarnings(container);
  39184. }
  39185. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  39186. // member of intersection type." Whyyyyyy.
  39187. var root = container._reactRootContainer;
  39188. if (!root) {
  39189. // Initial mount
  39190. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  39191. if (typeof callback === 'function') {
  39192. var originalCallback = callback;
  39193. callback = function () {
  39194. var instance = getPublicRootInstance(root._internalRoot);
  39195. originalCallback.call(instance);
  39196. };
  39197. }
  39198. // Initial mount should not be batched.
  39199. unbatchedUpdates(function () {
  39200. if (parentComponent != null) {
  39201. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  39202. } else {
  39203. root.render(children, callback);
  39204. }
  39205. });
  39206. } else {
  39207. if (typeof callback === 'function') {
  39208. var _originalCallback = callback;
  39209. callback = function () {
  39210. var instance = getPublicRootInstance(root._internalRoot);
  39211. _originalCallback.call(instance);
  39212. };
  39213. }
  39214. // Update
  39215. if (parentComponent != null) {
  39216. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  39217. } else {
  39218. root.render(children, callback);
  39219. }
  39220. }
  39221. return getPublicRootInstance(root._internalRoot);
  39222. }
  39223. function createPortal(children, container) {
  39224. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  39225. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  39226. // TODO: pass ReactDOM portal implementation as third argument
  39227. return createPortal$1(children, container, null, key);
  39228. }
  39229. var ReactDOM = {
  39230. createPortal: createPortal,
  39231. findDOMNode: function (componentOrElement) {
  39232. {
  39233. var owner = ReactCurrentOwner.current;
  39234. if (owner !== null && owner.stateNode !== null) {
  39235. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  39236. !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
  39237. owner.stateNode._warnedAboutRefsInRender = true;
  39238. }
  39239. }
  39240. if (componentOrElement == null) {
  39241. return null;
  39242. }
  39243. if (componentOrElement.nodeType === ELEMENT_NODE) {
  39244. return componentOrElement;
  39245. }
  39246. {
  39247. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  39248. }
  39249. return findHostInstance(componentOrElement);
  39250. },
  39251. hydrate: function (element, container, callback) {
  39252. // TODO: throw or warn if we couldn't hydrate?
  39253. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  39254. },
  39255. render: function (element, container, callback) {
  39256. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  39257. },
  39258. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  39259. !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
  39260. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  39261. },
  39262. unmountComponentAtNode: function (container) {
  39263. !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;
  39264. if (container._reactRootContainer) {
  39265. {
  39266. var rootEl = getReactRootElementInContainer(container);
  39267. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  39268. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  39269. }
  39270. // Unmount should not be batched.
  39271. unbatchedUpdates(function () {
  39272. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  39273. container._reactRootContainer = null;
  39274. });
  39275. });
  39276. // If you call unmountComponentAtNode twice in quick succession, you'll
  39277. // get `true` twice. That's probably fine?
  39278. return true;
  39279. } else {
  39280. {
  39281. var _rootEl = getReactRootElementInContainer(container);
  39282. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  39283. // Check if the container itself is a React root node.
  39284. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  39285. !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
  39286. }
  39287. return false;
  39288. }
  39289. },
  39290. // Temporary alias since we already shipped React 16 RC with it.
  39291. // TODO: remove in React 17.
  39292. unstable_createPortal: function () {
  39293. if (!didWarnAboutUnstableCreatePortal) {
  39294. didWarnAboutUnstableCreatePortal = true;
  39295. lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
  39296. }
  39297. return createPortal.apply(undefined, arguments);
  39298. },
  39299. unstable_batchedUpdates: batchedUpdates$1,
  39300. unstable_interactiveUpdates: interactiveUpdates$1,
  39301. flushSync: flushSync,
  39302. unstable_flushControlled: flushControlled,
  39303. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  39304. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  39305. // and ReactTestUtils.js. This is an array for better minification.
  39306. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]
  39307. }
  39308. };
  39309. function createRoot(container, options) {
  39310. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  39311. !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0;
  39312. var hydrate = options != null && options.hydrate === true;
  39313. return new ReactRoot(container, true, hydrate);
  39314. }
  39315. if (enableStableConcurrentModeAPIs) {
  39316. ReactDOM.createRoot = createRoot;
  39317. } else {
  39318. ReactDOM.unstable_createRoot = createRoot;
  39319. }
  39320. var foundDevTools = injectIntoDevTools({
  39321. findFiberByHostInstance: getClosestInstanceFromNode,
  39322. bundleType: 1,
  39323. version: ReactVersion,
  39324. rendererPackageName: 'react-dom'
  39325. });
  39326. {
  39327. if (!foundDevTools && canUseDOM && window.top === window.self) {
  39328. // If we're in Chrome or Firefox, provide a download link if not installed.
  39329. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  39330. var protocol = window.location.protocol;
  39331. // Don't warn in exotic cases like chrome-extension://.
  39332. if (/^(https?|file):$/.test(protocol)) {
  39333. 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');
  39334. }
  39335. }
  39336. }
  39337. }
  39338. var ReactDOM$2 = Object.freeze({
  39339. default: ReactDOM
  39340. });
  39341. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  39342. // TODO: decide on the top-level export form.
  39343. // This is hacky but makes it work with both Rollup and Jest.
  39344. var reactDom = ReactDOM$3.default || ReactDOM$3;
  39345. module.exports = reactDom;
  39346. })();
  39347. }
  39348. /***/ }),
  39349. /***/ "../../node_modules/react-dom/index.js":
  39350. /*!***********************************************************!*\
  39351. !*** D:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  39352. \***********************************************************/
  39353. /*! no static exports found */
  39354. /***/ (function(module, exports, __webpack_require__) {
  39355. "use strict";
  39356. function checkDCE() {
  39357. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  39358. if (
  39359. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  39360. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  39361. ) {
  39362. return;
  39363. }
  39364. if (true) {
  39365. // This branch is unreachable because this function is only called
  39366. // in production, but the condition is true only in development.
  39367. // Therefore if the branch is still here, dead code elimination wasn't
  39368. // properly applied.
  39369. // Don't change the message. React DevTools relies on it. Also make sure
  39370. // this message doesn't occur elsewhere in this function, or it will cause
  39371. // a false positive.
  39372. throw new Error('^_^');
  39373. }
  39374. try {
  39375. // Verify that the code above has been dead code eliminated (DCE'd).
  39376. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  39377. } catch (err) {
  39378. // DevTools shouldn't crash React, no matter what.
  39379. // We should still report in case we break this code.
  39380. console.error(err);
  39381. }
  39382. }
  39383. if (false) {} else {
  39384. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  39385. }
  39386. /***/ }),
  39387. /***/ "../../node_modules/react/cjs/react.development.js":
  39388. /*!***********************************************************************!*\
  39389. !*** D:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  39390. \***********************************************************************/
  39391. /*! no static exports found */
  39392. /***/ (function(module, exports, __webpack_require__) {
  39393. "use strict";
  39394. /** @license React v16.6.1
  39395. * react.development.js
  39396. *
  39397. * Copyright (c) Facebook, Inc. and its affiliates.
  39398. *
  39399. * This source code is licensed under the MIT license found in the
  39400. * LICENSE file in the root directory of this source tree.
  39401. */
  39402. if (true) {
  39403. (function() {
  39404. 'use strict';
  39405. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  39406. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  39407. // TODO: this is special because it gets imported during build.
  39408. var ReactVersion = '16.6.3';
  39409. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  39410. // nor polyfill, then a plain number is used for performance.
  39411. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  39412. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  39413. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  39414. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  39415. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  39416. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  39417. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  39418. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  39419. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  39420. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  39421. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  39422. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  39423. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  39424. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  39425. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  39426. function getIteratorFn(maybeIterable) {
  39427. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  39428. return null;
  39429. }
  39430. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  39431. if (typeof maybeIterator === 'function') {
  39432. return maybeIterator;
  39433. }
  39434. return null;
  39435. }
  39436. var enableHooks = false;
  39437. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  39438. // In some cases, StrictMode should also double-render lifecycles.
  39439. // This can be confusing for tests though,
  39440. // And it can be bad for performance in production.
  39441. // This feature flag can be used to control the behavior:
  39442. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  39443. // replay the begin phase of a failed component inside invokeGuardedCallback.
  39444. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  39445. // Gather advanced timing metrics for Profiler subtrees.
  39446. // Trace which interactions trigger each commit.
  39447. // Only used in www builds.
  39448. // Only used in www builds.
  39449. // React Fire: prevent the value and checked attributes from syncing
  39450. // with their related DOM properties
  39451. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  39452. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  39453. var enableStableConcurrentModeAPIs = false;
  39454. /**
  39455. * Use invariant() to assert state which your program assumes to be true.
  39456. *
  39457. * Provide sprintf-style format (only %s is supported) and arguments
  39458. * to provide information about what broke and what you were
  39459. * expecting.
  39460. *
  39461. * The invariant message will be stripped in production, but the invariant
  39462. * will remain to ensure logic does not differ in production.
  39463. */
  39464. var validateFormat = function () {};
  39465. {
  39466. validateFormat = function (format) {
  39467. if (format === undefined) {
  39468. throw new Error('invariant requires an error message argument');
  39469. }
  39470. };
  39471. }
  39472. function invariant(condition, format, a, b, c, d, e, f) {
  39473. validateFormat(format);
  39474. if (!condition) {
  39475. var error = void 0;
  39476. if (format === undefined) {
  39477. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  39478. } else {
  39479. var args = [a, b, c, d, e, f];
  39480. var argIndex = 0;
  39481. error = new Error(format.replace(/%s/g, function () {
  39482. return args[argIndex++];
  39483. }));
  39484. error.name = 'Invariant Violation';
  39485. }
  39486. error.framesToPop = 1; // we don't care about invariant's own frame
  39487. throw error;
  39488. }
  39489. }
  39490. // Relying on the `invariant()` implementation lets us
  39491. // preserve the format and params in the www builds.
  39492. /**
  39493. * Forked from fbjs/warning:
  39494. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  39495. *
  39496. * Only change is we use console.warn instead of console.error,
  39497. * and do nothing when 'console' is not supported.
  39498. * This really simplifies the code.
  39499. * ---
  39500. * Similar to invariant but only logs a warning if the condition is not met.
  39501. * This can be used to log issues in development environments in critical
  39502. * paths. Removing the logging code for production environments will keep the
  39503. * same logic and follow the same code paths.
  39504. */
  39505. var lowPriorityWarning = function () {};
  39506. {
  39507. var printWarning = function (format) {
  39508. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  39509. args[_key - 1] = arguments[_key];
  39510. }
  39511. var argIndex = 0;
  39512. var message = 'Warning: ' + format.replace(/%s/g, function () {
  39513. return args[argIndex++];
  39514. });
  39515. if (typeof console !== 'undefined') {
  39516. console.warn(message);
  39517. }
  39518. try {
  39519. // --- Welcome to debugging React ---
  39520. // This error was thrown as a convenience so that you can use this stack
  39521. // to find the callsite that caused this warning to fire.
  39522. throw new Error(message);
  39523. } catch (x) {}
  39524. };
  39525. lowPriorityWarning = function (condition, format) {
  39526. if (format === undefined) {
  39527. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  39528. }
  39529. if (!condition) {
  39530. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  39531. args[_key2 - 2] = arguments[_key2];
  39532. }
  39533. printWarning.apply(undefined, [format].concat(args));
  39534. }
  39535. };
  39536. }
  39537. var lowPriorityWarning$1 = lowPriorityWarning;
  39538. /**
  39539. * Similar to invariant but only logs a warning if the condition is not met.
  39540. * This can be used to log issues in development environments in critical
  39541. * paths. Removing the logging code for production environments will keep the
  39542. * same logic and follow the same code paths.
  39543. */
  39544. var warningWithoutStack = function () {};
  39545. {
  39546. warningWithoutStack = function (condition, format) {
  39547. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  39548. args[_key - 2] = arguments[_key];
  39549. }
  39550. if (format === undefined) {
  39551. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  39552. }
  39553. if (args.length > 8) {
  39554. // Check before the condition to catch violations early.
  39555. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  39556. }
  39557. if (condition) {
  39558. return;
  39559. }
  39560. if (typeof console !== 'undefined') {
  39561. var argsWithFormat = args.map(function (item) {
  39562. return '' + item;
  39563. });
  39564. argsWithFormat.unshift('Warning: ' + format);
  39565. // We intentionally don't use spread (or .apply) directly because it
  39566. // breaks IE9: https://github.com/facebook/react/issues/13610
  39567. Function.prototype.apply.call(console.error, console, argsWithFormat);
  39568. }
  39569. try {
  39570. // --- Welcome to debugging React ---
  39571. // This error was thrown as a convenience so that you can use this stack
  39572. // to find the callsite that caused this warning to fire.
  39573. var argIndex = 0;
  39574. var message = 'Warning: ' + format.replace(/%s/g, function () {
  39575. return args[argIndex++];
  39576. });
  39577. throw new Error(message);
  39578. } catch (x) {}
  39579. };
  39580. }
  39581. var warningWithoutStack$1 = warningWithoutStack;
  39582. var didWarnStateUpdateForUnmountedComponent = {};
  39583. function warnNoop(publicInstance, callerName) {
  39584. {
  39585. var _constructor = publicInstance.constructor;
  39586. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  39587. var warningKey = componentName + '.' + callerName;
  39588. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  39589. return;
  39590. }
  39591. warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
  39592. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  39593. }
  39594. }
  39595. /**
  39596. * This is the abstract API for an update queue.
  39597. */
  39598. var ReactNoopUpdateQueue = {
  39599. /**
  39600. * Checks whether or not this composite component is mounted.
  39601. * @param {ReactClass} publicInstance The instance we want to test.
  39602. * @return {boolean} True if mounted, false otherwise.
  39603. * @protected
  39604. * @final
  39605. */
  39606. isMounted: function (publicInstance) {
  39607. return false;
  39608. },
  39609. /**
  39610. * Forces an update. This should only be invoked when it is known with
  39611. * certainty that we are **not** in a DOM transaction.
  39612. *
  39613. * You may want to call this when you know that some deeper aspect of the
  39614. * component's state has changed but `setState` was not called.
  39615. *
  39616. * This will not invoke `shouldComponentUpdate`, but it will invoke
  39617. * `componentWillUpdate` and `componentDidUpdate`.
  39618. *
  39619. * @param {ReactClass} publicInstance The instance that should rerender.
  39620. * @param {?function} callback Called after component is updated.
  39621. * @param {?string} callerName name of the calling function in the public API.
  39622. * @internal
  39623. */
  39624. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  39625. warnNoop(publicInstance, 'forceUpdate');
  39626. },
  39627. /**
  39628. * Replaces all of the state. Always use this or `setState` to mutate state.
  39629. * You should treat `this.state` as immutable.
  39630. *
  39631. * There is no guarantee that `this.state` will be immediately updated, so
  39632. * accessing `this.state` after calling this method may return the old value.
  39633. *
  39634. * @param {ReactClass} publicInstance The instance that should rerender.
  39635. * @param {object} completeState Next state.
  39636. * @param {?function} callback Called after component is updated.
  39637. * @param {?string} callerName name of the calling function in the public API.
  39638. * @internal
  39639. */
  39640. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  39641. warnNoop(publicInstance, 'replaceState');
  39642. },
  39643. /**
  39644. * Sets a subset of the state. This only exists because _pendingState is
  39645. * internal. This provides a merging strategy that is not available to deep
  39646. * properties which is confusing. TODO: Expose pendingState or don't use it
  39647. * during the merge.
  39648. *
  39649. * @param {ReactClass} publicInstance The instance that should rerender.
  39650. * @param {object} partialState Next partial state to be merged with state.
  39651. * @param {?function} callback Called after component is updated.
  39652. * @param {?string} Name of the calling function in the public API.
  39653. * @internal
  39654. */
  39655. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  39656. warnNoop(publicInstance, 'setState');
  39657. }
  39658. };
  39659. var emptyObject = {};
  39660. {
  39661. Object.freeze(emptyObject);
  39662. }
  39663. /**
  39664. * Base class helpers for the updating state of a component.
  39665. */
  39666. function Component(props, context, updater) {
  39667. this.props = props;
  39668. this.context = context;
  39669. // If a component has string refs, we will assign a different object later.
  39670. this.refs = emptyObject;
  39671. // We initialize the default updater but the real one gets injected by the
  39672. // renderer.
  39673. this.updater = updater || ReactNoopUpdateQueue;
  39674. }
  39675. Component.prototype.isReactComponent = {};
  39676. /**
  39677. * Sets a subset of the state. Always use this to mutate
  39678. * state. You should treat `this.state` as immutable.
  39679. *
  39680. * There is no guarantee that `this.state` will be immediately updated, so
  39681. * accessing `this.state` after calling this method may return the old value.
  39682. *
  39683. * There is no guarantee that calls to `setState` will run synchronously,
  39684. * as they may eventually be batched together. You can provide an optional
  39685. * callback that will be executed when the call to setState is actually
  39686. * completed.
  39687. *
  39688. * When a function is provided to setState, it will be called at some point in
  39689. * the future (not synchronously). It will be called with the up to date
  39690. * component arguments (state, props, context). These values can be different
  39691. * from this.* because your function may be called after receiveProps but before
  39692. * shouldComponentUpdate, and this new state, props, and context will not yet be
  39693. * assigned to this.
  39694. *
  39695. * @param {object|function} partialState Next partial state or function to
  39696. * produce next partial state to be merged with current state.
  39697. * @param {?function} callback Called after state is updated.
  39698. * @final
  39699. * @protected
  39700. */
  39701. Component.prototype.setState = function (partialState, callback) {
  39702. !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
  39703. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  39704. };
  39705. /**
  39706. * Forces an update. This should only be invoked when it is known with
  39707. * certainty that we are **not** in a DOM transaction.
  39708. *
  39709. * You may want to call this when you know that some deeper aspect of the
  39710. * component's state has changed but `setState` was not called.
  39711. *
  39712. * This will not invoke `shouldComponentUpdate`, but it will invoke
  39713. * `componentWillUpdate` and `componentDidUpdate`.
  39714. *
  39715. * @param {?function} callback Called after update is complete.
  39716. * @final
  39717. * @protected
  39718. */
  39719. Component.prototype.forceUpdate = function (callback) {
  39720. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  39721. };
  39722. /**
  39723. * Deprecated APIs. These APIs used to exist on classic React classes but since
  39724. * we would like to deprecate them, we're not going to move them over to this
  39725. * modern base class. Instead, we define a getter that warns if it's accessed.
  39726. */
  39727. {
  39728. var deprecatedAPIs = {
  39729. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  39730. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  39731. };
  39732. var defineDeprecationWarning = function (methodName, info) {
  39733. Object.defineProperty(Component.prototype, methodName, {
  39734. get: function () {
  39735. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  39736. return undefined;
  39737. }
  39738. });
  39739. };
  39740. for (var fnName in deprecatedAPIs) {
  39741. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  39742. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  39743. }
  39744. }
  39745. }
  39746. function ComponentDummy() {}
  39747. ComponentDummy.prototype = Component.prototype;
  39748. /**
  39749. * Convenience component with default shallow equality check for sCU.
  39750. */
  39751. function PureComponent(props, context, updater) {
  39752. this.props = props;
  39753. this.context = context;
  39754. // If a component has string refs, we will assign a different object later.
  39755. this.refs = emptyObject;
  39756. this.updater = updater || ReactNoopUpdateQueue;
  39757. }
  39758. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  39759. pureComponentPrototype.constructor = PureComponent;
  39760. // Avoid an extra prototype jump for these methods.
  39761. _assign(pureComponentPrototype, Component.prototype);
  39762. pureComponentPrototype.isPureReactComponent = true;
  39763. // an immutable object with a single mutable value
  39764. function createRef() {
  39765. var refObject = {
  39766. current: null
  39767. };
  39768. {
  39769. Object.seal(refObject);
  39770. }
  39771. return refObject;
  39772. }
  39773. /**
  39774. * Keeps track of the current owner.
  39775. *
  39776. * The current owner is the component who should own any components that are
  39777. * currently being constructed.
  39778. */
  39779. var ReactCurrentOwner = {
  39780. /**
  39781. * @internal
  39782. * @type {ReactComponent}
  39783. */
  39784. current: null,
  39785. currentDispatcher: null
  39786. };
  39787. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  39788. var describeComponentFrame = function (name, source, ownerName) {
  39789. var sourceInfo = '';
  39790. if (source) {
  39791. var path = source.fileName;
  39792. var fileName = path.replace(BEFORE_SLASH_RE, '');
  39793. {
  39794. // In DEV, include code for a common special case:
  39795. // prefer "folder/index.js" instead of just "index.js".
  39796. if (/^index\./.test(fileName)) {
  39797. var match = path.match(BEFORE_SLASH_RE);
  39798. if (match) {
  39799. var pathBeforeSlash = match[1];
  39800. if (pathBeforeSlash) {
  39801. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  39802. fileName = folderName + '/' + fileName;
  39803. }
  39804. }
  39805. }
  39806. }
  39807. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  39808. } else if (ownerName) {
  39809. sourceInfo = ' (created by ' + ownerName + ')';
  39810. }
  39811. return '\n in ' + (name || 'Unknown') + sourceInfo;
  39812. };
  39813. var Resolved = 1;
  39814. function refineResolvedLazyComponent(lazyComponent) {
  39815. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  39816. }
  39817. function getWrappedName(outerType, innerType, wrapperName) {
  39818. var functionName = innerType.displayName || innerType.name || '';
  39819. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  39820. }
  39821. function getComponentName(type) {
  39822. if (type == null) {
  39823. // Host root, text node or just invalid type.
  39824. return null;
  39825. }
  39826. {
  39827. if (typeof type.tag === 'number') {
  39828. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  39829. }
  39830. }
  39831. if (typeof type === 'function') {
  39832. return type.displayName || type.name || null;
  39833. }
  39834. if (typeof type === 'string') {
  39835. return type;
  39836. }
  39837. switch (type) {
  39838. case REACT_CONCURRENT_MODE_TYPE:
  39839. return 'ConcurrentMode';
  39840. case REACT_FRAGMENT_TYPE:
  39841. return 'Fragment';
  39842. case REACT_PORTAL_TYPE:
  39843. return 'Portal';
  39844. case REACT_PROFILER_TYPE:
  39845. return 'Profiler';
  39846. case REACT_STRICT_MODE_TYPE:
  39847. return 'StrictMode';
  39848. case REACT_SUSPENSE_TYPE:
  39849. return 'Suspense';
  39850. }
  39851. if (typeof type === 'object') {
  39852. switch (type.$$typeof) {
  39853. case REACT_CONTEXT_TYPE:
  39854. return 'Context.Consumer';
  39855. case REACT_PROVIDER_TYPE:
  39856. return 'Context.Provider';
  39857. case REACT_FORWARD_REF_TYPE:
  39858. return getWrappedName(type, type.render, 'ForwardRef');
  39859. case REACT_MEMO_TYPE:
  39860. return getComponentName(type.type);
  39861. case REACT_LAZY_TYPE:
  39862. {
  39863. var thenable = type;
  39864. var resolvedThenable = refineResolvedLazyComponent(thenable);
  39865. if (resolvedThenable) {
  39866. return getComponentName(resolvedThenable);
  39867. }
  39868. }
  39869. }
  39870. }
  39871. return null;
  39872. }
  39873. var ReactDebugCurrentFrame = {};
  39874. var currentlyValidatingElement = null;
  39875. function setCurrentlyValidatingElement(element) {
  39876. {
  39877. currentlyValidatingElement = element;
  39878. }
  39879. }
  39880. {
  39881. // Stack implementation injected by the current renderer.
  39882. ReactDebugCurrentFrame.getCurrentStack = null;
  39883. ReactDebugCurrentFrame.getStackAddendum = function () {
  39884. var stack = '';
  39885. // Add an extra top frame while an element is being validated
  39886. if (currentlyValidatingElement) {
  39887. var name = getComponentName(currentlyValidatingElement.type);
  39888. var owner = currentlyValidatingElement._owner;
  39889. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  39890. }
  39891. // Delegate to the injected renderer-specific implementation
  39892. var impl = ReactDebugCurrentFrame.getCurrentStack;
  39893. if (impl) {
  39894. stack += impl() || '';
  39895. }
  39896. return stack;
  39897. };
  39898. }
  39899. var ReactSharedInternals = {
  39900. ReactCurrentOwner: ReactCurrentOwner,
  39901. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  39902. assign: _assign
  39903. };
  39904. {
  39905. _assign(ReactSharedInternals, {
  39906. // These should not be included in production.
  39907. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  39908. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  39909. // TODO: remove in React 17.0.
  39910. ReactComponentTreeHook: {}
  39911. });
  39912. }
  39913. /**
  39914. * Similar to invariant but only logs a warning if the condition is not met.
  39915. * This can be used to log issues in development environments in critical
  39916. * paths. Removing the logging code for production environments will keep the
  39917. * same logic and follow the same code paths.
  39918. */
  39919. var warning = warningWithoutStack$1;
  39920. {
  39921. warning = function (condition, format) {
  39922. if (condition) {
  39923. return;
  39924. }
  39925. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  39926. var stack = ReactDebugCurrentFrame.getStackAddendum();
  39927. // eslint-disable-next-line react-internal/warning-and-invariant-args
  39928. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  39929. args[_key - 2] = arguments[_key];
  39930. }
  39931. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  39932. };
  39933. }
  39934. var warning$1 = warning;
  39935. var hasOwnProperty = Object.prototype.hasOwnProperty;
  39936. var RESERVED_PROPS = {
  39937. key: true,
  39938. ref: true,
  39939. __self: true,
  39940. __source: true
  39941. };
  39942. var specialPropKeyWarningShown = void 0;
  39943. var specialPropRefWarningShown = void 0;
  39944. function hasValidRef(config) {
  39945. {
  39946. if (hasOwnProperty.call(config, 'ref')) {
  39947. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  39948. if (getter && getter.isReactWarning) {
  39949. return false;
  39950. }
  39951. }
  39952. }
  39953. return config.ref !== undefined;
  39954. }
  39955. function hasValidKey(config) {
  39956. {
  39957. if (hasOwnProperty.call(config, 'key')) {
  39958. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  39959. if (getter && getter.isReactWarning) {
  39960. return false;
  39961. }
  39962. }
  39963. }
  39964. return config.key !== undefined;
  39965. }
  39966. function defineKeyPropWarningGetter(props, displayName) {
  39967. var warnAboutAccessingKey = function () {
  39968. if (!specialPropKeyWarningShown) {
  39969. specialPropKeyWarningShown = true;
  39970. warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  39971. }
  39972. };
  39973. warnAboutAccessingKey.isReactWarning = true;
  39974. Object.defineProperty(props, 'key', {
  39975. get: warnAboutAccessingKey,
  39976. configurable: true
  39977. });
  39978. }
  39979. function defineRefPropWarningGetter(props, displayName) {
  39980. var warnAboutAccessingRef = function () {
  39981. if (!specialPropRefWarningShown) {
  39982. specialPropRefWarningShown = true;
  39983. warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  39984. }
  39985. };
  39986. warnAboutAccessingRef.isReactWarning = true;
  39987. Object.defineProperty(props, 'ref', {
  39988. get: warnAboutAccessingRef,
  39989. configurable: true
  39990. });
  39991. }
  39992. /**
  39993. * Factory method to create a new React element. This no longer adheres to
  39994. * the class pattern, so do not use new to call it. Also, no instanceof check
  39995. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  39996. * if something is a React Element.
  39997. *
  39998. * @param {*} type
  39999. * @param {*} key
  40000. * @param {string|object} ref
  40001. * @param {*} self A *temporary* helper to detect places where `this` is
  40002. * different from the `owner` when React.createElement is called, so that we
  40003. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  40004. * functions, and as long as `this` and owner are the same, there will be no
  40005. * change in behavior.
  40006. * @param {*} source An annotation object (added by a transpiler or otherwise)
  40007. * indicating filename, line number, and/or other information.
  40008. * @param {*} owner
  40009. * @param {*} props
  40010. * @internal
  40011. */
  40012. var ReactElement = function (type, key, ref, self, source, owner, props) {
  40013. var element = {
  40014. // This tag allows us to uniquely identify this as a React Element
  40015. $$typeof: REACT_ELEMENT_TYPE,
  40016. // Built-in properties that belong on the element
  40017. type: type,
  40018. key: key,
  40019. ref: ref,
  40020. props: props,
  40021. // Record the component responsible for creating this element.
  40022. _owner: owner
  40023. };
  40024. {
  40025. // The validation flag is currently mutative. We put it on
  40026. // an external backing store so that we can freeze the whole object.
  40027. // This can be replaced with a WeakMap once they are implemented in
  40028. // commonly used development environments.
  40029. element._store = {};
  40030. // To make comparing ReactElements easier for testing purposes, we make
  40031. // the validation flag non-enumerable (where possible, which should
  40032. // include every environment we run tests in), so the test framework
  40033. // ignores it.
  40034. Object.defineProperty(element._store, 'validated', {
  40035. configurable: false,
  40036. enumerable: false,
  40037. writable: true,
  40038. value: false
  40039. });
  40040. // self and source are DEV only properties.
  40041. Object.defineProperty(element, '_self', {
  40042. configurable: false,
  40043. enumerable: false,
  40044. writable: false,
  40045. value: self
  40046. });
  40047. // Two elements created in two different places should be considered
  40048. // equal for testing purposes and therefore we hide it from enumeration.
  40049. Object.defineProperty(element, '_source', {
  40050. configurable: false,
  40051. enumerable: false,
  40052. writable: false,
  40053. value: source
  40054. });
  40055. if (Object.freeze) {
  40056. Object.freeze(element.props);
  40057. Object.freeze(element);
  40058. }
  40059. }
  40060. return element;
  40061. };
  40062. /**
  40063. * Create and return a new ReactElement of the given type.
  40064. * See https://reactjs.org/docs/react-api.html#createelement
  40065. */
  40066. function createElement(type, config, children) {
  40067. var propName = void 0;
  40068. // Reserved names are extracted
  40069. var props = {};
  40070. var key = null;
  40071. var ref = null;
  40072. var self = null;
  40073. var source = null;
  40074. if (config != null) {
  40075. if (hasValidRef(config)) {
  40076. ref = config.ref;
  40077. }
  40078. if (hasValidKey(config)) {
  40079. key = '' + config.key;
  40080. }
  40081. self = config.__self === undefined ? null : config.__self;
  40082. source = config.__source === undefined ? null : config.__source;
  40083. // Remaining properties are added to a new props object
  40084. for (propName in config) {
  40085. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40086. props[propName] = config[propName];
  40087. }
  40088. }
  40089. }
  40090. // Children can be more than one argument, and those are transferred onto
  40091. // the newly allocated props object.
  40092. var childrenLength = arguments.length - 2;
  40093. if (childrenLength === 1) {
  40094. props.children = children;
  40095. } else if (childrenLength > 1) {
  40096. var childArray = Array(childrenLength);
  40097. for (var i = 0; i < childrenLength; i++) {
  40098. childArray[i] = arguments[i + 2];
  40099. }
  40100. {
  40101. if (Object.freeze) {
  40102. Object.freeze(childArray);
  40103. }
  40104. }
  40105. props.children = childArray;
  40106. }
  40107. // Resolve default props
  40108. if (type && type.defaultProps) {
  40109. var defaultProps = type.defaultProps;
  40110. for (propName in defaultProps) {
  40111. if (props[propName] === undefined) {
  40112. props[propName] = defaultProps[propName];
  40113. }
  40114. }
  40115. }
  40116. {
  40117. if (key || ref) {
  40118. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  40119. if (key) {
  40120. defineKeyPropWarningGetter(props, displayName);
  40121. }
  40122. if (ref) {
  40123. defineRefPropWarningGetter(props, displayName);
  40124. }
  40125. }
  40126. }
  40127. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  40128. }
  40129. /**
  40130. * Return a function that produces ReactElements of a given type.
  40131. * See https://reactjs.org/docs/react-api.html#createfactory
  40132. */
  40133. function cloneAndReplaceKey(oldElement, newKey) {
  40134. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  40135. return newElement;
  40136. }
  40137. /**
  40138. * Clone and return a new ReactElement using element as the starting point.
  40139. * See https://reactjs.org/docs/react-api.html#cloneelement
  40140. */
  40141. function cloneElement(element, config, children) {
  40142. !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
  40143. var propName = void 0;
  40144. // Original props are copied
  40145. var props = _assign({}, element.props);
  40146. // Reserved names are extracted
  40147. var key = element.key;
  40148. var ref = element.ref;
  40149. // Self is preserved since the owner is preserved.
  40150. var self = element._self;
  40151. // Source is preserved since cloneElement is unlikely to be targeted by a
  40152. // transpiler, and the original source is probably a better indicator of the
  40153. // true owner.
  40154. var source = element._source;
  40155. // Owner will be preserved, unless ref is overridden
  40156. var owner = element._owner;
  40157. if (config != null) {
  40158. if (hasValidRef(config)) {
  40159. // Silently steal the ref from the parent.
  40160. ref = config.ref;
  40161. owner = ReactCurrentOwner.current;
  40162. }
  40163. if (hasValidKey(config)) {
  40164. key = '' + config.key;
  40165. }
  40166. // Remaining properties override existing props
  40167. var defaultProps = void 0;
  40168. if (element.type && element.type.defaultProps) {
  40169. defaultProps = element.type.defaultProps;
  40170. }
  40171. for (propName in config) {
  40172. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40173. if (config[propName] === undefined && defaultProps !== undefined) {
  40174. // Resolve default props
  40175. props[propName] = defaultProps[propName];
  40176. } else {
  40177. props[propName] = config[propName];
  40178. }
  40179. }
  40180. }
  40181. }
  40182. // Children can be more than one argument, and those are transferred onto
  40183. // the newly allocated props object.
  40184. var childrenLength = arguments.length - 2;
  40185. if (childrenLength === 1) {
  40186. props.children = children;
  40187. } else if (childrenLength > 1) {
  40188. var childArray = Array(childrenLength);
  40189. for (var i = 0; i < childrenLength; i++) {
  40190. childArray[i] = arguments[i + 2];
  40191. }
  40192. props.children = childArray;
  40193. }
  40194. return ReactElement(element.type, key, ref, self, source, owner, props);
  40195. }
  40196. /**
  40197. * Verifies the object is a ReactElement.
  40198. * See https://reactjs.org/docs/react-api.html#isvalidelement
  40199. * @param {?object} object
  40200. * @return {boolean} True if `object` is a ReactElement.
  40201. * @final
  40202. */
  40203. function isValidElement(object) {
  40204. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  40205. }
  40206. var SEPARATOR = '.';
  40207. var SUBSEPARATOR = ':';
  40208. /**
  40209. * Escape and wrap key so it is safe to use as a reactid
  40210. *
  40211. * @param {string} key to be escaped.
  40212. * @return {string} the escaped key.
  40213. */
  40214. function escape(key) {
  40215. var escapeRegex = /[=:]/g;
  40216. var escaperLookup = {
  40217. '=': '=0',
  40218. ':': '=2'
  40219. };
  40220. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  40221. return escaperLookup[match];
  40222. });
  40223. return '$' + escapedString;
  40224. }
  40225. /**
  40226. * TODO: Test that a single child and an array with one item have the same key
  40227. * pattern.
  40228. */
  40229. var didWarnAboutMaps = false;
  40230. var userProvidedKeyEscapeRegex = /\/+/g;
  40231. function escapeUserProvidedKey(text) {
  40232. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  40233. }
  40234. var POOL_SIZE = 10;
  40235. var traverseContextPool = [];
  40236. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  40237. if (traverseContextPool.length) {
  40238. var traverseContext = traverseContextPool.pop();
  40239. traverseContext.result = mapResult;
  40240. traverseContext.keyPrefix = keyPrefix;
  40241. traverseContext.func = mapFunction;
  40242. traverseContext.context = mapContext;
  40243. traverseContext.count = 0;
  40244. return traverseContext;
  40245. } else {
  40246. return {
  40247. result: mapResult,
  40248. keyPrefix: keyPrefix,
  40249. func: mapFunction,
  40250. context: mapContext,
  40251. count: 0
  40252. };
  40253. }
  40254. }
  40255. function releaseTraverseContext(traverseContext) {
  40256. traverseContext.result = null;
  40257. traverseContext.keyPrefix = null;
  40258. traverseContext.func = null;
  40259. traverseContext.context = null;
  40260. traverseContext.count = 0;
  40261. if (traverseContextPool.length < POOL_SIZE) {
  40262. traverseContextPool.push(traverseContext);
  40263. }
  40264. }
  40265. /**
  40266. * @param {?*} children Children tree container.
  40267. * @param {!string} nameSoFar Name of the key path so far.
  40268. * @param {!function} callback Callback to invoke with each child found.
  40269. * @param {?*} traverseContext Used to pass information throughout the traversal
  40270. * process.
  40271. * @return {!number} The number of children in this subtree.
  40272. */
  40273. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  40274. var type = typeof children;
  40275. if (type === 'undefined' || type === 'boolean') {
  40276. // All of the above are perceived as null.
  40277. children = null;
  40278. }
  40279. var invokeCallback = false;
  40280. if (children === null) {
  40281. invokeCallback = true;
  40282. } else {
  40283. switch (type) {
  40284. case 'string':
  40285. case 'number':
  40286. invokeCallback = true;
  40287. break;
  40288. case 'object':
  40289. switch (children.$$typeof) {
  40290. case REACT_ELEMENT_TYPE:
  40291. case REACT_PORTAL_TYPE:
  40292. invokeCallback = true;
  40293. }
  40294. }
  40295. }
  40296. if (invokeCallback) {
  40297. callback(traverseContext, children,
  40298. // If it's the only child, treat the name as if it was wrapped in an array
  40299. // so that it's consistent if the number of children grows.
  40300. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  40301. return 1;
  40302. }
  40303. var child = void 0;
  40304. var nextName = void 0;
  40305. var subtreeCount = 0; // Count of children found in the current subtree.
  40306. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  40307. if (Array.isArray(children)) {
  40308. for (var i = 0; i < children.length; i++) {
  40309. child = children[i];
  40310. nextName = nextNamePrefix + getComponentKey(child, i);
  40311. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  40312. }
  40313. } else {
  40314. var iteratorFn = getIteratorFn(children);
  40315. if (typeof iteratorFn === 'function') {
  40316. {
  40317. // Warn about using Maps as children
  40318. if (iteratorFn === children.entries) {
  40319. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  40320. didWarnAboutMaps = true;
  40321. }
  40322. }
  40323. var iterator = iteratorFn.call(children);
  40324. var step = void 0;
  40325. var ii = 0;
  40326. while (!(step = iterator.next()).done) {
  40327. child = step.value;
  40328. nextName = nextNamePrefix + getComponentKey(child, ii++);
  40329. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  40330. }
  40331. } else if (type === 'object') {
  40332. var addendum = '';
  40333. {
  40334. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  40335. }
  40336. var childrenString = '' + children;
  40337. invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
  40338. }
  40339. }
  40340. return subtreeCount;
  40341. }
  40342. /**
  40343. * Traverses children that are typically specified as `props.children`, but
  40344. * might also be specified through attributes:
  40345. *
  40346. * - `traverseAllChildren(this.props.children, ...)`
  40347. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  40348. *
  40349. * The `traverseContext` is an optional argument that is passed through the
  40350. * entire traversal. It can be used to store accumulations or anything else that
  40351. * the callback might find relevant.
  40352. *
  40353. * @param {?*} children Children tree object.
  40354. * @param {!function} callback To invoke upon traversing each child.
  40355. * @param {?*} traverseContext Context for traversal.
  40356. * @return {!number} The number of children in this subtree.
  40357. */
  40358. function traverseAllChildren(children, callback, traverseContext) {
  40359. if (children == null) {
  40360. return 0;
  40361. }
  40362. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  40363. }
  40364. /**
  40365. * Generate a key string that identifies a component within a set.
  40366. *
  40367. * @param {*} component A component that could contain a manual key.
  40368. * @param {number} index Index that is used if a manual key is not provided.
  40369. * @return {string}
  40370. */
  40371. function getComponentKey(component, index) {
  40372. // Do some typechecking here since we call this blindly. We want to ensure
  40373. // that we don't block potential future ES APIs.
  40374. if (typeof component === 'object' && component !== null && component.key != null) {
  40375. // Explicit key
  40376. return escape(component.key);
  40377. }
  40378. // Implicit key determined by the index in the set
  40379. return index.toString(36);
  40380. }
  40381. function forEachSingleChild(bookKeeping, child, name) {
  40382. var func = bookKeeping.func,
  40383. context = bookKeeping.context;
  40384. func.call(context, child, bookKeeping.count++);
  40385. }
  40386. /**
  40387. * Iterates through children that are typically specified as `props.children`.
  40388. *
  40389. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  40390. *
  40391. * The provided forEachFunc(child, index) will be called for each
  40392. * leaf child.
  40393. *
  40394. * @param {?*} children Children tree container.
  40395. * @param {function(*, int)} forEachFunc
  40396. * @param {*} forEachContext Context for forEachContext.
  40397. */
  40398. function forEachChildren(children, forEachFunc, forEachContext) {
  40399. if (children == null) {
  40400. return children;
  40401. }
  40402. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  40403. traverseAllChildren(children, forEachSingleChild, traverseContext);
  40404. releaseTraverseContext(traverseContext);
  40405. }
  40406. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  40407. var result = bookKeeping.result,
  40408. keyPrefix = bookKeeping.keyPrefix,
  40409. func = bookKeeping.func,
  40410. context = bookKeeping.context;
  40411. var mappedChild = func.call(context, child, bookKeeping.count++);
  40412. if (Array.isArray(mappedChild)) {
  40413. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  40414. return c;
  40415. });
  40416. } else if (mappedChild != null) {
  40417. if (isValidElement(mappedChild)) {
  40418. mappedChild = cloneAndReplaceKey(mappedChild,
  40419. // Keep both the (mapped) and old keys if they differ, just as
  40420. // traverseAllChildren used to do for objects as children
  40421. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  40422. }
  40423. result.push(mappedChild);
  40424. }
  40425. }
  40426. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  40427. var escapedPrefix = '';
  40428. if (prefix != null) {
  40429. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  40430. }
  40431. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  40432. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  40433. releaseTraverseContext(traverseContext);
  40434. }
  40435. /**
  40436. * Maps children that are typically specified as `props.children`.
  40437. *
  40438. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  40439. *
  40440. * The provided mapFunction(child, key, index) will be called for each
  40441. * leaf child.
  40442. *
  40443. * @param {?*} children Children tree container.
  40444. * @param {function(*, int)} func The map function.
  40445. * @param {*} context Context for mapFunction.
  40446. * @return {object} Object containing the ordered map of results.
  40447. */
  40448. function mapChildren(children, func, context) {
  40449. if (children == null) {
  40450. return children;
  40451. }
  40452. var result = [];
  40453. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  40454. return result;
  40455. }
  40456. /**
  40457. * Count the number of children that are typically specified as
  40458. * `props.children`.
  40459. *
  40460. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  40461. *
  40462. * @param {?*} children Children tree container.
  40463. * @return {number} The number of children.
  40464. */
  40465. function countChildren(children) {
  40466. return traverseAllChildren(children, function () {
  40467. return null;
  40468. }, null);
  40469. }
  40470. /**
  40471. * Flatten a children object (typically specified as `props.children`) and
  40472. * return an array with appropriately re-keyed children.
  40473. *
  40474. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  40475. */
  40476. function toArray(children) {
  40477. var result = [];
  40478. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  40479. return child;
  40480. });
  40481. return result;
  40482. }
  40483. /**
  40484. * Returns the first child in a collection of children and verifies that there
  40485. * is only one child in the collection.
  40486. *
  40487. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  40488. *
  40489. * The current implementation of this function assumes that a single child gets
  40490. * passed without a wrapper, but the purpose of this helper function is to
  40491. * abstract away the particular structure of children.
  40492. *
  40493. * @param {?object} children Child collection structure.
  40494. * @return {ReactElement} The first and only `ReactElement` contained in the
  40495. * structure.
  40496. */
  40497. function onlyChild(children) {
  40498. !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
  40499. return children;
  40500. }
  40501. function createContext(defaultValue, calculateChangedBits) {
  40502. if (calculateChangedBits === undefined) {
  40503. calculateChangedBits = null;
  40504. } else {
  40505. {
  40506. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  40507. }
  40508. }
  40509. var context = {
  40510. $$typeof: REACT_CONTEXT_TYPE,
  40511. _calculateChangedBits: calculateChangedBits,
  40512. // As a workaround to support multiple concurrent renderers, we categorize
  40513. // some renderers as primary and others as secondary. We only expect
  40514. // there to be two concurrent renderers at most: React Native (primary) and
  40515. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  40516. // Secondary renderers store their context values on separate fields.
  40517. _currentValue: defaultValue,
  40518. _currentValue2: defaultValue,
  40519. // Used to track how many concurrent renderers this context currently
  40520. // supports within in a single renderer. Such as parallel server rendering.
  40521. _threadCount: 0,
  40522. // These are circular
  40523. Provider: null,
  40524. Consumer: null
  40525. };
  40526. context.Provider = {
  40527. $$typeof: REACT_PROVIDER_TYPE,
  40528. _context: context
  40529. };
  40530. var hasWarnedAboutUsingNestedContextConsumers = false;
  40531. var hasWarnedAboutUsingConsumerProvider = false;
  40532. {
  40533. // A separate object, but proxies back to the original context object for
  40534. // backwards compatibility. It has a different $$typeof, so we can properly
  40535. // warn for the incorrect usage of Context as a Consumer.
  40536. var Consumer = {
  40537. $$typeof: REACT_CONTEXT_TYPE,
  40538. _context: context,
  40539. _calculateChangedBits: context._calculateChangedBits
  40540. };
  40541. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  40542. Object.defineProperties(Consumer, {
  40543. Provider: {
  40544. get: function () {
  40545. if (!hasWarnedAboutUsingConsumerProvider) {
  40546. hasWarnedAboutUsingConsumerProvider = true;
  40547. warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  40548. }
  40549. return context.Provider;
  40550. },
  40551. set: function (_Provider) {
  40552. context.Provider = _Provider;
  40553. }
  40554. },
  40555. _currentValue: {
  40556. get: function () {
  40557. return context._currentValue;
  40558. },
  40559. set: function (_currentValue) {
  40560. context._currentValue = _currentValue;
  40561. }
  40562. },
  40563. _currentValue2: {
  40564. get: function () {
  40565. return context._currentValue2;
  40566. },
  40567. set: function (_currentValue2) {
  40568. context._currentValue2 = _currentValue2;
  40569. }
  40570. },
  40571. _threadCount: {
  40572. get: function () {
  40573. return context._threadCount;
  40574. },
  40575. set: function (_threadCount) {
  40576. context._threadCount = _threadCount;
  40577. }
  40578. },
  40579. Consumer: {
  40580. get: function () {
  40581. if (!hasWarnedAboutUsingNestedContextConsumers) {
  40582. hasWarnedAboutUsingNestedContextConsumers = true;
  40583. warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  40584. }
  40585. return context.Consumer;
  40586. }
  40587. }
  40588. });
  40589. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  40590. context.Consumer = Consumer;
  40591. }
  40592. {
  40593. context._currentRenderer = null;
  40594. context._currentRenderer2 = null;
  40595. }
  40596. return context;
  40597. }
  40598. function lazy(ctor) {
  40599. return {
  40600. $$typeof: REACT_LAZY_TYPE,
  40601. _ctor: ctor,
  40602. // React uses these fields to store the result.
  40603. _status: -1,
  40604. _result: null
  40605. };
  40606. }
  40607. function forwardRef(render) {
  40608. {
  40609. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  40610. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  40611. } else if (typeof render !== 'function') {
  40612. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  40613. } else {
  40614. !(
  40615. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  40616. render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
  40617. }
  40618. if (render != null) {
  40619. !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
  40620. }
  40621. }
  40622. return {
  40623. $$typeof: REACT_FORWARD_REF_TYPE,
  40624. render: render
  40625. };
  40626. }
  40627. function isValidElementType(type) {
  40628. return typeof type === 'string' || typeof type === 'function' ||
  40629. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  40630. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_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);
  40631. }
  40632. function memo(type, compare) {
  40633. {
  40634. if (!isValidElementType(type)) {
  40635. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  40636. }
  40637. }
  40638. return {
  40639. $$typeof: REACT_MEMO_TYPE,
  40640. type: type,
  40641. compare: compare === undefined ? null : compare
  40642. };
  40643. }
  40644. function resolveDispatcher() {
  40645. var dispatcher = ReactCurrentOwner.currentDispatcher;
  40646. !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  40647. return dispatcher;
  40648. }
  40649. function useContext(Context, observedBits) {
  40650. var dispatcher = resolveDispatcher();
  40651. {
  40652. // TODO: add a more generic warning for invalid values.
  40653. if (Context._context !== undefined) {
  40654. var realContext = Context._context;
  40655. // Don't deduplicate because this legitimately causes bugs
  40656. // and nobody should be using this in existing code.
  40657. if (realContext.Consumer === Context) {
  40658. warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
  40659. } else if (realContext.Provider === Context) {
  40660. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  40661. }
  40662. }
  40663. }
  40664. return dispatcher.useContext(Context, observedBits);
  40665. }
  40666. function useState(initialState) {
  40667. var dispatcher = resolveDispatcher();
  40668. return dispatcher.useState(initialState);
  40669. }
  40670. function useReducer(reducer, initialState, initialAction) {
  40671. var dispatcher = resolveDispatcher();
  40672. return dispatcher.useReducer(reducer, initialState, initialAction);
  40673. }
  40674. function useRef(initialValue) {
  40675. var dispatcher = resolveDispatcher();
  40676. return dispatcher.useRef(initialValue);
  40677. }
  40678. function useEffect(create, inputs) {
  40679. var dispatcher = resolveDispatcher();
  40680. return dispatcher.useEffect(create, inputs);
  40681. }
  40682. function useMutationEffect(create, inputs) {
  40683. var dispatcher = resolveDispatcher();
  40684. return dispatcher.useMutationEffect(create, inputs);
  40685. }
  40686. function useLayoutEffect(create, inputs) {
  40687. var dispatcher = resolveDispatcher();
  40688. return dispatcher.useLayoutEffect(create, inputs);
  40689. }
  40690. function useCallback(callback, inputs) {
  40691. var dispatcher = resolveDispatcher();
  40692. return dispatcher.useCallback(callback, inputs);
  40693. }
  40694. function useMemo(create, inputs) {
  40695. var dispatcher = resolveDispatcher();
  40696. return dispatcher.useMemo(create, inputs);
  40697. }
  40698. function useImperativeMethods(ref, create, inputs) {
  40699. var dispatcher = resolveDispatcher();
  40700. return dispatcher.useImperativeMethods(ref, create, inputs);
  40701. }
  40702. /**
  40703. * ReactElementValidator provides a wrapper around a element factory
  40704. * which validates the props passed to the element. This is intended to be
  40705. * used only in DEV and could be replaced by a static type checker for languages
  40706. * that support it.
  40707. */
  40708. var propTypesMisspellWarningShown = void 0;
  40709. {
  40710. propTypesMisspellWarningShown = false;
  40711. }
  40712. function getDeclarationErrorAddendum() {
  40713. if (ReactCurrentOwner.current) {
  40714. var name = getComponentName(ReactCurrentOwner.current.type);
  40715. if (name) {
  40716. return '\n\nCheck the render method of `' + name + '`.';
  40717. }
  40718. }
  40719. return '';
  40720. }
  40721. function getSourceInfoErrorAddendum(elementProps) {
  40722. if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  40723. var source = elementProps.__source;
  40724. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  40725. var lineNumber = source.lineNumber;
  40726. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  40727. }
  40728. return '';
  40729. }
  40730. /**
  40731. * Warn if there's no key explicitly set on dynamic arrays of children or
  40732. * object keys are not valid. This allows us to keep track of children between
  40733. * updates.
  40734. */
  40735. var ownerHasKeyUseWarning = {};
  40736. function getCurrentComponentErrorInfo(parentType) {
  40737. var info = getDeclarationErrorAddendum();
  40738. if (!info) {
  40739. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  40740. if (parentName) {
  40741. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  40742. }
  40743. }
  40744. return info;
  40745. }
  40746. /**
  40747. * Warn if the element doesn't have an explicit key assigned to it.
  40748. * This element is in an array. The array could grow and shrink or be
  40749. * reordered. All children that haven't already been validated are required to
  40750. * have a "key" property assigned to it. Error statuses are cached so a warning
  40751. * will only be shown once.
  40752. *
  40753. * @internal
  40754. * @param {ReactElement} element Element that requires a key.
  40755. * @param {*} parentType element's parent's type.
  40756. */
  40757. function validateExplicitKey(element, parentType) {
  40758. if (!element._store || element._store.validated || element.key != null) {
  40759. return;
  40760. }
  40761. element._store.validated = true;
  40762. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  40763. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  40764. return;
  40765. }
  40766. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  40767. // Usually the current owner is the offender, but if it accepts children as a
  40768. // property, it may be the creator of the child that's responsible for
  40769. // assigning it a key.
  40770. var childOwner = '';
  40771. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  40772. // Give the component that originally created this child.
  40773. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  40774. }
  40775. setCurrentlyValidatingElement(element);
  40776. {
  40777. warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  40778. }
  40779. setCurrentlyValidatingElement(null);
  40780. }
  40781. /**
  40782. * Ensure that every element either is passed in a static location, in an
  40783. * array with an explicit keys property defined, or in an object literal
  40784. * with valid key property.
  40785. *
  40786. * @internal
  40787. * @param {ReactNode} node Statically passed child of any type.
  40788. * @param {*} parentType node's parent's type.
  40789. */
  40790. function validateChildKeys(node, parentType) {
  40791. if (typeof node !== 'object') {
  40792. return;
  40793. }
  40794. if (Array.isArray(node)) {
  40795. for (var i = 0; i < node.length; i++) {
  40796. var child = node[i];
  40797. if (isValidElement(child)) {
  40798. validateExplicitKey(child, parentType);
  40799. }
  40800. }
  40801. } else if (isValidElement(node)) {
  40802. // This element was passed in a valid location.
  40803. if (node._store) {
  40804. node._store.validated = true;
  40805. }
  40806. } else if (node) {
  40807. var iteratorFn = getIteratorFn(node);
  40808. if (typeof iteratorFn === 'function') {
  40809. // Entry iterators used to provide implicit keys,
  40810. // but now we print a separate warning for them later.
  40811. if (iteratorFn !== node.entries) {
  40812. var iterator = iteratorFn.call(node);
  40813. var step = void 0;
  40814. while (!(step = iterator.next()).done) {
  40815. if (isValidElement(step.value)) {
  40816. validateExplicitKey(step.value, parentType);
  40817. }
  40818. }
  40819. }
  40820. }
  40821. }
  40822. }
  40823. /**
  40824. * Given an element, validate that its props follow the propTypes definition,
  40825. * provided by the type.
  40826. *
  40827. * @param {ReactElement} element
  40828. */
  40829. function validatePropTypes(element) {
  40830. var type = element.type;
  40831. var name = void 0,
  40832. propTypes = void 0;
  40833. if (typeof type === 'function') {
  40834. // Class or function component
  40835. name = type.displayName || type.name;
  40836. propTypes = type.propTypes;
  40837. } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
  40838. // ForwardRef
  40839. var functionName = type.render.displayName || type.render.name || '';
  40840. name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
  40841. propTypes = type.propTypes;
  40842. } else {
  40843. return;
  40844. }
  40845. if (propTypes) {
  40846. setCurrentlyValidatingElement(element);
  40847. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  40848. setCurrentlyValidatingElement(null);
  40849. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  40850. propTypesMisspellWarningShown = true;
  40851. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  40852. }
  40853. if (typeof type.getDefaultProps === 'function') {
  40854. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  40855. }
  40856. }
  40857. /**
  40858. * Given a fragment, validate that it can only be provided with fragment props
  40859. * @param {ReactElement} fragment
  40860. */
  40861. function validateFragmentProps(fragment) {
  40862. setCurrentlyValidatingElement(fragment);
  40863. var keys = Object.keys(fragment.props);
  40864. for (var i = 0; i < keys.length; i++) {
  40865. var key = keys[i];
  40866. if (key !== 'children' && key !== 'key') {
  40867. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  40868. break;
  40869. }
  40870. }
  40871. if (fragment.ref !== null) {
  40872. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  40873. }
  40874. setCurrentlyValidatingElement(null);
  40875. }
  40876. function createElementWithValidation(type, props, children) {
  40877. var validType = isValidElementType(type);
  40878. // We warn in this case but don't throw. We expect the element creation to
  40879. // succeed and there will likely be errors in render.
  40880. if (!validType) {
  40881. var info = '';
  40882. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  40883. 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.";
  40884. }
  40885. var sourceInfo = getSourceInfoErrorAddendum(props);
  40886. if (sourceInfo) {
  40887. info += sourceInfo;
  40888. } else {
  40889. info += getDeclarationErrorAddendum();
  40890. }
  40891. var typeString = void 0;
  40892. if (type === null) {
  40893. typeString = 'null';
  40894. } else if (Array.isArray(type)) {
  40895. typeString = 'array';
  40896. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  40897. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  40898. info = ' Did you accidentally export a JSX literal instead of a component?';
  40899. } else {
  40900. typeString = typeof type;
  40901. }
  40902. warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  40903. }
  40904. var element = createElement.apply(this, arguments);
  40905. // The result can be nullish if a mock or a custom function is used.
  40906. // TODO: Drop this when these are no longer allowed as the type argument.
  40907. if (element == null) {
  40908. return element;
  40909. }
  40910. // Skip key warning if the type isn't valid since our key validation logic
  40911. // doesn't expect a non-string/function type and can throw confusing errors.
  40912. // We don't want exception behavior to differ between dev and prod.
  40913. // (Rendering will throw with a helpful message and as soon as the type is
  40914. // fixed, the key warnings will appear.)
  40915. if (validType) {
  40916. for (var i = 2; i < arguments.length; i++) {
  40917. validateChildKeys(arguments[i], type);
  40918. }
  40919. }
  40920. if (type === REACT_FRAGMENT_TYPE) {
  40921. validateFragmentProps(element);
  40922. } else {
  40923. validatePropTypes(element);
  40924. }
  40925. return element;
  40926. }
  40927. function createFactoryWithValidation(type) {
  40928. var validatedFactory = createElementWithValidation.bind(null, type);
  40929. validatedFactory.type = type;
  40930. // Legacy hook: remove it
  40931. {
  40932. Object.defineProperty(validatedFactory, 'type', {
  40933. enumerable: false,
  40934. get: function () {
  40935. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  40936. Object.defineProperty(this, 'type', {
  40937. value: type
  40938. });
  40939. return type;
  40940. }
  40941. });
  40942. }
  40943. return validatedFactory;
  40944. }
  40945. function cloneElementWithValidation(element, props, children) {
  40946. var newElement = cloneElement.apply(this, arguments);
  40947. for (var i = 2; i < arguments.length; i++) {
  40948. validateChildKeys(arguments[i], newElement.type);
  40949. }
  40950. validatePropTypes(newElement);
  40951. return newElement;
  40952. }
  40953. var React = {
  40954. Children: {
  40955. map: mapChildren,
  40956. forEach: forEachChildren,
  40957. count: countChildren,
  40958. toArray: toArray,
  40959. only: onlyChild
  40960. },
  40961. createRef: createRef,
  40962. Component: Component,
  40963. PureComponent: PureComponent,
  40964. createContext: createContext,
  40965. forwardRef: forwardRef,
  40966. lazy: lazy,
  40967. memo: memo,
  40968. Fragment: REACT_FRAGMENT_TYPE,
  40969. StrictMode: REACT_STRICT_MODE_TYPE,
  40970. Suspense: REACT_SUSPENSE_TYPE,
  40971. createElement: createElementWithValidation,
  40972. cloneElement: cloneElementWithValidation,
  40973. createFactory: createFactoryWithValidation,
  40974. isValidElement: isValidElement,
  40975. version: ReactVersion,
  40976. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  40977. };
  40978. if (enableStableConcurrentModeAPIs) {
  40979. React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  40980. React.Profiler = REACT_PROFILER_TYPE;
  40981. } else {
  40982. React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  40983. React.unstable_Profiler = REACT_PROFILER_TYPE;
  40984. }
  40985. if (enableHooks) {
  40986. React.useCallback = useCallback;
  40987. React.useContext = useContext;
  40988. React.useEffect = useEffect;
  40989. React.useImperativeMethods = useImperativeMethods;
  40990. React.useLayoutEffect = useLayoutEffect;
  40991. React.useMemo = useMemo;
  40992. React.useMutationEffect = useMutationEffect;
  40993. React.useReducer = useReducer;
  40994. React.useRef = useRef;
  40995. React.useState = useState;
  40996. }
  40997. var React$2 = Object.freeze({
  40998. default: React
  40999. });
  41000. var React$3 = ( React$2 && React ) || React$2;
  41001. // TODO: decide on the top-level export form.
  41002. // This is hacky but makes it work with both Rollup and Jest.
  41003. var react = React$3.default || React$3;
  41004. module.exports = react;
  41005. })();
  41006. }
  41007. /***/ }),
  41008. /***/ "../../node_modules/react/index.js":
  41009. /*!*******************************************************!*\
  41010. !*** D:/Repos/Babylon.js/node_modules/react/index.js ***!
  41011. \*******************************************************/
  41012. /*! no static exports found */
  41013. /***/ (function(module, exports, __webpack_require__) {
  41014. "use strict";
  41015. if (false) {} else {
  41016. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  41017. }
  41018. /***/ }),
  41019. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  41020. /*!***************************************************************************************!*\
  41021. !*** D:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  41022. \***************************************************************************************/
  41023. /*! no static exports found */
  41024. /***/ (function(module, exports, __webpack_require__) {
  41025. "use strict";
  41026. /** @license React v0.11.3
  41027. * scheduler-tracing.development.js
  41028. *
  41029. * Copyright (c) Facebook, Inc. and its affiliates.
  41030. *
  41031. * This source code is licensed under the MIT license found in the
  41032. * LICENSE file in the root directory of this source tree.
  41033. */
  41034. if (true) {
  41035. (function() {
  41036. 'use strict';
  41037. Object.defineProperty(exports, '__esModule', { value: true });
  41038. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  41039. // In some cases, StrictMode should also double-render lifecycles.
  41040. // This can be confusing for tests though,
  41041. // And it can be bad for performance in production.
  41042. // This feature flag can be used to control the behavior:
  41043. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  41044. // replay the begin phase of a failed component inside invokeGuardedCallback.
  41045. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  41046. // Gather advanced timing metrics for Profiler subtrees.
  41047. // Trace which interactions trigger each commit.
  41048. var enableSchedulerTracing = true;
  41049. // Only used in www builds.
  41050. // Only used in www builds.
  41051. // React Fire: prevent the value and checked attributes from syncing
  41052. // with their related DOM properties
  41053. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  41054. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  41055. var DEFAULT_THREAD_ID = 0;
  41056. // Counters used to generate unique IDs.
  41057. var interactionIDCounter = 0;
  41058. var threadIDCounter = 0;
  41059. // Set of currently traced interactions.
  41060. // Interactions "stack"–
  41061. // Meaning that newly traced interactions are appended to the previously active set.
  41062. // When an interaction goes out of scope, the previous set (if any) is restored.
  41063. exports.__interactionsRef = null;
  41064. // Listener(s) to notify when interactions begin and end.
  41065. exports.__subscriberRef = null;
  41066. if (enableSchedulerTracing) {
  41067. exports.__interactionsRef = {
  41068. current: new Set()
  41069. };
  41070. exports.__subscriberRef = {
  41071. current: null
  41072. };
  41073. }
  41074. function unstable_clear(callback) {
  41075. if (!enableSchedulerTracing) {
  41076. return callback();
  41077. }
  41078. var prevInteractions = exports.__interactionsRef.current;
  41079. exports.__interactionsRef.current = new Set();
  41080. try {
  41081. return callback();
  41082. } finally {
  41083. exports.__interactionsRef.current = prevInteractions;
  41084. }
  41085. }
  41086. function unstable_getCurrent() {
  41087. if (!enableSchedulerTracing) {
  41088. return null;
  41089. } else {
  41090. return exports.__interactionsRef.current;
  41091. }
  41092. }
  41093. function unstable_getThreadID() {
  41094. return ++threadIDCounter;
  41095. }
  41096. function unstable_trace(name, timestamp, callback) {
  41097. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  41098. if (!enableSchedulerTracing) {
  41099. return callback();
  41100. }
  41101. var interaction = {
  41102. __count: 1,
  41103. id: interactionIDCounter++,
  41104. name: name,
  41105. timestamp: timestamp
  41106. };
  41107. var prevInteractions = exports.__interactionsRef.current;
  41108. // Traced interactions should stack/accumulate.
  41109. // To do that, clone the current interactions.
  41110. // The previous set will be restored upon completion.
  41111. var interactions = new Set(prevInteractions);
  41112. interactions.add(interaction);
  41113. exports.__interactionsRef.current = interactions;
  41114. var subscriber = exports.__subscriberRef.current;
  41115. var returnValue = void 0;
  41116. try {
  41117. if (subscriber !== null) {
  41118. subscriber.onInteractionTraced(interaction);
  41119. }
  41120. } finally {
  41121. try {
  41122. if (subscriber !== null) {
  41123. subscriber.onWorkStarted(interactions, threadID);
  41124. }
  41125. } finally {
  41126. try {
  41127. returnValue = callback();
  41128. } finally {
  41129. exports.__interactionsRef.current = prevInteractions;
  41130. try {
  41131. if (subscriber !== null) {
  41132. subscriber.onWorkStopped(interactions, threadID);
  41133. }
  41134. } finally {
  41135. interaction.__count--;
  41136. // If no async work was scheduled for this interaction,
  41137. // Notify subscribers that it's completed.
  41138. if (subscriber !== null && interaction.__count === 0) {
  41139. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41140. }
  41141. }
  41142. }
  41143. }
  41144. }
  41145. return returnValue;
  41146. }
  41147. function unstable_wrap(callback) {
  41148. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  41149. if (!enableSchedulerTracing) {
  41150. return callback;
  41151. }
  41152. var wrappedInteractions = exports.__interactionsRef.current;
  41153. var subscriber = exports.__subscriberRef.current;
  41154. if (subscriber !== null) {
  41155. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  41156. }
  41157. // Update the pending async work count for the current interactions.
  41158. // Update after calling subscribers in case of error.
  41159. wrappedInteractions.forEach(function (interaction) {
  41160. interaction.__count++;
  41161. });
  41162. var hasRun = false;
  41163. function wrapped() {
  41164. var prevInteractions = exports.__interactionsRef.current;
  41165. exports.__interactionsRef.current = wrappedInteractions;
  41166. subscriber = exports.__subscriberRef.current;
  41167. try {
  41168. var returnValue = void 0;
  41169. try {
  41170. if (subscriber !== null) {
  41171. subscriber.onWorkStarted(wrappedInteractions, threadID);
  41172. }
  41173. } finally {
  41174. try {
  41175. returnValue = callback.apply(undefined, arguments);
  41176. } finally {
  41177. exports.__interactionsRef.current = prevInteractions;
  41178. if (subscriber !== null) {
  41179. subscriber.onWorkStopped(wrappedInteractions, threadID);
  41180. }
  41181. }
  41182. }
  41183. return returnValue;
  41184. } finally {
  41185. if (!hasRun) {
  41186. // We only expect a wrapped function to be executed once,
  41187. // But in the event that it's executed more than once–
  41188. // Only decrement the outstanding interaction counts once.
  41189. hasRun = true;
  41190. // Update pending async counts for all wrapped interactions.
  41191. // If this was the last scheduled async work for any of them,
  41192. // Mark them as completed.
  41193. wrappedInteractions.forEach(function (interaction) {
  41194. interaction.__count--;
  41195. if (subscriber !== null && interaction.__count === 0) {
  41196. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41197. }
  41198. });
  41199. }
  41200. }
  41201. }
  41202. wrapped.cancel = function cancel() {
  41203. subscriber = exports.__subscriberRef.current;
  41204. try {
  41205. if (subscriber !== null) {
  41206. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  41207. }
  41208. } finally {
  41209. // Update pending async counts for all wrapped interactions.
  41210. // If this was the last scheduled async work for any of them,
  41211. // Mark them as completed.
  41212. wrappedInteractions.forEach(function (interaction) {
  41213. interaction.__count--;
  41214. if (subscriber && interaction.__count === 0) {
  41215. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41216. }
  41217. });
  41218. }
  41219. };
  41220. return wrapped;
  41221. }
  41222. var subscribers = null;
  41223. if (enableSchedulerTracing) {
  41224. subscribers = new Set();
  41225. }
  41226. function unstable_subscribe(subscriber) {
  41227. if (enableSchedulerTracing) {
  41228. subscribers.add(subscriber);
  41229. if (subscribers.size === 1) {
  41230. exports.__subscriberRef.current = {
  41231. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  41232. onInteractionTraced: onInteractionTraced,
  41233. onWorkCanceled: onWorkCanceled,
  41234. onWorkScheduled: onWorkScheduled,
  41235. onWorkStarted: onWorkStarted,
  41236. onWorkStopped: onWorkStopped
  41237. };
  41238. }
  41239. }
  41240. }
  41241. function unstable_unsubscribe(subscriber) {
  41242. if (enableSchedulerTracing) {
  41243. subscribers.delete(subscriber);
  41244. if (subscribers.size === 0) {
  41245. exports.__subscriberRef.current = null;
  41246. }
  41247. }
  41248. }
  41249. function onInteractionTraced(interaction) {
  41250. var didCatchError = false;
  41251. var caughtError = null;
  41252. subscribers.forEach(function (subscriber) {
  41253. try {
  41254. subscriber.onInteractionTraced(interaction);
  41255. } catch (error) {
  41256. if (!didCatchError) {
  41257. didCatchError = true;
  41258. caughtError = error;
  41259. }
  41260. }
  41261. });
  41262. if (didCatchError) {
  41263. throw caughtError;
  41264. }
  41265. }
  41266. function onInteractionScheduledWorkCompleted(interaction) {
  41267. var didCatchError = false;
  41268. var caughtError = null;
  41269. subscribers.forEach(function (subscriber) {
  41270. try {
  41271. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41272. } catch (error) {
  41273. if (!didCatchError) {
  41274. didCatchError = true;
  41275. caughtError = error;
  41276. }
  41277. }
  41278. });
  41279. if (didCatchError) {
  41280. throw caughtError;
  41281. }
  41282. }
  41283. function onWorkScheduled(interactions, threadID) {
  41284. var didCatchError = false;
  41285. var caughtError = null;
  41286. subscribers.forEach(function (subscriber) {
  41287. try {
  41288. subscriber.onWorkScheduled(interactions, threadID);
  41289. } catch (error) {
  41290. if (!didCatchError) {
  41291. didCatchError = true;
  41292. caughtError = error;
  41293. }
  41294. }
  41295. });
  41296. if (didCatchError) {
  41297. throw caughtError;
  41298. }
  41299. }
  41300. function onWorkStarted(interactions, threadID) {
  41301. var didCatchError = false;
  41302. var caughtError = null;
  41303. subscribers.forEach(function (subscriber) {
  41304. try {
  41305. subscriber.onWorkStarted(interactions, threadID);
  41306. } catch (error) {
  41307. if (!didCatchError) {
  41308. didCatchError = true;
  41309. caughtError = error;
  41310. }
  41311. }
  41312. });
  41313. if (didCatchError) {
  41314. throw caughtError;
  41315. }
  41316. }
  41317. function onWorkStopped(interactions, threadID) {
  41318. var didCatchError = false;
  41319. var caughtError = null;
  41320. subscribers.forEach(function (subscriber) {
  41321. try {
  41322. subscriber.onWorkStopped(interactions, threadID);
  41323. } catch (error) {
  41324. if (!didCatchError) {
  41325. didCatchError = true;
  41326. caughtError = error;
  41327. }
  41328. }
  41329. });
  41330. if (didCatchError) {
  41331. throw caughtError;
  41332. }
  41333. }
  41334. function onWorkCanceled(interactions, threadID) {
  41335. var didCatchError = false;
  41336. var caughtError = null;
  41337. subscribers.forEach(function (subscriber) {
  41338. try {
  41339. subscriber.onWorkCanceled(interactions, threadID);
  41340. } catch (error) {
  41341. if (!didCatchError) {
  41342. didCatchError = true;
  41343. caughtError = error;
  41344. }
  41345. }
  41346. });
  41347. if (didCatchError) {
  41348. throw caughtError;
  41349. }
  41350. }
  41351. exports.unstable_clear = unstable_clear;
  41352. exports.unstable_getCurrent = unstable_getCurrent;
  41353. exports.unstable_getThreadID = unstable_getThreadID;
  41354. exports.unstable_trace = unstable_trace;
  41355. exports.unstable_wrap = unstable_wrap;
  41356. exports.unstable_subscribe = unstable_subscribe;
  41357. exports.unstable_unsubscribe = unstable_unsubscribe;
  41358. })();
  41359. }
  41360. /***/ }),
  41361. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  41362. /*!*******************************************************************************!*\
  41363. !*** D:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  41364. \*******************************************************************************/
  41365. /*! no static exports found */
  41366. /***/ (function(module, exports, __webpack_require__) {
  41367. "use strict";
  41368. /* WEBPACK VAR INJECTION */(function(global) {/** @license React v0.11.3
  41369. * scheduler.development.js
  41370. *
  41371. * Copyright (c) Facebook, Inc. and its affiliates.
  41372. *
  41373. * This source code is licensed under the MIT license found in the
  41374. * LICENSE file in the root directory of this source tree.
  41375. */
  41376. if (true) {
  41377. (function() {
  41378. 'use strict';
  41379. Object.defineProperty(exports, '__esModule', { value: true });
  41380. /* eslint-disable no-var */
  41381. // TODO: Use symbols?
  41382. var ImmediatePriority = 1;
  41383. var UserBlockingPriority = 2;
  41384. var NormalPriority = 3;
  41385. var LowPriority = 4;
  41386. var IdlePriority = 5;
  41387. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  41388. // Math.pow(2, 30) - 1
  41389. // 0b111111111111111111111111111111
  41390. var maxSigned31BitInt = 1073741823;
  41391. // Times out immediately
  41392. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  41393. // Eventually times out
  41394. var USER_BLOCKING_PRIORITY = 250;
  41395. var NORMAL_PRIORITY_TIMEOUT = 5000;
  41396. var LOW_PRIORITY_TIMEOUT = 10000;
  41397. // Never times out
  41398. var IDLE_PRIORITY = maxSigned31BitInt;
  41399. // Callbacks are stored as a circular, doubly linked list.
  41400. var firstCallbackNode = null;
  41401. var currentDidTimeout = false;
  41402. var currentPriorityLevel = NormalPriority;
  41403. var currentEventStartTime = -1;
  41404. var currentExpirationTime = -1;
  41405. // This is set when a callback is being executed, to prevent re-entrancy.
  41406. var isExecutingCallback = false;
  41407. var isHostCallbackScheduled = false;
  41408. var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
  41409. function ensureHostCallbackIsScheduled() {
  41410. if (isExecutingCallback) {
  41411. // Don't schedule work yet; wait until the next time we yield.
  41412. return;
  41413. }
  41414. // Schedule the host callback using the earliest expiration in the list.
  41415. var expirationTime = firstCallbackNode.expirationTime;
  41416. if (!isHostCallbackScheduled) {
  41417. isHostCallbackScheduled = true;
  41418. } else {
  41419. // Cancel the existing host callback.
  41420. cancelHostCallback();
  41421. }
  41422. requestHostCallback(flushWork, expirationTime);
  41423. }
  41424. function flushFirstCallback() {
  41425. var flushedNode = firstCallbackNode;
  41426. // Remove the node from the list before calling the callback. That way the
  41427. // list is in a consistent state even if the callback throws.
  41428. var next = firstCallbackNode.next;
  41429. if (firstCallbackNode === next) {
  41430. // This is the last callback in the list.
  41431. firstCallbackNode = null;
  41432. next = null;
  41433. } else {
  41434. var lastCallbackNode = firstCallbackNode.previous;
  41435. firstCallbackNode = lastCallbackNode.next = next;
  41436. next.previous = lastCallbackNode;
  41437. }
  41438. flushedNode.next = flushedNode.previous = null;
  41439. // Now it's safe to call the callback.
  41440. var callback = flushedNode.callback;
  41441. var expirationTime = flushedNode.expirationTime;
  41442. var priorityLevel = flushedNode.priorityLevel;
  41443. var previousPriorityLevel = currentPriorityLevel;
  41444. var previousExpirationTime = currentExpirationTime;
  41445. currentPriorityLevel = priorityLevel;
  41446. currentExpirationTime = expirationTime;
  41447. var continuationCallback;
  41448. try {
  41449. continuationCallback = callback();
  41450. } finally {
  41451. currentPriorityLevel = previousPriorityLevel;
  41452. currentExpirationTime = previousExpirationTime;
  41453. }
  41454. // A callback may return a continuation. The continuation should be scheduled
  41455. // with the same priority and expiration as the just-finished callback.
  41456. if (typeof continuationCallback === 'function') {
  41457. var continuationNode = {
  41458. callback: continuationCallback,
  41459. priorityLevel: priorityLevel,
  41460. expirationTime: expirationTime,
  41461. next: null,
  41462. previous: null
  41463. };
  41464. // Insert the new callback into the list, sorted by its expiration. This is
  41465. // almost the same as the code in `scheduleCallback`, except the callback
  41466. // is inserted into the list *before* callbacks of equal expiration instead
  41467. // of after.
  41468. if (firstCallbackNode === null) {
  41469. // This is the first callback in the list.
  41470. firstCallbackNode = continuationNode.next = continuationNode.previous = continuationNode;
  41471. } else {
  41472. var nextAfterContinuation = null;
  41473. var node = firstCallbackNode;
  41474. do {
  41475. if (node.expirationTime >= expirationTime) {
  41476. // This callback expires at or after the continuation. We will insert
  41477. // the continuation *before* this callback.
  41478. nextAfterContinuation = node;
  41479. break;
  41480. }
  41481. node = node.next;
  41482. } while (node !== firstCallbackNode);
  41483. if (nextAfterContinuation === null) {
  41484. // No equal or lower priority callback was found, which means the new
  41485. // callback is the lowest priority callback in the list.
  41486. nextAfterContinuation = firstCallbackNode;
  41487. } else if (nextAfterContinuation === firstCallbackNode) {
  41488. // The new callback is the highest priority callback in the list.
  41489. firstCallbackNode = continuationNode;
  41490. ensureHostCallbackIsScheduled();
  41491. }
  41492. var previous = nextAfterContinuation.previous;
  41493. previous.next = nextAfterContinuation.previous = continuationNode;
  41494. continuationNode.next = nextAfterContinuation;
  41495. continuationNode.previous = previous;
  41496. }
  41497. }
  41498. }
  41499. function flushImmediateWork() {
  41500. if (
  41501. // Confirm we've exited the outer most event handler
  41502. currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {
  41503. isExecutingCallback = true;
  41504. try {
  41505. do {
  41506. flushFirstCallback();
  41507. } while (
  41508. // Keep flushing until there are no more immediate callbacks
  41509. firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority);
  41510. } finally {
  41511. isExecutingCallback = false;
  41512. if (firstCallbackNode !== null) {
  41513. // There's still work remaining. Request another callback.
  41514. ensureHostCallbackIsScheduled();
  41515. } else {
  41516. isHostCallbackScheduled = false;
  41517. }
  41518. }
  41519. }
  41520. }
  41521. function flushWork(didTimeout) {
  41522. isExecutingCallback = true;
  41523. var previousDidTimeout = currentDidTimeout;
  41524. currentDidTimeout = didTimeout;
  41525. try {
  41526. if (didTimeout) {
  41527. // Flush all the expired callbacks without yielding.
  41528. while (firstCallbackNode !== null) {
  41529. // Read the current time. Flush all the callbacks that expire at or
  41530. // earlier than that time. Then read the current time again and repeat.
  41531. // This optimizes for as few performance.now calls as possible.
  41532. var currentTime = exports.unstable_now();
  41533. if (firstCallbackNode.expirationTime <= currentTime) {
  41534. do {
  41535. flushFirstCallback();
  41536. } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime);
  41537. continue;
  41538. }
  41539. break;
  41540. }
  41541. } else {
  41542. // Keep flushing callbacks until we run out of time in the frame.
  41543. if (firstCallbackNode !== null) {
  41544. do {
  41545. flushFirstCallback();
  41546. } while (firstCallbackNode !== null && !shouldYieldToHost());
  41547. }
  41548. }
  41549. } finally {
  41550. isExecutingCallback = false;
  41551. currentDidTimeout = previousDidTimeout;
  41552. if (firstCallbackNode !== null) {
  41553. // There's still work remaining. Request another callback.
  41554. ensureHostCallbackIsScheduled();
  41555. } else {
  41556. isHostCallbackScheduled = false;
  41557. }
  41558. // Before exiting, flush all the immediate work that was scheduled.
  41559. flushImmediateWork();
  41560. }
  41561. }
  41562. function unstable_runWithPriority(priorityLevel, eventHandler) {
  41563. switch (priorityLevel) {
  41564. case ImmediatePriority:
  41565. case UserBlockingPriority:
  41566. case NormalPriority:
  41567. case LowPriority:
  41568. case IdlePriority:
  41569. break;
  41570. default:
  41571. priorityLevel = NormalPriority;
  41572. }
  41573. var previousPriorityLevel = currentPriorityLevel;
  41574. var previousEventStartTime = currentEventStartTime;
  41575. currentPriorityLevel = priorityLevel;
  41576. currentEventStartTime = exports.unstable_now();
  41577. try {
  41578. return eventHandler();
  41579. } finally {
  41580. currentPriorityLevel = previousPriorityLevel;
  41581. currentEventStartTime = previousEventStartTime;
  41582. // Before exiting, flush all the immediate work that was scheduled.
  41583. flushImmediateWork();
  41584. }
  41585. }
  41586. function unstable_wrapCallback(callback) {
  41587. var parentPriorityLevel = currentPriorityLevel;
  41588. return function () {
  41589. // This is a fork of runWithPriority, inlined for performance.
  41590. var previousPriorityLevel = currentPriorityLevel;
  41591. var previousEventStartTime = currentEventStartTime;
  41592. currentPriorityLevel = parentPriorityLevel;
  41593. currentEventStartTime = exports.unstable_now();
  41594. try {
  41595. return callback.apply(this, arguments);
  41596. } finally {
  41597. currentPriorityLevel = previousPriorityLevel;
  41598. currentEventStartTime = previousEventStartTime;
  41599. flushImmediateWork();
  41600. }
  41601. };
  41602. }
  41603. function unstable_scheduleCallback(callback, deprecated_options) {
  41604. var startTime = currentEventStartTime !== -1 ? currentEventStartTime : exports.unstable_now();
  41605. var expirationTime;
  41606. if (typeof deprecated_options === 'object' && deprecated_options !== null && typeof deprecated_options.timeout === 'number') {
  41607. // FIXME: Remove this branch once we lift expiration times out of React.
  41608. expirationTime = startTime + deprecated_options.timeout;
  41609. } else {
  41610. switch (currentPriorityLevel) {
  41611. case ImmediatePriority:
  41612. expirationTime = startTime + IMMEDIATE_PRIORITY_TIMEOUT;
  41613. break;
  41614. case UserBlockingPriority:
  41615. expirationTime = startTime + USER_BLOCKING_PRIORITY;
  41616. break;
  41617. case IdlePriority:
  41618. expirationTime = startTime + IDLE_PRIORITY;
  41619. break;
  41620. case LowPriority:
  41621. expirationTime = startTime + LOW_PRIORITY_TIMEOUT;
  41622. break;
  41623. case NormalPriority:
  41624. default:
  41625. expirationTime = startTime + NORMAL_PRIORITY_TIMEOUT;
  41626. }
  41627. }
  41628. var newNode = {
  41629. callback: callback,
  41630. priorityLevel: currentPriorityLevel,
  41631. expirationTime: expirationTime,
  41632. next: null,
  41633. previous: null
  41634. };
  41635. // Insert the new callback into the list, ordered first by expiration, then
  41636. // by insertion. So the new callback is inserted any other callback with
  41637. // equal expiration.
  41638. if (firstCallbackNode === null) {
  41639. // This is the first callback in the list.
  41640. firstCallbackNode = newNode.next = newNode.previous = newNode;
  41641. ensureHostCallbackIsScheduled();
  41642. } else {
  41643. var next = null;
  41644. var node = firstCallbackNode;
  41645. do {
  41646. if (node.expirationTime > expirationTime) {
  41647. // The new callback expires before this one.
  41648. next = node;
  41649. break;
  41650. }
  41651. node = node.next;
  41652. } while (node !== firstCallbackNode);
  41653. if (next === null) {
  41654. // No callback with a later expiration was found, which means the new
  41655. // callback has the latest expiration in the list.
  41656. next = firstCallbackNode;
  41657. } else if (next === firstCallbackNode) {
  41658. // The new callback has the earliest expiration in the entire list.
  41659. firstCallbackNode = newNode;
  41660. ensureHostCallbackIsScheduled();
  41661. }
  41662. var previous = next.previous;
  41663. previous.next = next.previous = newNode;
  41664. newNode.next = next;
  41665. newNode.previous = previous;
  41666. }
  41667. return newNode;
  41668. }
  41669. function unstable_cancelCallback(callbackNode) {
  41670. var next = callbackNode.next;
  41671. if (next === null) {
  41672. // Already cancelled.
  41673. return;
  41674. }
  41675. if (next === callbackNode) {
  41676. // This is the only scheduled callback. Clear the list.
  41677. firstCallbackNode = null;
  41678. } else {
  41679. // Remove the callback from its position in the list.
  41680. if (callbackNode === firstCallbackNode) {
  41681. firstCallbackNode = next;
  41682. }
  41683. var previous = callbackNode.previous;
  41684. previous.next = next;
  41685. next.previous = previous;
  41686. }
  41687. callbackNode.next = callbackNode.previous = null;
  41688. }
  41689. function unstable_getCurrentPriorityLevel() {
  41690. return currentPriorityLevel;
  41691. }
  41692. function unstable_shouldYield() {
  41693. return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());
  41694. }
  41695. // The remaining code is essentially a polyfill for requestIdleCallback. It
  41696. // works by scheduling a requestAnimationFrame, storing the time for the start
  41697. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  41698. // Within the postMessage handler do as much work as possible until time + frame
  41699. // rate. By separating the idle call into a separate event tick we ensure that
  41700. // layout, paint and other browser work is counted against the available time.
  41701. // The frame rate is dynamically adjusted.
  41702. // We capture a local reference to any global, in case it gets polyfilled after
  41703. // this module is initially evaluated. We want to be using a
  41704. // consistent implementation.
  41705. var localDate = Date;
  41706. // This initialization code may run even on server environments if a component
  41707. // just imports ReactDOM (e.g. for findDOMNode). Some environments might not
  41708. // have setTimeout or clearTimeout. However, we always expect them to be defined
  41709. // on the client. https://github.com/facebook/react/pull/13088
  41710. var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  41711. var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  41712. // We don't expect either of these to necessarily be defined, but we will error
  41713. // later if they are missing on the client.
  41714. var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
  41715. var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;
  41716. // requestAnimationFrame does not run when the tab is in the background. If
  41717. // we're backgrounded we prefer for that work to happen so that the page
  41718. // continues to load in the background. So we also schedule a 'setTimeout' as
  41719. // a fallback.
  41720. // TODO: Need a better heuristic for backgrounded work.
  41721. var ANIMATION_FRAME_TIMEOUT = 100;
  41722. var rAFID;
  41723. var rAFTimeoutID;
  41724. var requestAnimationFrameWithTimeout = function (callback) {
  41725. // schedule rAF and also a setTimeout
  41726. rAFID = localRequestAnimationFrame(function (timestamp) {
  41727. // cancel the setTimeout
  41728. localClearTimeout(rAFTimeoutID);
  41729. callback(timestamp);
  41730. });
  41731. rAFTimeoutID = localSetTimeout(function () {
  41732. // cancel the requestAnimationFrame
  41733. localCancelAnimationFrame(rAFID);
  41734. callback(exports.unstable_now());
  41735. }, ANIMATION_FRAME_TIMEOUT);
  41736. };
  41737. if (hasNativePerformanceNow) {
  41738. var Performance = performance;
  41739. exports.unstable_now = function () {
  41740. return Performance.now();
  41741. };
  41742. } else {
  41743. exports.unstable_now = function () {
  41744. return localDate.now();
  41745. };
  41746. }
  41747. var requestHostCallback;
  41748. var cancelHostCallback;
  41749. var shouldYieldToHost;
  41750. var globalValue = null;
  41751. if (typeof window !== 'undefined') {
  41752. globalValue = window;
  41753. } else if (typeof global !== 'undefined') {
  41754. globalValue = global;
  41755. }
  41756. if (globalValue && globalValue._schedMock) {
  41757. // Dynamic injection, only for testing purposes.
  41758. var globalImpl = globalValue._schedMock;
  41759. requestHostCallback = globalImpl[0];
  41760. cancelHostCallback = globalImpl[1];
  41761. shouldYieldToHost = globalImpl[2];
  41762. exports.unstable_now = globalImpl[3];
  41763. } else if (
  41764. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  41765. // implementation using setTimeout.
  41766. typeof window === 'undefined' ||
  41767. // Check if MessageChannel is supported, too.
  41768. typeof MessageChannel !== 'function') {
  41769. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  41770. // fallback to a naive implementation.
  41771. var _callback = null;
  41772. var _flushCallback = function (didTimeout) {
  41773. if (_callback !== null) {
  41774. try {
  41775. _callback(didTimeout);
  41776. } finally {
  41777. _callback = null;
  41778. }
  41779. }
  41780. };
  41781. requestHostCallback = function (cb, ms) {
  41782. if (_callback !== null) {
  41783. // Protect against re-entrancy.
  41784. setTimeout(requestHostCallback, 0, cb);
  41785. } else {
  41786. _callback = cb;
  41787. setTimeout(_flushCallback, 0, false);
  41788. }
  41789. };
  41790. cancelHostCallback = function () {
  41791. _callback = null;
  41792. };
  41793. shouldYieldToHost = function () {
  41794. return false;
  41795. };
  41796. } else {
  41797. if (typeof console !== 'undefined') {
  41798. // TODO: Remove fb.me link
  41799. if (typeof localRequestAnimationFrame !== 'function') {
  41800. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  41801. }
  41802. if (typeof localCancelAnimationFrame !== 'function') {
  41803. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  41804. }
  41805. }
  41806. var scheduledHostCallback = null;
  41807. var isMessageEventScheduled = false;
  41808. var timeoutTime = -1;
  41809. var isAnimationFrameScheduled = false;
  41810. var isFlushingHostCallback = false;
  41811. var frameDeadline = 0;
  41812. // We start out assuming that we run at 30fps but then the heuristic tracking
  41813. // will adjust this value to a faster fps if we get more frequent animation
  41814. // frames.
  41815. var previousFrameTime = 33;
  41816. var activeFrameTime = 33;
  41817. shouldYieldToHost = function () {
  41818. return frameDeadline <= exports.unstable_now();
  41819. };
  41820. // We use the postMessage trick to defer idle work until after the repaint.
  41821. var channel = new MessageChannel();
  41822. var port = channel.port2;
  41823. channel.port1.onmessage = function (event) {
  41824. isMessageEventScheduled = false;
  41825. var prevScheduledCallback = scheduledHostCallback;
  41826. var prevTimeoutTime = timeoutTime;
  41827. scheduledHostCallback = null;
  41828. timeoutTime = -1;
  41829. var currentTime = exports.unstable_now();
  41830. var didTimeout = false;
  41831. if (frameDeadline - currentTime <= 0) {
  41832. // There's no time left in this idle period. Check if the callback has
  41833. // a timeout and whether it's been exceeded.
  41834. if (prevTimeoutTime !== -1 && prevTimeoutTime <= currentTime) {
  41835. // Exceeded the timeout. Invoke the callback even though there's no
  41836. // time left.
  41837. didTimeout = true;
  41838. } else {
  41839. // No timeout.
  41840. if (!isAnimationFrameScheduled) {
  41841. // Schedule another animation callback so we retry later.
  41842. isAnimationFrameScheduled = true;
  41843. requestAnimationFrameWithTimeout(animationTick);
  41844. }
  41845. // Exit without invoking the callback.
  41846. scheduledHostCallback = prevScheduledCallback;
  41847. timeoutTime = prevTimeoutTime;
  41848. return;
  41849. }
  41850. }
  41851. if (prevScheduledCallback !== null) {
  41852. isFlushingHostCallback = true;
  41853. try {
  41854. prevScheduledCallback(didTimeout);
  41855. } finally {
  41856. isFlushingHostCallback = false;
  41857. }
  41858. }
  41859. };
  41860. var animationTick = function (rafTime) {
  41861. if (scheduledHostCallback !== null) {
  41862. // Eagerly schedule the next animation callback at the beginning of the
  41863. // frame. If the scheduler queue is not empty at the end of the frame, it
  41864. // will continue flushing inside that callback. If the queue *is* empty,
  41865. // then it will exit immediately. Posting the callback at the start of the
  41866. // frame ensures it's fired within the earliest possible frame. If we
  41867. // waited until the end of the frame to post the callback, we risk the
  41868. // browser skipping a frame and not firing the callback until the frame
  41869. // after that.
  41870. requestAnimationFrameWithTimeout(animationTick);
  41871. } else {
  41872. // No pending work. Exit.
  41873. isAnimationFrameScheduled = false;
  41874. return;
  41875. }
  41876. var nextFrameTime = rafTime - frameDeadline + activeFrameTime;
  41877. if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {
  41878. if (nextFrameTime < 8) {
  41879. // Defensive coding. We don't support higher frame rates than 120hz.
  41880. // If the calculated frame time gets lower than 8, it is probably a bug.
  41881. nextFrameTime = 8;
  41882. }
  41883. // If one frame goes long, then the next one can be short to catch up.
  41884. // If two frames are short in a row, then that's an indication that we
  41885. // actually have a higher frame rate than what we're currently optimizing.
  41886. // We adjust our heuristic dynamically accordingly. For example, if we're
  41887. // running on 120hz display or 90hz VR display.
  41888. // Take the max of the two in case one of them was an anomaly due to
  41889. // missed frame deadlines.
  41890. activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;
  41891. } else {
  41892. previousFrameTime = nextFrameTime;
  41893. }
  41894. frameDeadline = rafTime + activeFrameTime;
  41895. if (!isMessageEventScheduled) {
  41896. isMessageEventScheduled = true;
  41897. port.postMessage(undefined);
  41898. }
  41899. };
  41900. requestHostCallback = function (callback, absoluteTimeout) {
  41901. scheduledHostCallback = callback;
  41902. timeoutTime = absoluteTimeout;
  41903. if (isFlushingHostCallback || absoluteTimeout < 0) {
  41904. // Don't wait for the next frame. Continue working ASAP, in a new event.
  41905. port.postMessage(undefined);
  41906. } else if (!isAnimationFrameScheduled) {
  41907. // If rAF didn't already schedule one, we need to schedule a frame.
  41908. // TODO: If this rAF doesn't materialize because the browser throttles, we
  41909. // might want to still have setTimeout trigger rIC as a backup to ensure
  41910. // that we keep performing work.
  41911. isAnimationFrameScheduled = true;
  41912. requestAnimationFrameWithTimeout(animationTick);
  41913. }
  41914. };
  41915. cancelHostCallback = function () {
  41916. scheduledHostCallback = null;
  41917. isMessageEventScheduled = false;
  41918. timeoutTime = -1;
  41919. };
  41920. }
  41921. exports.unstable_ImmediatePriority = ImmediatePriority;
  41922. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  41923. exports.unstable_NormalPriority = NormalPriority;
  41924. exports.unstable_IdlePriority = IdlePriority;
  41925. exports.unstable_LowPriority = LowPriority;
  41926. exports.unstable_runWithPriority = unstable_runWithPriority;
  41927. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  41928. exports.unstable_cancelCallback = unstable_cancelCallback;
  41929. exports.unstable_wrapCallback = unstable_wrapCallback;
  41930. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  41931. exports.unstable_shouldYield = unstable_shouldYield;
  41932. })();
  41933. }
  41934. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  41935. /***/ }),
  41936. /***/ "../../node_modules/scheduler/index.js":
  41937. /*!***********************************************************!*\
  41938. !*** D:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  41939. \***********************************************************/
  41940. /*! no static exports found */
  41941. /***/ (function(module, exports, __webpack_require__) {
  41942. "use strict";
  41943. if (false) {} else {
  41944. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  41945. }
  41946. /***/ }),
  41947. /***/ "../../node_modules/scheduler/tracing.js":
  41948. /*!*************************************************************!*\
  41949. !*** D:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  41950. \*************************************************************/
  41951. /*! no static exports found */
  41952. /***/ (function(module, exports, __webpack_require__) {
  41953. "use strict";
  41954. if (false) {} else {
  41955. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  41956. }
  41957. /***/ }),
  41958. /***/ "../../node_modules/storm-react-diagrams/dist/main.js":
  41959. /*!**************************************************************************!*\
  41960. !*** D:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/main.js ***!
  41961. \**************************************************************************/
  41962. /*! no static exports found */
  41963. /***/ (function(module, exports, __webpack_require__) {
  41964. (function webpackUniversalModuleDefinition(root,factory){if(true)module.exports=factory(__webpack_require__(/*! lodash */ "../../node_modules/lodash/lodash.js"),__webpack_require__(/*! react */ "../../node_modules/react/index.js"));else {}})(window,function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.r=function(exports){Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=45)}([function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(module,exports){var DiagonalMovement={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4};module.exports=DiagonalMovement},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget=function(_super){__extends(BaseWidget,_super);function BaseWidget(name,props){var _this=_super.call(this,props)||this;_this.className=name;return _this}BaseWidget.prototype.bem=function(selector){return(this.props.baseClass||this.className)+selector+" "};BaseWidget.prototype.getClassName=function(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")};BaseWidget.prototype.getProps=function(){return __assign({},this.props.extraProps||{},{className:this.getClassName()})};return BaseWidget}(React.Component);exports.BaseWidget=BaseWidget},function(module,exports){function backtrace(node){var path=[[node.x,node.y]];while(node.parent){node=node.parent;path.push([node.x,node.y])}return path.reverse()}exports.backtrace=backtrace;function biBacktrace(nodeA,nodeB){var pathA=backtrace(nodeA),pathB=backtrace(nodeB);return pathA.concat(pathB.reverse())}exports.biBacktrace=biBacktrace;function pathLength(path){var i,sum=0,a,b,dx,dy;for(i=1;i<path.length;++i){a=path[i-1];b=path[i];dx=a[0]-b[0];dy=a[1]-b[1];sum+=Math.sqrt(dx*dx+dy*dy)}return sum}exports.pathLength=pathLength;function interpolate(x0,y0,x1,y1){var abs=Math.abs,line=[],sx,sy,dx,dy,err,e2;dx=abs(x1-x0);dy=abs(y1-y0);sx=x0<x1?1:-1;sy=y0<y1?1:-1;err=dx-dy;while(true){line.push([x0,y0]);if(x0===x1&&y0===y1){break}e2=2*err;if(e2>-dy){err=err-dy;x0=x0+sx}if(e2<dx){err=err+dx;y0=y0+sy}}return line}exports.interpolate=interpolate;function expandPath(path){var expanded=[],len=path.length,coord0,coord1,interpolated,interpolatedLen,i,j;if(len<2){return expanded}for(i=0;i<len-1;++i){coord0=path[i];coord1=path[i+1];interpolated=interpolate(coord0[0],coord0[1],coord1[0],coord1[1]);interpolatedLen=interpolated.length;for(j=0;j<interpolatedLen-1;++j){expanded.push(interpolated[j])}}expanded.push(path[len-1]);return expanded}exports.expandPath=expandPath;function smoothenPath(grid,path){var len=path.length,x0=path[0][0],y0=path[0][1],x1=path[len-1][0],y1=path[len-1][1],sx,sy,ex,ey,newPath,i,j,coord,line,testCoord,blocked;sx=x0;sy=y0;newPath=[[sx,sy]];for(i=2;i<len;++i){coord=path[i];ex=coord[0];ey=coord[1];line=interpolate(sx,sy,ex,ey);blocked=false;for(j=1;j<line.length;++j){testCoord=line[j];if(!grid.isWalkableAt(testCoord[0],testCoord[1])){blocked=true;break}}if(blocked){lastValidCoord=path[i-1];newPath.push(lastValidCoord);sx=lastValidCoord[0];sy=lastValidCoord[1]}}newPath.push([x1,y1]);return newPath}exports.smoothenPath=smoothenPath;function compressPath(path){if(path.length<3){return path}var compressed=[],sx=path[0][0],sy=path[0][1],px=path[1][0],py=path[1][1],dx=px-sx,dy=py-sy,lx,ly,ldx,ldy,sq,i;sq=Math.sqrt(dx*dx+dy*dy);dx/=sq;dy/=sq;compressed.push([sx,sy]);for(i=2;i<path.length;i++){lx=px;ly=py;ldx=dx;ldy=dy;px=path[i][0];py=path[i][1];dx=px-lx;dy=py-ly;sq=Math.sqrt(dx*dx+dy*dy);dx/=sq;dy/=sq;if(dx!==ldx||dy!==ldy){compressed.push([lx,ly])}}compressed.push([px,py]);return compressed}exports.compressPath=compressPath},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var PointModel=function(_super){__extends(PointModel,_super);function PointModel(link,points){var _this=_super.call(this)||this;_this.x=points.x;_this.y=points.y;_this.parent=link;return _this}PointModel.prototype.getSelectedEntities=function(){if(_super.prototype.isSelected.call(this)&&!this.isConnectedToPort()){return[this]}return[]};PointModel.prototype.isConnectedToPort=function(){return this.parent.getPortForPoint(this)!==null};PointModel.prototype.getLink=function(){return this.getParent()};PointModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.x=ob.x;this.y=ob.y};PointModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{x:this.x,y:this.y})};PointModel.prototype.remove=function(){if(this.parent){this.parent.removePoint(this)}_super.prototype.remove.call(this)};PointModel.prototype.updateLocation=function(points){this.x=points.x;this.y=points.y};PointModel.prototype.getX=function(){return this.x};PointModel.prototype.getY=function(){return this.y};PointModel.prototype.isLocked=function(){return _super.prototype.isLocked.call(this)||this.getParent().isLocked()};return PointModel}(BaseModel_1.BaseModel);exports.PointModel=PointModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var BaseEntity_1=__webpack_require__(13);var _=__webpack_require__(0);var BaseModel=function(_super){__extends(BaseModel,_super);function BaseModel(type,id){var _this=_super.call(this,id)||this;_this.type=type;_this.selected=false;return _this}BaseModel.prototype.getParent=function(){return this.parent};BaseModel.prototype.setParent=function(parent){this.parent=parent};BaseModel.prototype.getSelectedEntities=function(){if(this.isSelected()){return[this]}return[]};BaseModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.type=ob.type;this.selected=ob.selected};BaseModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{type:this.type,selected:this.selected})};BaseModel.prototype.getType=function(){return this.type};BaseModel.prototype.getID=function(){return this.id};BaseModel.prototype.isSelected=function(){return this.selected};BaseModel.prototype.setSelected=function(selected){if(selected===void 0){selected=true}this.selected=selected;this.iterateListeners(function(listener,event){if(listener.selectionChanged){listener.selectionChanged(__assign({},event,{isSelected:selected}))}})};BaseModel.prototype.remove=function(){this.iterateListeners(function(listener,event){if(listener.entityRemoved){listener.entityRemoved(event)}})};return BaseModel}(BaseEntity_1.BaseEntity);exports.BaseModel=BaseModel},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var closest=__webpack_require__(70);var PathFinding_1=__webpack_require__(16);var Path=__webpack_require__(51);var Toolkit=function(){function Toolkit(){}Toolkit.UID=function(){if(Toolkit.TESTING){Toolkit.TESTING_UID++;return""+Toolkit.TESTING_UID}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=Math.random()*16|0;var v=c==="x"?r:r&3|8;return v.toString(16)})};Toolkit.closest=function(element,selector){if(document.body.closest){return element.closest(selector)}return closest(element,selector)};Toolkit.generateLinePath=function(firstPoint,lastPoint){return"M"+firstPoint.x+","+firstPoint.y+" L "+lastPoint.x+","+lastPoint.y};Toolkit.generateCurvePath=function(firstPoint,lastPoint,curvy){if(curvy===void 0){curvy=0}var isHorizontal=Math.abs(firstPoint.x-lastPoint.x)>Math.abs(firstPoint.y-lastPoint.y);var curvyX=isHorizontal?curvy:0;var curvyY=isHorizontal?0:curvy;return"M"+firstPoint.x+","+firstPoint.y+" C "+(firstPoint.x+curvyX)+","+(firstPoint.y+curvyY)+"\n "+(lastPoint.x-curvyX)+","+(lastPoint.y-curvyY)+" "+lastPoint.x+","+lastPoint.y};Toolkit.generateDynamicPath=function(pathCoords){var path=Path();path=path.moveto(pathCoords[0][0]*PathFinding_1.ROUTING_SCALING_FACTOR,pathCoords[0][1]*PathFinding_1.ROUTING_SCALING_FACTOR);pathCoords.slice(1).forEach(function(coords){path=path.lineto(coords[0]*PathFinding_1.ROUTING_SCALING_FACTOR,coords[1]*PathFinding_1.ROUTING_SCALING_FACTOR)});return path.print()};Toolkit.TESTING=false;Toolkit.TESTING_UID=0;return Toolkit}();exports.Toolkit=Toolkit},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory=function(){function AbstractFactory(name){this.type=name}AbstractFactory.prototype.getType=function(){return this.type};return AbstractFactory}();exports.AbstractFactory=AbstractFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var NodeModel=function(_super){__extends(NodeModel,_super);function NodeModel(nodeType,id){if(nodeType===void 0){nodeType="default"}var _this=_super.call(this,nodeType,id)||this;_this.x=0;_this.y=0;_this.extras={};_this.ports={};return _this}NodeModel.prototype.setPosition=function(x,y){var oldX=this.x;var oldY=this.y;_.forEach(this.ports,function(port){_.forEach(port.getLinks(),function(link){var point=link.getPointForPort(port);point.x=point.x+x-oldX;point.y=point.y+y-oldY})});this.x=x;this.y=y};NodeModel.prototype.getSelectedEntities=function(){var entities=_super.prototype.getSelectedEntities.call(this);if(this.isSelected()){_.forEach(this.ports,function(port){entities=entities.concat(_.map(port.getLinks(),function(link){return link.getPointForPort(port)}))})}return entities};NodeModel.prototype.deSerialize=function(ob,engine){var _this=this;_super.prototype.deSerialize.call(this,ob,engine);this.x=ob.x;this.y=ob.y;this.extras=ob.extras;_.forEach(ob.ports,function(port){var portOb=engine.getPortFactory(port.type).getNewInstance();portOb.deSerialize(port,engine);_this.addPort(portOb)})};NodeModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{x:this.x,y:this.y,extras:this.extras,ports:_.map(this.ports,function(port){return port.serialize()})})};NodeModel.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}clone.ports={};_.forEach(this.ports,function(port){clone.addPort(port.clone(lookupTable))})};NodeModel.prototype.remove=function(){_super.prototype.remove.call(this);_.forEach(this.ports,function(port){_.forEach(port.getLinks(),function(link){link.remove()})})};NodeModel.prototype.getPortFromID=function(id){for(var i in this.ports){if(this.ports[i].id===id){return this.ports[i]}}return null};NodeModel.prototype.getPort=function(name){return this.ports[name]};NodeModel.prototype.getPorts=function(){return this.ports};NodeModel.prototype.removePort=function(port){if(this.ports[port.name]){this.ports[port.name].setParent(null);delete this.ports[port.name]}};NodeModel.prototype.addPort=function(port){port.setParent(this);this.ports[port.name]=port;return port};NodeModel.prototype.updateDimensions=function(_a){var width=_a.width,height=_a.height;this.width=width;this.height=height};return NodeModel}(BaseModel_1.BaseModel);exports.NodeModel=NodeModel},function(module,exports){module.exports={manhattan:function(dx,dy){return dx+dy},euclidean:function(dx,dy){return Math.sqrt(dx*dx+dy*dy)},octile:function(dx,dy){var F=Math.SQRT2-1;return dx<dy?F*dx+dy:F*dy+dx},chebyshev:function(dx,dy){return Math.max(dx,dy)}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var BaseAction=function(){function BaseAction(mouseX,mouseY){this.mouseX=mouseX;this.mouseY=mouseY;this.ms=(new Date).getTime()}return BaseAction}();exports.BaseAction=BaseAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var PortModel=function(_super){__extends(PortModel,_super);function PortModel(name,type,id,maximumLinks){var _this=_super.call(this,type,id)||this;_this.name=name;_this.links={};_this.maximumLinks=maximumLinks;return _this}PortModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.name=ob.name;this.maximumLinks=ob.maximumLinks};PortModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{name:this.name,parentNode:this.parent.id,links:_.map(this.links,function(link){return link.id}),maximumLinks:this.maximumLinks})};PortModel.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}clone.links={};clone.parentNode=this.getParent().clone(lookupTable)};PortModel.prototype.getNode=function(){return this.getParent()};PortModel.prototype.getName=function(){return this.name};PortModel.prototype.getMaximumLinks=function(){return this.maximumLinks};PortModel.prototype.setMaximumLinks=function(maximumLinks){this.maximumLinks=maximumLinks};PortModel.prototype.removeLink=function(link){delete this.links[link.getID()]};PortModel.prototype.addLink=function(link){this.links[link.getID()]=link};PortModel.prototype.getLinks=function(){return this.links};PortModel.prototype.createLinkModel=function(){if(_.isFinite(this.maximumLinks)){var numberOfLinks=_.size(this.links);if(this.maximumLinks===1&&numberOfLinks>=1){return _.values(this.links)[0]}else if(numberOfLinks>=this.maximumLinks){return null}}return null};PortModel.prototype.updateCoords=function(_a){var x=_a.x,y=_a.y,width=_a.width,height=_a.height;this.x=x;this.y=y;this.width=width;this.height=height};PortModel.prototype.canLinkToPort=function(port){return true};PortModel.prototype.isLocked=function(){return _super.prototype.isLocked.call(this)||this.getParent().isLocked()};return PortModel}(BaseModel_1.BaseModel);exports.PortModel=PortModel},function(module,exports,__webpack_require__){"use strict";var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var Toolkit_1=__webpack_require__(7);var _=__webpack_require__(0);var BaseEntity=function(){function BaseEntity(id){this.listeners={};this.id=id||Toolkit_1.Toolkit.UID();this.locked=false}BaseEntity.prototype.getID=function(){return this.id};BaseEntity.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}};BaseEntity.prototype.clone=function(lookupTable){if(lookupTable===void 0){lookupTable={}}if(lookupTable[this.id]){return lookupTable[this.id]}var clone=_.clone(this);clone.id=Toolkit_1.Toolkit.UID();clone.clearListeners();lookupTable[this.id]=clone;this.doClone(lookupTable,clone);return clone};BaseEntity.prototype.clearListeners=function(){this.listeners={}};BaseEntity.prototype.deSerialize=function(data,engine){this.id=data.id};BaseEntity.prototype.serialize=function(){return{id:this.id}};BaseEntity.prototype.iterateListeners=function(cb){var event={id:Toolkit_1.Toolkit.UID(),firing:true,entity:this,stopPropagation:function(){event.firing=false}};for(var i in this.listeners){if(this.listeners.hasOwnProperty(i)){if(!event.firing){return}cb(this.listeners[i],event)}}};BaseEntity.prototype.removeListener=function(listener){if(this.listeners[listener]){delete this.listeners[listener];return true}return false};BaseEntity.prototype.addListener=function(listener){var uid=Toolkit_1.Toolkit.UID();this.listeners[uid]=listener;return uid};BaseEntity.prototype.isLocked=function(){return this.locked};BaseEntity.prototype.setLocked=function(locked){if(locked===void 0){locked=true}this.locked=locked;this.iterateListeners(function(listener,event){if(listener.lockChanged){listener.lockChanged(__assign({},event,{locked:locked}))}})};return BaseEntity}();exports.BaseEntity=BaseEntity},function(module,exports,__webpack_require__){var Heap=__webpack_require__(15);var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var DiagonalMovement=__webpack_require__(2);function JumpPointFinderBase(opt){opt=opt||{};this.heuristic=opt.heuristic||Heuristic.manhattan;this.trackJumpRecursion=opt.trackJumpRecursion||false}JumpPointFinderBase.prototype.findPath=function(startX,startY,endX,endY,grid){var openList=this.openList=new Heap(function(nodeA,nodeB){return nodeA.f-nodeB.f}),startNode=this.startNode=grid.getNodeAt(startX,startY),endNode=this.endNode=grid.getNodeAt(endX,endY),node;this.grid=grid;startNode.g=0;startNode.f=0;openList.push(startNode);startNode.opened=true;while(!openList.empty()){node=openList.pop();node.closed=true;if(node===endNode){return Util.expandPath(Util.backtrace(endNode))}this._identifySuccessors(node)}return[]};JumpPointFinderBase.prototype._identifySuccessors=function(node){var grid=this.grid,heuristic=this.heuristic,openList=this.openList,endX=this.endNode.x,endY=this.endNode.y,neighbors,neighbor,jumpPoint,i,l,x=node.x,y=node.y,jx,jy,dx,dy,d,ng,jumpNode,abs=Math.abs,max=Math.max;neighbors=this._findNeighbors(node);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];jumpPoint=this._jump(neighbor[0],neighbor[1],x,y);if(jumpPoint){jx=jumpPoint[0];jy=jumpPoint[1];jumpNode=grid.getNodeAt(jx,jy);if(jumpNode.closed){continue}d=Heuristic.octile(abs(jx-x),abs(jy-y));ng=node.g+d;if(!jumpNode.opened||ng<jumpNode.g){jumpNode.g=ng;jumpNode.h=jumpNode.h||heuristic(abs(jx-endX),abs(jy-endY));jumpNode.f=jumpNode.g+jumpNode.h;jumpNode.parent=node;if(!jumpNode.opened){openList.push(jumpNode);jumpNode.opened=true}else{openList.updateItem(jumpNode)}}}}};module.exports=JumpPointFinderBase},function(module,exports,__webpack_require__){module.exports=__webpack_require__(66)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var PF=__webpack_require__(68);exports.ROUTING_SCALING_FACTOR=5;var pathFinderInstance=new PF.JumpPointFinder({heuristic:PF.Heuristic.manhattan,diagonalMovement:PF.DiagonalMovement.Never});var PathFinding=function(){function PathFinding(diagramEngine){this.instance=pathFinderInstance;this.diagramEngine=diagramEngine}PathFinding.prototype.calculateDirectPath=function(from,to){var matrix=this.diagramEngine.getCanvasMatrix();var grid=new PF.Grid(matrix);return pathFinderInstance.findPath(this.diagramEngine.translateRoutingX(Math.floor(from.x/exports.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(from.y/exports.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(to.x/exports.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(to.y/exports.ROUTING_SCALING_FACTOR)),grid)};PathFinding.prototype.calculateLinkStartEndCoords=function(matrix,path){var startIndex=path.findIndex(function(point){return matrix[point[1]][point[0]]===0});var endIndex=path.length-1-path.slice().reverse().findIndex(function(point){return matrix[point[1]][point[0]]===0});if(startIndex===-1||endIndex===-1){return undefined}var pathToStart=path.slice(0,startIndex);var pathToEnd=path.slice(endIndex);return{start:{x:path[startIndex][0],y:path[startIndex][1]},end:{x:path[endIndex][0],y:path[endIndex][1]},pathToStart:pathToStart,pathToEnd:pathToEnd}};PathFinding.prototype.calculateDynamicPath=function(routingMatrix,start,end,pathToStart,pathToEnd){var _this=this;var grid=new PF.Grid(routingMatrix);var dynamicPath=pathFinderInstance.findPath(start.x,start.y,end.x,end.y,grid);var pathCoords=pathToStart.concat(dynamicPath,pathToEnd).map(function(coords){return[_this.diagramEngine.translateRoutingX(coords[0],true),_this.diagramEngine.translateRoutingY(coords[1],true)]});return PF.Util.compressPath(pathCoords)};return PathFinding}();exports.default=PathFinding},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var _=__webpack_require__(0);var LabelModel=function(_super){__extends(LabelModel,_super);function LabelModel(type,id){var _this=_super.call(this,type,id)||this;_this.offsetX=0;_this.offsetY=0;return _this}LabelModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.offsetX=ob.offsetX;this.offsetY=ob.offsetY};LabelModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{offsetX:this.offsetX,offsetY:this.offsetY})};return LabelModel}(BaseModel_1.BaseModel);exports.LabelModel=LabelModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var LabelModel_1=__webpack_require__(17);var _=__webpack_require__(0);var DefaultLabelModel=function(_super){__extends(DefaultLabelModel,_super);function DefaultLabelModel(){var _this=_super.call(this,"default")||this;_this.offsetY=-23;return _this}DefaultLabelModel.prototype.setLabel=function(label){this.label=label};DefaultLabelModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.label=ob.label};DefaultLabelModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{label:this.label})};return DefaultLabelModel}(LabelModel_1.LabelModel);exports.DefaultLabelModel=DefaultLabelModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var LinkModel_1=__webpack_require__(21);var _=__webpack_require__(0);var DefaultLabelModel_1=__webpack_require__(18);var LabelModel_1=__webpack_require__(17);var DefaultLinkModel=function(_super){__extends(DefaultLinkModel,_super);function DefaultLinkModel(type){if(type===void 0){type="default"}var _this=_super.call(this,type)||this;_this.color="rgba(255,255,255,0.5)";_this.width=3;_this.curvyness=50;return _this}DefaultLinkModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{width:this.width,color:this.color,curvyness:this.curvyness})};DefaultLinkModel.prototype.deSerialize=function(ob,engine){_super.prototype.deSerialize.call(this,ob,engine);this.color=ob.color;this.width=ob.width;this.curvyness=ob.curvyness};DefaultLinkModel.prototype.addLabel=function(label){if(label instanceof LabelModel_1.LabelModel){return _super.prototype.addLabel.call(this,label)}var labelOb=new DefaultLabelModel_1.DefaultLabelModel;labelOb.setLabel(label);return _super.prototype.addLabel.call(this,labelOb)};DefaultLinkModel.prototype.setWidth=function(width){this.width=width;this.iterateListeners(function(listener,event){if(listener.widthChanged){listener.widthChanged(__assign({},event,{width:width}))}})};DefaultLinkModel.prototype.setColor=function(color){this.color=color;this.iterateListeners(function(listener,event){if(listener.colorChanged){listener.colorChanged(__assign({},event,{color:color}))}})};return DefaultLinkModel}(LinkModel_1.LinkModel);exports.DefaultLinkModel=DefaultLinkModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var _=__webpack_require__(0);var PortModel_1=__webpack_require__(12);var DefaultLinkModel_1=__webpack_require__(19);var DefaultPortModel=function(_super){__extends(DefaultPortModel,_super);function DefaultPortModel(isInput,name,label,id){if(label===void 0){label=null}var _this=_super.call(this,name,"default",id)||this;_this.in=isInput;_this.label=label||name;return _this}DefaultPortModel.prototype.deSerialize=function(object,engine){_super.prototype.deSerialize.call(this,object,engine);this.in=object.in;this.label=object.label};DefaultPortModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{in:this.in,label:this.label})};DefaultPortModel.prototype.link=function(port){var link=this.createLinkModel();link.setSourcePort(this);link.setTargetPort(port);return link};DefaultPortModel.prototype.canLinkToPort=function(port){if(port instanceof DefaultPortModel){return this.in!==port.in}return true};DefaultPortModel.prototype.createLinkModel=function(){var link=_super.prototype.createLinkModel.call(this);return link||new DefaultLinkModel_1.DefaultLinkModel};return DefaultPortModel}(PortModel_1.PortModel);exports.DefaultPortModel=DefaultPortModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var BaseModel_1=__webpack_require__(6);var PointModel_1=__webpack_require__(5);var _=__webpack_require__(0);var LinkModel=function(_super){__extends(LinkModel,_super);function LinkModel(linkType,id){if(linkType===void 0){linkType="default"}var _this=_super.call(this,linkType,id)||this;_this.points=[new PointModel_1.PointModel(_this,{x:0,y:0}),new PointModel_1.PointModel(_this,{x:0,y:0})];_this.extras={};_this.sourcePort=null;_this.targetPort=null;_this.labels=[];return _this}LinkModel.prototype.deSerialize=function(ob,engine){var _this=this;_super.prototype.deSerialize.call(this,ob,engine);this.extras=ob.extras;this.points=_.map(ob.points||[],function(point){var p=new PointModel_1.PointModel(_this,{x:point.x,y:point.y});p.deSerialize(point,engine);return p});_.forEach(ob.labels||[],function(label){var labelOb=engine.getLabelFactory(label.type).getNewInstance();labelOb.deSerialize(label,engine);_this.addLabel(labelOb)});if(ob.target){this.setTargetPort(this.getParent().getNode(ob.target).getPortFromID(ob.targetPort))}if(ob.source){this.setSourcePort(this.getParent().getNode(ob.source).getPortFromID(ob.sourcePort))}};LinkModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{source:this.sourcePort?this.sourcePort.getParent().id:null,sourcePort:this.sourcePort?this.sourcePort.id:null,target:this.targetPort?this.targetPort.getParent().id:null,targetPort:this.targetPort?this.targetPort.id:null,points:_.map(this.points,function(point){return point.serialize()}),extras:this.extras,labels:_.map(this.labels,function(label){return label.serialize()})})};LinkModel.prototype.doClone=function(lookupTable,clone){if(lookupTable===void 0){lookupTable={}}clone.setPoints(_.map(this.getPoints(),function(point){return point.clone(lookupTable)}));if(this.sourcePort){clone.setSourcePort(this.sourcePort.clone(lookupTable))}if(this.targetPort){clone.setTargetPort(this.targetPort.clone(lookupTable))}};LinkModel.prototype.remove=function(){if(this.sourcePort){this.sourcePort.removeLink(this)}if(this.targetPort){this.targetPort.removeLink(this)}_super.prototype.remove.call(this)};LinkModel.prototype.isLastPoint=function(point){var index=this.getPointIndex(point);return index===this.points.length-1};LinkModel.prototype.getPointIndex=function(point){return this.points.indexOf(point)};LinkModel.prototype.getPointModel=function(id){for(var i=0;i<this.points.length;i++){if(this.points[i].id===id){return this.points[i]}}return null};LinkModel.prototype.getPortForPoint=function(point){if(this.sourcePort!==null&&this.getFirstPoint().getID()===point.getID()){return this.sourcePort}if(this.targetPort!==null&&this.getLastPoint().getID()===point.getID()){return this.targetPort}return null};LinkModel.prototype.getPointForPort=function(port){if(this.sourcePort!==null&&this.sourcePort.getID()===port.getID()){return this.getFirstPoint()}if(this.targetPort!==null&&this.targetPort.getID()===port.getID()){return this.getLastPoint()}return null};LinkModel.prototype.getFirstPoint=function(){return this.points[0]};LinkModel.prototype.getLastPoint=function(){return this.points[this.points.length-1]};LinkModel.prototype.setSourcePort=function(port){if(port!==null){port.addLink(this)}if(this.sourcePort!==null){this.sourcePort.removeLink(this)}this.sourcePort=port;this.iterateListeners(function(listener,event){if(listener.sourcePortChanged){listener.sourcePortChanged(__assign({},event,{port:port}))}})};LinkModel.prototype.getSourcePort=function(){return this.sourcePort};LinkModel.prototype.getTargetPort=function(){return this.targetPort};LinkModel.prototype.setTargetPort=function(port){if(port!==null){port.addLink(this)}if(this.targetPort!==null){this.targetPort.removeLink(this)}this.targetPort=port;this.iterateListeners(function(listener,event){if(listener.targetPortChanged){listener.targetPortChanged(__assign({},event,{port:port}))}})};LinkModel.prototype.point=function(x,y){return this.addPoint(this.generatePoint(x,y))};LinkModel.prototype.addLabel=function(label){label.setParent(this);this.labels.push(label)};LinkModel.prototype.getPoints=function(){return this.points};LinkModel.prototype.setPoints=function(points){var _this=this;_.forEach(points,function(point){point.setParent(_this)});this.points=points};LinkModel.prototype.removePoint=function(pointModel){this.points.splice(this.getPointIndex(pointModel),1)};LinkModel.prototype.removePointsBefore=function(pointModel){this.points.splice(0,this.getPointIndex(pointModel))};LinkModel.prototype.removePointsAfter=function(pointModel){this.points.splice(this.getPointIndex(pointModel)+1)};LinkModel.prototype.removeMiddlePoints=function(){if(this.points.length>2){this.points.splice(0,this.points.length-2)}};LinkModel.prototype.addPoint=function(pointModel,index){if(index===void 0){index=1}pointModel.setParent(this);this.points.splice(index,0,pointModel);return pointModel};LinkModel.prototype.generatePoint=function(x,y){if(x===void 0){x=0}if(y===void 0){y=0}return new PointModel_1.PointModel(this,{x:x,y:y})};return LinkModel}(BaseModel_1.BaseModel);exports.LinkModel=LinkModel},function(module,exports,__webpack_require__){var Heap=__webpack_require__(15);var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var DiagonalMovement=__webpack_require__(2);function BiAStarFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;this.heuristic=opt.heuristic||Heuristic.manhattan;this.weight=opt.weight||1;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}if(this.diagonalMovement===DiagonalMovement.Never){this.heuristic=opt.heuristic||Heuristic.manhattan}else{this.heuristic=opt.heuristic||Heuristic.octile}}BiAStarFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var cmp=function(nodeA,nodeB){return nodeA.f-nodeB.f},startOpenList=new Heap(cmp),endOpenList=new Heap(cmp),startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),heuristic=this.heuristic,diagonalMovement=this.diagonalMovement,weight=this.weight,abs=Math.abs,SQRT2=Math.SQRT2,node,neighbors,neighbor,i,l,x,y,ng,BY_START=1,BY_END=2;startNode.g=0;startNode.f=0;startOpenList.push(startNode);startNode.opened=BY_START;endNode.g=0;endNode.f=0;endOpenList.push(endNode);endNode.opened=BY_END;while(!startOpenList.empty()&&!endOpenList.empty()){node=startOpenList.pop();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened===BY_END){return Util.biBacktrace(node,neighbor)}x=neighbor.x;y=neighbor.y;ng=node.g+(x-node.x===0||y-node.y===0?1:SQRT2);if(!neighbor.opened||ng<neighbor.g){neighbor.g=ng;neighbor.h=neighbor.h||weight*heuristic(abs(x-endX),abs(y-endY));neighbor.f=neighbor.g+neighbor.h;neighbor.parent=node;if(!neighbor.opened){startOpenList.push(neighbor);neighbor.opened=BY_START}else{startOpenList.updateItem(neighbor)}}}node=endOpenList.pop();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened===BY_START){return Util.biBacktrace(neighbor,node)}x=neighbor.x;y=neighbor.y;ng=node.g+(x-node.x===0||y-node.y===0?1:SQRT2);if(!neighbor.opened||ng<neighbor.g){neighbor.g=ng;neighbor.h=neighbor.h||weight*heuristic(abs(x-startX),abs(y-startY));neighbor.f=neighbor.g+neighbor.h;neighbor.parent=node;if(!neighbor.opened){endOpenList.push(neighbor);neighbor.opened=BY_END}else{endOpenList.updateItem(neighbor)}}}}return[]};module.exports=BiAStarFinder},function(module,exports,__webpack_require__){var Heap=__webpack_require__(15);var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var DiagonalMovement=__webpack_require__(2);function AStarFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.heuristic=opt.heuristic||Heuristic.manhattan;this.weight=opt.weight||1;this.diagonalMovement=opt.diagonalMovement;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}if(this.diagonalMovement===DiagonalMovement.Never){this.heuristic=opt.heuristic||Heuristic.manhattan}else{this.heuristic=opt.heuristic||Heuristic.octile}}AStarFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var openList=new Heap(function(nodeA,nodeB){return nodeA.f-nodeB.f}),startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),heuristic=this.heuristic,diagonalMovement=this.diagonalMovement,weight=this.weight,abs=Math.abs,SQRT2=Math.SQRT2,node,neighbors,neighbor,i,l,x,y,ng;startNode.g=0;startNode.f=0;openList.push(startNode);startNode.opened=true;while(!openList.empty()){node=openList.pop();node.closed=true;if(node===endNode){return Util.backtrace(endNode)}neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}x=neighbor.x;y=neighbor.y;ng=node.g+(x-node.x===0||y-node.y===0?1:SQRT2);if(!neighbor.opened||ng<neighbor.g){neighbor.g=ng;neighbor.h=neighbor.h||weight*heuristic(abs(x-endX),abs(y-endY));neighbor.f=neighbor.g+neighbor.h;neighbor.parent=node;if(!neighbor.opened){openList.push(neighbor);neighbor.opened=true}else{openList.updateItem(neighbor)}}}}return[]};module.exports=AStarFinder},function(module,exports){function Node(x,y,walkable){this.x=x;this.y=y;this.walkable=walkable===undefined?true:walkable}module.exports=Node},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget_1=__webpack_require__(3);var NodeWidget=function(_super){__extends(NodeWidget,_super);function NodeWidget(props){var _this=_super.call(this,"srd-node",props)||this;_this.state={};return _this}NodeWidget.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.node)};NodeWidget.prototype.getClassName=function(){return"node "+_super.prototype.getClassName.call(this)+(this.props.node.isSelected()?this.bem("--selected"):"")};NodeWidget.prototype.render=function(){return React.createElement("div",__assign({},this.getProps(),{"data-nodeid":this.props.node.id,style:{top:this.props.node.y,left:this.props.node.x}}),this.props.children)};return NodeWidget}(BaseWidget_1.BaseWidget);exports.NodeWidget=NodeWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var _=__webpack_require__(0);var NodeWidget_1=__webpack_require__(25);var BaseWidget_1=__webpack_require__(3);var NodeLayerWidget=function(_super){__extends(NodeLayerWidget,_super);function NodeLayerWidget(props){var _this=_super.call(this,"srd-node-layer",props)||this;_this.updateNodeDimensions=function(){if(!_this.props.diagramEngine.nodesRendered){var diagramModel=_this.props.diagramEngine.getDiagramModel();_.map(diagramModel.getNodes(),function(node){node.updateDimensions(_this.props.diagramEngine.getNodeDimensions(node))})}};_this.state={};return _this}NodeLayerWidget.prototype.componentDidUpdate=function(){this.updateNodeDimensions();this.props.diagramEngine.nodesRendered=true};NodeLayerWidget.prototype.render=function(){var _this=this;var diagramModel=this.props.diagramEngine.getDiagramModel();return React.createElement("div",__assign({},this.getProps(),{style:{transform:"translate("+diagramModel.getOffsetX()+"px,"+diagramModel.getOffsetY()+"px) scale("+diagramModel.getZoomLevel()/100+")"}}),_.map(diagramModel.getNodes(),function(node){return React.createElement(NodeWidget_1.NodeWidget,{diagramEngine:_this.props.diagramEngine,key:node.id,node:node},_this.props.diagramEngine.generateWidgetForNode(node))}))};return NodeLayerWidget}(BaseWidget_1.BaseWidget);exports.NodeLayerWidget=NodeLayerWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseWidget_1=__webpack_require__(3);var LinkWidget=function(_super){__extends(LinkWidget,_super);function LinkWidget(props){var _this=_super.call(this,"srd-link",props)||this;_this.state={};return _this}LinkWidget.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.link)};LinkWidget.prototype.render=function(){return this.props.children};return LinkWidget}(BaseWidget_1.BaseWidget);exports.LinkWidget=LinkWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var LinkWidget_1=__webpack_require__(27);var _=__webpack_require__(0);var BaseWidget_1=__webpack_require__(3);var LinkLayerWidget=function(_super){__extends(LinkLayerWidget,_super);function LinkLayerWidget(props){var _this=_super.call(this,"srd-link-layer",props)||this;_this.state={};return _this}LinkLayerWidget.prototype.render=function(){var _this=this;var diagramModel=this.props.diagramEngine.getDiagramModel();return React.createElement("svg",__assign({},this.getProps(),{style:{transform:"translate("+diagramModel.getOffsetX()+"px,"+diagramModel.getOffsetY()+"px) scale("+diagramModel.getZoomLevel()/100+")"}}),this.props.diagramEngine.canvas&&_.map(diagramModel.getLinks(),function(link){if(_this.props.diagramEngine.nodesRendered&&!_this.props.diagramEngine.linksThatHaveInitiallyRendered[link.id]){if(link.sourcePort!==null){try{var portCenter=_this.props.diagramEngine.getPortCenter(link.sourcePort);link.points[0].updateLocation(portCenter);var portCoords=_this.props.diagramEngine.getPortCoords(link.sourcePort);link.sourcePort.updateCoords(portCoords);_this.props.diagramEngine.linksThatHaveInitiallyRendered[link.id]=true}catch(ignore){}}if(link.targetPort!==null){try{var portCenter=_this.props.diagramEngine.getPortCenter(link.targetPort);_.last(link.points).updateLocation(portCenter);var portCoords=_this.props.diagramEngine.getPortCoords(link.targetPort);link.targetPort.updateCoords(portCoords);_this.props.diagramEngine.linksThatHaveInitiallyRendered[link.id]=true}catch(ignore){}}}var generatedLink=_this.props.diagramEngine.generateWidgetForLink(link);if(!generatedLink){throw new Error("no link generated for type: "+link.getType())}return React.createElement(LinkWidget_1.LinkWidget,{key:link.getID(),link:link,diagramEngine:_this.props.diagramEngine},React.cloneElement(generatedLink,{pointAdded:_this.props.pointAdded}))}))};return LinkLayerWidget}(BaseWidget_1.BaseWidget);exports.LinkLayerWidget=LinkLayerWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseAction_1=__webpack_require__(11);var SelectingAction=function(_super){__extends(SelectingAction,_super);function SelectingAction(mouseX,mouseY){var _this=_super.call(this,mouseX,mouseY)||this;_this.mouseX2=mouseX;_this.mouseY2=mouseY;return _this}SelectingAction.prototype.getBoxDimensions=function(){return{left:this.mouseX2>this.mouseX?this.mouseX:this.mouseX2,top:this.mouseY2>this.mouseY?this.mouseY:this.mouseY2,width:Math.abs(this.mouseX2-this.mouseX),height:Math.abs(this.mouseY2-this.mouseY),right:this.mouseX2<this.mouseX?this.mouseX:this.mouseX2,bottom:this.mouseY2<this.mouseY?this.mouseY:this.mouseY2}};SelectingAction.prototype.containsElement=function(x,y,diagramModel){var z=diagramModel.getZoomLevel()/100;var dimensions=this.getBoxDimensions();return x*z+diagramModel.getOffsetX()>dimensions.left&&x*z+diagramModel.getOffsetX()<dimensions.right&&y*z+diagramModel.getOffsetY()>dimensions.top&&y*z+diagramModel.getOffsetY()<dimensions.bottom};return SelectingAction}(BaseAction_1.BaseAction);exports.SelectingAction=SelectingAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseAction_1=__webpack_require__(11);var MoveItemsAction=function(_super){__extends(MoveItemsAction,_super);function MoveItemsAction(mouseX,mouseY,diagramEngine){var _this=_super.call(this,mouseX,mouseY)||this;_this.moved=false;diagramEngine.enableRepaintEntities(diagramEngine.getDiagramModel().getSelectedItems());var selectedItems=diagramEngine.getDiagramModel().getSelectedItems();selectedItems=selectedItems.filter(function(item){return!diagramEngine.isModelLocked(item)});_this.selectionModels=selectedItems.map(function(item){return{model:item,initialX:item.x,initialY:item.y}});return _this}return MoveItemsAction}(BaseAction_1.BaseAction);exports.MoveItemsAction=MoveItemsAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseAction_1=__webpack_require__(11);var MoveCanvasAction=function(_super){__extends(MoveCanvasAction,_super);function MoveCanvasAction(mouseX,mouseY,diagramModel){var _this=_super.call(this,mouseX,mouseY)||this;_this.initialOffsetX=diagramModel.getOffsetX();_this.initialOffsetY=diagramModel.getOffsetY();return _this}return MoveCanvasAction}(BaseAction_1.BaseAction);exports.MoveCanvasAction=MoveCanvasAction},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractNodeFactory=function(_super){__extends(AbstractNodeFactory,_super);function AbstractNodeFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractNodeFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractNodeFactory=AbstractNodeFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget_1=__webpack_require__(3);var PortWidget=function(_super){__extends(PortWidget,_super);function PortWidget(props){var _this=_super.call(this,"srd-port",props)||this;_this.state={selected:false};return _this}PortWidget.prototype.getClassName=function(){return"port "+_super.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")};PortWidget.prototype.render=function(){var _this=this;return React.createElement("div",__assign({},this.getProps(),{onMouseEnter:function(){_this.setState({selected:true})},onMouseLeave:function(){_this.setState({selected:false})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))};return PortWidget}(BaseWidget_1.BaseWidget);exports.PortWidget=PortWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var PortWidget_1=__webpack_require__(33);var BaseWidget_1=__webpack_require__(3);var DefaultPortLabel=function(_super){__extends(DefaultPortLabel,_super);function DefaultPortLabel(props){return _super.call(this,"srd-default-port",props)||this}DefaultPortLabel.prototype.getClassName=function(){return _super.prototype.getClassName.call(this)+(this.props.model.in?this.bem("--in"):this.bem("--out"))};DefaultPortLabel.prototype.render=function(){var port=React.createElement(PortWidget_1.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name});var label=React.createElement("div",{className:"name"},this.props.model.label);return React.createElement("div",__assign({},this.getProps()),this.props.model.in?port:label,this.props.model.in?label:port)};return DefaultPortLabel}(BaseWidget_1.BaseWidget);exports.DefaultPortLabel=DefaultPortLabel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var _=__webpack_require__(0);var DefaultPortLabelWidget_1=__webpack_require__(34);var BaseWidget_1=__webpack_require__(3);var DefaultNodeWidget=function(_super){__extends(DefaultNodeWidget,_super);function DefaultNodeWidget(props){var _this=_super.call(this,"srd-default-node",props)||this;_this.state={};return _this}DefaultNodeWidget.prototype.generatePort=function(port){return React.createElement(DefaultPortLabelWidget_1.DefaultPortLabel,{model:port,key:port.id})};DefaultNodeWidget.prototype.render=function(){return React.createElement("div",__assign({},this.getProps(),{style:{background:this.props.node.color}}),React.createElement("div",{className:this.bem("__title")},React.createElement("div",{className:this.bem("__name")},this.props.node.name)),React.createElement("div",{className:this.bem("__ports")},React.createElement("div",{className:this.bem("__in")},_.map(this.props.node.getInPorts(),this.generatePort.bind(this))),React.createElement("div",{className:this.bem("__out")},_.map(this.props.node.getOutPorts(),this.generatePort.bind(this)))))};return DefaultNodeWidget}(BaseWidget_1.BaseWidget);exports.DefaultNodeWidget=DefaultNodeWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractLinkFactory=function(_super){__extends(AbstractLinkFactory,_super);function AbstractLinkFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractLinkFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractLinkFactory=AbstractLinkFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var PointModel_1=__webpack_require__(5);var Toolkit_1=__webpack_require__(7);var PathFinding_1=__webpack_require__(16);var _=__webpack_require__(0);var BaseWidget_1=__webpack_require__(3);var DefaultLinkWidget=function(_super){__extends(DefaultLinkWidget,_super);function DefaultLinkWidget(props){var _this=_super.call(this,"srd-default-link",props)||this;_this.addPointToLink=function(event,index){if(!event.shiftKey&&!_this.props.diagramEngine.isModelLocked(_this.props.link)&&_this.props.link.points.length-1<=_this.props.diagramEngine.getMaxNumberPointsPerLink()){var point=new PointModel_1.PointModel(_this.props.link,_this.props.diagramEngine.getRelativeMousePoint(event));point.setSelected(true);_this.forceUpdate();_this.props.link.addPoint(point,index);_this.props.pointAdded(point,event)}};_this.findPathAndRelativePositionToRenderLabel=function(index){var lengths=_this.refPaths.map(function(path){return path.getTotalLength()});var labelPosition=lengths.reduce(function(previousValue,currentValue){return previousValue+currentValue},0)*(index/(_this.props.link.labels.length+1));var pathIndex=0;while(pathIndex<_this.refPaths.length){if(labelPosition-lengths[pathIndex]<0){return{path:_this.refPaths[pathIndex],position:labelPosition}}labelPosition-=lengths[pathIndex];pathIndex++}};_this.calculateLabelPosition=function(label,index){if(!_this.refLabels[label.id]){return}var _a=_this.findPathAndRelativePositionToRenderLabel(index),path=_a.path,position=_a.position;var labelDimensions={width:_this.refLabels[label.id].offsetWidth,height:_this.refLabels[label.id].offsetHeight};var pathCentre=path.getPointAtLength(position);var labelCoordinates={x:pathCentre.x-labelDimensions.width/2+label.offsetX,y:pathCentre.y-labelDimensions.height/2+label.offsetY};_this.refLabels[label.id].setAttribute("style","transform: translate("+labelCoordinates.x+"px, "+labelCoordinates.y+"px);")};_this.refLabels={};_this.refPaths=[];_this.state={selected:false};if(props.diagramEngine.isSmartRoutingEnabled()){_this.pathFinding=new PathFinding_1.default(_this.props.diagramEngine)}return _this}DefaultLinkWidget.prototype.calculateAllLabelPosition=function(){var _this=this;_.forEach(this.props.link.labels,function(label,index){_this.calculateLabelPosition(label,index+1)})};DefaultLinkWidget.prototype.componentDidUpdate=function(){if(this.props.link.labels.length>0){window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))}};DefaultLinkWidget.prototype.componentDidMount=function(){if(this.props.link.labels.length>0){window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))}};DefaultLinkWidget.prototype.generatePoint=function(pointIndex){var _this=this;var x=this.props.link.points[pointIndex].x;var y=this.props.link.points[pointIndex].y;return React.createElement("g",{key:"point-"+this.props.link.points[pointIndex].id},React.createElement("circle",{cx:x,cy:y,r:5,className:"point "+this.bem("__point")+(this.props.link.points[pointIndex].isSelected()?this.bem("--point-selected"):"")}),React.createElement("circle",{onMouseLeave:function(){_this.setState({selected:false})},onMouseEnter:function(){_this.setState({selected:true})},"data-id":this.props.link.points[pointIndex].id,"data-linkid":this.props.link.id,cx:x,cy:y,r:15,opacity:0,className:"point "+this.bem("__point")}))};DefaultLinkWidget.prototype.generateLabel=function(label){var _this=this;var canvas=this.props.diagramEngine.canvas;return React.createElement("foreignObject",{key:label.id,className:this.bem("__label"),width:canvas.offsetWidth,height:canvas.offsetHeight},React.createElement("div",{ref:function(ref){return _this.refLabels[label.id]=ref}},this.props.diagramEngine.getFactoryForLabel(label).generateReactWidget(this.props.diagramEngine,label)))};DefaultLinkWidget.prototype.generateLink=function(path,extraProps,id){var _this=this;var props=this.props;var Bottom=React.cloneElement(props.diagramEngine.getFactoryForLink(this.props.link).generateLinkSegment(this.props.link,this,this.state.selected||this.props.link.isSelected(),path),{ref:function(ref){return ref&&_this.refPaths.push(ref)}});var Top=React.cloneElement(Bottom,__assign({},extraProps,{strokeLinecap:"round",onMouseLeave:function(){_this.setState({selected:false})},onMouseEnter:function(){_this.setState({selected:true})},ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.state.selected?.1:0,strokeWidth:20,onContextMenu:function(){if(!_this.props.diagramEngine.isModelLocked(_this.props.link)){event.preventDefault();_this.props.link.remove()}}}));return React.createElement("g",{key:"link-"+id},Bottom,Top)};DefaultLinkWidget.prototype.isSmartRoutingApplicable=function(){var _a=this.props,diagramEngine=_a.diagramEngine,link=_a.link;if(!diagramEngine.isSmartRoutingEnabled()){return false}if(link.points.length!==2){return false}if(link.sourcePort===null||link.targetPort===null){return false}return true};DefaultLinkWidget.prototype.render=function(){var _this=this;var diagramEngine=this.props.diagramEngine;if(!diagramEngine.nodesRendered){return null}var points=this.props.link.points;var paths=[];if(this.isSmartRoutingApplicable()){var directPathCoords=this.pathFinding.calculateDirectPath(_.first(points),_.last(points));var routingMatrix=diagramEngine.getRoutingMatrix();var smartLink=this.pathFinding.calculateLinkStartEndCoords(routingMatrix,directPathCoords);if(smartLink){var start=smartLink.start,end=smartLink.end,pathToStart=smartLink.pathToStart,pathToEnd=smartLink.pathToEnd;var simplifiedPath=this.pathFinding.calculateDynamicPath(routingMatrix,start,end,pathToStart,pathToEnd);paths.push(this.generateLink(Toolkit_1.Toolkit.generateDynamicPath(simplifiedPath),{onMouseDown:function(event){_this.addPointToLink(event,1)}},"0"))}}if(paths.length===0){if(points.length===2){var isHorizontal=Math.abs(points[0].x-points[1].x)>Math.abs(points[0].y-points[1].y);var xOrY=isHorizontal?"x":"y";var margin=50;if(Math.abs(points[0][xOrY]-points[1][xOrY])<50){margin=5}var pointLeft=points[0];var pointRight=points[1];if(pointLeft[xOrY]>pointRight[xOrY]){pointLeft=points[1];pointRight=points[0]}paths.push(this.generateLink(Toolkit_1.Toolkit.generateCurvePath(pointLeft,pointRight,this.props.link.curvyness),{onMouseDown:function(event){_this.addPointToLink(event,1)}},"0"));if(this.props.link.targetPort===null){paths.push(this.generatePoint(1))}}else{var _loop_1=function(j){paths.push(this_1.generateLink(Toolkit_1.Toolkit.generateLinePath(points[j],points[j+1]),{"data-linkid":this_1.props.link.id,"data-point":j,onMouseDown:function(event){_this.addPointToLink(event,j+1)}},j))};var this_1=this;for(var j=0;j<points.length-1;j++){_loop_1(j)}for(var i=1;i<points.length-1;i++){paths.push(this.generatePoint(i))}if(this.props.link.targetPort===null){paths.push(this.generatePoint(points.length-1))}}}this.refPaths=[];return React.createElement("g",__assign({},this.getProps()),paths,_.map(this.props.link.labels,function(labelModel){return _this.generateLabel(labelModel)}))};DefaultLinkWidget.defaultProps={color:"black",width:3,link:null,engine:null,smooth:false,diagramEngine:null};return DefaultLinkWidget}(BaseWidget_1.BaseWidget);exports.DefaultLinkWidget=DefaultLinkWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var DefaultPortModel_1=__webpack_require__(20);var _=__webpack_require__(0);var NodeModel_1=__webpack_require__(9);var Toolkit_1=__webpack_require__(7);var DefaultNodeModel=function(_super){__extends(DefaultNodeModel,_super);function DefaultNodeModel(name,color){if(name===void 0){name="Untitled"}if(color===void 0){color="rgb(0,192,255)"}var _this=_super.call(this,"default")||this;_this.name=name;_this.color=color;return _this}DefaultNodeModel.prototype.addInPort=function(label){return this.addPort(new DefaultPortModel_1.DefaultPortModel(true,Toolkit_1.Toolkit.UID(),label))};DefaultNodeModel.prototype.addOutPort=function(label){return this.addPort(new DefaultPortModel_1.DefaultPortModel(false,Toolkit_1.Toolkit.UID(),label))};DefaultNodeModel.prototype.deSerialize=function(object,engine){_super.prototype.deSerialize.call(this,object,engine);this.name=object.name;this.color=object.color};DefaultNodeModel.prototype.serialize=function(){return _.merge(_super.prototype.serialize.call(this),{name:this.name,color:this.color})};DefaultNodeModel.prototype.getInPorts=function(){return _.filter(this.ports,function(portModel){return portModel.in})};DefaultNodeModel.prototype.getOutPorts=function(){return _.filter(this.ports,function(portModel){return!portModel.in})};return DefaultNodeModel}(NodeModel_1.NodeModel);exports.DefaultNodeModel=DefaultNodeModel},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var BaseWidget_1=__webpack_require__(3);var DefaultLabelWidget=function(_super){__extends(DefaultLabelWidget,_super);function DefaultLabelWidget(props){return _super.call(this,"srd-default-label",props)||this}DefaultLabelWidget.prototype.render=function(){return React.createElement("div",__assign({},this.getProps()),this.props.model.label)};return DefaultLabelWidget}(BaseWidget_1.BaseWidget);exports.DefaultLabelWidget=DefaultLabelWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractLabelFactory=function(_super){__extends(AbstractLabelFactory,_super);function AbstractLabelFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractLabelFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractLabelFactory=AbstractLabelFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var AbstractLabelFactory_1=__webpack_require__(40);var DefaultLabelModel_1=__webpack_require__(18);var DefaultLabelWidget_1=__webpack_require__(39);var DefaultLabelFactory=function(_super){__extends(DefaultLabelFactory,_super);function DefaultLabelFactory(){return _super.call(this,"default")||this}DefaultLabelFactory.prototype.generateReactWidget=function(diagramEngine,label){return React.createElement(DefaultLabelWidget_1.DefaultLabelWidget,{model:label})};DefaultLabelFactory.prototype.getNewInstance=function(initialConfig){return new DefaultLabelModel_1.DefaultLabelModel};return DefaultLabelFactory}(AbstractLabelFactory_1.AbstractLabelFactory);exports.DefaultLabelFactory=DefaultLabelFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var AbstractFactory_1=__webpack_require__(8);var AbstractPortFactory=function(_super){__extends(AbstractPortFactory,_super);function AbstractPortFactory(){return _super!==null&&_super.apply(this,arguments)||this}return AbstractPortFactory}(AbstractFactory_1.AbstractFactory);exports.AbstractPortFactory=AbstractPortFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var DefaultPortModel_1=__webpack_require__(20);var AbstractPortFactory_1=__webpack_require__(42);var DefaultPortFactory=function(_super){__extends(DefaultPortFactory,_super);function DefaultPortFactory(){return _super.call(this,"default")||this}DefaultPortFactory.prototype.getNewInstance=function(initialConfig){return new DefaultPortModel_1.DefaultPortModel(true,"unknown")};return DefaultPortFactory}(AbstractPortFactory_1.AbstractPortFactory);exports.DefaultPortFactory=DefaultPortFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var BaseEntity_1=__webpack_require__(13);var _=__webpack_require__(0);var LinkModel_1=__webpack_require__(21);var NodeModel_1=__webpack_require__(9);var PortModel_1=__webpack_require__(12);var PointModel_1=__webpack_require__(5);var DiagramModel=function(_super){__extends(DiagramModel,_super);function DiagramModel(){var _this=_super.call(this)||this;_this.links={};_this.nodes={};_this.offsetX=0;_this.offsetY=0;_this.zoom=100;_this.rendered=false;_this.gridSize=0;return _this}DiagramModel.prototype.setGridSize=function(size){if(size===void 0){size=0}this.gridSize=size;this.iterateListeners(function(listener,event){if(listener.gridUpdated){listener.gridUpdated(__assign({},event,{size:size}))}})};DiagramModel.prototype.getGridPosition=function(pos){if(this.gridSize===0){return pos}return this.gridSize*Math.floor((pos+this.gridSize/2)/this.gridSize)};DiagramModel.prototype.deSerializeDiagram=function(object,diagramEngine){var _this=this;this.deSerialize(object,diagramEngine);this.offsetX=object.offsetX;this.offsetY=object.offsetY;this.zoom=object.zoom;this.gridSize=object.gridSize;_.forEach(object.nodes,function(node){var nodeOb=diagramEngine.getNodeFactory(node.type).getNewInstance(node);nodeOb.setParent(_this);nodeOb.deSerialize(node,diagramEngine);_this.addNode(nodeOb)});_.forEach(object.links,function(link){var linkOb=diagramEngine.getLinkFactory(link.type).getNewInstance();linkOb.setParent(_this);linkOb.deSerialize(link,diagramEngine);_this.addLink(linkOb)})};DiagramModel.prototype.serializeDiagram=function(){return _.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:_.map(this.links,function(link){return link.serialize()}),nodes:_.map(this.nodes,function(node){return node.serialize()})})};DiagramModel.prototype.clearSelection=function(ignore){if(ignore===void 0){ignore=null}_.forEach(this.getSelectedItems(),function(element){if(ignore&&ignore.getID()===element.getID()){return}element.setSelected(false)})};DiagramModel.prototype.getSelectedItems=function(){var filters=[];for(var _i=0;_i<arguments.length;_i++){filters[_i]=arguments[_i]}if(!Array.isArray(filters)){filters=[filters]}var items=[];items=items.concat(_.flatMap(this.nodes,function(node){return node.getSelectedEntities()}));items=items.concat(_.flatMap(this.links,function(link){return link.getSelectedEntities()}));items=items.concat(_.flatMap(this.links,function(link){return _.flatMap(link.points,function(point){return point.getSelectedEntities()})}));items=_.uniq(items);if(filters.length>0){items=_.filter(_.uniq(items),function(item){if(_.includes(filters,"node")&&item instanceof NodeModel_1.NodeModel){return true}if(_.includes(filters,"link")&&item instanceof LinkModel_1.LinkModel){return true}if(_.includes(filters,"port")&&item instanceof PortModel_1.PortModel){return true}if(_.includes(filters,"point")&&item instanceof PointModel_1.PointModel){return true}return false})}return items};DiagramModel.prototype.setZoomLevel=function(zoom){this.zoom=zoom;this.iterateListeners(function(listener,event){if(listener.zoomUpdated){listener.zoomUpdated(__assign({},event,{zoom:zoom}))}})};DiagramModel.prototype.setOffset=function(offsetX,offsetY){this.offsetX=offsetX;this.offsetY=offsetY;this.iterateListeners(function(listener,event){if(listener.offsetUpdated){listener.offsetUpdated(__assign({},event,{offsetX:offsetX,offsetY:offsetY}))}})};DiagramModel.prototype.setOffsetX=function(offsetX){var _this=this;this.offsetX=offsetX;this.iterateListeners(function(listener,event){if(listener.offsetUpdated){listener.offsetUpdated(__assign({},event,{offsetX:offsetX,offsetY:_this.offsetY}))}})};DiagramModel.prototype.setOffsetY=function(offsetY){var _this=this;this.offsetY=offsetY;this.iterateListeners(function(listener,event){if(listener.offsetUpdated){listener.offsetUpdated(__assign({},event,{offsetX:_this.offsetX,offsetY:_this.offsetY}))}})};DiagramModel.prototype.getOffsetY=function(){return this.offsetY};DiagramModel.prototype.getOffsetX=function(){return this.offsetX};DiagramModel.prototype.getZoomLevel=function(){return this.zoom};DiagramModel.prototype.getNode=function(node){if(node instanceof NodeModel_1.NodeModel){return node}if(!this.nodes[node]){return null}return this.nodes[node]};DiagramModel.prototype.getLink=function(link){if(link instanceof LinkModel_1.LinkModel){return link}if(!this.links[link]){return null}return this.links[link]};DiagramModel.prototype.addAll=function(){var _this=this;var models=[];for(var _i=0;_i<arguments.length;_i++){models[_i]=arguments[_i]}_.forEach(models,function(model){if(model instanceof LinkModel_1.LinkModel){_this.addLink(model)}else if(model instanceof NodeModel_1.NodeModel){_this.addNode(model)}});return models};DiagramModel.prototype.addLink=function(link){var _this=this;link.addListener({entityRemoved:function(){_this.removeLink(link)}});this.links[link.getID()]=link;this.iterateListeners(function(listener,event){if(listener.linksUpdated){listener.linksUpdated(__assign({},event,{link:link,isCreated:true}))}});return link};DiagramModel.prototype.addNode=function(node){var _this=this;node.addListener({entityRemoved:function(){_this.removeNode(node)}});this.nodes[node.getID()]=node;this.iterateListeners(function(listener,event){if(listener.nodesUpdated){listener.nodesUpdated(__assign({},event,{node:node,isCreated:true}))}});return node};DiagramModel.prototype.removeLink=function(link){link=this.getLink(link);delete this.links[link.getID()];this.iterateListeners(function(listener,event){if(listener.linksUpdated){listener.linksUpdated(__assign({},event,{link:link,isCreated:false}))}})};DiagramModel.prototype.removeNode=function(node){node=this.getNode(node);delete this.nodes[node.getID()];this.iterateListeners(function(listener,event){if(listener.nodesUpdated){listener.nodesUpdated(__assign({},event,{node:node,isCreated:false}))}})};DiagramModel.prototype.getLinks=function(){return this.links};DiagramModel.prototype.getNodes=function(){return this.nodes};return DiagramModel}(BaseEntity_1.BaseEntity);exports.DiagramModel=DiagramModel},function(module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)if(!exports.hasOwnProperty(p))exports[p]=m[p]}Object.defineProperty(exports,"__esModule",{value:true});__export(__webpack_require__(7));__export(__webpack_require__(13));__export(__webpack_require__(49));__export(__webpack_require__(38));__export(__webpack_require__(20));__export(__webpack_require__(19));__export(__webpack_require__(18));__export(__webpack_require__(48));__export(__webpack_require__(47));__export(__webpack_require__(43));__export(__webpack_require__(41));__export(__webpack_require__(37));__export(__webpack_require__(39));__export(__webpack_require__(35));__export(__webpack_require__(34));__export(__webpack_require__(8));__export(__webpack_require__(40));__export(__webpack_require__(36));__export(__webpack_require__(32));__export(__webpack_require__(42));__export(__webpack_require__(16));__export(__webpack_require__(11));__export(__webpack_require__(31));__export(__webpack_require__(30));__export(__webpack_require__(29));__export(__webpack_require__(6));__export(__webpack_require__(44));__export(__webpack_require__(21));__export(__webpack_require__(9));__export(__webpack_require__(5));__export(__webpack_require__(12));__export(__webpack_require__(17));__export(__webpack_require__(46));__export(__webpack_require__(27));__export(__webpack_require__(25));__export(__webpack_require__(33));__export(__webpack_require__(3));__export(__webpack_require__(28));__export(__webpack_require__(26))},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var __assign=this&&this.__assign||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var _=__webpack_require__(0);var LinkLayerWidget_1=__webpack_require__(28);var NodeLayerWidget_1=__webpack_require__(26);var Toolkit_1=__webpack_require__(7);var MoveCanvasAction_1=__webpack_require__(31);var MoveItemsAction_1=__webpack_require__(30);var SelectingAction_1=__webpack_require__(29);var NodeModel_1=__webpack_require__(9);var PointModel_1=__webpack_require__(5);var PortModel_1=__webpack_require__(12);var BaseWidget_1=__webpack_require__(3);var DiagramWidget=function(_super){__extends(DiagramWidget,_super);function DiagramWidget(props){var _this=_super.call(this,"srd-diagram",props)||this;_this.onKeyUpPointer=null;_this.onMouseMove=_this.onMouseMove.bind(_this);_this.onMouseUp=_this.onMouseUp.bind(_this);_this.state={action:null,wasMoved:false,renderedNodes:false,windowListener:null,diagramEngineListener:null,document:null};return _this}DiagramWidget.prototype.componentWillUnmount=function(){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);this.props.diagramEngine.setCanvas(null);window.removeEventListener("keyup",this.onKeyUpPointer);window.removeEventListener("mouseUp",this.onMouseUp);window.removeEventListener("mouseMove",this.onMouseMove)};DiagramWidget.prototype.componentWillReceiveProps=function(nextProps){var _this=this;if(this.props.diagramEngine!==nextProps.diagramEngine){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);var diagramEngineListener=nextProps.diagramEngine.addListener({repaintCanvas:function(){return _this.forceUpdate()}});this.setState({diagramEngineListener:diagramEngineListener})}};DiagramWidget.prototype.componentWillUpdate=function(nextProps){if(this.props.diagramEngine.diagramModel.id!==nextProps.diagramEngine.diagramModel.id){this.setState({renderedNodes:false});nextProps.diagramEngine.diagramModel.rendered=true}if(!nextProps.diagramEngine.diagramModel.rendered){this.setState({renderedNodes:false});nextProps.diagramEngine.diagramModel.rendered=true}};DiagramWidget.prototype.componentDidUpdate=function(){if(!this.state.renderedNodes){this.setState({renderedNodes:true})}};DiagramWidget.prototype.componentDidMount=function(){var _this=this;this.onKeyUpPointer=this.onKeyUp.bind(this);this.setState({document:document,renderedNodes:true,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:function(){_this.forceUpdate()}})});window.addEventListener("keyup",this.onKeyUpPointer,false);if(true){window.focus()}};DiagramWidget.prototype.getMouseElement=function(event){var target=event.target;var diagramModel=this.props.diagramEngine.diagramModel;var element=Toolkit_1.Toolkit.closest(target,".port[data-name]");if(element){var nodeElement=Toolkit_1.Toolkit.closest(target,".node[data-nodeid]");return{model:diagramModel.getNode(nodeElement.getAttribute("data-nodeid")).getPort(element.getAttribute("data-name")),element:element}}element=Toolkit_1.Toolkit.closest(target,".point[data-id]");if(element){return{model:diagramModel.getLink(element.getAttribute("data-linkid")).getPointModel(element.getAttribute("data-id")),element:element}}element=Toolkit_1.Toolkit.closest(target,"[data-linkid]");if(element){return{model:diagramModel.getLink(element.getAttribute("data-linkid")),element:element}}element=Toolkit_1.Toolkit.closest(target,".node[data-nodeid]");if(element){return{model:diagramModel.getNode(element.getAttribute("data-nodeid")),element:element}}return null};DiagramWidget.prototype.fireAction=function(){if(this.state.action&&this.props.actionStillFiring){this.props.actionStillFiring(this.state.action)}};DiagramWidget.prototype.stopFiringAction=function(shouldSkipEvent){if(this.props.actionStoppedFiring&&!shouldSkipEvent){this.props.actionStoppedFiring(this.state.action)}this.setState({action:null})};DiagramWidget.prototype.startFiringAction=function(action){var setState=true;if(this.props.actionStartedFiring){setState=this.props.actionStartedFiring(action)}if(setState){this.setState({action:action})}};DiagramWidget.prototype.onMouseMove=function(event){var _this=this;var diagramEngine=this.props.diagramEngine;var diagramModel=diagramEngine.getDiagramModel();if(this.state.action instanceof SelectingAction_1.SelectingAction){var relative=diagramEngine.getRelativePoint(event.clientX,event.clientY);_.forEach(diagramModel.getNodes(),function(node){if(_this.state.action.containsElement(node.x,node.y,diagramModel)){node.setSelected(true)}});_.forEach(diagramModel.getLinks(),function(link){var allSelected=true;_.forEach(link.points,function(point){if(_this.state.action.containsElement(point.x,point.y,diagramModel)){point.setSelected(true)}else{allSelected=false}});if(allSelected){link.setSelected(true)}});this.state.action.mouseX2=relative.x;this.state.action.mouseY2=relative.y;this.fireAction();this.setState({action:this.state.action});return}else if(this.state.action instanceof MoveItemsAction_1.MoveItemsAction){var amountX_1=event.clientX-this.state.action.mouseX;var amountY_1=event.clientY-this.state.action.mouseY;var amountZoom_1=diagramModel.getZoomLevel()/100;_.forEach(this.state.action.selectionModels,function(model){if(model.model instanceof NodeModel_1.NodeModel||model.model instanceof PointModel_1.PointModel&&!model.model.isConnectedToPort()){model.model.x=diagramModel.getGridPosition(model.initialX+amountX_1/amountZoom_1);model.model.y=diagramModel.getGridPosition(model.initialY+amountY_1/amountZoom_1);if(model.model instanceof NodeModel_1.NodeModel){_.forEach(model.model.getPorts(),function(port){var portCoords=_this.props.diagramEngine.getPortCoords(port);port.updateCoords(portCoords)})}if(diagramEngine.isSmartRoutingEnabled()){diagramEngine.calculateRoutingMatrix()}}else if(model.model instanceof PointModel_1.PointModel){model.model.x=model.initialX+diagramModel.getGridPosition(amountX_1/amountZoom_1);model.model.y=model.initialY+diagramModel.getGridPosition(amountY_1/amountZoom_1)}});if(diagramEngine.isSmartRoutingEnabled()){diagramEngine.calculateCanvasMatrix()}this.fireAction();if(!this.state.wasMoved){this.setState({wasMoved:true})}else{this.forceUpdate()}}else if(this.state.action instanceof MoveCanvasAction_1.MoveCanvasAction){if(this.props.allowCanvasTranslation){diagramModel.setOffset(this.state.action.initialOffsetX+(event.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(event.clientY-this.state.action.mouseY));this.fireAction();this.forceUpdate()}}};DiagramWidget.prototype.onKeyUp=function(event){var _this=this;if(this.props.deleteKeys.indexOf(event.keyCode)!==-1){_.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),function(element){if(!_this.props.diagramEngine.isModelLocked(element)){element.remove()}});this.forceUpdate()}};DiagramWidget.prototype.onMouseUp=function(event){var _this=this;var diagramEngine=this.props.diagramEngine;if(this.state.action instanceof MoveItemsAction_1.MoveItemsAction){var element=this.getMouseElement(event);_.forEach(this.state.action.selectionModels,function(model){if(!(model.model instanceof PointModel_1.PointModel)){return}if(element&&element.model instanceof PortModel_1.PortModel&&!diagramEngine.isModelLocked(element.model)){var link=model.model.getLink();if(link.getTargetPort()!==null){if(link.getTargetPort()!==element.model&&link.getSourcePort()!==element.model){var targetPort=link.getTargetPort();var newLink=link.clone({});newLink.setSourcePort(element.model);newLink.setTargetPort(targetPort);link.setTargetPort(element.model);targetPort.removeLink(link);newLink.removePointsBefore(newLink.getPoints()[link.getPointIndex(model.model)]);link.removePointsAfter(model.model);diagramEngine.getDiagramModel().addLink(newLink)}else if(link.getTargetPort()===element.model){link.removePointsAfter(model.model)}else if(link.getSourcePort()===element.model){link.removePointsBefore(model.model)}}else{link.setTargetPort(element.model)}delete _this.props.diagramEngine.linksThatHaveInitiallyRendered[link.getID()]}});if(!this.props.allowLooseLinks&&this.state.wasMoved){_.forEach(this.state.action.selectionModels,function(model){if(!(model.model instanceof PointModel_1.PointModel)){return}var selectedPoint=model.model;var link=selectedPoint.getLink();if(link.getSourcePort()===null||link.getTargetPort()===null){link.remove()}})}_.forEach(this.state.action.selectionModels,function(model){if(!(model.model instanceof PointModel_1.PointModel)){return}var link=model.model.getLink();var sourcePort=link.getSourcePort();var targetPort=link.getTargetPort();if(sourcePort!==null&&targetPort!==null){if(!sourcePort.canLinkToPort(targetPort)){link.remove()}else if(_.some(_.values(targetPort.getLinks()),function(l){return l!==link&&(l.getSourcePort()===sourcePort||l.getTargetPort()===sourcePort)})){link.remove()}}});diagramEngine.clearRepaintEntities();this.stopFiringAction(!this.state.wasMoved)}else{diagramEngine.clearRepaintEntities();this.stopFiringAction()}this.state.document.removeEventListener("mousemove",this.onMouseMove);this.state.document.removeEventListener("mouseup",this.onMouseUp)};DiagramWidget.prototype.drawSelectionBox=function(){var dimensions=this.state.action.getBoxDimensions();return React.createElement("div",{className:this.bem("__selector"),style:{top:dimensions.top,left:dimensions.left,width:dimensions.width,height:dimensions.height}})};DiagramWidget.prototype.render=function(){var _this=this;var diagramEngine=this.props.diagramEngine;diagramEngine.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink);diagramEngine.setSmartRoutingStatus(this.props.smartRouting);var diagramModel=diagramEngine.getDiagramModel();return React.createElement("div",__assign({},this.getProps(),{ref:function(ref){if(ref){_this.props.diagramEngine.setCanvas(ref)}},onWheel:function(event){if(_this.props.allowCanvasZoom){event.preventDefault();event.stopPropagation();var oldZoomFactor=diagramModel.getZoomLevel()/100;var scrollDelta=_this.props.inverseZoom?-event.deltaY:event.deltaY;if(event.ctrlKey&&scrollDelta%1!==0){scrollDelta/=3}else{scrollDelta/=60}if(diagramModel.getZoomLevel()+scrollDelta>10){diagramModel.setZoomLevel(diagramModel.getZoomLevel()+scrollDelta)}var zoomFactor=diagramModel.getZoomLevel()/100;var boundingRect=event.currentTarget.getBoundingClientRect();var clientWidth=boundingRect.width;var clientHeight=boundingRect.height;var widthDiff=clientWidth*zoomFactor-clientWidth*oldZoomFactor;var heightDiff=clientHeight*zoomFactor-clientHeight*oldZoomFactor;var clientX=event.clientX-boundingRect.left;var clientY=event.clientY-boundingRect.top;var xFactor=(clientX-diagramModel.getOffsetX())/oldZoomFactor/clientWidth;var yFactor=(clientY-diagramModel.getOffsetY())/oldZoomFactor/clientHeight;diagramModel.setOffset(diagramModel.getOffsetX()-widthDiff*xFactor,diagramModel.getOffsetY()-heightDiff*yFactor);diagramEngine.enableRepaintEntities([]);_this.forceUpdate()}},onMouseDown:function(event){_this.setState(__assign({},_this.state,{wasMoved:false}));diagramEngine.clearRepaintEntities();var model=_this.getMouseElement(event);if(model===null){if(event.shiftKey){var relative=diagramEngine.getRelativePoint(event.clientX,event.clientY);_this.startFiringAction(new SelectingAction_1.SelectingAction(relative.x,relative.y))}else{diagramModel.clearSelection();_this.startFiringAction(new MoveCanvasAction_1.MoveCanvasAction(event.clientX,event.clientY,diagramModel))}}else if(model.model instanceof PortModel_1.PortModel){if(!_this.props.diagramEngine.isModelLocked(model.model)){var relative=diagramEngine.getRelativeMousePoint(event);var sourcePort=model.model;var link=sourcePort.createLinkModel();link.setSourcePort(sourcePort);if(link){link.removeMiddlePoints();if(link.getSourcePort()!==sourcePort){link.setSourcePort(sourcePort)}link.setTargetPort(null);link.getFirstPoint().updateLocation(relative);link.getLastPoint().updateLocation(relative);diagramModel.clearSelection();link.getLastPoint().setSelected(true);diagramModel.addLink(link);_this.startFiringAction(new MoveItemsAction_1.MoveItemsAction(event.clientX,event.clientY,diagramEngine))}}else{diagramModel.clearSelection()}}else{if(!event.shiftKey&&!model.model.isSelected()){diagramModel.clearSelection()}model.model.setSelected(true);_this.startFiringAction(new MoveItemsAction_1.MoveItemsAction(event.clientX,event.clientY,diagramEngine))}_this.state.document.addEventListener("mousemove",_this.onMouseMove);_this.state.document.addEventListener("mouseup",_this.onMouseUp)}}),this.state.renderedNodes&&React.createElement(LinkLayerWidget_1.LinkLayerWidget,{diagramEngine:diagramEngine,pointAdded:function(point,event){_this.state.document.addEventListener("mousemove",_this.onMouseMove);_this.state.document.addEventListener("mouseup",_this.onMouseUp);event.stopPropagation();diagramModel.clearSelection(point);_this.setState({action:new MoveItemsAction_1.MoveItemsAction(event.clientX,event.clientY,diagramEngine)})}}),React.createElement(NodeLayerWidget_1.NodeLayerWidget,{diagramEngine:diagramEngine}),this.state.action instanceof SelectingAction_1.SelectingAction&&this.drawSelectionBox())};DiagramWidget.defaultProps={diagramEngine:null,allowLooseLinks:true,allowCanvasTranslation:true,allowCanvasZoom:true,inverseZoom:false,maxNumberPointsPerLink:Infinity,smartRouting:false,deleteKeys:[46,8]};return DiagramWidget}(BaseWidget_1.BaseWidget);exports.DiagramWidget=DiagramWidget},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var DefaultNodeModel_1=__webpack_require__(38);var React=__webpack_require__(1);var DefaultNodeWidget_1=__webpack_require__(35);var AbstractNodeFactory_1=__webpack_require__(32);var DefaultNodeFactory=function(_super){__extends(DefaultNodeFactory,_super);function DefaultNodeFactory(){return _super.call(this,"default")||this}DefaultNodeFactory.prototype.generateReactWidget=function(diagramEngine,node){return React.createElement(DefaultNodeWidget_1.DefaultNodeWidget,{node:node,diagramEngine:diagramEngine})};DefaultNodeFactory.prototype.getNewInstance=function(initialConfig){return new DefaultNodeModel_1.DefaultNodeModel};return DefaultNodeFactory}(AbstractNodeFactory_1.AbstractNodeFactory);exports.DefaultNodeFactory=DefaultNodeFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var React=__webpack_require__(1);var DefaultLinkWidget_1=__webpack_require__(37);var AbstractLinkFactory_1=__webpack_require__(36);var DefaultLinkModel_1=__webpack_require__(19);var DefaultLinkFactory=function(_super){__extends(DefaultLinkFactory,_super);function DefaultLinkFactory(){return _super.call(this,"default")||this}DefaultLinkFactory.prototype.generateReactWidget=function(diagramEngine,link){return React.createElement(DefaultLinkWidget_1.DefaultLinkWidget,{link:link,diagramEngine:diagramEngine})};DefaultLinkFactory.prototype.getNewInstance=function(initialConfig){return new DefaultLinkModel_1.DefaultLinkModel};DefaultLinkFactory.prototype.generateLinkSegment=function(model,widget,selected,path){return React.createElement("path",{className:selected?widget.bem("--path-selected"):"",strokeWidth:model.width,stroke:model.color,d:path})};return DefaultLinkFactory}(AbstractLinkFactory_1.AbstractLinkFactory);exports.DefaultLinkFactory=DefaultLinkFactory},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var BaseEntity_1=__webpack_require__(13);var DiagramModel_1=__webpack_require__(44);var _=__webpack_require__(0);var NodeModel_1=__webpack_require__(9);var PointModel_1=__webpack_require__(5);var main_1=__webpack_require__(45);var PathFinding_1=__webpack_require__(16);var DefaultPortFactory_1=__webpack_require__(43);var DefaultLabelFactory_1=__webpack_require__(41);var Toolkit_1=__webpack_require__(7);var DiagramEngine=function(_super){__extends(DiagramEngine,_super);function DiagramEngine(){var _this=_super.call(this)||this;_this.canvasMatrix=[];_this.routingMatrix=[];_this.hAdjustmentFactor=0;_this.vAdjustmentFactor=0;_this.calculateMatrixDimensions=function(){var allNodesCoords=_.values(_this.diagramModel.nodes).map(function(item){return{x:item.x,width:item.width,y:item.y,height:item.height}});var allLinks=_.values(_this.diagramModel.links);var allPortsCoords=_.flatMap(allLinks.map(function(link){return[link.sourcePort,link.targetPort]})).filter(function(port){return port!==null}).map(function(item){return{x:item.x,width:item.width,y:item.y,height:item.height}});var allPointsCoords=_.flatMap(allLinks.map(function(link){return link.points})).map(function(item){return{x:item.x,width:0,y:item.y,height:0}});var canvas=_this.canvas;var minX=Math.floor(Math.min(_.minBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.x}).x,0)/PathFinding_1.ROUTING_SCALING_FACTOR)*PathFinding_1.ROUTING_SCALING_FACTOR;var maxXElement=_.maxBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.x+item.width});var maxX=Math.max(maxXElement.x+maxXElement.width,canvas.offsetWidth);var minY=Math.floor(Math.min(_.minBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.y}).y,0)/PathFinding_1.ROUTING_SCALING_FACTOR)*PathFinding_1.ROUTING_SCALING_FACTOR;var maxYElement=_.maxBy(_.concat(allNodesCoords,allPortsCoords,allPointsCoords),function(item){return item.y+item.height});var maxY=Math.max(maxYElement.y+maxYElement.height,canvas.offsetHeight);return{width:Math.ceil(Math.abs(minX)+maxX),hAdjustmentFactor:Math.abs(minX)/PathFinding_1.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(minY)+maxY),vAdjustmentFactor:Math.abs(minY)/PathFinding_1.ROUTING_SCALING_FACTOR+1}};_this.markNodes=function(matrix){_.values(_this.diagramModel.nodes).forEach(function(node){var startX=Math.floor(node.x/PathFinding_1.ROUTING_SCALING_FACTOR);var endX=Math.ceil((node.x+node.width)/PathFinding_1.ROUTING_SCALING_FACTOR);var startY=Math.floor(node.y/PathFinding_1.ROUTING_SCALING_FACTOR);var endY=Math.ceil((node.y+node.height)/PathFinding_1.ROUTING_SCALING_FACTOR);for(var x=startX-1;x<=endX+1;x++){for(var y=startY-1;y<endY+1;y++){_this.markMatrixPoint(matrix,_this.translateRoutingX(x),_this.translateRoutingY(y))}}})};_this.markPorts=function(matrix){var allElements=_.flatMap(_.values(_this.diagramModel.links).map(function(link){return[].concat(link.sourcePort,link.targetPort)}));allElements.filter(function(port){return port!==null}).forEach(function(port){var startX=Math.floor(port.x/PathFinding_1.ROUTING_SCALING_FACTOR);var endX=Math.ceil((port.x+port.width)/PathFinding_1.ROUTING_SCALING_FACTOR);var startY=Math.floor(port.y/PathFinding_1.ROUTING_SCALING_FACTOR);var endY=Math.ceil((port.y+port.height)/PathFinding_1.ROUTING_SCALING_FACTOR);for(var x=startX-1;x<=endX+1;x++){for(var y=startY-1;y<endY+1;y++){_this.markMatrixPoint(matrix,_this.translateRoutingX(x),_this.translateRoutingY(y))}}})};_this.markMatrixPoint=function(matrix,x,y){if(matrix[y]!==undefined&&matrix[y][x]!==undefined){matrix[y][x]=1}};_this.diagramModel=new DiagramModel_1.DiagramModel;_this.nodeFactories={};_this.linkFactories={};_this.portFactories={};_this.labelFactories={};_this.canvas=null;_this.paintableWidgets=null;_this.linksThatHaveInitiallyRendered={};if(Toolkit_1.Toolkit.TESTING){Toolkit_1.Toolkit.TESTING_UID=0;if(window){window["diagram_instance"]=_this}}return _this}DiagramEngine.prototype.installDefaultFactories=function(){this.registerNodeFactory(new main_1.DefaultNodeFactory);this.registerLinkFactory(new main_1.DefaultLinkFactory);this.registerPortFactory(new DefaultPortFactory_1.DefaultPortFactory);this.registerLabelFactory(new DefaultLabelFactory_1.DefaultLabelFactory)};DiagramEngine.prototype.repaintCanvas=function(){this.iterateListeners(function(listener){if(listener.repaintCanvas){listener.repaintCanvas()}})};DiagramEngine.prototype.clearRepaintEntities=function(){this.paintableWidgets=null};DiagramEngine.prototype.enableRepaintEntities=function(entities){var _this=this;this.paintableWidgets={};entities.forEach(function(entity){if(entity instanceof NodeModel_1.NodeModel){_.forEach(entity.getPorts(),function(port){_.forEach(port.getLinks(),function(link){_this.paintableWidgets[link.getID()]=true})})}if(entity instanceof PointModel_1.PointModel){_this.paintableWidgets[entity.getLink().getID()]=true}_this.paintableWidgets[entity.getID()]=true})};DiagramEngine.prototype.isModelLocked=function(model){if(this.diagramModel.isLocked()){return true}return model.isLocked()};DiagramEngine.prototype.recalculatePortsVisually=function(){this.nodesRendered=false;this.linksThatHaveInitiallyRendered={}};DiagramEngine.prototype.canEntityRepaint=function(baseModel){if(this.paintableWidgets===null){return true}return this.paintableWidgets[baseModel.getID()]!==undefined};DiagramEngine.prototype.setCanvas=function(canvas){this.canvas=canvas};DiagramEngine.prototype.setDiagramModel=function(model){this.diagramModel=model;this.recalculatePortsVisually()};DiagramEngine.prototype.getDiagramModel=function(){return this.diagramModel};
  41965. //!-------------- FACTORIES ------------
  41966. DiagramEngine.prototype.getNodeFactories=function(){return this.nodeFactories};DiagramEngine.prototype.getLinkFactories=function(){return this.linkFactories};DiagramEngine.prototype.getLabelFactories=function(){return this.labelFactories};DiagramEngine.prototype.registerLabelFactory=function(factory){this.labelFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.labelFactoriesUpdated){listener.labelFactoriesUpdated()}})};DiagramEngine.prototype.registerPortFactory=function(factory){this.portFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.portFactoriesUpdated){listener.portFactoriesUpdated()}})};DiagramEngine.prototype.registerNodeFactory=function(factory){this.nodeFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.nodeFactoriesUpdated){listener.nodeFactoriesUpdated()}})};DiagramEngine.prototype.registerLinkFactory=function(factory){this.linkFactories[factory.getType()]=factory;this.iterateListeners(function(listener){if(listener.linkFactoriesUpdated){listener.linkFactoriesUpdated()}})};DiagramEngine.prototype.getPortFactory=function(type){if(this.portFactories[type]){return this.portFactories[type]}throw new Error("cannot find factory for port of type: ["+type+"]")};DiagramEngine.prototype.getNodeFactory=function(type){if(this.nodeFactories[type]){return this.nodeFactories[type]}throw new Error("cannot find factory for node of type: ["+type+"]")};DiagramEngine.prototype.getLinkFactory=function(type){if(this.linkFactories[type]){return this.linkFactories[type]}throw new Error("cannot find factory for link of type: ["+type+"]")};DiagramEngine.prototype.getLabelFactory=function(type){if(this.labelFactories[type]){return this.labelFactories[type]}throw new Error("cannot find factory for label of type: ["+type+"]")};DiagramEngine.prototype.getFactoryForNode=function(node){return this.getNodeFactory(node.getType())};DiagramEngine.prototype.getFactoryForLink=function(link){return this.getLinkFactory(link.getType())};DiagramEngine.prototype.getFactoryForLabel=function(label){return this.getLabelFactory(label.getType())};DiagramEngine.prototype.generateWidgetForLink=function(link){var linkFactory=this.getFactoryForLink(link);if(!linkFactory){throw new Error("Cannot find link factory for link: "+link.getType())}return linkFactory.generateReactWidget(this,link)};DiagramEngine.prototype.generateWidgetForNode=function(node){var nodeFactory=this.getFactoryForNode(node);if(!nodeFactory){throw new Error("Cannot find widget factory for node: "+node.getType())}return nodeFactory.generateReactWidget(this,node)};DiagramEngine.prototype.getRelativeMousePoint=function(event){var point=this.getRelativePoint(event.clientX,event.clientY);return{x:(point.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(point.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}};DiagramEngine.prototype.getRelativePoint=function(x,y){var canvasRect=this.canvas.getBoundingClientRect();return{x:x-canvasRect.left,y:y-canvasRect.top}};DiagramEngine.prototype.getNodeElement=function(node){var selector=this.canvas.querySelector('.node[data-nodeid="'+node.getID()+'"]');if(selector===null){throw new Error("Cannot find Node element with nodeID: ["+node.getID()+"]")}return selector};DiagramEngine.prototype.getNodePortElement=function(port){var selector=this.canvas.querySelector('.port[data-name="'+port.getName()+'"][data-nodeid="'+port.getParent().getID()+'"]');if(selector===null){throw new Error("Cannot find Node Port element with nodeID: ["+port.getParent().getID()+"] and name: ["+port.getName()+"]")}return selector};DiagramEngine.prototype.getPortCenter=function(port){var sourceElement=this.getNodePortElement(port);var sourceRect=sourceElement.getBoundingClientRect();var rel=this.getRelativePoint(sourceRect.left,sourceRect.top);return{x:sourceElement.offsetWidth/2+(rel.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:sourceElement.offsetHeight/2+(rel.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}};DiagramEngine.prototype.getPortCoords=function(port){var sourceElement=this.getNodePortElement(port);var sourceRect=sourceElement.getBoundingClientRect();var canvasRect=this.canvas.getBoundingClientRect();return{x:(sourceRect.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-canvasRect.left,y:(sourceRect.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-canvasRect.top,width:sourceRect.width,height:sourceRect.height}};DiagramEngine.prototype.getNodeDimensions=function(node){if(!this.canvas){return{width:0,height:0}}var nodeElement=this.getNodeElement(node);var nodeRect=nodeElement.getBoundingClientRect();return{width:nodeRect.width,height:nodeRect.height}};DiagramEngine.prototype.getMaxNumberPointsPerLink=function(){return this.maxNumberPointsPerLink};DiagramEngine.prototype.setMaxNumberPointsPerLink=function(max){this.maxNumberPointsPerLink=max};DiagramEngine.prototype.isSmartRoutingEnabled=function(){return!!this.smartRouting};DiagramEngine.prototype.setSmartRoutingStatus=function(status){this.smartRouting=status};DiagramEngine.prototype.getCanvasMatrix=function(){if(this.canvasMatrix.length===0){this.calculateCanvasMatrix()}return this.canvasMatrix};DiagramEngine.prototype.calculateCanvasMatrix=function(){var _a=this.calculateMatrixDimensions(),canvasWidth=_a.width,hAdjustmentFactor=_a.hAdjustmentFactor,canvasHeight=_a.height,vAdjustmentFactor=_a.vAdjustmentFactor;this.hAdjustmentFactor=hAdjustmentFactor;this.vAdjustmentFactor=vAdjustmentFactor;var matrixWidth=Math.ceil(canvasWidth/PathFinding_1.ROUTING_SCALING_FACTOR);var matrixHeight=Math.ceil(canvasHeight/PathFinding_1.ROUTING_SCALING_FACTOR);this.canvasMatrix=_.range(0,matrixHeight).map(function(){return new Array(matrixWidth).fill(0)})};DiagramEngine.prototype.getRoutingMatrix=function(){if(this.routingMatrix.length===0){this.calculateRoutingMatrix()}return this.routingMatrix};DiagramEngine.prototype.calculateRoutingMatrix=function(){var matrix=_.cloneDeep(this.getCanvasMatrix());this.markNodes(matrix);this.markPorts(matrix);this.routingMatrix=matrix};DiagramEngine.prototype.translateRoutingX=function(x,reverse){if(reverse===void 0){reverse=false}return x+this.hAdjustmentFactor*(reverse?-1:1)};DiagramEngine.prototype.translateRoutingY=function(y,reverse){if(reverse===void 0){reverse=false}return y+this.vAdjustmentFactor*(reverse?-1:1)};DiagramEngine.prototype.zoomToFit=function(){var xFactor=this.canvas.clientWidth/this.canvas.scrollWidth;var yFactor=this.canvas.clientHeight/this.canvas.scrollHeight;var zoomFactor=xFactor<yFactor?xFactor:yFactor;this.diagramModel.setZoomLevel(this.diagramModel.getZoomLevel()*zoomFactor);this.diagramModel.setOffset(0,0);this.repaintCanvas()};return DiagramEngine}(BaseEntity_1.BaseEntity);exports.DiagramEngine=DiagramEngine},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var sq=function sq(x){return x*x};var distPointToPoint=function distPointToPoint(_ref,_ref3){var _ref2=_slicedToArray(_ref,2);var ax=_ref2[0];var ay=_ref2[1];var _ref32=_slicedToArray(_ref3,2);var bx=_ref32[0];var by=_ref32[1];return Math.sqrt(sq(ax-bx)+sq(ay-by))};var distPointToParabol=function distPointToParabol(a,f){var p=distPointToPoint(a,f);return p==0?Infinity:sq(p)/(2*Math.abs(a[1]-f[1]))};var circumCenter=function circumCenter(a,b,c){var d=(a[0]-c[0])*(b[1]-c[1])-(b[0]-c[0])*(a[1]-c[1]);if(d==0)return[Infinity,Infinity];var xc=(((a[0]-c[0])*(a[0]+c[0])+(a[1]-c[1])*(a[1]+c[1]))/2*(b[1]-c[1])-((b[0]-c[0])*(b[0]+c[0])+(b[1]-c[1])*(b[1]+c[1]))/2*(a[1]-c[1]))/d;var yc=(((b[0]-c[0])*(b[0]+c[0])+(b[1]-c[1])*(b[1]+c[1]))/2*(a[0]-c[0])-((a[0]-c[0])*(a[0]+c[0])+(a[1]-c[1])*(a[1]+c[1]))/2*(b[0]-c[0]))/d;return[xc,yc]};var parabolsCrossX=function parabolsCrossX(fa,fb,q){if(fa[1]===fb[1])return[(fa[0]+fb[0])/2,(fa[0]+fb[0])/2];var s1=(fa[1]*fb[0]-fa[0]*fb[1]+fa[0]*q-fb[0]*q+Math.sqrt((fa[0]*fa[0]+fa[1]*fa[1]-2*fa[0]*fb[0]+fb[0]*fb[0]-2*fa[1]*fb[1]+fb[1]*fb[1])*(fa[1]*fb[1]-fa[1]*q-fb[1]*q+q*q)))/(fa[1]-fb[1]);var s2=(fa[1]*fb[0]-fa[0]*fb[1]+fa[0]*q-fb[0]*q-Math.sqrt((fa[0]*fa[0]+fa[1]*fa[1]-2*fa[0]*fb[0]+fb[0]*fb[0]-2*fa[1]*fb[1]+fb[1]*fb[1])*(fa[1]*fb[1]-fa[1]*q-fb[1]*q+q*q)))/(fa[1]-fb[1]);return s1<s2?[s1,s2]:[s2,s1]};var doHalflinesCross=function doHalflinesCross(sa,sb){var approx=arguments.length<=2||arguments[2]===undefined?1e-10:arguments[2];var dx=sb.ps[0]-sa.ps[0];var dy=sb.ps[1]-sa.ps[1];if(sa.m==Infinity)return sa.hp*(sb.m*dx-dy)<=approx&&sb.vec[0]*dx<=approx;if(sb.m==Infinity)return sb.hp*(sa.m*dx-dy)>=-approx&&sa.vec[0]*dx>=-approx;var det=sb.vec[0]*sa.vec[1]-sb.vec[1]*sa.vec[0];if(det===0)return false;var u=(dy*sb.vec[0]-dx*sb.vec[1])/det;var v=(dy*sa.vec[0]-dx*sa.vec[1])/det;return u>=-approx&&v>=approx||u>=approx&&v>=-approx};var matrixTransform=function matrixTransform(points,matrix){return points.map(function(point){return{x:point.x*matrix[0]+point.y*matrix[2]+matrix[4],y:point.x*matrix[1]+point.y*matrix[3]+matrix[5]}})};var transformEllipse=function transformEllipse(rx,ry,ax,m){var torad=Math.PI/180;var epsilon=1e-10;var c=Math.cos(ax*torad),s=Math.sin(ax*torad);var ma=[rx*(m[0]*c+m[2]*s),rx*(m[1]*c+m[3]*s),ry*(-m[0]*s+m[2]*c),ry*(-m[1]*s+m[3]*c)];var J=ma[0]*ma[0]+ma[2]*ma[2],K=ma[1]*ma[1]+ma[3]*ma[3];var D=((ma[0]-ma[3])*(ma[0]-ma[3])+(ma[2]+ma[1])*(ma[2]+ma[1]))*((ma[0]+ma[3])*(ma[0]+ma[3])+(ma[2]-ma[1])*(ma[2]-ma[1]));var JK=(J+K)/2;if(D<epsilon*JK){return{rx:Math.sqrt(JK),ry:Math.sqrt(JK),ax:0,isDegenerate:false}}var L=ma[0]*ma[1]+ma[2]*ma[3];D=Math.sqrt(D);var l1=JK+D/2,l2=JK-D/2;var newAx=undefined,newRx=undefined,newRy=undefined;newAx=Math.abs(L)<epsilon&&Math.abs(l1-K)<epsilon?90:Math.atan(Math.abs(L)>Math.abs(l1-K)?(l1-J)/L:L/(l1-K))*180/Math.PI;if(newAx>=0){newRx=Math.sqrt(l1);newRy=Math.sqrt(l2)}else{newAx+=90;newRx=Math.sqrt(l2);newRy=Math.sqrt(l1)}return{rx:newRx,ry:newRy,ax:newAx,isDegenerate:newRx<epsilon*newRy||newRy<epsilon*newRx}};exports["default"]={distPointToPoint:distPointToPoint,distPointToParabol:distPointToParabol,circumCenter:circumCenter,parabolsCrossX:parabolsCrossX,doHalflinesCross:doHalflinesCross,matrixTransform:matrixTransform,transformEllipse:transformEllipse};module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _geom=__webpack_require__(50);var Path=function Path(init){var _instructions=init||[];var push=function push(arr,el){var copy=arr.slice(0,arr.length);copy.push(el);return copy};var areEqualPoints=function areEqualPoints(_ref,_ref3){var _ref2=_slicedToArray(_ref,2);var a1=_ref2[0];var b1=_ref2[1];var _ref32=_slicedToArray(_ref3,2);var a2=_ref32[0];var b2=_ref32[1];return a1===a2&&b1===b2};var trimZeros=function trimZeros(string,char){var l=string.length;while(string.charAt(l-1)==="0"){l=l-1}if(string.charAt(l-1)==="."){l=l-1}return string.substr(0,l)};var round=function round(number,digits){var str=number.toFixed(digits);return trimZeros(str)};var printInstrunction=function printInstrunction(_ref4){var command=_ref4.command;var params=_ref4.params;var numbers=params.map(function(param){return round(param,6)});return command+" "+numbers.join(" ")};var point=function point(_ref5,prev){var command=_ref5.command;var params=_ref5.params;switch(command){case"M":return[params[0],params[1]];case"L":return[params[0],params[1]];case"H":return[params[0],prev[1]];case"V":return[prev[0],params[0]];case"Z":return null;case"C":return[params[4],params[5]];case"S":return[params[2],params[3]];case"Q":return[params[2],params[3]];case"T":return[params[0],params[1]];case"A":return[params[5],params[6]]}};var transformParams=function transformParams(instruction,matrix,prev){var p=instruction.params;var transformer={V:function V(instruction,matrix,prev){var pts=[{x:prev[0],y:p[1]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);if(newPts[0].x===(0,_geom.matrixTransform)([{x:prev[0],y:prev[1]}])[0].x){return{command:"V",params:[newPts[0].y]}}else{return{command:"L",params:[newPts[0].x,newPts[0].y]}}},H:function H(instruction,matrix,prev){var pts=[{x:p[0],y:prev[1]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);if(newPts[0].y===(0,_geom.matrixTransform)([{x:prev[0],y:prev[1]}])[0].y){return{command:"H",params:[newPts[0].x]}}else{return{command:"L",params:[newPts[0].x,newPts[0].y]}}},A:function A(instruction,matrix,prev){var r=(0,_geom.transformEllipse)(p[0],p[1],p[2],matrix);var sweepFlag=p[4];if(matrix[0]*matrix[3]-matrix[1]*matrix[2]<0){sweepFlag=sweepFlag?"0":"1"}var pts=[{x:p[5],y:p[6]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);if(r.isDegenerate){return{command:"L",params:[newPts[0].x,newPts[0].y]}}else{return{command:"A",params:[r.rx,r.ry,r.ax,p[3],sweepFlag,newPts[0].x,newPts[0].y]}}},C:function C(instruction,matrix,prev){var pts=[{x:p[0],y:p[1]},{x:p[2],y:p[3]},{x:p[4],y:p[5]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);return{command:"C",params:[newPts[0].x,newPts[0].y,newPts[1].x,newPts[1].y,newPts[2].x,newPts[2].y]}},Z:function Z(instruction,matrix,prev){return{command:"Z",params:[]}},default:function _default(instruction,matrix,prev){var pts=[{x:p[0],y:p[1]}];var newPts=(0,_geom.matrixTransform)(pts,matrix);var newParams=instruction.params.slice(0,instruction.params.length);newParams.splice(0,2,newPts[0].x,newPts[0].y);return{command:instruction.command,params:newParams}}};if(transformer[instruction.command]){return transformer[instruction.command](instruction,matrix,prev)}else{return transformer["default"](instruction,matrix,prev)}};var verbosify=function verbosify(keys,f){return function(a){var args=typeof a==="object"?keys.map(function(k){return a[k]}):arguments;return f.apply(null,args)}};var plus=function plus(instruction){return Path(push(_instructions,instruction))};return{moveto:verbosify(["x","y"],function(x,y){return plus({command:"M",params:[x,y]})}),lineto:verbosify(["x","y"],function(x,y){return plus({command:"L",params:[x,y]})}),hlineto:verbosify(["x"],function(x){return plus({command:"H",params:[x]})}),vlineto:verbosify(["y"],function(y){return plus({command:"V",params:[y]})}),closepath:function closepath(){return plus({command:"Z",params:[]})},curveto:verbosify(["x1","y1","x2","y2","x","y"],function(x1,y1,x2,y2,x,y){return plus({command:"C",params:[x1,y1,x2,y2,x,y]})}),smoothcurveto:verbosify(["x2","y2","x","y"],function(x2,y2,x,y){return plus({command:"S",params:[x2,y2,x,y]})}),qcurveto:verbosify(["x1","y1","x","y"],function(x1,y1,x,y){return plus({command:"Q",params:[x1,y1,x,y]})}),smoothqcurveto:verbosify(["x","y"],function(x,y){return plus({command:"T",params:[x,y]})}),arc:verbosify(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],function(rx,ry,xrot,largeArcFlag,sweepFlag,x,y){return plus({command:"A",params:[rx,ry,xrot,largeArcFlag,sweepFlag,x,y]})}),translate:verbosify(["dx","dy"],function(){var dx=arguments.length<=0||arguments[0]===undefined?0:arguments[0];var dy=arguments.length<=1||arguments[1]===undefined?0:arguments[1];if(dx!==0||dx!==0){var _ret=function(){var prev=[0,0];var matrix=[1,0,0,1,dx,dy];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret==="object")return _ret.v}else{return Path(_instructions)}}),rotate:verbosify(["angle","rx","ry"],function(angle){var rx=arguments.length<=1||arguments[1]===undefined?0:arguments[1];var ry=arguments.length<=2||arguments[2]===undefined?0:arguments[2];if(angle!==0){var _ret2=function(){var prev=undefined;var matrix=undefined;var newInstructions=_instructions;if(rx!==0&&ry!==0){prev=[0,0];matrix=[1,0,0,1,-rx,-ry];newInstructions=newInstructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p})}var rad=angle*Math.PI/180;var cos=Math.cos(rad);var sin=Math.sin(rad);prev=[0,0];matrix=[cos,sin,-sin,cos,0,0];newInstructions=newInstructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});if(rx!==0&&ry!==0){prev=[0,0];matrix=[1,0,0,1,rx,ry];newInstructions=newInstructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p})}return{v:Path(newInstructions)}}();if(typeof _ret2==="object")return _ret2.v}else{return Path(_instructions)}}),scale:verbosify(["sx","sy"],function(){var sx=arguments.length<=0||arguments[0]===undefined?1:arguments[0];var sy=arguments.length<=1||arguments[1]===undefined?sx:arguments[1];return function(){if(sx!==1||sy!==1){var _ret3=function(){var prev=[0,0];var matrix=[sx,0,0,sy,0,0];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret3==="object")return _ret3.v}else{return Path(_instructions)}}()}),shearX:verbosify(["angle"],function(){var angle=arguments.length<=0||arguments[0]===undefined?0:arguments[0];if(angle!==0){var _ret4=function(){var prev=[0,0];var matrix=[1,0,Math.tan(angle*Math.PI/180),1,0,0];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret4==="object")return _ret4.v}else{return Path(_instructions)}}),shearY:verbosify(["angle"],function(){var angle=arguments.length<=0||arguments[0]===undefined?0:arguments[0];if(angle!==0){var _ret5=function(){var prev=[0,0];var matrix=[1,Math.tan(angle*Math.PI/180),0,1,0,0];var newInstructions=_instructions.map(function(instruction){var p=transformParams(instruction,matrix,prev);prev=point(instruction,prev);return p});return{v:Path(newInstructions)}}();if(typeof _ret5==="object")return _ret5.v}else{return Path(_instructions)}}),print:function print(){return _instructions.map(printInstrunction).join(" ")},toString:function toString(){return undefined.print()},points:function points(){var ps=[];var prev=[0,0];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=_instructions[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var instruction=_step.value;var p=point(instruction,prev);prev=p;if(p){ps.push(p)}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}return ps},instructions:function instructions(){return _instructions.slice(0,_instructions.length)},connect:function connect(path){var ps=this.points();var last=ps[ps.length-1];var first=path.points()[0];var newInstructions=undefined;if(_instructions[_instructions.length-1].command!=="Z"){newInstructions=path.instructions().slice(1);if(!areEqualPoints(last,first)){newInstructions.unshift({command:"L",params:first})}}else{newInstructions=path.instructions()}return Path(this.instructions().concat(newInstructions))}}};exports["default"]=function(){return Path()};module.exports=exports["default"]},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFMoveDiagonallyIfAtMostOneObstacle(opt){JumpPointFinderBase.call(this,opt)}JPFMoveDiagonallyIfAtMostOneObstacle.prototype=new JumpPointFinderBase;JPFMoveDiagonallyIfAtMostOneObstacle.prototype.constructor=JPFMoveDiagonallyIfAtMostOneObstacle;JPFMoveDiagonallyIfAtMostOneObstacle.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0&&dy!==0){if(grid.isWalkableAt(x-dx,y+dy)&&!grid.isWalkableAt(x-dx,y)||grid.isWalkableAt(x+dx,y-dy)&&!grid.isWalkableAt(x,y-dy)){return[x,y]}if(this._jump(x+dx,y,x,y)||this._jump(x,y+dy,x,y)){return[x,y]}}else{if(dx!==0){if(grid.isWalkableAt(x+dx,y+1)&&!grid.isWalkableAt(x,y+1)||grid.isWalkableAt(x+dx,y-1)&&!grid.isWalkableAt(x,y-1)){return[x,y]}}else{if(grid.isWalkableAt(x+1,y+dy)&&!grid.isWalkableAt(x+1,y)||grid.isWalkableAt(x-1,y+dy)&&!grid.isWalkableAt(x-1,y)){return[x,y]}}}if(grid.isWalkableAt(x+dx,y)||grid.isWalkableAt(x,y+dy)){return this._jump(x+dx,y+dy,x,y)}else{return null}};JPFMoveDiagonallyIfAtMostOneObstacle.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0&&dy!==0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(grid.isWalkableAt(x,y+dy)||grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y+dy])}if(!grid.isWalkableAt(x-dx,y)&&grid.isWalkableAt(x,y+dy)){neighbors.push([x-dx,y+dy])}if(!grid.isWalkableAt(x,y-dy)&&grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y-dy])}}else{if(dx===0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy]);if(!grid.isWalkableAt(x+1,y)){neighbors.push([x+1,y+dy])}if(!grid.isWalkableAt(x-1,y)){neighbors.push([x-1,y+dy])}}}else{if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y]);if(!grid.isWalkableAt(x,y+1)){neighbors.push([x+dx,y+1])}if(!grid.isWalkableAt(x,y-1)){neighbors.push([x+dx,y-1])}}}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.IfAtMostOneObstacle);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFMoveDiagonallyIfAtMostOneObstacle},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFMoveDiagonallyIfNoObstacles(opt){JumpPointFinderBase.call(this,opt)}JPFMoveDiagonallyIfNoObstacles.prototype=new JumpPointFinderBase;JPFMoveDiagonallyIfNoObstacles.prototype.constructor=JPFMoveDiagonallyIfNoObstacles;JPFMoveDiagonallyIfNoObstacles.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0&&dy!==0){if(this._jump(x+dx,y,x,y)||this._jump(x,y+dy,x,y)){return[x,y]}}else{if(dx!==0){if(grid.isWalkableAt(x,y-1)&&!grid.isWalkableAt(x-dx,y-1)||grid.isWalkableAt(x,y+1)&&!grid.isWalkableAt(x-dx,y+1)){return[x,y]}}else if(dy!==0){if(grid.isWalkableAt(x-1,y)&&!grid.isWalkableAt(x-1,y-dy)||grid.isWalkableAt(x+1,y)&&!grid.isWalkableAt(x+1,y-dy)){return[x,y]}}}if(grid.isWalkableAt(x+dx,y)&&grid.isWalkableAt(x,y+dy)){return this._jump(x+dx,y+dy,x,y)}else{return null}};JPFMoveDiagonallyIfNoObstacles.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0&&dy!==0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(grid.isWalkableAt(x,y+dy)&&grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y+dy])}}else{var isNextWalkable;if(dx!==0){isNextWalkable=grid.isWalkableAt(x+dx,y);var isTopWalkable=grid.isWalkableAt(x,y+1);var isBottomWalkable=grid.isWalkableAt(x,y-1);if(isNextWalkable){neighbors.push([x+dx,y]);if(isTopWalkable){neighbors.push([x+dx,y+1])}if(isBottomWalkable){neighbors.push([x+dx,y-1])}}if(isTopWalkable){neighbors.push([x,y+1])}if(isBottomWalkable){neighbors.push([x,y-1])}}else if(dy!==0){isNextWalkable=grid.isWalkableAt(x,y+dy);var isRightWalkable=grid.isWalkableAt(x+1,y);var isLeftWalkable=grid.isWalkableAt(x-1,y);if(isNextWalkable){neighbors.push([x,y+dy]);if(isRightWalkable){neighbors.push([x+1,y+dy])}if(isLeftWalkable){neighbors.push([x-1,y+dy])}}if(isRightWalkable){neighbors.push([x+1,y])}if(isLeftWalkable){neighbors.push([x-1,y])}}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.OnlyWhenNoObstacles);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFMoveDiagonallyIfNoObstacles},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFAlwaysMoveDiagonally(opt){JumpPointFinderBase.call(this,opt)}JPFAlwaysMoveDiagonally.prototype=new JumpPointFinderBase;JPFAlwaysMoveDiagonally.prototype.constructor=JPFAlwaysMoveDiagonally;JPFAlwaysMoveDiagonally.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0&&dy!==0){if(grid.isWalkableAt(x-dx,y+dy)&&!grid.isWalkableAt(x-dx,y)||grid.isWalkableAt(x+dx,y-dy)&&!grid.isWalkableAt(x,y-dy)){return[x,y]}if(this._jump(x+dx,y,x,y)||this._jump(x,y+dy,x,y)){return[x,y]}}else{if(dx!==0){if(grid.isWalkableAt(x+dx,y+1)&&!grid.isWalkableAt(x,y+1)||grid.isWalkableAt(x+dx,y-1)&&!grid.isWalkableAt(x,y-1)){return[x,y]}}else{if(grid.isWalkableAt(x+1,y+dy)&&!grid.isWalkableAt(x+1,y)||grid.isWalkableAt(x-1,y+dy)&&!grid.isWalkableAt(x-1,y)){return[x,y]}}}return this._jump(x+dx,y+dy,x,y)};JPFAlwaysMoveDiagonally.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0&&dy!==0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(grid.isWalkableAt(x+dx,y+dy)){neighbors.push([x+dx,y+dy])}if(!grid.isWalkableAt(x-dx,y)){neighbors.push([x-dx,y+dy])}if(!grid.isWalkableAt(x,y-dy)){neighbors.push([x+dx,y-dy])}}else{if(dx===0){if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}if(!grid.isWalkableAt(x+1,y)){neighbors.push([x+1,y+dy])}if(!grid.isWalkableAt(x-1,y)){neighbors.push([x-1,y+dy])}}else{if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}if(!grid.isWalkableAt(x,y+1)){neighbors.push([x+dx,y+1])}if(!grid.isWalkableAt(x,y-1)){neighbors.push([x+dx,y-1])}}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.Always);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFAlwaysMoveDiagonally},function(module,exports,__webpack_require__){var JumpPointFinderBase=__webpack_require__(14);var DiagonalMovement=__webpack_require__(2);function JPFNeverMoveDiagonally(opt){JumpPointFinderBase.call(this,opt)}JPFNeverMoveDiagonally.prototype=new JumpPointFinderBase;JPFNeverMoveDiagonally.prototype.constructor=JPFNeverMoveDiagonally;JPFNeverMoveDiagonally.prototype._jump=function(x,y,px,py){var grid=this.grid,dx=x-px,dy=y-py;if(!grid.isWalkableAt(x,y)){return null}if(this.trackJumpRecursion===true){grid.getNodeAt(x,y).tested=true}if(grid.getNodeAt(x,y)===this.endNode){return[x,y]}if(dx!==0){if(grid.isWalkableAt(x,y-1)&&!grid.isWalkableAt(x-dx,y-1)||grid.isWalkableAt(x,y+1)&&!grid.isWalkableAt(x-dx,y+1)){return[x,y]}}else if(dy!==0){if(grid.isWalkableAt(x-1,y)&&!grid.isWalkableAt(x-1,y-dy)||grid.isWalkableAt(x+1,y)&&!grid.isWalkableAt(x+1,y-dy)){return[x,y]}if(this._jump(x+1,y,x,y)||this._jump(x-1,y,x,y)){return[x,y]}}else{throw new Error("Only horizontal and vertical movements are allowed")}return this._jump(x+dx,y+dy,x,y)};JPFNeverMoveDiagonally.prototype._findNeighbors=function(node){var parent=node.parent,x=node.x,y=node.y,grid=this.grid,px,py,nx,ny,dx,dy,neighbors=[],neighborNodes,neighborNode,i,l;if(parent){px=parent.x;py=parent.y;dx=(x-px)/Math.max(Math.abs(x-px),1);dy=(y-py)/Math.max(Math.abs(y-py),1);if(dx!==0){if(grid.isWalkableAt(x,y-1)){neighbors.push([x,y-1])}if(grid.isWalkableAt(x,y+1)){neighbors.push([x,y+1])}if(grid.isWalkableAt(x+dx,y)){neighbors.push([x+dx,y])}}else if(dy!==0){if(grid.isWalkableAt(x-1,y)){neighbors.push([x-1,y])}if(grid.isWalkableAt(x+1,y)){neighbors.push([x+1,y])}if(grid.isWalkableAt(x,y+dy)){neighbors.push([x,y+dy])}}}else{neighborNodes=grid.getNeighbors(node,DiagonalMovement.Never);for(i=0,l=neighborNodes.length;i<l;++i){neighborNode=neighborNodes[i];neighbors.push([neighborNode.x,neighborNode.y])}}return neighbors};module.exports=JPFNeverMoveDiagonally},function(module,exports,__webpack_require__){var DiagonalMovement=__webpack_require__(2);var JPFNeverMoveDiagonally=__webpack_require__(55);var JPFAlwaysMoveDiagonally=__webpack_require__(54);var JPFMoveDiagonallyIfNoObstacles=__webpack_require__(53);var JPFMoveDiagonallyIfAtMostOneObstacle=__webpack_require__(52);function JumpPointFinder(opt){opt=opt||{};if(opt.diagonalMovement===DiagonalMovement.Never){return new JPFNeverMoveDiagonally(opt)}else if(opt.diagonalMovement===DiagonalMovement.Always){return new JPFAlwaysMoveDiagonally(opt)}else if(opt.diagonalMovement===DiagonalMovement.OnlyWhenNoObstacles){return new JPFMoveDiagonallyIfNoObstacles(opt)}else{return new JPFMoveDiagonallyIfAtMostOneObstacle(opt)}}module.exports=JumpPointFinder},function(module,exports,__webpack_require__){var Util=__webpack_require__(4);var Heuristic=__webpack_require__(10);var Node=__webpack_require__(24);var DiagonalMovement=__webpack_require__(2);function IDAStarFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;this.heuristic=opt.heuristic||Heuristic.manhattan;this.weight=opt.weight||1;this.trackRecursion=opt.trackRecursion||false;this.timeLimit=opt.timeLimit||Infinity;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}if(this.diagonalMovement===DiagonalMovement.Never){this.heuristic=opt.heuristic||Heuristic.manhattan}else{this.heuristic=opt.heuristic||Heuristic.octile}}IDAStarFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var nodesVisited=0;var startTime=(new Date).getTime();var h=function(a,b){return this.heuristic(Math.abs(b.x-a.x),Math.abs(b.y-a.y))}.bind(this);var cost=function(a,b){return a.x===b.x||a.y===b.y?1:Math.SQRT2};var search=function(node,g,cutoff,route,depth){nodesVisited++;if(this.timeLimit>0&&(new Date).getTime()-startTime>this.timeLimit*1e3){return Infinity}var f=g+h(node,end)*this.weight;if(f>cutoff){return f}if(node==end){route[depth]=[node.x,node.y];return node}var min,t,k,neighbour;var neighbours=grid.getNeighbors(node,this.diagonalMovement);for(k=0,min=Infinity;neighbour=neighbours[k];++k){if(this.trackRecursion){neighbour.retainCount=neighbour.retainCount+1||1;if(neighbour.tested!==true){neighbour.tested=true}}t=search(neighbour,g+cost(node,neighbour),cutoff,route,depth+1);if(t instanceof Node){route[depth]=[node.x,node.y];return t}if(this.trackRecursion&&--neighbour.retainCount===0){neighbour.tested=false}if(t<min){min=t}}return min}.bind(this);var start=grid.getNodeAt(startX,startY);var end=grid.getNodeAt(endX,endY);var cutOff=h(start,end);var j,route,t;for(j=0;true;++j){route=[];t=search(start,0,cutOff,route,0);if(t===Infinity){return[]}if(t instanceof Node){return route}cutOff=t}return[]};module.exports=IDAStarFinder},function(module,exports,__webpack_require__){var BiAStarFinder=__webpack_require__(22);function BiDijkstraFinder(opt){BiAStarFinder.call(this,opt);this.heuristic=function(dx,dy){return 0}}BiDijkstraFinder.prototype=new BiAStarFinder;BiDijkstraFinder.prototype.constructor=BiDijkstraFinder;module.exports=BiDijkstraFinder},function(module,exports,__webpack_require__){var Util=__webpack_require__(4);var DiagonalMovement=__webpack_require__(2);function BiBreadthFirstFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}}BiBreadthFirstFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),startOpenList=[],endOpenList=[],neighbors,neighbor,node,diagonalMovement=this.diagonalMovement,BY_START=0,BY_END=1,i,l;startOpenList.push(startNode);startNode.opened=true;startNode.by=BY_START;endOpenList.push(endNode);endNode.opened=true;endNode.by=BY_END;while(startOpenList.length&&endOpenList.length){node=startOpenList.shift();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened){if(neighbor.by===BY_END){return Util.biBacktrace(node,neighbor)}continue}startOpenList.push(neighbor);neighbor.parent=node;neighbor.opened=true;neighbor.by=BY_START}node=endOpenList.shift();node.closed=true;neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed){continue}if(neighbor.opened){if(neighbor.by===BY_START){return Util.biBacktrace(neighbor,node)}continue}endOpenList.push(neighbor);neighbor.parent=node;neighbor.opened=true;neighbor.by=BY_END}}return[]};module.exports=BiBreadthFirstFinder},function(module,exports,__webpack_require__){var BiAStarFinder=__webpack_require__(22);function BiBestFirstFinder(opt){BiAStarFinder.call(this,opt);var orig=this.heuristic;this.heuristic=function(dx,dy){return orig(dx,dy)*1e6}}BiBestFirstFinder.prototype=new BiAStarFinder;BiBestFirstFinder.prototype.constructor=BiBestFirstFinder;module.exports=BiBestFirstFinder},function(module,exports,__webpack_require__){var AStarFinder=__webpack_require__(23);function DijkstraFinder(opt){AStarFinder.call(this,opt);this.heuristic=function(dx,dy){return 0}}DijkstraFinder.prototype=new AStarFinder;DijkstraFinder.prototype.constructor=DijkstraFinder;module.exports=DijkstraFinder},function(module,exports,__webpack_require__){var Util=__webpack_require__(4);var DiagonalMovement=__webpack_require__(2);function BreadthFirstFinder(opt){opt=opt||{};this.allowDiagonal=opt.allowDiagonal;this.dontCrossCorners=opt.dontCrossCorners;this.diagonalMovement=opt.diagonalMovement;if(!this.diagonalMovement){if(!this.allowDiagonal){this.diagonalMovement=DiagonalMovement.Never}else{if(this.dontCrossCorners){this.diagonalMovement=DiagonalMovement.OnlyWhenNoObstacles}else{this.diagonalMovement=DiagonalMovement.IfAtMostOneObstacle}}}}BreadthFirstFinder.prototype.findPath=function(startX,startY,endX,endY,grid){var openList=[],diagonalMovement=this.diagonalMovement,startNode=grid.getNodeAt(startX,startY),endNode=grid.getNodeAt(endX,endY),neighbors,neighbor,node,i,l;openList.push(startNode);startNode.opened=true;while(openList.length){node=openList.shift();node.closed=true;if(node===endNode){return Util.backtrace(endNode)}neighbors=grid.getNeighbors(node,diagonalMovement);for(i=0,l=neighbors.length;i<l;++i){neighbor=neighbors[i];if(neighbor.closed||neighbor.opened){continue}openList.push(neighbor);neighbor.opened=true;neighbor.parent=node}}return[]};module.exports=BreadthFirstFinder},function(module,exports,__webpack_require__){var AStarFinder=__webpack_require__(23);function BestFirstFinder(opt){AStarFinder.call(this,opt);var orig=this.heuristic;this.heuristic=function(dx,dy){return orig(dx,dy)*1e6}}BestFirstFinder.prototype=new AStarFinder;BestFirstFinder.prototype.constructor=BestFirstFinder;module.exports=BestFirstFinder},function(module,exports,__webpack_require__){var Node=__webpack_require__(24);var DiagonalMovement=__webpack_require__(2);function Grid(width_or_matrix,height,matrix){var width;if(typeof width_or_matrix!=="object"){width=width_or_matrix}else{height=width_or_matrix.length;width=width_or_matrix[0].length;matrix=width_or_matrix}this.width=width;this.height=height;this.nodes=this._buildNodes(width,height,matrix)}Grid.prototype._buildNodes=function(width,height,matrix){var i,j,nodes=new Array(height);for(i=0;i<height;++i){nodes[i]=new Array(width);for(j=0;j<width;++j){nodes[i][j]=new Node(j,i)}}if(matrix===undefined){return nodes}if(matrix.length!==height||matrix[0].length!==width){throw new Error("Matrix size does not fit")}for(i=0;i<height;++i){for(j=0;j<width;++j){if(matrix[i][j]){nodes[i][j].walkable=false}}}return nodes};Grid.prototype.getNodeAt=function(x,y){return this.nodes[y][x]};Grid.prototype.isWalkableAt=function(x,y){return this.isInside(x,y)&&this.nodes[y][x].walkable};Grid.prototype.isInside=function(x,y){return x>=0&&x<this.width&&(y>=0&&y<this.height)};Grid.prototype.setWalkableAt=function(x,y,walkable){this.nodes[y][x].walkable=walkable};Grid.prototype.getNeighbors=function(node,diagonalMovement){var x=node.x,y=node.y,neighbors=[],s0=false,d0=false,s1=false,d1=false,s2=false,d2=false,s3=false,d3=false,nodes=this.nodes;if(this.isWalkableAt(x,y-1)){neighbors.push(nodes[y-1][x]);s0=true}if(this.isWalkableAt(x+1,y)){neighbors.push(nodes[y][x+1]);s1=true}if(this.isWalkableAt(x,y+1)){neighbors.push(nodes[y+1][x]);s2=true}if(this.isWalkableAt(x-1,y)){neighbors.push(nodes[y][x-1]);s3=true}if(diagonalMovement===DiagonalMovement.Never){return neighbors}if(diagonalMovement===DiagonalMovement.OnlyWhenNoObstacles){d0=s3&&s0;d1=s0&&s1;d2=s1&&s2;d3=s2&&s3}else if(diagonalMovement===DiagonalMovement.IfAtMostOneObstacle){d0=s3||s0;d1=s0||s1;d2=s1||s2;d3=s2||s3}else if(diagonalMovement===DiagonalMovement.Always){d0=true;d1=true;d2=true;d3=true}else{throw new Error("Incorrect value of diagonalMovement")}if(d0&&this.isWalkableAt(x-1,y-1)){neighbors.push(nodes[y-1][x-1])}if(d1&&this.isWalkableAt(x+1,y-1)){neighbors.push(nodes[y-1][x+1])}if(d2&&this.isWalkableAt(x+1,y+1)){neighbors.push(nodes[y+1][x+1])}if(d3&&this.isWalkableAt(x-1,y+1)){neighbors.push(nodes[y+1][x-1])}return neighbors};Grid.prototype.clone=function(){var i,j,width=this.width,height=this.height,thisNodes=this.nodes,newGrid=new Grid(width,height),newNodes=new Array(height);for(i=0;i<height;++i){newNodes[i]=new Array(width);for(j=0;j<width;++j){newNodes[i][j]=new Node(j,i,thisNodes[i][j].walkable)}}newGrid.nodes=newNodes;return newGrid};module.exports=Grid},function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,"loaded",{enumerable:true,get:function(){return module.l}});Object.defineProperty(module,"id",{enumerable:true,get:function(){return module.i}});module.webpackPolyfill=1}return module}},function(module,exports,__webpack_require__){(function(module){(function(){var Heap,defaultCmp,floor,heapify,heappop,heappush,heappushpop,heapreplace,insort,min,nlargest,nsmallest,updateItem,_siftdown,_siftup;floor=Math.floor,min=Math.min;defaultCmp=function(x,y){if(x<y){return-1}if(x>y){return 1}return 0};insort=function(a,x,lo,hi,cmp){var mid;if(lo==null){lo=0}if(cmp==null){cmp=defaultCmp}if(lo<0){throw new Error("lo must be non-negative")}if(hi==null){hi=a.length}while(lo<hi){mid=floor((lo+hi)/2);if(cmp(x,a[mid])<0){hi=mid}else{lo=mid+1}}return[].splice.apply(a,[lo,lo-lo].concat(x)),x};heappush=function(array,item,cmp){if(cmp==null){cmp=defaultCmp}array.push(item);return _siftdown(array,0,array.length-1,cmp)};heappop=function(array,cmp){var lastelt,returnitem;if(cmp==null){cmp=defaultCmp}lastelt=array.pop();if(array.length){returnitem=array[0];array[0]=lastelt;_siftup(array,0,cmp)}else{returnitem=lastelt}return returnitem};heapreplace=function(array,item,cmp){var returnitem;if(cmp==null){cmp=defaultCmp}returnitem=array[0];array[0]=item;_siftup(array,0,cmp);return returnitem};heappushpop=function(array,item,cmp){var _ref;if(cmp==null){cmp=defaultCmp}if(array.length&&cmp(array[0],item)<0){_ref=[array[0],item],item=_ref[0],array[0]=_ref[1];_siftup(array,0,cmp)}return item};heapify=function(array,cmp){var i,_i,_j,_len,_ref,_ref1,_results,_results1;if(cmp==null){cmp=defaultCmp}_ref1=function(){_results1=[];for(var _j=0,_ref=floor(array.length/2);0<=_ref?_j<_ref:_j>_ref;0<=_ref?_j++:_j--){_results1.push(_j)}return _results1}.apply(this).reverse();_results=[];for(_i=0,_len=_ref1.length;_i<_len;_i++){i=_ref1[_i];_results.push(_siftup(array,i,cmp))}return _results};updateItem=function(array,item,cmp){var pos;if(cmp==null){cmp=defaultCmp}pos=array.indexOf(item);if(pos===-1){return}_siftdown(array,0,pos,cmp);return _siftup(array,pos,cmp)};nlargest=function(array,n,cmp){var elem,result,_i,_len,_ref;if(cmp==null){cmp=defaultCmp}result=array.slice(0,n);if(!result.length){return result}heapify(result,cmp);_ref=array.slice(n);for(_i=0,_len=_ref.length;_i<_len;_i++){elem=_ref[_i];heappushpop(result,elem,cmp)}return result.sort(cmp).reverse()};nsmallest=function(array,n,cmp){var elem,i,los,result,_i,_j,_len,_ref,_ref1,_results;if(cmp==null){cmp=defaultCmp}if(n*10<=array.length){result=array.slice(0,n).sort(cmp);if(!result.length){return result}los=result[result.length-1];_ref=array.slice(n);for(_i=0,_len=_ref.length;_i<_len;_i++){elem=_ref[_i];if(cmp(elem,los)<0){insort(result,elem,0,null,cmp);result.pop();los=result[result.length-1]}}return result}heapify(array,cmp);_results=[];for(i=_j=0,_ref1=min(n,array.length);0<=_ref1?_j<_ref1:_j>_ref1;i=0<=_ref1?++_j:--_j){_results.push(heappop(array,cmp))}return _results};_siftdown=function(array,startpos,pos,cmp){var newitem,parent,parentpos;if(cmp==null){cmp=defaultCmp}newitem=array[pos];while(pos>startpos){parentpos=pos-1>>1;parent=array[parentpos];if(cmp(newitem,parent)<0){array[pos]=parent;pos=parentpos;continue}break}return array[pos]=newitem};_siftup=function(array,pos,cmp){var childpos,endpos,newitem,rightpos,startpos;if(cmp==null){cmp=defaultCmp}endpos=array.length;startpos=pos;newitem=array[pos];childpos=2*pos+1;while(childpos<endpos){rightpos=childpos+1;if(rightpos<endpos&&!(cmp(array[childpos],array[rightpos])<0)){childpos=rightpos}array[pos]=array[childpos];pos=childpos;childpos=2*pos+1}array[pos]=newitem;return _siftdown(array,startpos,pos,cmp)};Heap=function(){Heap.push=heappush;Heap.pop=heappop;Heap.replace=heapreplace;Heap.pushpop=heappushpop;Heap.heapify=heapify;Heap.updateItem=updateItem;Heap.nlargest=nlargest;Heap.nsmallest=nsmallest;function Heap(cmp){this.cmp=cmp!=null?cmp:defaultCmp;this.nodes=[]}Heap.prototype.push=function(x){return heappush(this.nodes,x,this.cmp)};Heap.prototype.pop=function(){return heappop(this.nodes,this.cmp)};Heap.prototype.peek=function(){return this.nodes[0]};Heap.prototype.contains=function(x){return this.nodes.indexOf(x)!==-1};Heap.prototype.replace=function(x){return heapreplace(this.nodes,x,this.cmp)};Heap.prototype.pushpop=function(x){return heappushpop(this.nodes,x,this.cmp)};Heap.prototype.heapify=function(){return heapify(this.nodes,this.cmp)};Heap.prototype.updateItem=function(x){return updateItem(this.nodes,x,this.cmp)};Heap.prototype.clear=function(){return this.nodes=[]};Heap.prototype.empty=function(){return this.nodes.length===0};Heap.prototype.size=function(){return this.nodes.length};Heap.prototype.clone=function(){var heap;heap=new Heap;heap.nodes=this.nodes.slice(0);return heap};Heap.prototype.toArray=function(){return this.nodes.slice(0)};Heap.prototype.insert=Heap.prototype.push;Heap.prototype.top=Heap.prototype.peek;Heap.prototype.front=Heap.prototype.peek;Heap.prototype.has=Heap.prototype.contains;Heap.prototype.copy=Heap.prototype.clone;return Heap}();if(typeof module!=="undefined"&&module!==null?module.exports:void 0){module.exports=Heap}else{window.Heap=Heap}}).call(this)}).call(this,__webpack_require__(65)(module))},function(module,exports,__webpack_require__){module.exports={Heap:__webpack_require__(15),Node:__webpack_require__(24),Grid:__webpack_require__(64),Util:__webpack_require__(4),DiagonalMovement:__webpack_require__(2),Heuristic:__webpack_require__(10),AStarFinder:__webpack_require__(23),BestFirstFinder:__webpack_require__(63),BreadthFirstFinder:__webpack_require__(62),DijkstraFinder:__webpack_require__(61),BiAStarFinder:__webpack_require__(22),BiBestFirstFinder:__webpack_require__(60),BiBreadthFirstFinder:__webpack_require__(59),BiDijkstraFinder:__webpack_require__(58),IDAStarFinder:__webpack_require__(57),JumpPointFinder:__webpack_require__(56)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(67)},function(module,exports){var proto=Element.prototype;var vendor=proto.matchesSelector||proto.webkitMatchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector;module.exports=match;function match(el,selector){if(vendor)return vendor.call(el,selector);var nodes=el.parentNode.querySelectorAll(selector);for(var i=0;i<nodes.length;++i){if(nodes[i]==el)return true}return false}},function(module,exports,__webpack_require__){var matches=__webpack_require__(69);module.exports=function(element,selector,checkYoSelf){var parent=checkYoSelf?element:element.parentNode;while(parent&&parent!==document){if(matches(parent,selector))return parent;parent=parent.parentNode}}}])});
  41967. //# sourceMappingURL=main.js.map
  41968. /***/ }),
  41969. /***/ "../../node_modules/storm-react-diagrams/dist/style.min.css":
  41970. /*!********************************************************************************!*\
  41971. !*** D:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  41972. \********************************************************************************/
  41973. /*! no static exports found */
  41974. /***/ (function(module, exports, __webpack_require__) {
  41975. var content = __webpack_require__(/*! !../../css-loader!./style.min.css */ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css");
  41976. if(typeof content === 'string') content = [[module.i, content, '']];
  41977. var transform;
  41978. var insertInto;
  41979. var options = {"hmr":true}
  41980. options.transform = transform
  41981. options.insertInto = undefined;
  41982. var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  41983. if(content.locals) module.exports = content.locals;
  41984. if(false) {}
  41985. /***/ }),
  41986. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  41987. /*!**********************************************************************!*\
  41988. !*** D:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  41989. \**********************************************************************/
  41990. /*! no static exports found */
  41991. /***/ (function(module, exports, __webpack_require__) {
  41992. /*
  41993. MIT License http://www.opensource.org/licenses/mit-license.php
  41994. Author Tobias Koppers @sokra
  41995. */
  41996. var stylesInDom = {};
  41997. var memoize = function (fn) {
  41998. var memo;
  41999. return function () {
  42000. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  42001. return memo;
  42002. };
  42003. };
  42004. var isOldIE = memoize(function () {
  42005. // Test for IE <= 9 as proposed by Browserhacks
  42006. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  42007. // Tests for existence of standard globals is to allow style-loader
  42008. // to operate correctly into non-standard environments
  42009. // @see https://github.com/webpack-contrib/style-loader/issues/177
  42010. return window && document && document.all && !window.atob;
  42011. });
  42012. var getTarget = function (target) {
  42013. return document.querySelector(target);
  42014. };
  42015. var getElement = (function (fn) {
  42016. var memo = {};
  42017. return function(target) {
  42018. // If passing function in options, then use it for resolve "head" element.
  42019. // Useful for Shadow Root style i.e
  42020. // {
  42021. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  42022. // }
  42023. if (typeof target === 'function') {
  42024. return target();
  42025. }
  42026. if (typeof memo[target] === "undefined") {
  42027. var styleTarget = getTarget.call(this, target);
  42028. // Special case to return head of iframe instead of iframe itself
  42029. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  42030. try {
  42031. // This will throw an exception if access to iframe is blocked
  42032. // due to cross-origin restrictions
  42033. styleTarget = styleTarget.contentDocument.head;
  42034. } catch(e) {
  42035. styleTarget = null;
  42036. }
  42037. }
  42038. memo[target] = styleTarget;
  42039. }
  42040. return memo[target]
  42041. };
  42042. })();
  42043. var singleton = null;
  42044. var singletonCounter = 0;
  42045. var stylesInsertedAtTop = [];
  42046. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  42047. module.exports = function(list, options) {
  42048. if (typeof DEBUG !== "undefined" && DEBUG) {
  42049. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  42050. }
  42051. options = options || {};
  42052. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  42053. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  42054. // tags it will allow on a page
  42055. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  42056. // By default, add <style> tags to the <head> element
  42057. if (!options.insertInto) options.insertInto = "head";
  42058. // By default, add <style> tags to the bottom of the target
  42059. if (!options.insertAt) options.insertAt = "bottom";
  42060. var styles = listToStyles(list, options);
  42061. addStylesToDom(styles, options);
  42062. return function update (newList) {
  42063. var mayRemove = [];
  42064. for (var i = 0; i < styles.length; i++) {
  42065. var item = styles[i];
  42066. var domStyle = stylesInDom[item.id];
  42067. domStyle.refs--;
  42068. mayRemove.push(domStyle);
  42069. }
  42070. if(newList) {
  42071. var newStyles = listToStyles(newList, options);
  42072. addStylesToDom(newStyles, options);
  42073. }
  42074. for (var i = 0; i < mayRemove.length; i++) {
  42075. var domStyle = mayRemove[i];
  42076. if(domStyle.refs === 0) {
  42077. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  42078. delete stylesInDom[domStyle.id];
  42079. }
  42080. }
  42081. };
  42082. };
  42083. function addStylesToDom (styles, options) {
  42084. for (var i = 0; i < styles.length; i++) {
  42085. var item = styles[i];
  42086. var domStyle = stylesInDom[item.id];
  42087. if(domStyle) {
  42088. domStyle.refs++;
  42089. for(var j = 0; j < domStyle.parts.length; j++) {
  42090. domStyle.parts[j](item.parts[j]);
  42091. }
  42092. for(; j < item.parts.length; j++) {
  42093. domStyle.parts.push(addStyle(item.parts[j], options));
  42094. }
  42095. } else {
  42096. var parts = [];
  42097. for(var j = 0; j < item.parts.length; j++) {
  42098. parts.push(addStyle(item.parts[j], options));
  42099. }
  42100. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  42101. }
  42102. }
  42103. }
  42104. function listToStyles (list, options) {
  42105. var styles = [];
  42106. var newStyles = {};
  42107. for (var i = 0; i < list.length; i++) {
  42108. var item = list[i];
  42109. var id = options.base ? item[0] + options.base : item[0];
  42110. var css = item[1];
  42111. var media = item[2];
  42112. var sourceMap = item[3];
  42113. var part = {css: css, media: media, sourceMap: sourceMap};
  42114. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  42115. else newStyles[id].parts.push(part);
  42116. }
  42117. return styles;
  42118. }
  42119. function insertStyleElement (options, style) {
  42120. var target = getElement(options.insertInto)
  42121. if (!target) {
  42122. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  42123. }
  42124. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  42125. if (options.insertAt === "top") {
  42126. if (!lastStyleElementInsertedAtTop) {
  42127. target.insertBefore(style, target.firstChild);
  42128. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  42129. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  42130. } else {
  42131. target.appendChild(style);
  42132. }
  42133. stylesInsertedAtTop.push(style);
  42134. } else if (options.insertAt === "bottom") {
  42135. target.appendChild(style);
  42136. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  42137. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  42138. target.insertBefore(style, nextSibling);
  42139. } else {
  42140. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  42141. }
  42142. }
  42143. function removeStyleElement (style) {
  42144. if (style.parentNode === null) return false;
  42145. style.parentNode.removeChild(style);
  42146. var idx = stylesInsertedAtTop.indexOf(style);
  42147. if(idx >= 0) {
  42148. stylesInsertedAtTop.splice(idx, 1);
  42149. }
  42150. }
  42151. function createStyleElement (options) {
  42152. var style = document.createElement("style");
  42153. if(options.attrs.type === undefined) {
  42154. options.attrs.type = "text/css";
  42155. }
  42156. addAttrs(style, options.attrs);
  42157. insertStyleElement(options, style);
  42158. return style;
  42159. }
  42160. function createLinkElement (options) {
  42161. var link = document.createElement("link");
  42162. if(options.attrs.type === undefined) {
  42163. options.attrs.type = "text/css";
  42164. }
  42165. options.attrs.rel = "stylesheet";
  42166. addAttrs(link, options.attrs);
  42167. insertStyleElement(options, link);
  42168. return link;
  42169. }
  42170. function addAttrs (el, attrs) {
  42171. Object.keys(attrs).forEach(function (key) {
  42172. el.setAttribute(key, attrs[key]);
  42173. });
  42174. }
  42175. function addStyle (obj, options) {
  42176. var style, update, remove, result;
  42177. // If a transform function was defined, run it on the css
  42178. if (options.transform && obj.css) {
  42179. result = options.transform(obj.css);
  42180. if (result) {
  42181. // If transform returns a value, use that instead of the original css.
  42182. // This allows running runtime transformations on the css.
  42183. obj.css = result;
  42184. } else {
  42185. // If the transform function returns a falsy value, don't add this css.
  42186. // This allows conditional loading of css
  42187. return function() {
  42188. // noop
  42189. };
  42190. }
  42191. }
  42192. if (options.singleton) {
  42193. var styleIndex = singletonCounter++;
  42194. style = singleton || (singleton = createStyleElement(options));
  42195. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  42196. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  42197. } else if (
  42198. obj.sourceMap &&
  42199. typeof URL === "function" &&
  42200. typeof URL.createObjectURL === "function" &&
  42201. typeof URL.revokeObjectURL === "function" &&
  42202. typeof Blob === "function" &&
  42203. typeof btoa === "function"
  42204. ) {
  42205. style = createLinkElement(options);
  42206. update = updateLink.bind(null, style, options);
  42207. remove = function () {
  42208. removeStyleElement(style);
  42209. if(style.href) URL.revokeObjectURL(style.href);
  42210. };
  42211. } else {
  42212. style = createStyleElement(options);
  42213. update = applyToTag.bind(null, style);
  42214. remove = function () {
  42215. removeStyleElement(style);
  42216. };
  42217. }
  42218. update(obj);
  42219. return function updateStyle (newObj) {
  42220. if (newObj) {
  42221. if (
  42222. newObj.css === obj.css &&
  42223. newObj.media === obj.media &&
  42224. newObj.sourceMap === obj.sourceMap
  42225. ) {
  42226. return;
  42227. }
  42228. update(obj = newObj);
  42229. } else {
  42230. remove();
  42231. }
  42232. };
  42233. }
  42234. var replaceText = (function () {
  42235. var textStore = [];
  42236. return function (index, replacement) {
  42237. textStore[index] = replacement;
  42238. return textStore.filter(Boolean).join('\n');
  42239. };
  42240. })();
  42241. function applyToSingletonTag (style, index, remove, obj) {
  42242. var css = remove ? "" : obj.css;
  42243. if (style.styleSheet) {
  42244. style.styleSheet.cssText = replaceText(index, css);
  42245. } else {
  42246. var cssNode = document.createTextNode(css);
  42247. var childNodes = style.childNodes;
  42248. if (childNodes[index]) style.removeChild(childNodes[index]);
  42249. if (childNodes.length) {
  42250. style.insertBefore(cssNode, childNodes[index]);
  42251. } else {
  42252. style.appendChild(cssNode);
  42253. }
  42254. }
  42255. }
  42256. function applyToTag (style, obj) {
  42257. var css = obj.css;
  42258. var media = obj.media;
  42259. if(media) {
  42260. style.setAttribute("media", media)
  42261. }
  42262. if(style.styleSheet) {
  42263. style.styleSheet.cssText = css;
  42264. } else {
  42265. while(style.firstChild) {
  42266. style.removeChild(style.firstChild);
  42267. }
  42268. style.appendChild(document.createTextNode(css));
  42269. }
  42270. }
  42271. function updateLink (link, options, obj) {
  42272. var css = obj.css;
  42273. var sourceMap = obj.sourceMap;
  42274. /*
  42275. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  42276. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  42277. on by default. Otherwise default to the convertToAbsoluteUrls option
  42278. directly
  42279. */
  42280. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  42281. if (options.convertToAbsoluteUrls || autoFixUrls) {
  42282. css = fixUrls(css);
  42283. }
  42284. if (sourceMap) {
  42285. // http://stackoverflow.com/a/26603875
  42286. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  42287. }
  42288. var blob = new Blob([css], { type: "text/css" });
  42289. var oldSrc = link.href;
  42290. link.href = URL.createObjectURL(blob);
  42291. if(oldSrc) URL.revokeObjectURL(oldSrc);
  42292. }
  42293. /***/ }),
  42294. /***/ "../../node_modules/style-loader/lib/urls.js":
  42295. /*!*****************************************************************!*\
  42296. !*** D:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  42297. \*****************************************************************/
  42298. /*! no static exports found */
  42299. /***/ (function(module, exports) {
  42300. /**
  42301. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  42302. * embed the css on the page. This breaks all relative urls because now they are relative to a
  42303. * bundle instead of the current page.
  42304. *
  42305. * One solution is to only use full urls, but that may be impossible.
  42306. *
  42307. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  42308. *
  42309. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  42310. *
  42311. */
  42312. module.exports = function (css) {
  42313. // get current location
  42314. var location = typeof window !== "undefined" && window.location;
  42315. if (!location) {
  42316. throw new Error("fixUrls requires window.location");
  42317. }
  42318. // blank or null?
  42319. if (!css || typeof css !== "string") {
  42320. return css;
  42321. }
  42322. var baseUrl = location.protocol + "//" + location.host;
  42323. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  42324. // convert each url(...)
  42325. /*
  42326. This regular expression is just a way to recursively match brackets within
  42327. a string.
  42328. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  42329. ( = Start a capturing group
  42330. (?: = Start a non-capturing group
  42331. [^)(] = Match anything that isn't a parentheses
  42332. | = OR
  42333. \( = Match a start parentheses
  42334. (?: = Start another non-capturing groups
  42335. [^)(]+ = Match anything that isn't a parentheses
  42336. | = OR
  42337. \( = Match a start parentheses
  42338. [^)(]* = Match anything that isn't a parentheses
  42339. \) = Match a end parentheses
  42340. ) = End Group
  42341. *\) = Match anything and then a close parens
  42342. ) = Close non-capturing group
  42343. * = Match anything
  42344. ) = Close capturing group
  42345. \) = Match a close parens
  42346. /gi = Get all matches, not the first. Be case insensitive.
  42347. */
  42348. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  42349. // strip quotes (if they exist)
  42350. var unquotedOrigUrl = origUrl
  42351. .trim()
  42352. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  42353. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  42354. // already a full url? no change
  42355. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  42356. return fullMatch;
  42357. }
  42358. // convert the url to a full url
  42359. var newUrl;
  42360. if (unquotedOrigUrl.indexOf("//") === 0) {
  42361. //TODO: should we add protocol?
  42362. newUrl = unquotedOrigUrl;
  42363. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  42364. // path should be relative to the base url
  42365. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  42366. } else {
  42367. // path should be relative to current directory
  42368. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  42369. }
  42370. // send back the fixed url(...)
  42371. return "url(" + JSON.stringify(newUrl) + ")";
  42372. });
  42373. // send back the fixed css
  42374. return fixedCss;
  42375. };
  42376. /***/ }),
  42377. /***/ "../../node_modules/tslib/tslib.es6.js":
  42378. /*!***********************************************************!*\
  42379. !*** D:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  42380. \***********************************************************/
  42381. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  42382. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42383. "use strict";
  42384. __webpack_require__.r(__webpack_exports__);
  42385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  42386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  42387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  42388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  42389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  42390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  42391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  42392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  42393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  42394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  42395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  42396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  42397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  42398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  42399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  42400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  42401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  42402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  42403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  42404. /*! *****************************************************************************
  42405. Copyright (c) Microsoft Corporation. All rights reserved.
  42406. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  42407. this file except in compliance with the License. You may obtain a copy of the
  42408. License at http://www.apache.org/licenses/LICENSE-2.0
  42409. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  42410. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  42411. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  42412. MERCHANTABLITY OR NON-INFRINGEMENT.
  42413. See the Apache Version 2.0 License for specific language governing permissions
  42414. and limitations under the License.
  42415. ***************************************************************************** */
  42416. /* global Reflect, Promise */
  42417. var extendStatics = function(d, b) {
  42418. extendStatics = Object.setPrototypeOf ||
  42419. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  42420. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  42421. return extendStatics(d, b);
  42422. };
  42423. function __extends(d, b) {
  42424. extendStatics(d, b);
  42425. function __() { this.constructor = d; }
  42426. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  42427. }
  42428. var __assign = function() {
  42429. __assign = Object.assign || function __assign(t) {
  42430. for (var s, i = 1, n = arguments.length; i < n; i++) {
  42431. s = arguments[i];
  42432. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  42433. }
  42434. return t;
  42435. }
  42436. return __assign.apply(this, arguments);
  42437. }
  42438. function __rest(s, e) {
  42439. var t = {};
  42440. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  42441. t[p] = s[p];
  42442. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  42443. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
  42444. t[p[i]] = s[p[i]];
  42445. return t;
  42446. }
  42447. function __decorate(decorators, target, key, desc) {
  42448. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  42449. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  42450. 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;
  42451. return c > 3 && r && Object.defineProperty(target, key, r), r;
  42452. }
  42453. function __param(paramIndex, decorator) {
  42454. return function (target, key) { decorator(target, key, paramIndex); }
  42455. }
  42456. function __metadata(metadataKey, metadataValue) {
  42457. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  42458. }
  42459. function __awaiter(thisArg, _arguments, P, generator) {
  42460. return new (P || (P = Promise))(function (resolve, reject) {
  42461. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  42462. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  42463. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  42464. step((generator = generator.apply(thisArg, _arguments || [])).next());
  42465. });
  42466. }
  42467. function __generator(thisArg, body) {
  42468. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  42469. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  42470. function verb(n) { return function (v) { return step([n, v]); }; }
  42471. function step(op) {
  42472. if (f) throw new TypeError("Generator is already executing.");
  42473. while (_) try {
  42474. 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;
  42475. if (y = 0, t) op = [op[0] & 2, t.value];
  42476. switch (op[0]) {
  42477. case 0: case 1: t = op; break;
  42478. case 4: _.label++; return { value: op[1], done: false };
  42479. case 5: _.label++; y = op[1]; op = [0]; continue;
  42480. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  42481. default:
  42482. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  42483. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  42484. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  42485. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  42486. if (t[2]) _.ops.pop();
  42487. _.trys.pop(); continue;
  42488. }
  42489. op = body.call(thisArg, _);
  42490. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  42491. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  42492. }
  42493. }
  42494. function __exportStar(m, exports) {
  42495. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  42496. }
  42497. function __values(o) {
  42498. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  42499. if (m) return m.call(o);
  42500. return {
  42501. next: function () {
  42502. if (o && i >= o.length) o = void 0;
  42503. return { value: o && o[i++], done: !o };
  42504. }
  42505. };
  42506. }
  42507. function __read(o, n) {
  42508. var m = typeof Symbol === "function" && o[Symbol.iterator];
  42509. if (!m) return o;
  42510. var i = m.call(o), r, ar = [], e;
  42511. try {
  42512. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  42513. }
  42514. catch (error) { e = { error: error }; }
  42515. finally {
  42516. try {
  42517. if (r && !r.done && (m = i["return"])) m.call(i);
  42518. }
  42519. finally { if (e) throw e.error; }
  42520. }
  42521. return ar;
  42522. }
  42523. function __spread() {
  42524. for (var ar = [], i = 0; i < arguments.length; i++)
  42525. ar = ar.concat(__read(arguments[i]));
  42526. return ar;
  42527. }
  42528. function __await(v) {
  42529. return this instanceof __await ? (this.v = v, this) : new __await(v);
  42530. }
  42531. function __asyncGenerator(thisArg, _arguments, generator) {
  42532. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  42533. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  42534. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  42535. 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); }); }; }
  42536. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  42537. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  42538. function fulfill(value) { resume("next", value); }
  42539. function reject(value) { resume("throw", value); }
  42540. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  42541. }
  42542. function __asyncDelegator(o) {
  42543. var i, p;
  42544. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  42545. 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; }
  42546. }
  42547. function __asyncValues(o) {
  42548. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  42549. var m = o[Symbol.asyncIterator], i;
  42550. 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);
  42551. 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); }); }; }
  42552. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  42553. }
  42554. function __makeTemplateObject(cooked, raw) {
  42555. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  42556. return cooked;
  42557. };
  42558. function __importStar(mod) {
  42559. if (mod && mod.__esModule) return mod;
  42560. var result = {};
  42561. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  42562. result.default = mod;
  42563. return result;
  42564. }
  42565. function __importDefault(mod) {
  42566. return (mod && mod.__esModule) ? mod : { default: mod };
  42567. }
  42568. /***/ }),
  42569. /***/ "../../node_modules/webpack/buildin/global.js":
  42570. /*!***********************************!*\
  42571. !*** (webpack)/buildin/global.js ***!
  42572. \***********************************/
  42573. /*! no static exports found */
  42574. /***/ (function(module, exports) {
  42575. var g;
  42576. // This works in non-strict mode
  42577. g = (function() {
  42578. return this;
  42579. })();
  42580. try {
  42581. // This works if eval is allowed (see CSP)
  42582. g = g || new Function("return this")();
  42583. } catch (e) {
  42584. // This works if the window reference is available
  42585. if (typeof window === "object") g = window;
  42586. }
  42587. // g can still be undefined, but nothing to do about it...
  42588. // We return undefined, instead of nothing here, so it's
  42589. // easier to handle this case. if(!global) { ...}
  42590. module.exports = g;
  42591. /***/ }),
  42592. /***/ "../../node_modules/webpack/buildin/module.js":
  42593. /*!***********************************!*\
  42594. !*** (webpack)/buildin/module.js ***!
  42595. \***********************************/
  42596. /*! no static exports found */
  42597. /***/ (function(module, exports) {
  42598. module.exports = function(module) {
  42599. if (!module.webpackPolyfill) {
  42600. module.deprecate = function() {};
  42601. module.paths = [];
  42602. // module.parent = undefined by default
  42603. if (!module.children) module.children = [];
  42604. Object.defineProperty(module, "loaded", {
  42605. enumerable: true,
  42606. get: function() {
  42607. return module.l;
  42608. }
  42609. });
  42610. Object.defineProperty(module, "id", {
  42611. enumerable: true,
  42612. get: function() {
  42613. return module.i;
  42614. }
  42615. });
  42616. module.webpackPolyfill = 1;
  42617. }
  42618. return module;
  42619. };
  42620. /***/ }),
  42621. /***/ "./components/diagram/defaultNodeModel.ts":
  42622. /*!************************************************!*\
  42623. !*** ./components/diagram/defaultNodeModel.ts ***!
  42624. \************************************************/
  42625. /*! exports provided: DefaultNodeModel */
  42626. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42627. "use strict";
  42628. __webpack_require__.r(__webpack_exports__);
  42629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultNodeModel", function() { return DefaultNodeModel; });
  42630. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42631. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42632. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42633. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  42634. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__);
  42635. /* harmony import */ var _defaultPortModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultPortModel */ "./components/diagram/defaultPortModel.ts");
  42636. /**
  42637. * Generic node model which stores information about a node editor block
  42638. */
  42639. var DefaultNodeModel = /** @class */ (function (_super) {
  42640. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultNodeModel, _super);
  42641. /**
  42642. * Constructs the node model
  42643. */
  42644. function DefaultNodeModel(key) {
  42645. var _this = _super.call(this, key) || this;
  42646. /**
  42647. * The babylon block this node represents
  42648. */
  42649. _this.block = null;
  42650. return _this;
  42651. }
  42652. DefaultNodeModel.prototype.prepare = function (options, nodes, model, graphEditor, filterInputs) {
  42653. var _this = this;
  42654. this.block = options.nodeMaterialBlock || null;
  42655. if (!options.nodeMaterialBlock) {
  42656. return;
  42657. }
  42658. // Create output ports
  42659. options.nodeMaterialBlock._outputs.forEach(function (connection) {
  42660. var outputPort = new _defaultPortModel__WEBPACK_IMPORTED_MODULE_3__["DefaultPortModel"](connection.name, "output");
  42661. outputPort.syncWithNodeMaterialConnectionPoint(connection);
  42662. _this.addPort(outputPort);
  42663. });
  42664. // Create input ports and nodes if they exist
  42665. options.nodeMaterialBlock._inputs.forEach(function (connection) {
  42666. if (filterInputs.length > 0 && filterInputs.indexOf(connection.name) === -1) {
  42667. return;
  42668. }
  42669. var inputPort = new _defaultPortModel__WEBPACK_IMPORTED_MODULE_3__["DefaultPortModel"](connection.name, "input");
  42670. inputPort.connection = connection;
  42671. _this.addPort(inputPort);
  42672. if (connection.connectedPoint) {
  42673. // Block is not a leaf node, create node for the given block type
  42674. var connectedNode;
  42675. var existingNodes = nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  42676. if (existingNodes.length == 0) {
  42677. connectedNode = graphEditor.createNodeFromObject({ column: options.column + 1, nodeMaterialBlock: connection.connectedPoint._ownerBlock });
  42678. }
  42679. else {
  42680. connectedNode = existingNodes[0];
  42681. }
  42682. var link = connectedNode.ports[connection.connectedPoint.name].link(inputPort);
  42683. if (graphEditor._toAdd) {
  42684. graphEditor._toAdd.push(link);
  42685. }
  42686. else {
  42687. model.addAll(link);
  42688. }
  42689. }
  42690. else {
  42691. // Create value node for the connection
  42692. var type = "";
  42693. if (connection.type == babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Texture) {
  42694. type = "Texture";
  42695. }
  42696. else if (connection.type == babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Matrix) {
  42697. type = "Matrix";
  42698. }
  42699. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3) {
  42700. type = "Vector3";
  42701. }
  42702. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2) {
  42703. type = "Vector2";
  42704. }
  42705. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3OrVector4OrColor4) {
  42706. type = "Vector4";
  42707. }
  42708. else if (connection.type & babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float) {
  42709. type = "Float";
  42710. }
  42711. // Create links
  42712. var localNode = graphEditor.addValueNode(type, options.column + 1, connection);
  42713. if (localNode) {
  42714. var ports = localNode.getPorts();
  42715. for (var key in ports) {
  42716. var link = ports[key].link(inputPort);
  42717. if (graphEditor._toAdd) {
  42718. graphEditor._toAdd.push(link);
  42719. }
  42720. else {
  42721. model.addAll(link);
  42722. }
  42723. }
  42724. }
  42725. }
  42726. });
  42727. };
  42728. DefaultNodeModel.prototype.renderProperties = function (globalState) {
  42729. return null;
  42730. };
  42731. return DefaultNodeModel;
  42732. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["NodeModel"]));
  42733. /***/ }),
  42734. /***/ "./components/diagram/defaultPortModel.ts":
  42735. /*!************************************************!*\
  42736. !*** ./components/diagram/defaultPortModel.ts ***!
  42737. \************************************************/
  42738. /*! exports provided: DefaultPortModel */
  42739. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42740. "use strict";
  42741. __webpack_require__.r(__webpack_exports__);
  42742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortModel", function() { return DefaultPortModel; });
  42743. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42744. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42745. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42746. /**
  42747. * Port model
  42748. */
  42749. var DefaultPortModel = /** @class */ (function (_super) {
  42750. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortModel, _super);
  42751. function DefaultPortModel(name, type) {
  42752. if (type === void 0) { type = "input"; }
  42753. var _this = _super.call(this, name, "generic") || this;
  42754. /**
  42755. * What the port is connected to
  42756. */
  42757. _this.connection = null;
  42758. _this.position = type;
  42759. DefaultPortModel.idCounter++;
  42760. return _this;
  42761. }
  42762. DefaultPortModel.prototype.syncWithNodeMaterialConnectionPoint = function (connection) {
  42763. this.connection = connection;
  42764. this.name = connection.name;
  42765. };
  42766. DefaultPortModel.prototype.getNodeModel = function () {
  42767. return this.parent;
  42768. };
  42769. DefaultPortModel.prototype.link = function (outPort) {
  42770. var link = this.createLinkModel();
  42771. link.setSourcePort(this);
  42772. link.setTargetPort(outPort);
  42773. return link;
  42774. };
  42775. DefaultPortModel.prototype.createLinkModel = function () {
  42776. return new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkModel"]();
  42777. };
  42778. DefaultPortModel.SortInputOutput = function (a, b) {
  42779. if (!a || !b) {
  42780. return null;
  42781. }
  42782. else if (a.position == "output" && b.position == "input") {
  42783. return {
  42784. input: b,
  42785. output: a
  42786. };
  42787. }
  42788. else if (b.position == "output" && a.position == "input") {
  42789. return {
  42790. input: a,
  42791. output: b
  42792. };
  42793. }
  42794. else {
  42795. return null;
  42796. }
  42797. };
  42798. DefaultPortModel.idCounter = 0;
  42799. return DefaultPortModel;
  42800. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["PortModel"]));
  42801. /***/ }),
  42802. /***/ "./components/diagram/diagram.scss":
  42803. /*!*****************************************!*\
  42804. !*** ./components/diagram/diagram.scss ***!
  42805. \*****************************************/
  42806. /*! no static exports found */
  42807. /***/ (function(module, exports, __webpack_require__) {
  42808. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./diagram.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss");
  42809. if(typeof content === 'string') content = [[module.i, content, '']];
  42810. var transform;
  42811. var insertInto;
  42812. var options = {"hmr":true}
  42813. options.transform = transform
  42814. options.insertInto = undefined;
  42815. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  42816. if(content.locals) module.exports = content.locals;
  42817. if(false) {}
  42818. /***/ }),
  42819. /***/ "./components/diagram/generic/genericNodeFactory.tsx":
  42820. /*!***********************************************************!*\
  42821. !*** ./components/diagram/generic/genericNodeFactory.tsx ***!
  42822. \***********************************************************/
  42823. /*! exports provided: GenericNodeFactory */
  42824. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42825. "use strict";
  42826. __webpack_require__.r(__webpack_exports__);
  42827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeFactory", function() { return GenericNodeFactory; });
  42828. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42829. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42830. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  42831. /* harmony import */ var _genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./genericNodeWidget */ "./components/diagram/generic/genericNodeWidget.tsx");
  42832. /* harmony import */ var _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  42833. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42834. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  42835. /**
  42836. * Node factory which creates editor nodes
  42837. */
  42838. var GenericNodeFactory = /** @class */ (function (_super) {
  42839. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeFactory, _super);
  42840. /**
  42841. * Constructs a GenericNodeFactory
  42842. */
  42843. function GenericNodeFactory(globalState) {
  42844. var _this = _super.call(this, "generic") || this;
  42845. _this._globalState = globalState;
  42846. return _this;
  42847. }
  42848. /**
  42849. * Generates a node widget
  42850. * @param diagramEngine diagram engine
  42851. * @param node node to generate
  42852. * @returns node widget jsx
  42853. */
  42854. GenericNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  42855. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__["GenericNodeWidget"], { node: node, globalState: this._globalState });
  42856. };
  42857. /**
  42858. * Gets a new instance of a node model
  42859. * @returns generic node model
  42860. */
  42861. GenericNodeFactory.prototype.getNewInstance = function () {
  42862. return new _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__["GenericNodeModel"]();
  42863. };
  42864. return GenericNodeFactory;
  42865. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  42866. /***/ }),
  42867. /***/ "./components/diagram/generic/genericNodeModel.tsx":
  42868. /*!*********************************************************!*\
  42869. !*** ./components/diagram/generic/genericNodeModel.tsx ***!
  42870. \*********************************************************/
  42871. /*! exports provided: GenericNodeModel */
  42872. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42873. "use strict";
  42874. __webpack_require__.r(__webpack_exports__);
  42875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeModel", function() { return GenericNodeModel; });
  42876. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42877. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42878. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42879. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  42880. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  42881. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  42882. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  42883. /**
  42884. * Generic node model which stores information about a node editor block
  42885. */
  42886. var GenericNodeModel = /** @class */ (function (_super) {
  42887. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeModel, _super);
  42888. /**
  42889. * Constructs the node model
  42890. */
  42891. function GenericNodeModel() {
  42892. var _this = _super.call(this, "generic") || this;
  42893. /**
  42894. * Vector2 for the node if it exists
  42895. */
  42896. _this.vector2 = null;
  42897. /**
  42898. * Vector3 for the node if it exists
  42899. */
  42900. _this.vector3 = null;
  42901. /**
  42902. * Vector4 for the node if it exists
  42903. */
  42904. _this.vector4 = null;
  42905. /**
  42906. * Matrix for the node if it exists
  42907. */
  42908. _this.matrix = null;
  42909. return _this;
  42910. }
  42911. GenericNodeModel.prototype.prepare = function (options, nodes, model, graphEditor, filterInputs) {
  42912. _super.prototype.prepare.call(this, options, nodes, model, graphEditor, filterInputs);
  42913. };
  42914. GenericNodeModel.prototype.renderProperties = function (globalState) {
  42915. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "GENERAL" },
  42916. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: this.block, onChange: function () { return globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  42917. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Type", value: this.block.getClassName() })));
  42918. };
  42919. return GenericNodeModel;
  42920. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  42921. /***/ }),
  42922. /***/ "./components/diagram/generic/genericNodeWidget.tsx":
  42923. /*!**********************************************************!*\
  42924. !*** ./components/diagram/generic/genericNodeWidget.tsx ***!
  42925. \**********************************************************/
  42926. /*! exports provided: GenericNodeWidget */
  42927. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42928. "use strict";
  42929. __webpack_require__.r(__webpack_exports__);
  42930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeWidget", function() { return GenericNodeWidget; });
  42931. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  42932. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  42933. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  42934. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  42935. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__);
  42936. /**
  42937. * Used to display a node block for the node editor
  42938. */
  42939. var GenericNodeWidget = /** @class */ (function (_super) {
  42940. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeWidget, _super);
  42941. /**
  42942. * Creates a GenericNodeWidget
  42943. * @param props
  42944. */
  42945. function GenericNodeWidget(props) {
  42946. var _this = _super.call(this, props) || this;
  42947. _this.state = {};
  42948. if (_this.props.node) {
  42949. _this.props.node.addListener({
  42950. selectionChanged: function () {
  42951. var selected = _this.props.node.selected;
  42952. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  42953. }
  42954. });
  42955. }
  42956. return _this;
  42957. }
  42958. GenericNodeWidget.prototype.render = function () {
  42959. var header = "";
  42960. var inputPorts = new Array();
  42961. var outputPorts = new Array();
  42962. if (this.props.node) {
  42963. // Header label
  42964. if (this.props.node.block) {
  42965. header = this.props.node.block.name;
  42966. }
  42967. // Input/Output ports
  42968. for (var key in this.props.node.ports) {
  42969. var port = this.props.node.ports[key];
  42970. if (port.position === "input") {
  42971. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "input-port" },
  42972. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-plug" },
  42973. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node })),
  42974. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-label" }, port.name)));
  42975. }
  42976. else {
  42977. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "output-port" },
  42978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-label" }, port.name),
  42979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-plug" },
  42980. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node }))));
  42981. }
  42982. }
  42983. }
  42984. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" + (outputPorts.length === 0 ? " output" : "") },
  42985. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, header),
  42986. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  42987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  42988. };
  42989. return GenericNodeWidget;
  42990. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  42991. /***/ }),
  42992. /***/ "./components/diagram/input/inputNodeFactory.tsx":
  42993. /*!*******************************************************!*\
  42994. !*** ./components/diagram/input/inputNodeFactory.tsx ***!
  42995. \*******************************************************/
  42996. /*! exports provided: InputNodeFactory */
  42997. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42998. "use strict";
  42999. __webpack_require__.r(__webpack_exports__);
  43000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeFactory", function() { return InputNodeFactory; });
  43001. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43002. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43003. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  43004. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43005. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  43006. /* harmony import */ var _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  43007. /* harmony import */ var _inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputNodeWidget */ "./components/diagram/input/inputNodeWidget.tsx");
  43008. /**
  43009. * Node factory which creates editor nodes
  43010. */
  43011. var InputNodeFactory = /** @class */ (function (_super) {
  43012. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeFactory, _super);
  43013. /**
  43014. * Constructs a GenericNodeFactory
  43015. */
  43016. function InputNodeFactory(globalState) {
  43017. var _this = _super.call(this, "input") || this;
  43018. _this._globalState = globalState;
  43019. return _this;
  43020. }
  43021. /**
  43022. * Generates a node widget
  43023. * @param diagramEngine diagram engine
  43024. * @param node node to generate
  43025. * @returns node widget jsx
  43026. */
  43027. InputNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  43028. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__["InputNodeWidget"], { node: node, globalState: this._globalState });
  43029. };
  43030. /**
  43031. * Gets a new instance of a node model
  43032. * @returns input node model
  43033. */
  43034. InputNodeFactory.prototype.getNewInstance = function () {
  43035. return new _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__["InputNodeModel"]();
  43036. };
  43037. return InputNodeFactory;
  43038. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  43039. /***/ }),
  43040. /***/ "./components/diagram/input/inputNodeModel.tsx":
  43041. /*!*****************************************************!*\
  43042. !*** ./components/diagram/input/inputNodeModel.tsx ***!
  43043. \*****************************************************/
  43044. /*! exports provided: InputNodeModel */
  43045. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43046. "use strict";
  43047. __webpack_require__.r(__webpack_exports__);
  43048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeModel", function() { return InputNodeModel; });
  43049. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43050. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43051. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43052. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  43053. /* harmony import */ var _inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodePropertyComponent */ "./components/diagram/input/inputNodePropertyComponent.tsx");
  43054. /**
  43055. * Generic node model which stores information about a node editor block
  43056. */
  43057. var InputNodeModel = /** @class */ (function (_super) {
  43058. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeModel, _super);
  43059. /**
  43060. * Constructs the node model
  43061. */
  43062. function InputNodeModel() {
  43063. return _super.call(this, "input") || this;
  43064. }
  43065. InputNodeModel.prototype.renderProperties = function (globalState) {
  43066. if (!this.connection) {
  43067. return null;
  43068. }
  43069. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["InputPropertyTabComponentProps"], { globalState: globalState, inputNode: this }));
  43070. };
  43071. return InputNodeModel;
  43072. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  43073. /***/ }),
  43074. /***/ "./components/diagram/input/inputNodePropertyComponent.tsx":
  43075. /*!*****************************************************************!*\
  43076. !*** ./components/diagram/input/inputNodePropertyComponent.tsx ***!
  43077. \*****************************************************************/
  43078. /*! exports provided: InputPropertyTabComponentProps */
  43079. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43080. "use strict";
  43081. __webpack_require__.r(__webpack_exports__);
  43082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponentProps", function() { return InputPropertyTabComponentProps; });
  43083. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43084. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43085. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43086. /* harmony import */ var _propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  43087. /* harmony import */ var _propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  43088. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  43089. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  43090. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__);
  43091. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  43092. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  43093. /* harmony import */ var _propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  43094. /* harmony import */ var _propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  43095. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  43096. var InputPropertyTabComponentProps = /** @class */ (function (_super) {
  43097. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputPropertyTabComponentProps, _super);
  43098. function InputPropertyTabComponentProps(props) {
  43099. return _super.call(this, props) || this;
  43100. }
  43101. InputPropertyTabComponentProps.prototype.renderValue = function (globalState) {
  43102. var connection = this.props.inputNode.connection;
  43103. switch (connection.type) {
  43104. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Float:
  43105. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["FloatPropertyTabComponent"], { globalState: globalState, connection: connection }));
  43106. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  43107. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2PropertyTabComponent"], { globalState: globalState, connection: connection }));
  43108. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  43109. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  43110. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3OrColor4:
  43111. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color4:
  43112. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["Color3PropertyTabComponent"], { globalState: globalState, connection: connection }));
  43113. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3:
  43114. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["Vector3PropertyTabComponent"], { globalState: globalState, connection: connection }));
  43115. }
  43116. return null;
  43117. };
  43118. InputPropertyTabComponentProps.prototype.setDefaultValue = function () {
  43119. var connection = this.props.inputNode.connection;
  43120. switch (connection.type) {
  43121. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Float:
  43122. connection.value = 0;
  43123. break;
  43124. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  43125. connection.value = babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["Vector2"].Zero();
  43126. break;
  43127. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  43128. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  43129. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3:
  43130. connection.value = babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["Vector3"].Zero();
  43131. break;
  43132. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  43133. connection.value = babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["Matrix"].Identity();
  43134. break;
  43135. }
  43136. };
  43137. InputPropertyTabComponentProps.prototype.render = function () {
  43138. var _this = this;
  43139. var connection = this.props.inputNode.connection;
  43140. var wellKnownOptions = [
  43141. { label: "World", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].World },
  43142. { label: "WorldxView", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].WorldView },
  43143. { label: "WorldxViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].WorldViewProjection },
  43144. { label: "View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].View },
  43145. { label: "ViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].ViewProjection },
  43146. { label: "Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].Projection },
  43147. { label: "Automatic", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].Automatic },
  43148. ];
  43149. var attributeOptions = [
  43150. { label: "position", value: "position" },
  43151. { label: "normal", value: "normal" },
  43152. { label: "tangent", value: "tangent" },
  43153. { label: "color", value: "color" },
  43154. { label: "uv", value: "uv" },
  43155. { label: "uv2", value: "uv2" },
  43156. ];
  43157. /**
  43158. * Gets the base math type of node material block connection point.
  43159. * @param type Type to parse.
  43160. */
  43161. function getBaseType(type) {
  43162. switch (type) {
  43163. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3:
  43164. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector4OrColor4:
  43165. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrVector4:
  43166. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Vector3OrColor3OrVector4OrColor4:
  43167. return "Vector";
  43168. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3:
  43169. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color3OrColor4:
  43170. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  43171. return "Color";
  43172. }
  43173. default: {
  43174. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialBlockConnectionPointTypes"][type];
  43175. }
  43176. }
  43177. }
  43178. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  43179. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "GENERAL" },
  43180. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_7__["TextLineComponent"], { label: "Type", value: getBaseType(connection.type) })),
  43181. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "PROPERTIES" },
  43182. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Is mesh attribute", onSelect: function (value) {
  43183. if (!value) {
  43184. connection.isUniform = true;
  43185. _this.setDefaultValue();
  43186. }
  43187. else {
  43188. connection.isAttribute = true;
  43189. }
  43190. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43191. _this.forceUpdate();
  43192. }, isSelected: function () { return connection.isAttribute; } }),
  43193. connection.isAttribute &&
  43194. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Attribute", valuesAreStrings: true, options: attributeOptions, target: connection, propertyName: "name", onSelect: function (value) {
  43195. connection.setAsAttribute(value);
  43196. _this.forceUpdate();
  43197. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43198. } }),
  43199. connection.isUniform &&
  43200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Is well known value", onSelect: function (value) {
  43201. if (value) {
  43202. connection.setAsWellKnownValue(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialWellKnownValues"].World);
  43203. }
  43204. else {
  43205. connection.setAsWellKnownValue(null);
  43206. _this.setDefaultValue();
  43207. }
  43208. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43209. _this.forceUpdate();
  43210. }, isSelected: function () { return connection.isWellKnownValue; } }),
  43211. connection.isUniform && !connection.isWellKnownValue &&
  43212. this.renderValue(this.props.globalState),
  43213. connection.isUniform && connection.isWellKnownValue &&
  43214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_6__["OptionsLineComponent"], { label: "Well known value", options: wellKnownOptions, target: connection, propertyName: "wellKnownValue", onSelect: function (value) {
  43215. connection.setAsWellKnownValue(value);
  43216. _this.forceUpdate();
  43217. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43218. } }))));
  43219. };
  43220. return InputPropertyTabComponentProps;
  43221. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43222. /***/ }),
  43223. /***/ "./components/diagram/input/inputNodeWidget.tsx":
  43224. /*!******************************************************!*\
  43225. !*** ./components/diagram/input/inputNodeWidget.tsx ***!
  43226. \******************************************************/
  43227. /*! exports provided: InputNodeWidget */
  43228. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43229. "use strict";
  43230. __webpack_require__.r(__webpack_exports__);
  43231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeWidget", function() { return InputNodeWidget; });
  43232. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43233. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43234. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43235. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43236. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__);
  43237. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialWellKnownValues */ "babylonjs/Misc/observable");
  43238. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__);
  43239. /**
  43240. * Used to display a node block for the node editor
  43241. */
  43242. var InputNodeWidget = /** @class */ (function (_super) {
  43243. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeWidget, _super);
  43244. /**
  43245. * Creates a GenericNodeWidget
  43246. * @param props
  43247. */
  43248. function InputNodeWidget(props) {
  43249. var _this = _super.call(this, props) || this;
  43250. _this.state = {};
  43251. if (_this.props.node) {
  43252. _this.props.node.addListener({
  43253. selectionChanged: function () {
  43254. var selected = _this.props.node.selected;
  43255. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  43256. }
  43257. });
  43258. }
  43259. return _this;
  43260. }
  43261. InputNodeWidget.prototype.render = function () {
  43262. var outputPorts = new Array();
  43263. var port;
  43264. if (this.props.node) {
  43265. for (var key in this.props.node.ports) {
  43266. port = this.props.node.ports[key];
  43267. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "output-port" },
  43268. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-label" }),
  43269. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-plug" },
  43270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node }))));
  43271. break;
  43272. }
  43273. }
  43274. var connection = this.props.node.connection;
  43275. var value = "";
  43276. var name = port.name;
  43277. if (connection) {
  43278. if (connection.isAttribute) {
  43279. value = "mesh." + connection.name;
  43280. }
  43281. else if (connection.isWellKnownValue) {
  43282. switch (connection.wellKnownValue) {
  43283. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].World:
  43284. value = "World";
  43285. break;
  43286. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].WorldView:
  43287. value = "World x View";
  43288. break;
  43289. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].WorldViewProjection:
  43290. value = "World x View x Projection";
  43291. break;
  43292. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].View:
  43293. value = "View";
  43294. break;
  43295. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].ViewProjection:
  43296. value = "View x Projection";
  43297. break;
  43298. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].Projection:
  43299. value = "Projection";
  43300. break;
  43301. case babylonjs_Materials_Node_nodeMaterialWellKnownValues__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialWellKnownValues"].Automatic:
  43302. value = "Automatic";
  43303. break;
  43304. }
  43305. }
  43306. }
  43307. else {
  43308. name = "Not connected input";
  43309. }
  43310. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock input" + (connection && connection.isAttribute ? " attribute" : "") },
  43311. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, name),
  43312. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  43313. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, value)));
  43314. };
  43315. return InputNodeWidget;
  43316. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43317. /***/ }),
  43318. /***/ "./components/diagram/texture/textureNodeFactory.tsx":
  43319. /*!***********************************************************!*\
  43320. !*** ./components/diagram/texture/textureNodeFactory.tsx ***!
  43321. \***********************************************************/
  43322. /*! exports provided: TextureNodeFactory */
  43323. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43324. "use strict";
  43325. __webpack_require__.r(__webpack_exports__);
  43326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeFactory", function() { return TextureNodeFactory; });
  43327. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43328. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43329. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  43330. /* harmony import */ var _textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureNodeWidget */ "./components/diagram/texture/textureNodeWidget.tsx");
  43331. /* harmony import */ var _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  43332. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43333. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  43334. /**
  43335. * Node factory which creates editor nodes
  43336. */
  43337. var TextureNodeFactory = /** @class */ (function (_super) {
  43338. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeFactory, _super);
  43339. /**
  43340. * Constructs a TextureNodeFactory
  43341. */
  43342. function TextureNodeFactory(globalState) {
  43343. var _this = _super.call(this, "texture") || this;
  43344. _this._globalState = globalState;
  43345. return _this;
  43346. }
  43347. /**
  43348. * Generates a node widget
  43349. * @param diagramEngine diagram engine
  43350. * @param node node to generate
  43351. * @returns node widget jsx
  43352. */
  43353. TextureNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  43354. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__["TextureNodeWidget"], { node: node, globalState: this._globalState });
  43355. };
  43356. /**
  43357. * Gets a new instance of a node model
  43358. * @returns texture node model
  43359. */
  43360. TextureNodeFactory.prototype.getNewInstance = function () {
  43361. return new _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__["TextureNodeModel"]();
  43362. };
  43363. return TextureNodeFactory;
  43364. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  43365. /***/ }),
  43366. /***/ "./components/diagram/texture/textureNodeModel.tsx":
  43367. /*!*********************************************************!*\
  43368. !*** ./components/diagram/texture/textureNodeModel.tsx ***!
  43369. \*********************************************************/
  43370. /*! exports provided: TextureNodeModel */
  43371. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43372. "use strict";
  43373. __webpack_require__.r(__webpack_exports__);
  43374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeModel", function() { return TextureNodeModel; });
  43375. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43376. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43377. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43378. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  43379. /* harmony import */ var _texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./texturePropertyTabComponent */ "./components/diagram/texture/texturePropertyTabComponent.tsx");
  43380. /**
  43381. * Texture node model which stores information about a node editor block
  43382. */
  43383. var TextureNodeModel = /** @class */ (function (_super) {
  43384. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeModel, _super);
  43385. /**
  43386. * Constructs the node model
  43387. */
  43388. function TextureNodeModel() {
  43389. return _super.call(this, "texture") || this;
  43390. }
  43391. Object.defineProperty(TextureNodeModel.prototype, "texture", {
  43392. /**
  43393. * Texture for the node if it exists
  43394. */
  43395. get: function () {
  43396. return this._block.texture.value;
  43397. },
  43398. set: function (value) {
  43399. this._block.texture.value = value;
  43400. },
  43401. enumerable: true,
  43402. configurable: true
  43403. });
  43404. TextureNodeModel.prototype.renderProperties = function (globalState) {
  43405. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["TexturePropertyTabComponent"], { globalState: globalState, node: this }));
  43406. };
  43407. TextureNodeModel.prototype.prepare = function (options, nodes, model, graphEditor, filterInputs) {
  43408. this._block = options.nodeMaterialBlock;
  43409. _super.prototype.prepare.call(this, options, nodes, model, graphEditor, filterInputs);
  43410. };
  43411. return TextureNodeModel;
  43412. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  43413. /***/ }),
  43414. /***/ "./components/diagram/texture/textureNodeWidget.tsx":
  43415. /*!**********************************************************!*\
  43416. !*** ./components/diagram/texture/textureNodeWidget.tsx ***!
  43417. \**********************************************************/
  43418. /*! exports provided: TextureNodeWidget */
  43419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43420. "use strict";
  43421. __webpack_require__.r(__webpack_exports__);
  43422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeWidget", function() { return TextureNodeWidget; });
  43423. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43425. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43426. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43427. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__);
  43428. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  43429. /**
  43430. * Used to display a node block for the node editor
  43431. */
  43432. var TextureNodeWidget = /** @class */ (function (_super) {
  43433. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeWidget, _super);
  43434. /**
  43435. * Creates a GenericNodeWidget
  43436. * @param props
  43437. */
  43438. function TextureNodeWidget(props) {
  43439. var _this = _super.call(this, props) || this;
  43440. _this.state = {};
  43441. if (_this.props.node) {
  43442. _this.props.node.addListener({
  43443. selectionChanged: function () {
  43444. var selected = _this.props.node.selected;
  43445. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  43446. }
  43447. });
  43448. }
  43449. return _this;
  43450. }
  43451. TextureNodeWidget.prototype.render = function () {
  43452. var inputPorts = new Array();
  43453. var outputPorts = new Array();
  43454. if (this.props.node) {
  43455. // Input/Output ports
  43456. for (var key in this.props.node.ports) {
  43457. var port = this.props.node.ports[key];
  43458. if (port.position === "output") {
  43459. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "output-port" },
  43460. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-label" }, port.name),
  43461. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "output-port-plug" },
  43462. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node }))));
  43463. }
  43464. else if (port.name === "uv") {
  43465. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: key, className: "input-port" },
  43466. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-plug" },
  43467. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_2__["PortWidget"], { key: key, name: port.name, node: this.props.node })),
  43468. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "input-port-label" }, port.name)));
  43469. }
  43470. }
  43471. }
  43472. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  43473. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  43474. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  43475. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  43476. this.props.node && this.props.node.texture &&
  43477. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextureLineComponent"], { ref: "textureView", width: 200, height: 180, texture: this.props.node.texture, hideChannelSelect: true })));
  43478. };
  43479. return TextureNodeWidget;
  43480. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43481. /***/ }),
  43482. /***/ "./components/diagram/texture/texturePropertyTabComponent.tsx":
  43483. /*!********************************************************************!*\
  43484. !*** ./components/diagram/texture/texturePropertyTabComponent.tsx ***!
  43485. \********************************************************************/
  43486. /*! exports provided: TexturePropertyTabComponent */
  43487. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43488. "use strict";
  43489. __webpack_require__.r(__webpack_exports__);
  43490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  43491. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43492. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43493. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43494. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/observable");
  43495. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__);
  43496. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  43497. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  43498. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  43499. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  43500. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  43501. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  43502. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TexturePropertyTabComponent, _super);
  43503. function TexturePropertyTabComponent() {
  43504. return _super !== null && _super.apply(this, arguments) || this;
  43505. }
  43506. /**
  43507. * Replaces the texture of the node
  43508. * @param file the file of the texture to use
  43509. */
  43510. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  43511. var _this = this;
  43512. if (!this.props.node) {
  43513. return;
  43514. }
  43515. var texture = this.props.node.texture;
  43516. if (!texture) {
  43517. this.props.node.texture = new babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__["Texture"](null, babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__["Engine"].LastCreatedScene);
  43518. texture = this.props.node.texture;
  43519. }
  43520. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_2__["Tools"].ReadFile(file, function (data) {
  43521. var blob = new Blob([data], { type: "octet/stream" });
  43522. var url = URL.createObjectURL(blob);
  43523. if (texture.isCube) {
  43524. var extension = undefined;
  43525. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  43526. extension = ".dds";
  43527. }
  43528. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  43529. extension = ".env";
  43530. }
  43531. texture.updateURL(url, extension, function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); });
  43532. }
  43533. else {
  43534. texture.updateURL(url, null, function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); });
  43535. }
  43536. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  43537. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  43538. }, undefined, true);
  43539. };
  43540. TexturePropertyTabComponent.prototype.render = function () {
  43541. var _this = this;
  43542. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  43543. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "GENERAL" },
  43544. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__["TextInputLineComponent"], { label: "Name", propertyName: "name", target: this.props.node.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  43545. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: "Texture" })),
  43546. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "PROPERTIES" },
  43547. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Auto select UV", propertyName: "autoSelectUV", target: this.props.node.block }),
  43548. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_3__["FileButtonLineComponent"], { label: "Replace texture", onClick: function (file) { return _this.replaceTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" }))));
  43549. };
  43550. return TexturePropertyTabComponent;
  43551. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43552. /***/ }),
  43553. /***/ "./components/log/log.scss":
  43554. /*!*********************************!*\
  43555. !*** ./components/log/log.scss ***!
  43556. \*********************************/
  43557. /*! no static exports found */
  43558. /***/ (function(module, exports, __webpack_require__) {
  43559. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./log.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss");
  43560. if(typeof content === 'string') content = [[module.i, content, '']];
  43561. var transform;
  43562. var insertInto;
  43563. var options = {"hmr":true}
  43564. options.transform = transform
  43565. options.insertInto = undefined;
  43566. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43567. if(content.locals) module.exports = content.locals;
  43568. if(false) {}
  43569. /***/ }),
  43570. /***/ "./components/log/logComponent.tsx":
  43571. /*!*****************************************!*\
  43572. !*** ./components/log/logComponent.tsx ***!
  43573. \*****************************************/
  43574. /*! exports provided: LogComponent */
  43575. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43576. "use strict";
  43577. __webpack_require__.r(__webpack_exports__);
  43578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  43579. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43580. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43581. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43582. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  43583. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  43584. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  43585. var LogComponent = /** @class */ (function (_super) {
  43586. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LogComponent, _super);
  43587. function LogComponent(props) {
  43588. var _this = _super.call(this, props) || this;
  43589. _this.state = { logs: [] };
  43590. return _this;
  43591. }
  43592. LogComponent.prototype.componentWillMount = function () {
  43593. var _this = this;
  43594. this.props.globalState.onLogRequiredObservable.add(function (log) {
  43595. var currentLogs = _this.state.logs;
  43596. currentLogs.push.apply(currentLogs, log.split("\r\n"));
  43597. _this.setState({ logs: currentLogs });
  43598. });
  43599. };
  43600. LogComponent.prototype.componentDidUpdate = function () {
  43601. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  43602. if (!logConsole) {
  43603. return;
  43604. }
  43605. logConsole.scrollTop = logConsole.scrollHeight;
  43606. };
  43607. LogComponent.prototype.render = function () {
  43608. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  43609. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" }, l));
  43610. })));
  43611. };
  43612. return LogComponent;
  43613. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43614. /***/ }),
  43615. /***/ "./components/nodeList/nodeList.scss":
  43616. /*!*******************************************!*\
  43617. !*** ./components/nodeList/nodeList.scss ***!
  43618. \*******************************************/
  43619. /*! no static exports found */
  43620. /***/ (function(module, exports, __webpack_require__) {
  43621. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./nodeList.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss");
  43622. if(typeof content === 'string') content = [[module.i, content, '']];
  43623. var transform;
  43624. var insertInto;
  43625. var options = {"hmr":true}
  43626. options.transform = transform
  43627. options.insertInto = undefined;
  43628. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43629. if(content.locals) module.exports = content.locals;
  43630. if(false) {}
  43631. /***/ }),
  43632. /***/ "./components/nodeList/nodeListComponent.tsx":
  43633. /*!***************************************************!*\
  43634. !*** ./components/nodeList/nodeListComponent.tsx ***!
  43635. \***************************************************/
  43636. /*! exports provided: NodeListComponent */
  43637. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43638. "use strict";
  43639. __webpack_require__.r(__webpack_exports__);
  43640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  43641. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43642. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43643. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43644. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  43645. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  43646. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock */ "babylonjs/Misc/observable");
  43647. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__);
  43648. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  43649. var NodeListComponent = /** @class */ (function (_super) {
  43650. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NodeListComponent, _super);
  43651. function NodeListComponent() {
  43652. return _super !== null && _super.apply(this, arguments) || this;
  43653. }
  43654. NodeListComponent.prototype.render = function () {
  43655. var _this = this;
  43656. // Block types used to create the menu from
  43657. var allBlocks = {
  43658. Vertex: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["BonesBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["InstancesBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["MorphTargetsBlock"]],
  43659. Fragment: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["AlphaTestBlock"], , babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["ImageProcessingBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["RGBAMergerBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["RGBASplitterBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["TextureBlock"]],
  43660. Outputs: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["VertexOutputBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["FragmentOutputBlock"]],
  43661. Dual: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["FogBlock"]],
  43662. Math: [babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["AddBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["ClampBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["MatrixMultiplicationBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["MultiplyBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["ScaleBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["Vector2TransformBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["Vector3TransformBlock"], babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_4__["Vector4TransformBlock"]],
  43663. Inputs: ["Vector2", "Vector3", "Vector4", "Color3", "Color4", "Matrix"],
  43664. };
  43665. // Create node menu
  43666. var blockMenu = [];
  43667. for (var key in allBlocks) {
  43668. var blockList = allBlocks[key].map(function (b) {
  43669. var label = typeof b === "string" ? b : b.prototype.getClassName().replace("Block", "");
  43670. var onClick = typeof b === "string" ? function () {
  43671. _this.props.onAddValueNode(b);
  43672. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  43673. } : function () { _this.props.onAddNodeFromClass(b); };
  43674. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_3__["ButtonLineComponent"], { key: label, label: label, onClick: onClick });
  43675. });
  43676. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { key: key + " blocks", title: key + " blocks", closed: false }, blockList));
  43677. }
  43678. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList", style: { borderRightStyle: "solid", borderColor: "grey", borderWidth: "1px" } },
  43679. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  43680. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" }, blockMenu))));
  43681. };
  43682. return NodeListComponent;
  43683. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43684. /***/ }),
  43685. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  43686. /*!**************************************************************************!*\
  43687. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  43688. \**************************************************************************/
  43689. /*! exports provided: Color3PropertyTabComponent */
  43690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43691. "use strict";
  43692. __webpack_require__.r(__webpack_exports__);
  43693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  43694. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43695. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43696. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43697. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  43698. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  43699. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3PropertyTabComponent, _super);
  43700. function Color3PropertyTabComponent() {
  43701. return _super !== null && _super.apply(this, arguments) || this;
  43702. }
  43703. Color3PropertyTabComponent.prototype.render = function () {
  43704. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { label: "Value", target: this.props.connection, propertyName: "value" }));
  43705. };
  43706. return Color3PropertyTabComponent;
  43707. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43708. /***/ }),
  43709. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  43710. /*!*************************************************************************!*\
  43711. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  43712. \*************************************************************************/
  43713. /*! exports provided: FloatPropertyTabComponent */
  43714. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43715. "use strict";
  43716. __webpack_require__.r(__webpack_exports__);
  43717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  43718. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43719. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43720. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43721. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  43722. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  43723. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatPropertyTabComponent, _super);
  43724. function FloatPropertyTabComponent() {
  43725. return _super !== null && _super.apply(this, arguments) || this;
  43726. }
  43727. FloatPropertyTabComponent.prototype.render = function () {
  43728. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Value", target: this.props.connection, propertyName: "value" }));
  43729. };
  43730. return FloatPropertyTabComponent;
  43731. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43732. /***/ }),
  43733. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  43734. /*!***************************************************************************!*\
  43735. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  43736. \***************************************************************************/
  43737. /*! exports provided: Vector2PropertyTabComponent */
  43738. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43739. "use strict";
  43740. __webpack_require__.r(__webpack_exports__);
  43741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  43742. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43743. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43744. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43745. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  43746. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  43747. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2PropertyTabComponent, _super);
  43748. function Vector2PropertyTabComponent() {
  43749. return _super !== null && _super.apply(this, arguments) || this;
  43750. }
  43751. Vector2PropertyTabComponent.prototype.render = function () {
  43752. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.connection, propertyName: "value" }));
  43753. };
  43754. return Vector2PropertyTabComponent;
  43755. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43756. /***/ }),
  43757. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  43758. /*!***************************************************************************!*\
  43759. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  43760. \***************************************************************************/
  43761. /*! exports provided: Vector3PropertyTabComponent */
  43762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43763. "use strict";
  43764. __webpack_require__.r(__webpack_exports__);
  43765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  43766. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43767. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43768. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43769. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  43770. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  43771. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3PropertyTabComponent, _super);
  43772. function Vector3PropertyTabComponent() {
  43773. return _super !== null && _super.apply(this, arguments) || this;
  43774. }
  43775. Vector3PropertyTabComponent.prototype.render = function () {
  43776. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.connection, propertyName: "value" }));
  43777. };
  43778. return Vector3PropertyTabComponent;
  43779. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43780. /***/ }),
  43781. /***/ "./components/propertyTab/propertyTab.scss":
  43782. /*!*************************************************!*\
  43783. !*** ./components/propertyTab/propertyTab.scss ***!
  43784. \*************************************************/
  43785. /*! no static exports found */
  43786. /***/ (function(module, exports, __webpack_require__) {
  43787. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./propertyTab.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss");
  43788. if(typeof content === 'string') content = [[module.i, content, '']];
  43789. var transform;
  43790. var insertInto;
  43791. var options = {"hmr":true}
  43792. options.transform = transform
  43793. options.insertInto = undefined;
  43794. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  43795. if(content.locals) module.exports = content.locals;
  43796. if(false) {}
  43797. /***/ }),
  43798. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  43799. /*!*********************************************************!*\
  43800. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  43801. \*********************************************************/
  43802. /*! exports provided: PropertyTabComponent */
  43803. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43804. "use strict";
  43805. __webpack_require__.r(__webpack_exports__);
  43806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  43807. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43808. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43809. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  43810. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  43811. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  43812. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  43813. var PropertyTabComponent = /** @class */ (function (_super) {
  43814. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PropertyTabComponent, _super);
  43815. function PropertyTabComponent(props) {
  43816. var _this = _super.call(this, props) || this;
  43817. _this.state = { currentNode: null };
  43818. return _this;
  43819. }
  43820. PropertyTabComponent.prototype.componentWillMount = function () {
  43821. var _this = this;
  43822. this.props.globalState.onSelectionChangedObservable.add(function (block) {
  43823. _this.setState({ currentNode: block });
  43824. });
  43825. };
  43826. PropertyTabComponent.prototype.render = function () {
  43827. var _this = this;
  43828. if (this.state.currentNode) {
  43829. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  43830. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  43831. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  43832. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  43833. this.state.currentNode.renderProperties(this.props.globalState)));
  43834. }
  43835. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  43836. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  43837. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  43838. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  43839. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  43840. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" }),
  43841. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  43842. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  43843. _this.props.globalState.nodeMaterial.setToDefault();
  43844. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  43845. } })),
  43846. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  43847. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  43848. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  43849. } })))));
  43850. };
  43851. return PropertyTabComponent;
  43852. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  43853. /***/ }),
  43854. /***/ "./globalState.ts":
  43855. /*!************************!*\
  43856. !*** ./globalState.ts ***!
  43857. \************************/
  43858. /*! exports provided: GlobalState */
  43859. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43860. "use strict";
  43861. __webpack_require__.r(__webpack_exports__);
  43862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  43863. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  43864. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  43865. var GlobalState = /** @class */ (function () {
  43866. function GlobalState() {
  43867. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43868. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43869. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43870. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43871. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43872. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  43873. }
  43874. return GlobalState;
  43875. }());
  43876. /***/ }),
  43877. /***/ "./graphEditor.tsx":
  43878. /*!*************************!*\
  43879. !*** ./graphEditor.tsx ***!
  43880. \*************************/
  43881. /*! exports provided: NodeCreationOptions, GraphEditor */
  43882. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43883. "use strict";
  43884. __webpack_require__.r(__webpack_exports__);
  43885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeCreationOptions", function() { return NodeCreationOptions; });
  43886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  43887. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  43888. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  43889. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  43890. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  43891. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  43892. /* harmony import */ var _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeFactory */ "./components/diagram/generic/genericNodeFactory.tsx");
  43893. /* harmony import */ var _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  43894. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  43895. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  43896. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  43897. /* harmony import */ var _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeFactory */ "./components/diagram/texture/textureNodeFactory.tsx");
  43898. /* harmony import */ var _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  43899. /* harmony import */ var _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/diagram/defaultPortModel */ "./components/diagram/defaultPortModel.ts");
  43900. /* harmony import */ var _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/diagram/input/inputNodeFactory */ "./components/diagram/input/inputNodeFactory.tsx");
  43901. /* harmony import */ var _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/diagram/input/inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  43902. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/textureBlock */ "babylonjs/Misc/observable");
  43903. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__);
  43904. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  43905. __webpack_require__(/*! storm-react-diagrams/dist/style.min.css */ "../../node_modules/storm-react-diagrams/dist/style.min.css");
  43906. __webpack_require__(/*! ./main.scss */ "./main.scss");
  43907. __webpack_require__(/*! ./components/diagram/diagram.scss */ "./components/diagram/diagram.scss");
  43908. var NodeCreationOptions = /** @class */ (function () {
  43909. function NodeCreationOptions() {
  43910. }
  43911. return NodeCreationOptions;
  43912. }());
  43913. var GraphEditor = /** @class */ (function (_super) {
  43914. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GraphEditor, _super);
  43915. function GraphEditor(props) {
  43916. var _this = _super.call(this, props) || this;
  43917. _this._nodes = new Array();
  43918. /** @hidden */
  43919. _this._toAdd = [];
  43920. /**
  43921. * Current row/column position used when adding new nodes
  43922. */
  43923. _this._rowPos = new Array();
  43924. // setup the diagram engine
  43925. _this._engine = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramEngine"]();
  43926. _this._engine.installDefaultFactories();
  43927. _this._engine.registerNodeFactory(new _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__["GenericNodeFactory"](_this.props.globalState));
  43928. _this._engine.registerNodeFactory(new _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__["TextureNodeFactory"](_this.props.globalState));
  43929. _this._engine.registerNodeFactory(new _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__["InputNodeFactory"](_this.props.globalState));
  43930. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  43931. if (_this.props.globalState.nodeMaterial) {
  43932. _this.buildMaterial();
  43933. }
  43934. _this.forceUpdate();
  43935. });
  43936. _this.props.globalState.onResetRequiredObservable.add(function () {
  43937. _this._rowPos = [];
  43938. _this.build();
  43939. if (_this.props.globalState.nodeMaterial) {
  43940. _this.buildMaterial();
  43941. }
  43942. });
  43943. _this.props.globalState.onUpdateRequiredObservable.add(function () {
  43944. _this.forceUpdate();
  43945. });
  43946. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  43947. _this._engine.zoomToFit();
  43948. });
  43949. _this.build();
  43950. return _this;
  43951. }
  43952. /**
  43953. * Creates a node and recursivly creates its parent nodes from it's input
  43954. * @param nodeMaterialBlock
  43955. */
  43956. GraphEditor.prototype.createNodeFromObject = function (options) {
  43957. // Update rows/columns
  43958. if (this._rowPos[options.column] == undefined) {
  43959. this._rowPos[options.column] = 0;
  43960. }
  43961. else {
  43962. this._rowPos[options.column]++;
  43963. }
  43964. // Create new node in the graph
  43965. var newNode;
  43966. var filterInputs = [];
  43967. if (options.nodeMaterialBlock) {
  43968. if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TextureBlock"]) {
  43969. newNode = new _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__["TextureNodeModel"]();
  43970. filterInputs.push("uv");
  43971. }
  43972. else {
  43973. newNode = new _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__["GenericNodeModel"]();
  43974. }
  43975. if (options.nodeMaterialBlock.isFinalMerger) {
  43976. this.props.globalState.nodeMaterial.addOutputNode(options.nodeMaterialBlock);
  43977. }
  43978. }
  43979. else {
  43980. newNode = new _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__["InputNodeModel"]();
  43981. newNode.connection = options.connection;
  43982. }
  43983. this._nodes.push(newNode);
  43984. newNode.setPosition(1600 - (300 * options.column), 210 * this._rowPos[options.column]);
  43985. this._model.addAll(newNode);
  43986. if (options.nodeMaterialBlock) {
  43987. newNode.prepare(options, this._nodes, this._model, this, filterInputs);
  43988. }
  43989. return newNode;
  43990. };
  43991. GraphEditor.prototype.componentDidMount = function () {
  43992. if (this.props.globalState.hostDocument) {
  43993. var widget = this.refs["test"];
  43994. widget.setState({ document: this.props.globalState.hostDocument });
  43995. this.props.globalState.hostDocument.addEventListener("keyup", widget.onKeyUpPointer, false);
  43996. }
  43997. };
  43998. GraphEditor.prototype.componentWillUnmount = function () {
  43999. if (this.props.globalState.hostDocument) {
  44000. var widget = this.refs["test"];
  44001. this.props.globalState.hostDocument.removeEventListener("keyup", widget.onKeyUpPointer, false);
  44002. }
  44003. };
  44004. GraphEditor.prototype.buildMaterial = function () {
  44005. if (!this.props.globalState.nodeMaterial) {
  44006. return;
  44007. }
  44008. try {
  44009. this.props.globalState.nodeMaterial.build(true);
  44010. this.props.globalState.onLogRequiredObservable.notifyObservers("Node material build successful");
  44011. }
  44012. catch (err) {
  44013. this.props.globalState.onLogRequiredObservable.notifyObservers(err);
  44014. }
  44015. };
  44016. GraphEditor.prototype.build = function () {
  44017. var _this = this;
  44018. // setup the diagram model
  44019. this._model = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramModel"]();
  44020. // Listen to events
  44021. this._model.addListener({
  44022. nodesUpdated: function (e) {
  44023. if (!e.isCreated) {
  44024. // Block is deleted
  44025. var targetBlock = e.node.block;
  44026. if (targetBlock && targetBlock.isFinalMerger) {
  44027. _this.props.globalState.nodeMaterial.removeOutputNode(targetBlock);
  44028. }
  44029. }
  44030. },
  44031. linksUpdated: function (e) {
  44032. if (!e.isCreated) {
  44033. // Link is deleted
  44034. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  44035. var link = _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  44036. if (link) {
  44037. if (link.input.connection) {
  44038. if (link.output.connection) {
  44039. // Disconnect standard nodes
  44040. link.output.connection.disconnectFrom(link.input.connection);
  44041. link.input.syncWithNodeMaterialConnectionPoint(link.input.connection);
  44042. link.output.syncWithNodeMaterialConnectionPoint(link.output.connection);
  44043. }
  44044. else if (link.input.connection.value) {
  44045. link.input.connection.value = null;
  44046. }
  44047. }
  44048. }
  44049. }
  44050. e.link.addListener({
  44051. sourcePortChanged: function () {
  44052. console.log("port change");
  44053. },
  44054. targetPortChanged: function () {
  44055. // Link is created with a target port
  44056. var link = _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  44057. if (link) {
  44058. if (link.output.connection && link.input.connection) {
  44059. link.output.connection.connectTo(link.input.connection);
  44060. }
  44061. else if (link.input.connection) {
  44062. if (!link.output.connection) { // Input Node
  44063. var name_1 = link.output.name;
  44064. link.output.syncWithNodeMaterialConnectionPoint(link.input.connection);
  44065. link.output.name = name_1;
  44066. link.output.getNode().connection = link.output.connection;
  44067. link.input.connection.value = link.output.defaultValue;
  44068. }
  44069. }
  44070. if (_this.props.globalState.nodeMaterial) {
  44071. _this.buildMaterial();
  44072. }
  44073. }
  44074. }
  44075. });
  44076. }
  44077. });
  44078. // Load graph of nodes from the material
  44079. if (this.props.globalState.nodeMaterial) {
  44080. var material = this.props.globalState.nodeMaterial;
  44081. material._vertexOutputNodes.forEach(function (n) {
  44082. _this.createNodeFromObject({ column: 0, nodeMaterialBlock: n });
  44083. });
  44084. material._fragmentOutputNodes.forEach(function (n) {
  44085. _this.createNodeFromObject({ column: 0, nodeMaterialBlock: n });
  44086. });
  44087. }
  44088. // load model into engine
  44089. setTimeout(function () {
  44090. var _a;
  44091. if (_this._toAdd) {
  44092. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  44093. }
  44094. _this._toAdd = null;
  44095. _this._engine.setDiagramModel(_this._model);
  44096. _this.forceUpdate();
  44097. }, 550);
  44098. };
  44099. GraphEditor.prototype.addNodeFromClass = function (ObjectClass) {
  44100. var _this = this;
  44101. var block = new ObjectClass(ObjectClass.prototype.getClassName());
  44102. var localNode = this.createNodeFromObject({ column: 0, nodeMaterialBlock: block });
  44103. var widget = this.refs["test"];
  44104. this.forceUpdate();
  44105. // This is needed to fix link offsets when created, (eg. create a fog block)
  44106. // Todo figure out how to correct this without this
  44107. setTimeout(function () {
  44108. widget.startFiringAction(new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["MoveCanvasAction"](1, 0, _this._model));
  44109. }, 500);
  44110. return localNode;
  44111. };
  44112. GraphEditor.prototype.addValueNode = function (type, column, connection) {
  44113. if (column === void 0) { column = 0; }
  44114. var localNode = this.createNodeFromObject({ column: column, type: type, connection: connection });
  44115. var outPort = new _components_diagram_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"](type, "output");
  44116. localNode.addPort(outPort);
  44117. if (!connection) {
  44118. switch (type) {
  44119. case "Vector2":
  44120. outPort.defaultValue = babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["Vector2"].Zero();
  44121. break;
  44122. case "Vector3":
  44123. outPort.defaultValue = babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["Vector3"].Zero();
  44124. break;
  44125. case "Vector4":
  44126. outPort.defaultValue = babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["Vector4"].Zero();
  44127. break;
  44128. case "Matrix":
  44129. outPort.defaultValue = babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["Matrix"].Identity();
  44130. break;
  44131. case "Color3":
  44132. outPort.defaultValue = babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["Color3"].White();
  44133. break;
  44134. case "Color4":
  44135. outPort.defaultValue = new babylonjs_Materials_Node_Blocks_Fragment_textureBlock__WEBPACK_IMPORTED_MODULE_13__["Color4"](1, 1, 1, 1);
  44136. break;
  44137. }
  44138. }
  44139. return localNode;
  44140. };
  44141. GraphEditor.prototype.render = function () {
  44142. var _this = this;
  44143. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_7__["Portal"], { globalState: this.props.globalState },
  44144. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "node-editor-graph-root" },
  44145. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__["NodeListComponent"], { globalState: this.props.globalState, onAddValueNode: function (b) { return _this.addValueNode(b); }, onAddNodeFromClass: function (b) { return _this.addNodeFromClass(b); } }),
  44146. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramWidget"], { deleteKeys: [46], ref: "test", inverseZoom: true, className: "diagram-container", diagramEngine: this._engine, maxNumberPointsPerLink: 0 }),
  44147. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["PropertyTabComponent"], { globalState: this.props.globalState }),
  44148. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogComponent"], { globalState: this.props.globalState }))));
  44149. };
  44150. return GraphEditor;
  44151. }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]));
  44152. /***/ }),
  44153. /***/ "./index.ts":
  44154. /*!******************!*\
  44155. !*** ./index.ts ***!
  44156. \******************/
  44157. /*! exports provided: NodeEditor */
  44158. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44159. "use strict";
  44160. __webpack_require__.r(__webpack_exports__);
  44161. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  44162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  44163. /***/ }),
  44164. /***/ "./legacy/legacy.ts":
  44165. /*!**************************!*\
  44166. !*** ./legacy/legacy.ts ***!
  44167. \**************************/
  44168. /*! exports provided: NodeEditor */
  44169. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44170. "use strict";
  44171. __webpack_require__.r(__webpack_exports__);
  44172. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  44173. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  44174. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  44175. if (typeof globalObject !== "undefined") {
  44176. globalObject.BABYLON = globalObject.BABYLON || {};
  44177. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  44178. }
  44179. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  44180. /***/ }),
  44181. /***/ "./main.scss":
  44182. /*!*******************!*\
  44183. !*** ./main.scss ***!
  44184. \*******************/
  44185. /*! no static exports found */
  44186. /***/ (function(module, exports, __webpack_require__) {
  44187. var content = __webpack_require__(/*! !../../node_modules/css-loader!../../node_modules/sass-loader/lib/loader.js!./main.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss");
  44188. if(typeof content === 'string') content = [[module.i, content, '']];
  44189. var transform;
  44190. var insertInto;
  44191. var options = {"hmr":true}
  44192. options.transform = transform
  44193. options.insertInto = undefined;
  44194. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  44195. if(content.locals) module.exports = content.locals;
  44196. if(false) {}
  44197. /***/ }),
  44198. /***/ "./nodeEditor.ts":
  44199. /*!***********************!*\
  44200. !*** ./nodeEditor.ts ***!
  44201. \***********************/
  44202. /*! exports provided: NodeEditor */
  44203. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44204. "use strict";
  44205. __webpack_require__.r(__webpack_exports__);
  44206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  44207. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44208. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  44209. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  44210. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  44211. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  44212. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  44213. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  44214. /**
  44215. * Class used to create a node editor
  44216. */
  44217. var NodeEditor = /** @class */ (function () {
  44218. function NodeEditor() {
  44219. }
  44220. /**
  44221. * Show the node editor
  44222. * @param options defines the options to use to configure the node editor
  44223. */
  44224. NodeEditor.Show = function (options) {
  44225. var hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  44226. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  44227. globalState.nodeMaterial = options.nodeMaterial;
  44228. globalState.hostElement = hostElement;
  44229. globalState.hostDocument = hostElement.ownerDocument;
  44230. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  44231. globalState: globalState
  44232. });
  44233. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  44234. // Close the popup window when the page is refreshed or scene is disposed
  44235. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  44236. if (globalState.nodeMaterial && popupWindow) {
  44237. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  44238. if (popupWindow) {
  44239. popupWindow.close();
  44240. }
  44241. });
  44242. window.onbeforeunload = function (event) {
  44243. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  44244. if (popupWindow) {
  44245. popupWindow.close();
  44246. }
  44247. };
  44248. }
  44249. };
  44250. return NodeEditor;
  44251. }());
  44252. /***/ }),
  44253. /***/ "./portal.tsx":
  44254. /*!********************!*\
  44255. !*** ./portal.tsx ***!
  44256. \********************/
  44257. /*! exports provided: Portal */
  44258. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44259. "use strict";
  44260. __webpack_require__.r(__webpack_exports__);
  44261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  44262. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44263. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44264. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44265. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  44266. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  44267. var Portal = /** @class */ (function (_super) {
  44268. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Portal, _super);
  44269. function Portal() {
  44270. return _super !== null && _super.apply(this, arguments) || this;
  44271. }
  44272. Portal.prototype.render = function () {
  44273. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  44274. };
  44275. return Portal;
  44276. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44277. /***/ }),
  44278. /***/ "./sharedComponents/buttonLineComponent.tsx":
  44279. /*!**************************************************!*\
  44280. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  44281. \**************************************************/
  44282. /*! exports provided: ButtonLineComponent */
  44283. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44284. "use strict";
  44285. __webpack_require__.r(__webpack_exports__);
  44286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  44287. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44288. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44289. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44290. var ButtonLineComponent = /** @class */ (function (_super) {
  44291. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ButtonLineComponent, _super);
  44292. function ButtonLineComponent(props) {
  44293. return _super.call(this, props) || this;
  44294. }
  44295. ButtonLineComponent.prototype.render = function () {
  44296. var _this = this;
  44297. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  44298. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  44299. };
  44300. return ButtonLineComponent;
  44301. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44302. /***/ }),
  44303. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  44304. /*!****************************************************!*\
  44305. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  44306. \****************************************************/
  44307. /*! exports provided: CheckBoxLineComponent */
  44308. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44309. "use strict";
  44310. __webpack_require__.r(__webpack_exports__);
  44311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  44312. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44313. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44314. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44315. var CheckBoxLineComponent = /** @class */ (function (_super) {
  44316. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CheckBoxLineComponent, _super);
  44317. function CheckBoxLineComponent(props) {
  44318. var _this = _super.call(this, props) || this;
  44319. _this._localChange = false;
  44320. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  44321. if (_this.props.isSelected) {
  44322. _this.state = { isSelected: _this.props.isSelected() };
  44323. }
  44324. else {
  44325. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  44326. }
  44327. return _this;
  44328. }
  44329. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44330. var currentState;
  44331. if (this.props.isSelected) {
  44332. currentState = nextProps.isSelected();
  44333. }
  44334. else {
  44335. currentState = nextProps.target[nextProps.propertyName] === true;
  44336. }
  44337. if (currentState !== nextState.isSelected || this._localChange) {
  44338. nextState.isSelected = currentState;
  44339. this._localChange = false;
  44340. return true;
  44341. }
  44342. return false;
  44343. };
  44344. CheckBoxLineComponent.prototype.onChange = function () {
  44345. this._localChange = true;
  44346. if (this.props.onSelect) {
  44347. this.props.onSelect(!this.state.isSelected);
  44348. }
  44349. else {
  44350. if (this.props.onPropertyChangedObservable) {
  44351. this.props.onPropertyChangedObservable.notifyObservers({
  44352. object: this.props.target,
  44353. property: this.props.propertyName,
  44354. value: !this.state.isSelected,
  44355. initialValue: this.state.isSelected
  44356. });
  44357. }
  44358. this.props.target[this.props.propertyName] = !this.state.isSelected;
  44359. }
  44360. if (this.props.onValueChanged) {
  44361. this.props.onValueChanged();
  44362. }
  44363. this.setState({ isSelected: !this.state.isSelected });
  44364. };
  44365. CheckBoxLineComponent.prototype.render = function () {
  44366. var _this = this;
  44367. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  44368. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44369. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  44370. 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(); } }),
  44371. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  44372. };
  44373. CheckBoxLineComponent._UniqueIdSeed = 0;
  44374. return CheckBoxLineComponent;
  44375. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44376. /***/ }),
  44377. /***/ "./sharedComponents/color3LineComponent.tsx":
  44378. /*!**************************************************!*\
  44379. !*** ./sharedComponents/color3LineComponent.tsx ***!
  44380. \**************************************************/
  44381. /*! exports provided: Color3LineComponent */
  44382. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44383. "use strict";
  44384. __webpack_require__.r(__webpack_exports__);
  44385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  44386. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44387. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44388. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44389. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  44390. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  44391. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  44392. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44393. /* 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");
  44394. var Color3LineComponent = /** @class */ (function (_super) {
  44395. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3LineComponent, _super);
  44396. function Color3LineComponent(props) {
  44397. var _this = _super.call(this, props) || this;
  44398. _this._localChange = false;
  44399. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  44400. return _this;
  44401. }
  44402. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44403. var currentState = nextProps.target[nextProps.propertyName];
  44404. if (!currentState.equals(nextState.color) || this._localChange) {
  44405. nextState.color = currentState.clone();
  44406. this._localChange = false;
  44407. return true;
  44408. }
  44409. return false;
  44410. };
  44411. Color3LineComponent.prototype.onChange = function (newValue) {
  44412. this._localChange = true;
  44413. var newColor = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  44414. if (this.props.onPropertyChangedObservable) {
  44415. this.props.onPropertyChangedObservable.notifyObservers({
  44416. object: this.props.target,
  44417. property: this.props.propertyName,
  44418. value: newColor,
  44419. initialValue: this.state.color
  44420. });
  44421. }
  44422. this.props.target[this.props.propertyName] = newColor;
  44423. this.setState({ color: newColor });
  44424. };
  44425. Color3LineComponent.prototype.switchExpandState = function () {
  44426. this._localChange = true;
  44427. this.setState({ isExpanded: !this.state.isExpanded });
  44428. };
  44429. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  44430. if (!this.props.onPropertyChangedObservable) {
  44431. return;
  44432. }
  44433. this.props.onPropertyChangedObservable.notifyObservers({
  44434. object: this.props.target,
  44435. property: this.props.propertyName,
  44436. value: this.state.color,
  44437. initialValue: previousValue
  44438. });
  44439. };
  44440. Color3LineComponent.prototype.updateStateR = function (value) {
  44441. this._localChange = true;
  44442. var store = this.state.color.clone();
  44443. this.props.target[this.props.propertyName].x = value;
  44444. this.state.color.r = value;
  44445. this.props.target[this.props.propertyName] = this.state.color;
  44446. this.setState({ color: this.state.color });
  44447. this.raiseOnPropertyChanged(store);
  44448. };
  44449. Color3LineComponent.prototype.updateStateG = function (value) {
  44450. this._localChange = true;
  44451. var store = this.state.color.clone();
  44452. this.props.target[this.props.propertyName].g = value;
  44453. this.state.color.g = value;
  44454. this.props.target[this.props.propertyName] = this.state.color;
  44455. this.setState({ color: this.state.color });
  44456. this.raiseOnPropertyChanged(store);
  44457. };
  44458. Color3LineComponent.prototype.updateStateB = function (value) {
  44459. this._localChange = true;
  44460. var store = this.state.color.clone();
  44461. this.props.target[this.props.propertyName].b = value;
  44462. this.state.color.b = value;
  44463. this.props.target[this.props.propertyName] = this.state.color;
  44464. this.setState({ color: this.state.color });
  44465. this.raiseOnPropertyChanged(store);
  44466. };
  44467. Color3LineComponent.prototype.copyToClipboard = function () {
  44468. var element = document.createElement('div');
  44469. element.textContent = this.state.color.toHexString();
  44470. document.body.appendChild(element);
  44471. if (window.getSelection) {
  44472. var range = document.createRange();
  44473. range.selectNode(element);
  44474. window.getSelection().removeAllRanges();
  44475. window.getSelection().addRange(range);
  44476. }
  44477. document.execCommand('copy');
  44478. element.remove();
  44479. };
  44480. Color3LineComponent.prototype.render = function () {
  44481. var _this = this;
  44482. 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"] });
  44483. var colorAsColor3 = this.state.color.getClassName() === "Color3" ? this.state.color : new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"](this.state.color.r, this.state.color.g, this.state.color.b);
  44484. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  44485. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  44486. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44487. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  44488. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  44489. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  44490. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faCopy"] })),
  44491. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  44492. this.state.isExpanded &&
  44493. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  44494. 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); } }),
  44495. 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); } }),
  44496. 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); } }))));
  44497. };
  44498. return Color3LineComponent;
  44499. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44500. /***/ }),
  44501. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  44502. /*!******************************************************!*\
  44503. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  44504. \******************************************************/
  44505. /*! exports provided: FileButtonLineComponent */
  44506. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44507. "use strict";
  44508. __webpack_require__.r(__webpack_exports__);
  44509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  44510. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44511. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44512. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44513. var FileButtonLineComponent = /** @class */ (function (_super) {
  44514. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FileButtonLineComponent, _super);
  44515. function FileButtonLineComponent(props) {
  44516. return _super.call(this, props) || this;
  44517. }
  44518. FileButtonLineComponent.prototype.onChange = function (evt) {
  44519. var files = evt.target.files;
  44520. if (files && files.length) {
  44521. this.props.onClick(files[0]);
  44522. }
  44523. evt.target.value = "";
  44524. };
  44525. FileButtonLineComponent.prototype.render = function () {
  44526. var _this = this;
  44527. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  44528. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  44529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "upload", id: "file-upload", type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } })));
  44530. };
  44531. return FileButtonLineComponent;
  44532. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44533. /***/ }),
  44534. /***/ "./sharedComponents/floatLineComponent.tsx":
  44535. /*!*************************************************!*\
  44536. !*** ./sharedComponents/floatLineComponent.tsx ***!
  44537. \*************************************************/
  44538. /*! exports provided: FloatLineComponent */
  44539. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44540. "use strict";
  44541. __webpack_require__.r(__webpack_exports__);
  44542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  44543. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44544. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44545. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44546. var FloatLineComponent = /** @class */ (function (_super) {
  44547. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatLineComponent, _super);
  44548. function FloatLineComponent(props) {
  44549. var _this = _super.call(this, props) || this;
  44550. _this._localChange = false;
  44551. var currentValue = _this.props.target[_this.props.propertyName];
  44552. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  44553. _this._store = currentValue;
  44554. return _this;
  44555. }
  44556. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44557. if (this._localChange) {
  44558. this._localChange = false;
  44559. return true;
  44560. }
  44561. var newValue = nextProps.target[nextProps.propertyName];
  44562. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  44563. if (newValueString !== nextState.value) {
  44564. nextState.value = newValueString;
  44565. return true;
  44566. }
  44567. return false;
  44568. };
  44569. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  44570. if (this.props.onChange) {
  44571. this.props.onChange(newValue);
  44572. }
  44573. if (!this.props.onPropertyChangedObservable) {
  44574. return;
  44575. }
  44576. this.props.onPropertyChangedObservable.notifyObservers({
  44577. object: this.props.target,
  44578. property: this.props.propertyName,
  44579. value: newValue,
  44580. initialValue: previousValue
  44581. });
  44582. };
  44583. FloatLineComponent.prototype.updateValue = function (valueString) {
  44584. if (/[^0-9\.\-]/g.test(valueString)) {
  44585. return;
  44586. }
  44587. var valueAsNumber;
  44588. if (this.props.isInteger) {
  44589. valueAsNumber = parseInt(valueString);
  44590. }
  44591. else {
  44592. valueAsNumber = parseFloat(valueString);
  44593. }
  44594. this._localChange = true;
  44595. this.setState({ value: valueString });
  44596. if (isNaN(valueAsNumber)) {
  44597. return;
  44598. }
  44599. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  44600. this.props.target[this.props.propertyName] = valueAsNumber;
  44601. this._store = valueAsNumber;
  44602. };
  44603. FloatLineComponent.prototype.render = function () {
  44604. var _this = this;
  44605. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  44606. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44607. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  44608. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || "0.01", className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))));
  44609. };
  44610. return FloatLineComponent;
  44611. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44612. /***/ }),
  44613. /***/ "./sharedComponents/lineContainerComponent.tsx":
  44614. /*!*****************************************************!*\
  44615. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  44616. \*****************************************************/
  44617. /*! exports provided: LineContainerComponent */
  44618. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44619. "use strict";
  44620. __webpack_require__.r(__webpack_exports__);
  44621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  44622. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44623. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44624. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44625. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44626. /* 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");
  44627. var LineContainerComponent = /** @class */ (function (_super) {
  44628. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineContainerComponent, _super);
  44629. function LineContainerComponent(props) {
  44630. var _this = _super.call(this, props) || this;
  44631. var initialState;
  44632. try {
  44633. if (LineContainerComponent._InMemoryStorage && LineContainerComponent._InMemoryStorage[_this.props.title] !== undefined) {
  44634. initialState = LineContainerComponent._InMemoryStorage[_this.props.title];
  44635. }
  44636. else if (typeof (Storage) !== "undefined" && localStorage.getItem(_this.props.title) !== null) {
  44637. initialState = localStorage.getItem(_this.props.title) === "true";
  44638. }
  44639. else {
  44640. initialState = !_this.props.closed;
  44641. }
  44642. }
  44643. catch (e) {
  44644. LineContainerComponent._InMemoryStorage = {};
  44645. LineContainerComponent._InMemoryStorage[_this.props.title] = !_this.props.closed;
  44646. initialState = !_this.props.closed;
  44647. }
  44648. _this.state = { isExpanded: initialState };
  44649. return _this;
  44650. }
  44651. LineContainerComponent.prototype.switchExpandedState = function () {
  44652. var newState = !this.state.isExpanded;
  44653. try {
  44654. if (LineContainerComponent._InMemoryStorage) {
  44655. LineContainerComponent._InMemoryStorage[this.props.title] = newState;
  44656. }
  44657. else if (typeof (Storage) !== "undefined") {
  44658. localStorage.setItem(this.props.title, newState ? "true" : "false");
  44659. }
  44660. }
  44661. catch (e) {
  44662. LineContainerComponent._InMemoryStorage = {};
  44663. LineContainerComponent._InMemoryStorage[this.props.title] = newState;
  44664. }
  44665. this.setState({ isExpanded: newState });
  44666. };
  44667. LineContainerComponent.prototype.renderHeader = function () {
  44668. var _this = this;
  44669. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  44670. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  44671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  44672. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  44673. 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"] }))));
  44674. };
  44675. LineContainerComponent.prototype.render = function () {
  44676. if (!this.state.isExpanded) {
  44677. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  44678. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  44679. }
  44680. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  44681. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  44682. this.renderHeader(),
  44683. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  44684. };
  44685. return LineContainerComponent;
  44686. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44687. /***/ }),
  44688. /***/ "./sharedComponents/numericInputComponent.tsx":
  44689. /*!****************************************************!*\
  44690. !*** ./sharedComponents/numericInputComponent.tsx ***!
  44691. \****************************************************/
  44692. /*! exports provided: NumericInputComponent */
  44693. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44694. "use strict";
  44695. __webpack_require__.r(__webpack_exports__);
  44696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  44697. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44698. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44699. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44700. var NumericInputComponent = /** @class */ (function (_super) {
  44701. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumericInputComponent, _super);
  44702. function NumericInputComponent(props) {
  44703. var _this = _super.call(this, props) || this;
  44704. _this._localChange = false;
  44705. _this.state = { value: _this.props.value.toFixed(3) };
  44706. return _this;
  44707. }
  44708. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44709. if (this._localChange) {
  44710. this._localChange = false;
  44711. return true;
  44712. }
  44713. if (nextProps.value.toString() !== nextState.value) {
  44714. nextState.value = nextProps.value.toFixed(3);
  44715. return true;
  44716. }
  44717. return false;
  44718. };
  44719. NumericInputComponent.prototype.updateValue = function (evt) {
  44720. var value = evt.target.value;
  44721. if (/[^0-9\.\-]/g.test(value)) {
  44722. return;
  44723. }
  44724. var valueAsNumber = parseFloat(value);
  44725. this._localChange = true;
  44726. this.setState({ value: value });
  44727. if (isNaN(valueAsNumber)) {
  44728. return;
  44729. }
  44730. this.props.onChange(valueAsNumber);
  44731. };
  44732. NumericInputComponent.prototype.render = function () {
  44733. var _this = this;
  44734. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  44735. this.props.label &&
  44736. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  44737. 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); } })));
  44738. };
  44739. NumericInputComponent.defaultProps = {
  44740. step: 1,
  44741. };
  44742. return NumericInputComponent;
  44743. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44744. /***/ }),
  44745. /***/ "./sharedComponents/optionsLineComponent.tsx":
  44746. /*!***************************************************!*\
  44747. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  44748. \***************************************************/
  44749. /*! exports provided: OptionsLineComponent */
  44750. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44751. "use strict";
  44752. __webpack_require__.r(__webpack_exports__);
  44753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  44754. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44755. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44756. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44757. var ListLineOption = /** @class */ (function () {
  44758. function ListLineOption() {
  44759. }
  44760. return ListLineOption;
  44761. }());
  44762. var OptionsLineComponent = /** @class */ (function (_super) {
  44763. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OptionsLineComponent, _super);
  44764. function OptionsLineComponent(props) {
  44765. var _this = _super.call(this, props) || this;
  44766. _this._localChange = false;
  44767. _this.state = { value: props.target[props.propertyName] };
  44768. return _this;
  44769. }
  44770. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44771. if (this._localChange) {
  44772. this._localChange = false;
  44773. return true;
  44774. }
  44775. var newValue = nextProps.target[nextProps.propertyName];
  44776. if (newValue != null && newValue !== nextState.value) {
  44777. nextState.value = newValue;
  44778. return true;
  44779. }
  44780. return false;
  44781. };
  44782. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  44783. if (!this.props.onPropertyChangedObservable) {
  44784. return;
  44785. }
  44786. this.props.onPropertyChangedObservable.notifyObservers({
  44787. object: this.props.target,
  44788. property: this.props.propertyName,
  44789. value: newValue,
  44790. initialValue: previousValue
  44791. });
  44792. };
  44793. OptionsLineComponent.prototype.updateValue = function (valueString) {
  44794. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  44795. this._localChange = true;
  44796. var store = this.state.value;
  44797. if (!this.props.noDirectUpdate) {
  44798. this.props.target[this.props.propertyName] = value;
  44799. }
  44800. this.setState({ value: value });
  44801. this.raiseOnPropertyChanged(value, store);
  44802. if (this.props.onSelect) {
  44803. this.props.onSelect(value);
  44804. }
  44805. };
  44806. OptionsLineComponent.prototype.render = function () {
  44807. var _this = this;
  44808. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  44809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" },
  44811. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (evt) { return _this.updateValue(evt.target.value); }, value: this.state.value }, this.props.options.map(function (option) {
  44812. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  44813. })))));
  44814. };
  44815. return OptionsLineComponent;
  44816. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44817. /***/ }),
  44818. /***/ "./sharedComponents/popup.ts":
  44819. /*!***********************************!*\
  44820. !*** ./sharedComponents/popup.ts ***!
  44821. \***********************************/
  44822. /*! exports provided: Popup */
  44823. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44824. "use strict";
  44825. __webpack_require__.r(__webpack_exports__);
  44826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  44827. var Popup = /** @class */ (function () {
  44828. function Popup() {
  44829. }
  44830. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  44831. var _this = this;
  44832. if (width === void 0) { width = 300; }
  44833. if (height === void 0) { height = 800; }
  44834. var windowCreationOptionsList = {
  44835. width: width,
  44836. height: height,
  44837. top: (window.innerHeight - width) / 2 + window.screenY,
  44838. left: (window.innerWidth - height) / 2 + window.screenX
  44839. };
  44840. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  44841. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  44842. .join(',');
  44843. var popupWindow = window.open("", title, windowCreationOptions);
  44844. if (!popupWindow) {
  44845. return null;
  44846. }
  44847. var parentDocument = popupWindow.document;
  44848. // Font
  44849. var newLinkEl = parentDocument.createElement('link');
  44850. newLinkEl.rel = 'stylesheet';
  44851. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  44852. parentDocument.head.appendChild(newLinkEl);
  44853. parentDocument.title = title;
  44854. parentDocument.body.style.width = "100%";
  44855. parentDocument.body.style.height = "100%";
  44856. parentDocument.body.style.margin = "0";
  44857. parentDocument.body.style.padding = "0";
  44858. var parentControl = parentDocument.createElement("div");
  44859. parentControl.style.width = "100%";
  44860. parentControl.style.height = "100%";
  44861. parentControl.style.margin = "0";
  44862. parentControl.style.padding = "0";
  44863. popupWindow.document.body.appendChild(parentControl);
  44864. this._CopyStyles(window.document, parentDocument);
  44865. setTimeout(function () {
  44866. _this._CopyStyles(window.document, parentDocument);
  44867. }, 0);
  44868. this[windowVariableName] = popupWindow;
  44869. return parentControl;
  44870. };
  44871. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  44872. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  44873. var styleSheet = sourceDoc.styleSheets[index];
  44874. try {
  44875. if (styleSheet.cssRules) { // for <style> elements
  44876. var newStyleEl = sourceDoc.createElement('style');
  44877. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  44878. var cssRule = _a[_i];
  44879. // write the text of each rule into the body of the style element
  44880. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  44881. }
  44882. targetDoc.head.appendChild(newStyleEl);
  44883. }
  44884. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  44885. var newLinkEl = sourceDoc.createElement('link');
  44886. newLinkEl.rel = 'stylesheet';
  44887. newLinkEl.href = styleSheet.href;
  44888. targetDoc.head.appendChild(newLinkEl);
  44889. }
  44890. }
  44891. catch (e) {
  44892. console.log(e);
  44893. }
  44894. }
  44895. };
  44896. return Popup;
  44897. }());
  44898. /***/ }),
  44899. /***/ "./sharedComponents/textInputLineComponent.tsx":
  44900. /*!*****************************************************!*\
  44901. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  44902. \*****************************************************/
  44903. /*! exports provided: TextInputLineComponent */
  44904. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44905. "use strict";
  44906. __webpack_require__.r(__webpack_exports__);
  44907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  44908. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44909. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44910. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44911. var TextInputLineComponent = /** @class */ (function (_super) {
  44912. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextInputLineComponent, _super);
  44913. function TextInputLineComponent(props) {
  44914. var _this = _super.call(this, props) || this;
  44915. _this._localChange = false;
  44916. _this.state = { value: _this.props.value || _this.props.target[_this.props.propertyName] || "" };
  44917. return _this;
  44918. }
  44919. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  44920. if (this._localChange) {
  44921. this._localChange = false;
  44922. return true;
  44923. }
  44924. var newValue = nextProps.value || nextProps.target[nextProps.propertyName];
  44925. if (newValue !== nextState.value) {
  44926. nextState.value = newValue || "";
  44927. return true;
  44928. }
  44929. return false;
  44930. };
  44931. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  44932. if (this.props.onChange) {
  44933. this.props.onChange(newValue);
  44934. return;
  44935. }
  44936. if (!this.props.onPropertyChangedObservable) {
  44937. return;
  44938. }
  44939. this.props.onPropertyChangedObservable.notifyObservers({
  44940. object: this.props.target,
  44941. property: this.props.propertyName,
  44942. value: newValue,
  44943. initialValue: previousValue
  44944. });
  44945. };
  44946. TextInputLineComponent.prototype.updateValue = function (value) {
  44947. this._localChange = true;
  44948. var store = this.props.value || this.props.target[this.props.propertyName];
  44949. this.setState({ value: value });
  44950. this.raiseOnPropertyChanged(value, store);
  44951. if (this.props.propertyName) {
  44952. this.props.target[this.props.propertyName] = value;
  44953. }
  44954. };
  44955. TextInputLineComponent.prototype.render = function () {
  44956. var _this = this;
  44957. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  44958. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44959. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  44960. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } }))));
  44961. };
  44962. return TextInputLineComponent;
  44963. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44964. /***/ }),
  44965. /***/ "./sharedComponents/textLineComponent.tsx":
  44966. /*!************************************************!*\
  44967. !*** ./sharedComponents/textLineComponent.tsx ***!
  44968. \************************************************/
  44969. /*! exports provided: TextLineComponent */
  44970. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44971. "use strict";
  44972. __webpack_require__.r(__webpack_exports__);
  44973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  44974. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44975. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44976. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44977. var TextLineComponent = /** @class */ (function (_super) {
  44978. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLineComponent, _super);
  44979. function TextLineComponent(props) {
  44980. return _super.call(this, props) || this;
  44981. }
  44982. TextLineComponent.prototype.onLink = function () {
  44983. if (!this.props.onLink) {
  44984. return;
  44985. }
  44986. this.props.onLink();
  44987. };
  44988. TextLineComponent.prototype.renderContent = function () {
  44989. var _this = this;
  44990. if (this.props.onLink) {
  44991. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-value", title: this.props.value, onClick: function () { return _this.onLink(); } }, this.props.value || "no name"));
  44992. }
  44993. 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"));
  44994. };
  44995. TextLineComponent.prototype.render = function () {
  44996. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  44997. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  44998. this.renderContent()));
  44999. };
  45000. return TextLineComponent;
  45001. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45002. /***/ }),
  45003. /***/ "./sharedComponents/textureLineComponent.tsx":
  45004. /*!***************************************************!*\
  45005. !*** ./sharedComponents/textureLineComponent.tsx ***!
  45006. \***************************************************/
  45007. /*! exports provided: TextureLineComponent */
  45008. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45009. "use strict";
  45010. __webpack_require__.r(__webpack_exports__);
  45011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  45012. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45013. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45014. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45015. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  45016. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  45017. var TextureLineComponent = /** @class */ (function (_super) {
  45018. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureLineComponent, _super);
  45019. function TextureLineComponent(props) {
  45020. var _this = _super.call(this, props) || this;
  45021. _this.state = {
  45022. displayRed: true,
  45023. displayGreen: true,
  45024. displayBlue: true,
  45025. displayAlpha: true,
  45026. face: 0
  45027. };
  45028. return _this;
  45029. }
  45030. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  45031. return true;
  45032. };
  45033. TextureLineComponent.prototype.componentDidMount = function () {
  45034. this.updatePreview();
  45035. };
  45036. TextureLineComponent.prototype.componentDidUpdate = function () {
  45037. this.updatePreview();
  45038. };
  45039. TextureLineComponent.prototype.updatePreview = function () {
  45040. var _this = this;
  45041. var texture = this.props.texture;
  45042. if (!texture.isReady() && texture._texture) {
  45043. texture._texture.onLoadedObservable.addOnce(function () {
  45044. _this.updatePreview();
  45045. });
  45046. }
  45047. var scene = texture.getScene();
  45048. var engine = scene.getEngine();
  45049. var size = texture.getSize();
  45050. var ratio = size.width / size.height;
  45051. var width = this.props.width;
  45052. var height = (width / ratio) | 1;
  45053. var passPostProcess;
  45054. if (!texture.isCube) {
  45055. passPostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassPostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  45056. }
  45057. else {
  45058. var passCubePostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassCubePostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  45059. passCubePostProcess.face = this.state.face;
  45060. passPostProcess = passCubePostProcess;
  45061. }
  45062. if (!passPostProcess.getEffect().isReady()) {
  45063. // Try again later
  45064. passPostProcess.dispose();
  45065. setTimeout(function () { return _this.updatePreview(); }, 250);
  45066. return;
  45067. }
  45068. var previewCanvas = this.refs.canvas;
  45069. if (this.props.globalState) {
  45070. this.props.globalState.blockMutationUpdates = true;
  45071. }
  45072. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  45073. passPostProcess.onApply = function (effect) {
  45074. effect.setTexture("textureSampler", texture);
  45075. };
  45076. var internalTexture = rtt.getInternalTexture();
  45077. if (internalTexture) {
  45078. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  45079. // Read the contents of the framebuffer
  45080. var numberOfChannelsByLine = width * 4;
  45081. var halfHeight = height / 2;
  45082. //Reading datas from WebGL
  45083. var data = engine.readPixels(0, 0, width, height);
  45084. if (!texture.isCube) {
  45085. if (!this.state.displayRed || !this.state.displayGreen || !this.state.displayBlue) {
  45086. for (var i = 0; i < width * height * 4; i += 4) {
  45087. if (!this.state.displayRed) {
  45088. data[i] = 0;
  45089. }
  45090. if (!this.state.displayGreen) {
  45091. data[i + 1] = 0;
  45092. }
  45093. if (!this.state.displayBlue) {
  45094. data[i + 2] = 0;
  45095. }
  45096. if (this.state.displayAlpha) {
  45097. var alpha = data[i + 2];
  45098. data[i] = alpha;
  45099. data[i + 1] = alpha;
  45100. data[i + 2] = alpha;
  45101. data[i + 2] = 0;
  45102. }
  45103. }
  45104. }
  45105. }
  45106. //To flip image on Y axis.
  45107. if (texture.invertY || texture.isCube) {
  45108. for (var i = 0; i < halfHeight; i++) {
  45109. for (var j = 0; j < numberOfChannelsByLine; j++) {
  45110. var currentCell = j + i * numberOfChannelsByLine;
  45111. var targetLine = height - i - 1;
  45112. var targetCell = j + targetLine * numberOfChannelsByLine;
  45113. var temp = data[currentCell];
  45114. data[currentCell] = data[targetCell];
  45115. data[targetCell] = temp;
  45116. }
  45117. }
  45118. }
  45119. previewCanvas.width = width;
  45120. previewCanvas.height = height;
  45121. var context = previewCanvas.getContext('2d');
  45122. if (context) {
  45123. // Copy the pixels to the preview canvas
  45124. var imageData = context.createImageData(width, height);
  45125. var castData = imageData.data;
  45126. castData.set(data);
  45127. context.putImageData(imageData, 0, 0);
  45128. }
  45129. // Unbind
  45130. engine.unBindFramebuffer(internalTexture);
  45131. }
  45132. rtt.dispose();
  45133. passPostProcess.dispose();
  45134. previewCanvas.style.height = height + "px";
  45135. if (this.props.globalState) {
  45136. this.props.globalState.blockMutationUpdates = false;
  45137. }
  45138. };
  45139. TextureLineComponent.prototype.render = function () {
  45140. var _this = this;
  45141. var texture = this.props.texture;
  45142. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  45143. !this.props.hideChannelSelect && texture.isCube &&
  45144. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  45145. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 0 ? "px command selected" : "px command", onClick: function () { return _this.setState({ face: 0 }); } }, "PX"),
  45146. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 1 ? "nx command selected" : "nx command", onClick: function () { return _this.setState({ face: 1 }); } }, "NX"),
  45147. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 2 ? "py command selected" : "py command", onClick: function () { return _this.setState({ face: 2 }); } }, "PY"),
  45148. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 3 ? "ny command selected" : "ny command", onClick: function () { return _this.setState({ face: 3 }); } }, "NY"),
  45149. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 4 ? "pz command selected" : "pz command", onClick: function () { return _this.setState({ face: 4 }); } }, "PZ"),
  45150. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 5 ? "nz command selected" : "nz command", onClick: function () { return _this.setState({ face: 5 }); } }, "NZ")),
  45151. !this.props.hideChannelSelect && !texture.isCube &&
  45152. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  45153. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayRed && !this.state.displayGreen ? "red command selected" : "red command", onClick: function () { return _this.setState({ displayRed: true, displayGreen: false, displayBlue: false, displayAlpha: false }); } }, "R"),
  45154. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayGreen && !this.state.displayBlue ? "green command selected" : "green command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: true, displayBlue: false, displayAlpha: false }); } }, "G"),
  45155. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayBlue && !this.state.displayAlpha ? "blue command selected" : "blue command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: false, displayBlue: true, displayAlpha: false }); } }, "B"),
  45156. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayAlpha && !this.state.displayRed ? "alpha command selected" : "alpha command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: false, displayBlue: false, displayAlpha: true }); } }, "A"),
  45157. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayRed && this.state.displayGreen ? "all command selected" : "all command", onClick: function () { return _this.setState({ displayRed: true, displayGreen: true, displayBlue: true, displayAlpha: true }); } }, "ALL")),
  45158. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  45159. };
  45160. return TextureLineComponent;
  45161. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45162. /***/ }),
  45163. /***/ "./sharedComponents/vector2LineComponent.tsx":
  45164. /*!***************************************************!*\
  45165. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  45166. \***************************************************/
  45167. /*! exports provided: Vector2LineComponent */
  45168. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45169. "use strict";
  45170. __webpack_require__.r(__webpack_exports__);
  45171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  45172. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45173. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45174. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45175. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  45176. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  45177. /* 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");
  45178. var Vector2LineComponent = /** @class */ (function (_super) {
  45179. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2LineComponent, _super);
  45180. function Vector2LineComponent(props) {
  45181. var _this = _super.call(this, props) || this;
  45182. _this._localChange = false;
  45183. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  45184. return _this;
  45185. }
  45186. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  45187. var nextPropsValue = nextProps.target[nextProps.propertyName];
  45188. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  45189. nextState.value = nextPropsValue.clone();
  45190. this._localChange = false;
  45191. return true;
  45192. }
  45193. return false;
  45194. };
  45195. Vector2LineComponent.prototype.switchExpandState = function () {
  45196. this._localChange = true;
  45197. this.setState({ isExpanded: !this.state.isExpanded });
  45198. };
  45199. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  45200. if (this.props.onChange) {
  45201. this.props.onChange(this.state.value);
  45202. }
  45203. if (!this.props.onPropertyChangedObservable) {
  45204. return;
  45205. }
  45206. this.props.onPropertyChangedObservable.notifyObservers({
  45207. object: this.props.target,
  45208. property: this.props.propertyName,
  45209. value: this.state.value,
  45210. initialValue: previousValue
  45211. });
  45212. };
  45213. Vector2LineComponent.prototype.updateStateX = function (value) {
  45214. this._localChange = true;
  45215. var store = this.state.value.clone();
  45216. this.props.target[this.props.propertyName].x = value;
  45217. this.state.value.x = value;
  45218. this.setState({ value: this.state.value });
  45219. this.raiseOnPropertyChanged(store);
  45220. };
  45221. Vector2LineComponent.prototype.updateStateY = function (value) {
  45222. this._localChange = true;
  45223. var store = this.state.value.clone();
  45224. this.props.target[this.props.propertyName].y = value;
  45225. this.state.value.y = value;
  45226. this.setState({ value: this.state.value });
  45227. this.raiseOnPropertyChanged(store);
  45228. };
  45229. Vector2LineComponent.prototype.render = function () {
  45230. var _this = this;
  45231. 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"] });
  45232. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  45233. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  45234. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  45235. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  45236. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  45237. this.state.isExpanded &&
  45238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  45239. 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); } }),
  45240. 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); } }))));
  45241. };
  45242. Vector2LineComponent.defaultProps = {
  45243. step: 0.001,
  45244. };
  45245. return Vector2LineComponent;
  45246. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45247. /***/ }),
  45248. /***/ "./sharedComponents/vector3LineComponent.tsx":
  45249. /*!***************************************************!*\
  45250. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  45251. \***************************************************/
  45252. /*! exports provided: Vector3LineComponent */
  45253. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45254. "use strict";
  45255. __webpack_require__.r(__webpack_exports__);
  45256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  45257. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45258. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45259. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45260. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  45261. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  45262. /* 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");
  45263. var Vector3LineComponent = /** @class */ (function (_super) {
  45264. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3LineComponent, _super);
  45265. function Vector3LineComponent(props) {
  45266. var _this = _super.call(this, props) || this;
  45267. _this._localChange = false;
  45268. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  45269. return _this;
  45270. }
  45271. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  45272. var nextPropsValue = nextProps.target[nextProps.propertyName];
  45273. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  45274. nextState.value = nextPropsValue.clone();
  45275. this._localChange = false;
  45276. return true;
  45277. }
  45278. return false;
  45279. };
  45280. Vector3LineComponent.prototype.switchExpandState = function () {
  45281. this._localChange = true;
  45282. this.setState({ isExpanded: !this.state.isExpanded });
  45283. };
  45284. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  45285. if (this.props.onChange) {
  45286. this.props.onChange(this.state.value);
  45287. }
  45288. if (!this.props.onPropertyChangedObservable) {
  45289. return;
  45290. }
  45291. this.props.onPropertyChangedObservable.notifyObservers({
  45292. object: this.props.target,
  45293. property: this.props.propertyName,
  45294. value: this.state.value,
  45295. initialValue: previousValue
  45296. });
  45297. };
  45298. Vector3LineComponent.prototype.updateVector3 = function () {
  45299. var store = this.props.target[this.props.propertyName].clone();
  45300. this.props.target[this.props.propertyName] = this.state.value;
  45301. this.setState({ value: store });
  45302. this.raiseOnPropertyChanged(store);
  45303. };
  45304. Vector3LineComponent.prototype.updateStateX = function (value) {
  45305. this._localChange = true;
  45306. this.state.value.x = value;
  45307. this.updateVector3();
  45308. };
  45309. Vector3LineComponent.prototype.updateStateY = function (value) {
  45310. this._localChange = true;
  45311. this.state.value.y = value;
  45312. this.updateVector3();
  45313. };
  45314. Vector3LineComponent.prototype.updateStateZ = function (value) {
  45315. this._localChange = true;
  45316. this.state.value.z = value;
  45317. this.updateVector3();
  45318. };
  45319. Vector3LineComponent.prototype.render = function () {
  45320. var _this = this;
  45321. 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"] });
  45322. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  45323. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  45324. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  45325. 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)),
  45326. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  45327. this.state.isExpanded &&
  45328. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  45329. 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); } }),
  45330. 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); } }),
  45331. 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); } }))));
  45332. };
  45333. Vector3LineComponent.defaultProps = {
  45334. step: 0.001,
  45335. };
  45336. return Vector3LineComponent;
  45337. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45338. /***/ }),
  45339. /***/ "babylonjs/Misc/observable":
  45340. /*!****************************************************************************************************!*\
  45341. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  45342. \****************************************************************************************************/
  45343. /*! no static exports found */
  45344. /***/ (function(module, exports) {
  45345. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  45346. /***/ })
  45347. /******/ });
  45348. });
  45349. //# sourceMappingURL=babylon.nodeEditor.max.js.map